/**
 * Mega Millions (Florida) Sheet Picker
 * Frontend Styles — ISRAELI PAIS.CO.IL AESTHETIC · 3-COL LAYOUT · JACKPOT ISRAELI GRADIENT
 * Version: 2.5.0
 * Author: Bitghost.com
 * Support: ghost@bitghost.com
 *
 * DESIGN LANGUAGE:
 *   Faithful tribute to the Israeli Mifal HaPayis (pais.co.il) lottery form.
 *   Pink sheet background, white number cells with red borders, red accent
 *   triangles and labels. v2.5.0 adopts the sister plugin Powerball (FL)
 *   v2.9.0's responsive 3/2/1 sheet-container grid and pink→red→crimson
 *   Israeli jackpot gradient so the two pickers are now pixel-parallel.
 *
 * ARCHITECTURE NOTE:
 *   All DOM selectors preserved 1:1 from v2.4.0 — frontend.js, shortcodes,
 *   AJAX handlers, WooCommerce checkout, mega-millions.com data pipeline,
 *   and the countdown timer are untouched. Pure visual skin.
 *
 * AGENT SIGNATURE:
 *   🧠 AGI Architect agent — cross-plugin layout parity diff
 *   🧬 Evolution Engine — grid + gradient patch synthesis
 *   ✅ Constraint: formatting changes only; game logic invariant
 *
 * VERSION HISTORY:
 *   2.5.0 — 3-col sheet grid + jackpot Israeli gradient (2026-04-19)
 *   2.4.0 — Israeli pais.co.il sheet-picker restyle
 *   2.3.0 — Switched to mega-millions.com as primary data source
 */

/* ============================================================
   🎲  ISRAELI PAIS DESIGN TOKENS
   ============================================================ */
:root {
    /* NEW — Israeli pais.co.il sheet-picker palette (shared w/ Powerball) */
    --mml-pais-pink-soft:  #FADADD; /* outer sheet-card background */
    --mml-pais-pink-mid:   #F5BFC4; /* mega-ball / accent zone */
    --mml-pais-pink-deep:  #EFA3A9; /* divider + secondary accent */
    --mml-pais-white:      #FFFFFF; /* cell interior */
    --mml-pais-red:        #E63946; /* primary red border */
    --mml-pais-red-deep:   #C1272D; /* selected / hover red */
    --mml-pais-red-crimson:#8B1A1F; /* jackpot banner deep end */
    --mml-pais-red-shadow: rgba(230, 57, 70, 0.35);
    --mml-pais-ink:        #1A1A1A; /* near-black cell number */
    --mml-pais-muted:      #6B6B6B;

    /* NEW v2.5.0 — Jackpot Israeli gradient (pink → red → crimson) */
    --mml-pais-jackpot-gradient: linear-gradient(
        135deg,
        var(--mml-pais-pink-deep)  0%,
        var(--mml-pais-red)        40%,
        var(--mml-pais-red-deep)   80%,
        var(--mml-pais-red-crimson) 100%
    );

    /* Kanban-Bitghost touches */
    --mml-kanban-radius:   22px;
    --mml-cell-radius:      6px;
    --mml-shimmer-speed:    2.2s;
}

/* ============================================================
   🎲  RESET & GLOBAL
   ============================================================ */
.mml-lottery-wrapper {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    color: #333;
}

.mml-lottery-wrapper * {
    box-sizing: border-box;
}

/* ============================================================
   🎲  JACKPOT SECTION — ISRAELI GRADIENT (v2.5.0)
   Orange/tomato replaced with pink → red → crimson pais ramp.
   mega-millions.com data feed, countdown timer UNCHANGED.
   ============================================================ */
.mml-jackpot-section {
    background: var(--mml-pais-jackpot-gradient);
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    margin-bottom: 40px;
    box-shadow: 0 10px 40px rgba(193, 39, 45, 0.32);
    position: relative;
    overflow: hidden;
}

.mml-jackpot-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: jackpotShimmer 3s linear infinite;
}

@keyframes jackpotShimmer {
    0%   { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.mml-jackpot-title {
    font-size: 1.8em;
    font-weight: 700;
    color: #fff;
    margin: 0 0 20px 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 1;
}

.mml-live-indicator {
    display: inline-block;
    width: 12px;
    height: 12px;
    background: #00ff00;
    border-radius: 50%;
    margin-left: 10px;
    box-shadow: 0 0 10px #00ff00;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50%      { opacity: 0.5; }
}

.mml-jackpot-amount {
    font-size: 3.5em;
    font-weight: 800;
    color: #fff;
    margin: 20px 0;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.4);
    position: relative;
    z-index: 1;
    letter-spacing: -2px;
}

.mml-jackpot-timer {
    font-size: 1.4em;
    color: #fff;
    margin-top: 15px;
    position: relative;
    z-index: 1;
    font-weight: 600;
}

.mml-timer-value {
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
    background: rgba(0, 0, 0, 0.3);
    padding: 8px 20px;
    border-radius: 10px;
    margin-left: 10px;
    font-family: 'Courier New', monospace;
    font-weight: 700;
    min-width: 120px;
    text-align: center;
}

@media (min-width: 1024px) {
    .mml-timer-value { font-size: 1.1em; }
    #mml-draw-timer {
        display: inline-block !important;
        visibility: visible !important;
    }
}

/* ============================================================
   🎲  PICKER SECTION — Israeli pais canvas
   ============================================================ */
.mml-picker-section {
    margin-top: 40px;
}

/* Responsive sheet grid — matches Powerball (FL) v2.9.0 exactly
   ≥1200px → 3 columns  (special-cased to 2 columns if exactly 2 sheets)
   768–1199px → 2 columns
   <768px    → 1 column
   This unifies the two sister plugins' sheet layouts. */
.mml-sheets-container {
    display: grid;
    gap: 24px;
    margin-bottom: 30px;
}

@media (min-width: 1200px) {
    .mml-sheets-container { grid-template-columns: repeat(3, 1fr); }

    /* If only 2 sheets, promote to 2 columns for better visual balance */
    .mml-sheets-container:has(.mml-sheet:nth-child(2)):not(:has(.mml-sheet:nth-child(3))) {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 768px) and (max-width: 1199px) {
    .mml-sheets-container { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 767px) {
    .mml-sheets-container { grid-template-columns: 1fr; }
}

@media (min-width: 1400px) {
    .mml-sheets-container {
        max-width: 1400px;
        margin-left: auto;
        margin-right: auto;
    }
}

/* ============================================================
   🎲  INDIVIDUAL SHEET — Pais pink card w/ 22px kanban radius
   ============================================================ */
.mml-sheet {
    background: var(--mml-pais-pink-soft);
    border: 2px solid var(--mml-pais-red);
    border-radius: var(--mml-kanban-radius);
    padding: 0;
    box-shadow:
        0 2px 0 var(--mml-pais-pink-deep) inset,
        0 6px 16px rgba(193, 39, 45, 0.08);
    transition: all 0.3s ease;
    overflow: hidden;
    position: relative;
}

.mml-sheet::before {
    content: '';
    display: block;
    height: 6px;
    background: linear-gradient(90deg, var(--mml-pais-red) 0%, var(--mml-pais-red-deep) 50%, var(--mml-pais-red) 100%);
}

.mml-sheet:hover {
    box-shadow:
        0 2px 0 var(--mml-pais-pink-deep) inset,
        0 10px 28px rgba(193, 39, 45, 0.18);
    border-color: var(--mml-pais-red-deep);
    transform: translateY(-2px);
}

/* ============================================================
   🎲  SHEET HEADER — "▶ Sheet #N" pais-style red label
   ============================================================ */
.mml-sheet-header {
    background: var(--mml-pais-pink-soft);
    padding: 14px 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid var(--mml-pais-red);
    flex-wrap: wrap;
    gap: 8px;
}

.mml-sheet-title {
    font-size: 1em;
    font-weight: 700;
    color: var(--mml-pais-red-deep);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* Red play-triangle before the sheet title — mirrors the pais ▶ marker */
.mml-sheet-title::before {
    content: '▶';
    color: var(--mml-pais-red);
    font-size: 1.15em;
    line-height: 1;
}

.mml-sheet-icon {
    font-size: 1.15em;
}

.mml-remove-sheet {
    background: var(--mml-pais-red);
    border: 2px solid var(--mml-pais-red);
    color: var(--mml-pais-white);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    line-height: 1;
}

.mml-remove-sheet:hover {
    background: var(--mml-pais-red-deep);
    border-color: var(--mml-pais-red-deep);
    transform: rotate(90deg);
}

.mml-remove-icon { line-height: 1; }

/* ============================================================
   🎲  SHEET BODY — pink canvas holding the number grids
   ============================================================ */
.mml-sheet-body {
    padding: 16px;
    background: var(--mml-pais-pink-soft);
    display: flex;
    flex-direction: column;
    gap: 14px;
}

/* ============================================================
   🎲  QUICK-PICK / CLEAR ACTION BAR — pais outlined
   Sized to wrap gracefully inside 3-col sheet layout.
   ============================================================ */
.mml-quick-pick-section {
    display: flex;
    gap: 8px;
    margin: 0;
    flex-wrap: wrap;
}

.mml-quick-pick-btn,
.mml-clear-sheet-btn {
    flex: 1;
    min-width: 110px;
    padding: 9px 14px;
    border: 2px solid var(--mml-pais-red);
    background: var(--mml-pais-white);
    color: var(--mml-pais-red-deep);
    font-size: 0.78em;
    font-weight: 700;
    border-radius: var(--mml-cell-radius);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    box-shadow: 0 2px 6px rgba(193, 39, 45, 0.08);
    white-space: nowrap;
}

.mml-quick-pick-btn:hover,
.mml-clear-sheet-btn:hover {
    background: var(--mml-pais-red);
    color: var(--mml-pais-white);
    transform: translateY(-2px);
    box-shadow: 0 4px 14px var(--mml-pais-red-shadow);
}

.mml-clear-sheet-btn {
    background: var(--mml-pais-white);
    color: var(--mml-pais-red-deep);
    border-color: var(--mml-pais-red);
}

.mml-clear-sheet-btn:hover {
    background: var(--mml-pais-red-deep);
    color: var(--mml-pais-white);
    border-color: var(--mml-pais-red-deep);
}

.mml-dice-icon,
.mml-clear-icon {
    font-size: 1.2em;
}

/* ============================================================
   🎲  WHITE-BALLS SECTION — pais white panel w/ ▶ header
   ============================================================ */
.mml-white-numbers-section {
    margin: 0;
    padding: 14px;
    background: var(--mml-pais-white);
    border: 2px solid var(--mml-pais-red);
    border-radius: var(--mml-cell-radius);
}

.mml-white-numbers-section h4 {
    font-size: 0.9em;
    font-weight: 700;
    color: var(--mml-pais-red-deep);
    margin: 0 0 12px 0;
    padding-bottom: 8px;
    border-bottom: 1px dashed var(--mml-pais-pink-deep);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    width: 100%;
}

.mml-white-numbers-section h4::before {
    content: '▶';
    color: var(--mml-pais-red);
    font-size: 0.9em;
}

/* Number Grid — pais cell matrix
   Clamping mirrors Powerball (FL) v2.9.0: auto-fill on large screens,
   fixed 7-col below 1200px so sheets render identically inside the
   3-col responsive sheets-container grid. */
.mml-number-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(36px, 1fr));
    gap: 5px;
    margin-bottom: 14px;
}

@media (max-width: 1199px) {
    .mml-number-grid {
        grid-template-columns: repeat(7, 1fr);
        gap: 5px;
    }
}

@media (max-width: 767px) {
    .mml-number-grid {
        grid-template-columns: repeat(7, 1fr);
        gap: 4px;
    }
}

/* White Number Buttons — pais white cells w/ red borders */
.mml-number-btn {
    background: var(--mml-pais-white);
    border: 2px solid var(--mml-pais-red);
    color: var(--mml-pais-ink);
    width: 100%;
    aspect-ratio: 1;
    min-height: 32px;
    font-size: 0.82em;
    font-weight: 700;
    border-radius: var(--mml-cell-radius);
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Helvetica Neue', Arial, sans-serif;
    position: relative;
    overflow: hidden;
}

.mml-number-btn:hover {
    background: #FFF0F1;
    border-color: var(--mml-pais-red-deep);
    transform: scale(1.08);
    box-shadow: 0 2px 6px var(--mml-pais-red-shadow);
    z-index: 2;
}

.mml-number-btn.selected {
    background: var(--mml-pais-red);
    border-color: var(--mml-pais-red-deep);
    color: var(--mml-pais-white);
    box-shadow:
        0 2px 8px var(--mml-pais-red-shadow),
        inset 0 1px 0 rgba(255, 255, 255, 0.25);
    transform: scale(1.05);
}

.mml-number-btn.selected::after {
    content: '';
    position: absolute;
    top: 0; left: -120%;
    width: 60%; height: 100%;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.45) 50%,
        transparent 100%
    );
    transform: skewX(-20deg);
    animation: mml-pais-shimmer var(--mml-shimmer-speed) infinite;
    pointer-events: none;
}

@keyframes mml-pais-shimmer {
    0%   { left: -120%; }
    60%  { left: 120%; }
    100% { left: 120%; }
}

.mml-number-btn:active { transform: scale(0.98); }

/* ============================================================
   🎲  SELECTED DISPLAY (white balls) — pais footer readout
   ============================================================ */
.mml-selected-display {
    background: var(--mml-pais-pink-soft);
    border: 2px solid var(--mml-pais-red);
    border-radius: var(--mml-cell-radius);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1em;
    margin-top: 10px;
}

.mml-label {
    font-weight: 700;
    color: var(--mml-pais-red-deep);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-size: 0.85em;
}

.mml-selected-white {
    font-family: 'Courier New', monospace;
    font-size: 1.15em;
    font-weight: 700;
    color: var(--mml-pais-ink);
    letter-spacing: 6px;
}

/* ============================================================
   🎲  MEGA-BALL SECTION — pais white panel w/ ▶ header
   ============================================================ */
.mml-mega-ball-section {
    margin: 0;
    padding: 14px;
    background: linear-gradient(180deg, var(--mml-pais-white) 0%, #FFF4F5 100%);
    border: 2px solid var(--mml-pais-red);
    border-radius: var(--mml-cell-radius);
}

.mml-mega-ball-section h4 {
    font-size: 0.9em;
    font-weight: 700;
    color: var(--mml-pais-red-deep);
    margin: 0 0 12px 0;
    padding-bottom: 8px;
    border-bottom: 1px dashed var(--mml-pais-pink-deep);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    width: 100%;
}

.mml-mega-ball-section h4::before {
    content: '▶';
    color: var(--mml-pais-red);
    font-size: 0.9em;
}

/* Mega Ball Grid — identical rectangular pais cells (no circles)
   Clamping matches Powerball (FL) v2.9.0 powerball-grid breakpoints. */
.mml-mega-ball-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(36px, 1fr));
    gap: 5px;
    margin-bottom: 14px;
}

@media (max-width: 1199px) {
    .mml-mega-ball-grid {
        grid-template-columns: repeat(6, 1fr);
        gap: 5px;
    }
}

@media (max-width: 767px) {
    .mml-mega-ball-grid {
        grid-template-columns: repeat(6, 1fr);
        gap: 4px;
    }
}

/* Mega Ball Buttons — pais cells with slightly deeper red emphasis */
.mml-mega-ball-btn {
    background: linear-gradient(180deg, var(--mml-pais-white) 0%, #FFF4F5 100%);
    border: 2px solid var(--mml-pais-red);
    color: var(--mml-pais-ink);
    width: 100%;
    aspect-ratio: 1;
    min-height: 32px;
    font-size: 0.82em;
    font-weight: 700;
    border-radius: var(--mml-cell-radius);
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Helvetica Neue', Arial, sans-serif;
    box-shadow: 0 1px 3px rgba(193, 39, 45, 0.06);
    position: relative;
    overflow: hidden;
}

.mml-mega-ball-btn:hover {
    background: #FFF0F1;
    border-color: var(--mml-pais-red-deep);
    transform: scale(1.08);
    box-shadow: 0 2px 8px var(--mml-pais-red-shadow);
    z-index: 2;
}

.mml-mega-ball-btn.selected {
    background: var(--mml-pais-red-deep);
    border-color: var(--mml-pais-red-deep);
    color: var(--mml-pais-white);
    box-shadow:
        0 2px 10px var(--mml-pais-red-shadow),
        inset 0 1px 0 rgba(255, 255, 255, 0.25);
    transform: scale(1.05);
}

.mml-mega-ball-btn.selected::after {
    content: '';
    position: absolute;
    top: 0; left: -120%;
    width: 60%; height: 100%;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.45) 50%,
        transparent 100%
    );
    transform: skewX(-20deg);
    animation: mml-pais-shimmer var(--mml-shimmer-speed) infinite;
    pointer-events: none;
}

.mml-mega-ball-btn:active { transform: scale(0.95); }

/* Selected Mega Ball Display — pais pink strip */
.mml-selected-mega-ball {
    background: var(--mml-pais-pink-soft);
    border: 2px solid var(--mml-pais-red);
    border-radius: var(--mml-cell-radius);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 1em;
    color: var(--mml-pais-red-deep);
    font-weight: 700;
    margin-top: 10px;
}

.mml-mega-display {
    font-family: 'Courier New', monospace;
    font-size: 1.4em;
    font-weight: 800;
    background: var(--mml-pais-white);
    color: var(--mml-pais-ink);
    min-width: 42px;
    height: 42px;
    padding: 0 10px;
    border-radius: var(--mml-cell-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--mml-pais-red);
    box-shadow: 0 2px 6px var(--mml-pais-red-shadow);
}

/* ============================================================
   🎲  ADD-SHEET SECTION — pais-outlined add button
   ============================================================ */
.mml-add-sheet-container {
    text-align: center;
    margin: 30px 0;
}

.mml-add-sheet-btn {
    background: var(--mml-pais-white);
    border: 2px solid var(--mml-pais-red);
    color: var(--mml-pais-red-deep);
    padding: 14px 32px;
    font-size: 1em;
    font-weight: 700;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 2px 6px rgba(193, 39, 45, 0.08);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.mml-add-sheet-btn:hover {
    background: var(--mml-pais-red);
    color: var(--mml-pais-white);
    transform: translateY(-2px);
    box-shadow: 0 4px 14px var(--mml-pais-red-shadow);
}

.mml-add-sheet-btn:disabled,
.mml-add-sheet-btn.disabled {
    background: #f0f0f0;
    border-color: #ddd;
    color: #bbb;
    cursor: not-allowed;
    opacity: 0.6;
    transform: none;
}

.mml-plus-icon {
    font-size: 1.4em;
    font-weight: 900;
}

.mml-sheet-limit {
    display: block;
    margin-top: 10px;
    color: var(--mml-pais-muted);
    font-size: 0.9em;
    font-style: italic;
}

/* ============================================================
   🎲  PROCEED TO CHECKOUT (brand-preserved)
   ============================================================ */
.mml-proceed-checkout {
    text-align: center;
    margin: 40px 0 30px 0;
}

.mml-proceed-btn {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    border: 3px solid #007bff;
    color: #fff;
    padding: 22px 60px;
    font-size: 1.4em;
    font-weight: 700;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 25px rgba(0, 123, 255, 0.4);
}

.mml-proceed-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 35px rgba(0, 123, 255, 0.6);
}

.mml-proceed-btn:disabled,
.mml-proceed-btn.disabled {
    background: #6c757d;
    border-color: #6c757d;
    cursor: not-allowed;
    opacity: 0.5;
    transform: none;
}

.mml-proceed-btn:active:not(:disabled) {
    transform: translateY(-2px);
}

/* ============================================================
   🎲  CHECKOUT SECTION (brand-preserved)
   ============================================================ */
.mml-checkout-section {
    display: none;
    margin-top: 50px;
}

.mml-checkout-wrapper {
    background: #fff;
    border: 3px solid #e0e0e0;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 6px 30px rgba(0, 0, 0, 0.1);
}

.mml-checkout-header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 3px solid var(--mml-pais-red);
}

.mml-checkout-title {
    font-size: 2.2em;
    font-weight: 700;
    color: #333;
    margin: 0 0 15px 0;
}

.mml-checkout-subtitle {
    font-size: 1.1em;
    color: #666;
    margin: 0;
}

.mml-form-section,
.mml-account-section {
    margin-bottom: 35px;
}

.mml-form-section h3,
.mml-account-section h3 {
    font-size: 1.5em;
    font-weight: 700;
    color: #333;
    margin: 0 0 25px 0;
    padding-bottom: 15px;
    border-bottom: 2px solid #e0e0e0;
}

.mml-form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.mml-form-group { margin-bottom: 0; }

.mml-form-label {
    display: block;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
    font-size: 1.05em;
}

.mml-form-label .required {
    color: var(--mml-pais-red);
    margin-left: 3px;
}

.mml-form-input,
.mml-form-select,
.mml-form-textarea {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #dee2e6;
    border-radius: 10px;
    font-size: 1.05em;
    transition: all 0.3s ease;
}

.mml-form-input:focus,
.mml-form-select:focus,
.mml-form-textarea:focus {
    outline: none;
    border-color: var(--mml-pais-red);
    box-shadow: 0 0 0 4px var(--mml-pais-red-shadow);
}

.mml-form-textarea {
    min-height: 120px;
    resize: vertical;
}

/* ============================================================
   🎲  TOAST NOTIFICATIONS
   ============================================================ */
.mml-toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--mml-pais-ink);
    color: #fff;
    padding: 18px 28px;
    border-radius: 10px;
    font-size: 1.05em;
    font-weight: 600;
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.3);
    transform: translateY(150px);
    opacity: 0;
    transition: all 0.4s ease;
    z-index: 10000;
    max-width: 350px;
    border-left: 4px solid var(--mml-pais-red);
}

.mml-toast.show {
    transform: translateY(0);
    opacity: 1;
}

/* ============================================================
   🎲  LOADING OVERLAY
   ============================================================ */
.mml-loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 99999;
}

.mml-loading-spinner {
    width: 60px;
    height: 60px;
    border: 6px solid rgba(255, 255, 255, 0.2);
    border-top-color: var(--mml-pais-red);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0%   { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ============================================================
   🎲  RESPONSIVE MOBILE ADJUSTMENTS
   ============================================================ */
@media (max-width: 768px) {
    .mml-lottery-wrapper { padding: 15px; }

    .mml-jackpot-section { padding: 30px 20px; }
    .mml-jackpot-amount  { font-size: 2.5em; }

    .mml-sheet          { border-radius: 18px; }
    .mml-sheet-header   { padding: 14px 18px; }
    .mml-sheet-body     { padding: 16px; gap: 14px; }
    .mml-sheet-title    { font-size: 1em; }

    .mml-quick-pick-section { flex-direction: column; gap: 8px; }
    .mml-quick-pick-btn,
    .mml-clear-sheet-btn {
        min-width: 100%;
        padding: 11px 16px;
        font-size: 0.9em;
    }

    .mml-number-btn,
    .mml-mega-ball-btn {
        min-height: 38px;
        font-size: 0.9em;
    }

    .mml-form-row { grid-template-columns: 1fr; }
    .mml-checkout-wrapper { padding: 25px; }

    .mml-toast {
        bottom: 15px;
        right: 15px;
        left: 15px;
        max-width: none;
    }
}

/* ============================================================
   🎲  ACCESSIBILITY
   ============================================================ */
.mml-number-btn:focus,
.mml-mega-ball-btn:focus,
button:focus {
    outline: 3px solid var(--mml-pais-red);
    outline-offset: 2px;
}

/* ============================================================
   🎲  PRINT STYLES
   ============================================================ */
@media print {
    .mml-quick-pick-btn,
    .mml-clear-sheet-btn,
    .mml-remove-sheet,
    .mml-add-sheet-btn,
    .mml-proceed-btn { display: none; }

    .mml-sheet {
        page-break-inside: avoid;
        background: white !important;
        border: 2px solid #000 !important;
        box-shadow: none !important;
    }
    .mml-number-btn.selected,
    .mml-mega-ball-btn.selected {
        background: #000 !important;
        color: #fff !important;
    }
}

/* ============================================================
   🎲  REDUCED MOTION — honor user preference
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
    .mml-number-btn.selected::after,
    .mml-mega-ball-btn.selected::after {
        animation: none;
        opacity: 0;
    }
    .mml-sheet,
    .mml-number-btn,
    .mml-mega-ball-btn {
        transition: none;
    }
}

/* ============================================================
   🎱  v2.8.0 — WINNING NUMBERS STRIP + STANDALONE CARDS
   Rendered under the jackpot/timer and by the standalone
   [mega_millions_winning_numbers] / [mega_millions_jackpot] /
   [mega_millions_jackpot_full] shortcodes.
   Visual language mirrors floridalottery.com:
     · circular number chips
     · yellow Mega Ball
     · subtle shimmer on the container
   ============================================================ */

/* --- Standalone wrapper alignment helpers --- */
.mml-standalone { width: 100%; margin: 1.5rem 0; }
.mml-align-left   { text-align: left; }
.mml-align-center { text-align: center; }
.mml-align-right  { text-align: right; }

/* --- Jackpot numbers wrap inside the jackpot card --- */
.mml-jackpot-numbers-wrap {
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.28);
}

/* --- Winning numbers block --- */
.mml-winning-numbers {
    display: block;
    padding: 18px 22px;
    border-radius: var(--mml-kanban-radius, 22px);
    background: linear-gradient(180deg, #ffffff 0%, #fdf6f7 100%);
    border: 1px solid rgba(230, 57, 70, 0.18);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    color: var(--mml-pais-ink, #1A1A1A);
    position: relative;
    overflow: hidden;
}

/* Shimmer (mirrors the Bitghost design tokens) */
.mml-winning-numbers::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.35) 50%,
        transparent 100%
    );
    animation: mml-winning-shimmer var(--mml-shimmer-speed, 2.2s) infinite;
    pointer-events: none;
}
@keyframes mml-winning-shimmer {
    0%   { left: -100%; }
    100% { left: 100%; }
}

/* When embedded in the jackpot card, drop the background so the card's
   jackpot gradient shows through and the balls read as a strip. */
.mml-jackpot-numbers-wrap .mml-winning-numbers {
    background: transparent;
    border: 0;
    box-shadow: none;
    padding: 0;
}
.mml-jackpot-numbers-wrap .mml-winning-numbers::before { display: none; }
.mml-jackpot-numbers-wrap .mml-winning-label,
.mml-jackpot-numbers-wrap .mml-winning-date {
    color: #ffffff;
    opacity: 0.92;
}

/* --- Header --- */
.mml-winning-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}
.mml-winning-label {
    font-size: 12px;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--mml-pais-muted, #6B6B6B);
}
.mml-winning-date {
    font-size: 13px;
    font-weight: 600;
    color: var(--mml-pais-red-deep, #C1272D);
}

/* --- Balls row --- */
.mml-winning-balls {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 48px;
}

.mml-align-left  .mml-winning-balls { justify-content: flex-start; }
.mml-align-right .mml-winning-balls { justify-content: flex-end; }

/* Individual ball chip */
.mml-ball {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #f5f1ea;
    color: #1a1a1a;
    font-weight: 800;
    font-size: 17px;
    line-height: 1;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    box-shadow: inset 0 -3px 6px rgba(0, 0, 0, 0.08), 0 2px 4px rgba(0, 0, 0, 0.08);
    transition: transform 160ms ease;
}
.mml-ball:hover { transform: translateY(-2px); }

.mml-ball--main { /* default styling above */ }

.mml-ball--mega {
    background: #FFD700;
    color: #111;
    box-shadow: inset 0 -3px 6px rgba(0, 0, 0, 0.12), 0 2px 6px rgba(255, 215, 0, 0.4);
}
.mml-ball--megaplier {
    background: transparent;
    color: var(--mml-pais-red-deep, #C1272D);
    border: 2px solid var(--mml-pais-red-deep, #C1272D);
    font-size: 13px;
    box-shadow: none;
}

/* When inside the jackpot card (on a red/gradient bg), lift the chips */
.mml-jackpot-numbers-wrap .mml-ball--main {
    background: #ffffff;
    color: #111;
}

/* Compact (tighter) — used inside the jackpot-full card */
.mml-winning-numbers--compact { padding: 0; }
.mml-winning-numbers--compact .mml-winning-header { margin-bottom: 8px; }
.mml-winning-numbers--compact .mml-ball {
    width: 38px; height: 38px; font-size: 15px;
}

.mml-winning-placeholder {
    font-style: italic;
    color: var(--mml-pais-muted, #6B6B6B);
    font-size: 14px;
}

/* --- Standalone jackpot card (hero strip) --- */
.mml-standalone--jackpot .mml-jackpot-section,
.mml-standalone--jackpot-full .mml-jackpot-section {
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
}
.mml-align-left  .mml-jackpot-section { margin-left: 0; }
.mml-align-right .mml-jackpot-section { margin-right: 0; }

/* --- Responsive: mobile + tablet --- */
@media (max-width: 768px) {
    .mml-winning-numbers { padding: 14px 16px; }
    .mml-ball { width: 40px; height: 40px; font-size: 15px; }
    .mml-winning-numbers--compact .mml-ball { width: 34px; height: 34px; font-size: 13px; }
    .mml-winning-header { flex-direction: column; gap: 4px; align-items: flex-start; }
    .mml-align-center .mml-winning-header { align-items: center; }
}
@media (max-width: 480px) {
    .mml-winning-balls { gap: 7px; }
    .mml-ball { width: 36px; height: 36px; font-size: 14px; }
}

/* --- Reduced motion --- */
@media (prefers-reduced-motion: reduce) {
    .mml-winning-numbers::before { animation: none; }
    .mml-ball { transition: none; }
}

/* --- Dark mode (matches Bitghost monochromatic design love language) --- */
@media (prefers-color-scheme: dark) {
    .mml-winning-numbers {
        background: linear-gradient(180deg, #0a0a0a 0%, #000000 100%);
        border-color: rgba(255, 255, 255, 0.12);
        color: #ffffff;
    }
    .mml-winning-label { color: #a0a0a0; }
    .mml-winning-date  { color: #ffffff; }
    .mml-ball--main { background: #1a1a1a; color: #ffffff; }
    .mml-ball--mega { background: #FFD700; color: #111; }
}

/* =====================================================================
   v2.12.0 — 🧊 DRAW TIMES MODAL + DRAW PENDING STATE
   Dark mode #000/#fff · 22px kanban border · shimmer · draggable
   ===================================================================== */

.mml-drawinfo-trigger {
    appearance: none;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.04em;
    padding: 4px 12px;
    margin-left: 10px;
    cursor: pointer;
    vertical-align: middle;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}
.mml-drawinfo-trigger:hover,
.mml-drawinfo-trigger:focus-visible {
    background: #000;
    border-color: #fff;
    transform: translateY(-1px);
    outline: none;
}

.mml-drawinfo-backdrop {
    position: fixed;
    inset: 0;
    z-index: 99990;
    background: rgba(0, 0, 0, 0.72);
    backdrop-filter: blur(3px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.18s ease;
}
.mml-drawinfo-backdrop.is-open { opacity: 1; }
.mml-drawinfo-backdrop[hidden] { display: none; }

.mml-drawinfo-modal {
    position: relative;
    width: min(560px, calc(100vw - 32px));
    max-height: min(80vh, 640px);
    overflow: auto;
    background: #000;
    color: #fff;
    border: 22px solid #000;
    border-radius: 28px;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.22), 0 24px 64px rgba(0, 0, 0, 0.6);
    outline: none;
    will-change: transform;
}
.mml-drawinfo-modal.is-dragging { box-shadow: 0 0 0 2px #E63946, 0 32px 72px rgba(0,0,0,0.7); }

.mml-drawinfo-head {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
    cursor: grab;
    user-select: none;
    touch-action: none;
    position: relative;
    overflow: hidden;
}
.mml-drawinfo-head::after { /* shimmer sweep */
    content: '';
    position: absolute;
    top: 0; left: -60%;
    width: 40%; height: 100%;
    background: linear-gradient(105deg, transparent, rgba(255,255,255,0.10), transparent);
    animation: mml-drawinfo-shimmer 3.2s ease-in-out infinite;
    pointer-events: none;
}
@keyframes mml-drawinfo-shimmer { 0% { left: -60%; } 60%, 100% { left: 120%; } }
.mml-drawinfo-modal.is-dragging .mml-drawinfo-head { cursor: grabbing; }
.mml-drawinfo-grip { opacity: 0.6; font-size: 15px; }
.mml-drawinfo-head h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    flex: 1;
}
.mml-drawinfo-close {
    appearance: none;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    border-radius: 8px;
    width: 30px;
    height: 30px;
    cursor: pointer;
    font-size: 14px;
    line-height: 1;
    transition: background 0.15s ease, border-color 0.15s ease;
}
.mml-drawinfo-close:hover { background: #E63946; border-color: #E63946; }

.mml-drawinfo-body { padding: 18px 20px 22px; font-size: 14px; line-height: 1.6; }
.mml-drawinfo-body p { color: rgba(255, 255, 255, 0.92); margin: 0 0 12px; }
.mml-drawinfo-list { list-style: none; margin: 0 0 14px; padding: 0; }
.mml-drawinfo-list li {
    padding: 8px 12px;
    margin: 6px 0;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-left: 4px solid #E63946;
    border-radius: 10px;
    color: rgba(255, 255, 255, 0.92);
}
.mml-drawinfo-list li strong { color: #fff; }
.mml-drawinfo-note {
    font-size: 12.5px;
    color: rgba(255, 255, 255, 0.7);
    border-top: 1px dashed rgba(255, 255, 255, 0.18);
    padding-top: 12px;
}

/* DRAW PENDING — honest post-draw state with a calm pulse */
.mml-jackpot--pending .mml-jackpot-value {
    color: #EFA3A9;
    animation: mml-pending-pulse 1.8s ease-in-out infinite;
    letter-spacing: 0.02em;
}
@keyframes mml-pending-pulse {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.55; }
}
