/* =====================================================================
   KPI LUCKY WHEEL — Card tóm tắt (inline) + Modal popup SVG wheel
   ===================================================================== */
.kpi-wheel {
    --wheel-accent: var(--ghz-warning, #fbbf24);
    --wheel-accent-soft: color-mix(in srgb, var(--wheel-accent) 14%, transparent);
    padding: 18px 20px;
    border-color: color-mix(in srgb, var(--wheel-accent) 38%, var(--ghz-card-glass-border, transparent));
    overflow: hidden;
}
.kpi-wheel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.kpi-wheel-eyebrow {
    margin: 0 0 6px; color: var(--wheel-accent);
    font-size: 10px; font-weight: 800; letter-spacing: .08em;
}
.kpi-wheel .ui-section-title { margin: 0; }
.kpi-wheel-copy {
    margin: 5px 0 0; color: var(--ghz-text-muted);
    font-size: 13px; line-height: 1.5;
}
.kpi-wheel-ticket {
    display: inline-flex; align-items: center; gap: 6px; flex: 0 0 auto;
    padding: 7px 10px; border-radius: 999px;
    border: 1px solid color-mix(in srgb, var(--wheel-accent) 35%, transparent);
    background: var(--wheel-accent-soft);
    color: var(--ghz-text-primary);
    font-size: 12px; font-weight: 800;
}
.kpi-wheel-ticket i { color: var(--wheel-accent); }
.kpi-wheel-progress {
    height: 7px; margin: 15px 0 18px; overflow: hidden;
    border: 1px solid var(--ghz-card-border); border-radius: 99px;
    background: var(--ghz-input-bg);
}
.kpi-wheel-progress span {
    display: block; width: 0; height: 100%; border-radius: inherit;
    background: linear-gradient(90deg, var(--ghz-brand-color), var(--wheel-accent));
    transition: width .45s ease;
}
.kpi-wheel-main {
    display: flex; align-items: center; justify-content: center;
    gap: clamp(24px, 8vw, 80px); padding: 4px 0 16px;
}
.kpi-wheel-mini-disc {
    position: relative; display: grid; place-items: center;
    width: min(220px, 45vw); aspect-ratio: 1; flex: 0 0 auto;
    border: 5px solid color-mix(in srgb, var(--wheel-accent) 78%, white);
    border-radius: 50%;
    background: conic-gradient(
        #64748b 0 19%, #0e7490 19% 41%, #1d4ed8 41% 59%, #4338ca 59% 73%,
        #7c3aed 73% 80%, #b45309 80% 85%, #9333ea 85% 88%, #b91c1c 88% 89%, #047857 89% 100%
    );
    box-shadow:
        0 5px 20px color-mix(in srgb, var(--wheel-accent) 18%, transparent),
        inset 0 0 0 3px rgba(255, 255, 255, .25);
}
.kpi-wheel-mini-hub {
    z-index: 2; display: grid; width: 25%; aspect-ratio: 1; place-items: center;
    border: 3px solid rgba(255, 255, 255, .65); border-radius: 50%;
    background: var(--ghz-card-bg, #181b20);
    color: var(--wheel-accent); font-size: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .3);
}
.kpi-wheel-actions { width: min(300px, 48%); text-align: center; }
.kpi-wheel-actions p {
    min-height: 40px; margin: 0 0 12px;
    color: var(--ghz-text-secondary);
    font-size: 14px; line-height: 1.5;
}
.kpi-wheel-actions button { min-height: 42px; }
/* FIX P0-3 (2026-10-24): bỏ !important ở background/border/opacity.
   Trước đây rule này đè lên cả style enabled ⇒ nút luôn trông như ô input.
   Nay dùng token nút --ghz-btn-secondary-* để đồng nhất với .btn-ghost-flat.
   (ui-improvements.css có cùng rule — 2 file cùng đặc độ ⇒ file sau thắng.) */
#kpi-wheel-spin:disabled {
    cursor: not-allowed;
    background: var(--ghz-btn-secondary-bg, var(--ghz-input-bg));
    color: var(--ghz-text-muted);
    border: 1px solid var(--ghz-btn-secondary-border, var(--ghz-card-border));
    box-shadow: none;
    opacity: 0.55;
}
#kpi-wheel-spin:disabled i {
    color: var(--ghz-text-muted);
}
.kpi-wheel-history { border-top: 1px solid var(--ghz-card-border); }
.kpi-wheel-history summary {
    display: flex; justify-content: space-between; gap: 12px;
    padding: 12px 2px 2px; cursor: pointer;
    color: var(--ghz-text-secondary);
    font-size: 12px; font-weight: 700; list-style: none;
}
.kpi-wheel-history summary::-webkit-details-marker { display: none; }
.kpi-wheel-history summary i,
#kpi-wheel-points { color: var(--wheel-accent); }
.kpi-wheel-history-list { display: grid; gap: 6px; padding-top: 10px; }
.kpi-wheel-history-list p { margin: 0; color: var(--ghz-text-muted); font-size: 12px; }
.kpi-wheel-history-row {
    display: flex; justify-content: space-between; gap: 12px;
    padding: 8px 10px; border-radius: 8px;
    border: 1px solid var(--ghz-card-border);
    background: var(--ghz-input-bg);
    color: var(--ghz-text-secondary); font-size: 12px;
}
.kpi-wheel-history-row strong { color: var(--wheel-accent); }

@media (max-width: 600px) {
    .kpi-wheel { padding: 15px; }
    .kpi-wheel-main { flex-direction: column; gap: 16px; }
    .kpi-wheel-mini-disc { width: min(210px, 62vw); }
    .kpi-wheel-actions { width: 100%; }
}

/* Nút KPI Wheel — disabled state theo theme */
#kpi-wheel-spin {
    min-height: 48px;
    padding: 12px 24px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    transition: all .22s ease;
}
/* FIX P0-2 (2026-10-24): class đổi từ `.btn-ghost` (class chết — chỉ được
   style cho `a.btn-ghost` trong ghz-ui-components.css, file KHÔNG được load)
   sang `.btn-ghost-flat` (có style thật trong ui-improvements.css).
   Dùng token NÚT (--ghz-btn-secondary-*) thay cho --ghz-input-bg để nền/viền
   nổi rõ trên mọi theme sáng lẫn tối. */
#kpi-wheel-spin.btn-ghost-flat {
    background: var(--ghz-btn-secondary-bg, var(--ghz-input-bg));
    color: var(--ghz-text-secondary);
    border: 1px solid var(--ghz-btn-secondary-border, var(--ghz-card-border));
}
#kpi-wheel-spin.btn-ghost-flat:hover:not(:disabled) {
    background: var(--ghz-btn-secondary-bg-hover, var(--ghz-card-bg));
    color: var(--ghz-text-primary);
    border-color: var(--ghz-btn-secondary-border-hover, var(--ghz-card-border));
}
#kpi-wheel-spin.btn-ghost-flat:disabled {
    cursor: not-allowed;
    opacity: .55;
}

@media (prefers-reduced-motion: reduce) {
    .kpi-wheel-progress span { transition: none; }
    #kpi-wheel-spin { transition: none; }
}

/* =====================================================================
   MODAL VÒNG QUAY — Theo pattern .app-modal-overlay > .card
   ===================================================================== */
#kpi-wheel-modal .lw-modal-card {
    height: min(100%, 640px);
    max-width: 900px; width: 100%;
    display: flex; flex-direction: column; min-height: 0;
    padding: 0; border-radius: 24px;
    background: linear-gradient(180deg, #14161c 0%, #0e1014 100%);
    border: 1px solid rgba(255, 255, 255, .07);
    box-shadow:
        0 40px 90px -20px rgba(0, 0, 0, .8),
        0 0 0 1px rgba(255, 255, 255, .03) inset;
}
.lw-modal-scroll {
    flex: 1 1 auto; min-height: 0; overflow-y: auto;
    display: flex; flex-direction: column; padding: 0;
}
.lw-grid {
    flex: 1 1 auto; min-height: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    grid-template-rows: minmax(0, 1fr);
    gap: 0; align-items: stretch; overflow: hidden;
}
.lw-wheel-col {
    min-width: 0; min-height: 0;
    display: flex; flex-direction: column;
    justify-content: center; align-items: center; gap: 16px;
    padding: 22px 30px; overflow-y: auto;
    background: radial-gradient(ellipse 60% 50% at 50% 45%, rgba(251, 191, 36, .05), transparent 70%);
}
.lw-side-col {
    min-width: 0; min-height: 0;
    display: flex; flex-direction: column; gap: 13px;
    padding: 20px 20px 18px;
    background: rgba(255, 255, 255, .022);
    border-left: 1px solid rgba(255, 255, 255, .06);
    overflow: hidden;
}

/* Tiêu đề cột phải */
.lw-side-head { text-align: center; margin-bottom: 2px; }
.lw-badge {
    display: inline-flex; align-items: center; gap: 7px;
    padding: 5px 12px; border-radius: 999px;
    font-size: 9.5px; font-weight: 800; letter-spacing: .11em; text-transform: uppercase;
    color: #fbbf24;
    background: rgba(251, 191, 36, .1);
    border: 1px solid rgba(251, 191, 36, .28);
    margin-bottom: 10px;
}
.lw-title {
    margin: 0; font-size: 22px; font-weight: 900;
    line-height: 1.15; letter-spacing: -.02em; color: #fff;
}
.lw-title-grad {
    background: linear-gradient(100deg, #fde68a, #fbbf24 42%, #fb923c);
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lw-sub {
    margin: 8px 0 0; font-size: 12px; line-height: 1.55;
    color: var(--ghz-text-secondary);
}
.lw-sub b { color: #fbbf24; font-weight: 800; }

/* ============ VÒNG QUAY SVG ============ */
.wheel-stage {
    position: relative; width: 100%;
    max-width: min(330px, 42vh); margin: 0 auto; aspect-ratio: 1/1;
}
.wheel-glow {
    position: absolute; inset: 4%; border-radius: 50%;
    background: radial-gradient(circle, rgba(251, 191, 36, .20), transparent 66%);
    filter: blur(26px);
    animation: glowPulse 3s ease-in-out infinite;
}
@keyframes glowPulse {
    0%, 100% { transform: scale(.95); opacity: .8; }
    50% { transform: scale(1); opacity: 1; }
}

/* Kim chỉ */
.pointer {
    position: absolute; top: -4px; left: 50%; transform: translateX(-50%);
    width: 30px; height: 36px; z-index: 7;
    filter: drop-shadow(0 6px 14px rgba(0, 0, 0, .6));
}
.pointer path { fill: #fbbf24; }
.pointer.tick {
    animation: ptrTick .16s ease;
}
@keyframes ptrTick {
    0%, 100% { transform: translateX(-50%) rotate(0); }
    50% { transform: translateX(-50%) rotate(-13deg); }
}

.wheel-holder {
    position: relative; width: 100%; aspect-ratio: 1/1;
    border-radius: 50%; margin: 0 auto;
    transform: rotate(0deg);
}
.wheel-holder.spinning {
    transition: transform 5.2s cubic-bezier(.16, .84, .13, 1) !important;
}
.wheel-holder canvas { width: 100%; height: 100%; display: block; border-radius: 50%; }

/* Vành ngoài */
.wheel-rim {
    position: absolute; inset: -1.6%; border-radius: 50%;
    pointer-events: none; z-index: 2;
    background: conic-gradient(from 0deg, #fbbf24, #f59e0b, #fde68a, #d97706, #fb923c, #fbbf24);
    -webkit-mask: radial-gradient(circle, transparent 93%, #000 93.6%);
    mask: radial-gradient(circle, transparent 93%, #000 93.6%);
}
.wheel-holder svg#lw-wheel-svg {
    position: relative; z-index: 3;
    width: 100%; height: 100%; display: block; border-radius: 50%;
}

/* Nút trung tâm */
.wheel-hub {
    position: absolute; left: 50%; top: 50%;
    transform: translate(-50%, -50%);
    width: 27%; aspect-ratio: 1/1; border-radius: 50%;
    z-index: 5; display: grid; place-items: center;
    align-content: center; gap: 2px; padding: 4px;
    background: linear-gradient(180deg, #1c1f26, #101216);
    border: 1px solid rgba(255, 255, 255, .1);
    box-shadow:
        0 10px 30px rgba(0, 0, 0, .6),
        0 0 0 6px rgba(10, 11, 14, .9);
    color: #fff; font-family: inherit; cursor: pointer;
    transition: transform .25s cubic-bezier(.22, 1, .36, 1), box-shadow .25s ease, border-color .25s ease;
}
.wheel-hub:hover:not(:disabled) {
    border-color: rgba(251, 191, 36, .55);
    box-shadow: 0 12px 34px rgba(0, 0, 0, .6), 0 0 0 6px rgba(10, 11, 14, .9), 0 0 28px rgba(251, 191, 36, .28);
    transform: translate(-50%, -50%) scale(1.05);
}
.wheel-hub:active:not(:disabled) { transform: translate(-50%, -50%) scale(.98); }
.wheel-hub:disabled { cursor: not-allowed; opacity: .55; }
.wheel-hub .hub-ic { font-size: 17px; color: #fbbf24; line-height: 1; }
.wheel-hub:disabled .hub-ic { color: var(--ghz-text-muted); }
.wheel-hub .hub-lb {
    font-size: 8.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
    color: var(--ghz-text-muted); line-height: 1;
}

/* Khe kết quả */
.lw-slot-strip { margin-top: 16px; width: 100%; max-width: min(330px, 42vh); margin-left: auto; margin-right: auto; }
.lw-slot-line { height: 1px; margin-bottom: 14px; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .1), transparent); }
.lw-slot-body {
    display: flex; align-items: center; gap: 10px; flex-wrap: nowrap;
    padding: 14px 16px; border-radius: 15px;
    background: rgba(255, 255, 255, .03);
    border: 1px solid rgba(255, 255, 255, .06);
    min-height: 56px;
}
.lw-slot-body .rs-text {
    flex: 1 1 auto; min-width: 0;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    font-size: 14px; font-weight: 700; color: var(--ghz-text-primary);
}
.lw-slot-body .rs-total-wrap {
    font-size: 12.5px; color: var(--ghz-text-muted); white-space: nowrap; flex: 0 0 auto;
}
.lw-slot-body .rs-total { color: #fbbf24; font-weight: 900; font-variant-numeric: tabular-nums; }

/* Nút hành động */
.lw-actions {
    display: flex; gap: 10px; margin-top: 13px; width: 100%;
    max-width: min(330px, 42vh); margin-left: auto; margin-right: auto;
}
.lw-actions .btn-glow { flex: 1; justify-content: center; }

/* ============ CỘT PHẢI ============ */
.lw-tickets { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.lw-ticket {
    display: flex; flex-direction: column; align-items: center; gap: 5px;
    padding: 14px 8px; border-radius: 14px;
    background: rgba(255, 255, 255, .03);
    border: 1px solid rgba(255, 255, 255, .06);
}
.lw-ticket-lbl {
    font-size: 9.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
    color: var(--ghz-text-muted); text-align: center; line-height: 1.3;
}
.lw-ticket-val {
    font-size: 27px; font-weight: 900; line-height: 1;
    font-variant-numeric: tabular-nums; color: #fff;
}
.lw-ticket:first-child {
    background: linear-gradient(160deg, rgba(251, 191, 36, .16), rgba(251, 191, 36, .02));
    border-color: rgba(251, 191, 36, .3);
}
.lw-ticket:first-child .lw-ticket-val { color: #fbbf24; }

.lw-prizes-head {
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    font-size: 10.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
    color: var(--ghz-text-secondary);
}
.lw-prizes-head i { color: #fbbf24; margin-right: 6px; }
.lw-prizes-hint {
    font-size: 9.5px; font-weight: 700; color: var(--ghz-text-muted);
    padding: 3px 9px; border-radius: 999px; background: rgba(255, 255, 255, .05);
}
.lw-prizes {
    display: flex; flex-direction: column; gap: 5px;
    min-height: 0; overflow-y: auto; flex: 1 1 auto;
    padding-right: 4px; margin-right: -4px;
}
.lw-prizes::-webkit-scrollbar { width: 5px; }
.lw-prizes::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, .12); border-radius: 3px; }
.lw-prizes::-webkit-scrollbar-track { background: transparent; }
.lw-prize {
    display: grid; grid-template-columns: 26px 1fr auto;
    align-items: center; gap: 10px;
    padding: 7px 10px; border-radius: 11px;
    background: rgba(255, 255, 255, .025);
    border: 1px solid transparent;
    transition: all .22s cubic-bezier(.22, 1, .36, 1);
}
.lw-prize:hover { background: rgba(255, 255, 255, .05); transform: translateX(3px); }
.lw-prize-dot {
    width: 26px; height: 26px; border-radius: 8px;
    display: grid; place-items: center;
}
.lw-prize-dot i { font-size: 12px; color: #fff; }
.lw-prize-name {
    font-size: 13px; font-weight: 650; color: var(--ghz-text-primary);
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.lw-prize-pc {
    font-size: 11px; font-weight: 700; color: var(--ghz-text-muted);
    font-variant-numeric: tabular-nums;
}
.lw-prize.win {
    border-color: rgba(251, 191, 36, .45);
    background: linear-gradient(100deg, rgba(251, 191, 36, .2), rgba(251, 191, 36, .02));
    box-shadow: 0 0 0 1px rgba(251, 191, 36, .14), 0 6px 20px rgba(251, 191, 36, .14);
    animation: prizeWin .5s cubic-bezier(.34, 1.56, .64, 1);
}
@keyframes prizeWin {
    0% { transform: scale(.96); }
    60% { transform: scale(1.02); }
    100% { transform: none; }
}
.lw-prize.win .lw-prize-name { color: #fff; font-weight: 800; }
.lw-prize.win .lw-prize-pc { color: #fbbf24; }

.lw-odds-toggle {
    display: flex; align-items: center; gap: 9px;
    width: 100%; padding: 11px 14px; border-radius: 13px;
    background: rgba(255, 255, 255, .025);
    border: 1px solid rgba(255, 255, 255, .06);
    font-size: 12px; font-weight: 700; color: var(--ghz-text-secondary);
    cursor: pointer; transition: all .22s ease; text-align: left;
    flex-shrink: 0;
}
.lw-odds-toggle:hover {
    color: #fbbf24;
    background: rgba(255, 255, 255, .05);
    border-color: rgba(251, 191, 36, .28);
}
.lw-caret {
    margin-left: auto;
    transition: transform .25s cubic-bezier(.22, 1, .36, 1);
    font-size: 10px;
}
.lw-odds-toggle[aria-expanded="true"] .lw-caret { transform: rotate(180deg); }
.lw-odds {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px;
    animation: lwOddsIn .28s cubic-bezier(.22, 1, .36, 1);
}
@keyframes lwOddsIn {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: none; }
}
.lw-odd-cell {
    border-radius: 9px; padding: 8px 6px; text-align: center;
    background: var(--ghz-card-bg); border: 1px solid var(--ghz-card-border);
    transition: all .2s ease;
}
.lw-odd-cell .oc-ic { font-size: 13px; }
.lw-odd-cell .oc-nm { font-size: 11px; font-weight: 800; margin-top: 2px; }
.lw-odd-cell .oc-pc {
    font-size: 10px; color: var(--ghz-text-muted); margin-top: 1px;
    font-variant-numeric: tabular-nums;
}
.lw-odd-cell.win {
    border-color: var(--ghz-warning) !important;
    background: color-mix(in srgb, var(--ghz-warning) 14%, transparent) !important;
}
.lw-odd-cell.win .oc-nm { color: var(--ghz-warning); }
.lw-odd-cell.hit { animation: oddHit .9s ease; }
@keyframes oddHit {
    0% { transform: scale(1); }
    30% { transform: scale(1.14); box-shadow: 0 0 26px color-mix(in srgb, var(--ghz-warning) 65%, transparent); }
    100% { transform: scale(1); }
}

/* ============ THANH MOBILE (ẩn desktop) ============ */
.lw-mobile-bar { display: none; }

/* ============ RESPONSIVE / MOBILE ============ */
@media (max-width: 860px) {
    #kpi-wheel-modal .lw-modal-card {
        height: min(100%, 620px);
        max-height: calc(100dvh - 32px);
        max-width: 380px; width: 100%;
        border-radius: 22px;
        border: 1px solid rgba(255, 255, 255, .1);
        background: linear-gradient(180deg, rgba(20, 20, 28, .98), rgba(14, 14, 20, .98));
        box-shadow: 0 20px 50px -10px rgba(0, 0, 0, .7), 0 0 0 1px rgba(251, 191, 36, .06);
    }
    .lw-modal-scroll {
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
    }

    .lw-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        overflow: visible;
        min-height: 0;
        flex: 0 0 auto;
    }
    .lw-side-col { display: none !important; }

    .lw-wheel-col {
        min-width: 0;
        padding: 18px 18px calc(18px + env(safe-area-inset-bottom));
        gap: 12px;
        overflow: visible;
        justify-content: flex-start;
        align-items: stretch;
        background: radial-gradient(ellipse 70% 45% at 50% 38%, rgba(251, 191, 36, .07), transparent 72%);
        overflow-x: clip;
        overflow-x: hidden;
    }

    .lw-mobile-bar {
        display: flex; align-items: center; justify-content: space-between;
        gap: 12px;
        margin: -18px -18px 8px;
        padding: 14px 16px;
        background: linear-gradient(180deg, #15151d 0%, rgba(21, 21, 29, .94) 100%);
        border-bottom: 1px solid rgba(255, 255, 255, .08);
    }
    .lw-mob-left { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
    .lw-mob-eyebrow {
        display: inline-flex; align-items: center; gap: 5px;
        font-size: 10px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase;
        color: #fbbf24;
    }
    .lw-mob-title {
        margin: 0; font-size: 16px; font-weight: 900; line-height: 1.2;
        letter-spacing: -.01em; color: #fff;
        white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    }
    .lw-mob-right { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }
    .lw-mob-spins {
        display: inline-flex; align-items: center; gap: 5px;
        padding: 5px 11px; border-radius: 999px;
        font-size: 11.5px; font-weight: 700; color: #e2e8f0;
        background: rgba(251, 191, 36, .12);
        border: 1px solid rgba(251, 191, 36, .28);
        white-space: nowrap;
    }
    .lw-mob-spins b { color: #fbbf24; font-weight: 900; }
    .lw-mob-close {
        width: 32px; height: 32px; flex: 0 0 32px;
        display: inline-flex; align-items: center; justify-content: center;
        border-radius: 10px; border: 1px solid rgba(255, 255, 255, .12);
        background: rgba(255, 255, 255, .06);
        color: #cbd5e1; font-size: 14px;
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
    }
    .lw-mob-close:active { background: rgba(255, 255, 255, .14); transform: scale(.94); }

    .wheel-stage {
        max-width: min(260px, 76vw);
        margin: 4px auto 0;
        padding: 14px;
        overflow: hidden;
    }

    .lw-slot-strip { max-width: min(280px, 80vw); margin: 2px auto 0; }
    .lw-slot-line { margin-bottom: 9px; }
    .lw-slot-body {
        padding: 11px 13px; min-height: 52px; border-radius: 12px;
        align-items: center; flex-wrap: nowrap;
    }
    .lw-slot-body .rs-text {
        font-size: 13.5px; min-width: 0; flex: 1 1 auto;
        white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    }
    .lw-slot-body .rs-total-wrap { flex: 0 0 auto; }
    .lw-actions { max-width: min(280px, 80vw); margin: 10px auto 0; gap: 9px; }
    .lw-actions .btn-glow {
        min-height: 48px; font-size: 15px; border-radius: 13px;
        justify-content: center;
        white-space: nowrap;
    }
    .lw-actions .btn-glow i { width: 1em; display: inline-block; text-align: center; }
    .lw-actions .btn-ghost-flat { display: none; }
}

@media (max-width: 380px) {
    #kpi-wheel-modal { padding: 10px; }
    #kpi-wheel-modal .lw-modal-card {
        max-width: 100%;
        max-height: calc(100dvh - 20px);
        border-radius: 18px;
    }
    .lw-wheel-col { padding: 16px 14px calc(16px + env(safe-area-inset-bottom)); }
    .lw-mobile-bar { margin: -16px -14px 6px; padding: 12px 14px; }
}

@media (max-height: 640px) and (max-width: 860px) {
    .wheel-stage { max-width: min(240px, 40vh); }
    .lw-slot-strip,
    .lw-actions { max-width: min(240px, 40vh); }
    .lw-mob-title { font-size: 15px; }
}

@media (prefers-reduced-motion: reduce) {
    .wheel-holder.spinning { transition: none !important; }
    .wheel-glow { animation: none; }
}
