/* ═══════════════════════════════════════════════════════════════
   FULL PACK GRID STYLES (Enterprise)
   ═══════════════════════════════════════════════════════════════ */

/* ─── Wrapper ─── */
.fp-grid-wrapper {
    background: linear-gradient(180deg, #0F172A 0%, #0A0E1A 100%);
    border-radius: 16px;
    border: 1px solid rgba(148, 163, 184, 0.15);
    overflow: hidden;
    margin-bottom: 24px;
}

/* ─── Results Row ─── */
.fp-results-row {
    display: flex;
    gap: 2px;
    padding: 8px;
    background: #1E293B;
    border-bottom: 2px solid #334155;
    overflow-x: auto;
}

.fp-results-row::-webkit-scrollbar { height: 4px; }

.fp-result-cell {
    min-width: 80px;
    padding: 10px 14px;
    text-align: center;
    border-radius: 8px;
    font-weight: 800;
    font-size: 15px;
    font-family: var(--font-mono);
    background: #10B981;
    color: white;
    letter-spacing: 0.05em;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.fp-result-cell:first-child {
    background: linear-gradient(135deg, #F59E0B, #D97706);
    min-width: 100px;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.4);
}

/* ─── Filter Row ─── */
.fp-filter-row {
    display: flex;
    gap: 2px;
    padding: 8px;
    background: #0A0E1A;
    border-bottom: 2px solid #334155;
    overflow-x: auto;
}

.fp-filter-row::-webkit-scrollbar { height: 4px; }

.fp-filter-cell {
    min-width: 80px;
    padding: 10px 14px;
    text-align: center;
    border-radius: 8px;
    font-weight: 800;
    font-size: 14px;
    font-family: var(--font-mono);
    background: #1E293B;
    color: #94A3B8;
    border: 1px solid #334155;
    cursor: pointer;
    transition: all 0.15s;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.fp-filter-cell:hover {
    background: #334155;
    color: #F1F5F9;
}

.fp-filter-cell.active {
    background: #3B82F6;
    color: white;
    border-color: #3B82F6;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.4);
}

.fp-filter-cell.all-cell {
    background: linear-gradient(135deg, #10B981, #059669);
    color: white;
    border-color: #10B981;
    min-width: 100px;
}

.fp-filter-cell.all-cell.active {
    background: linear-gradient(135deg, #059669, #047857);
}

.fp-filter-cell input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #10B981;
    cursor: pointer;
}

/* ─── Main Grid ─── */
.fp-main-grid {
    overflow-x: auto;
}

.fp-grid-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
    font-size: 11px;
    
}

.fp-grid-table thead th {
    background: #0F172A;
    color: #F1F5F9;
    padding: 12px 8px;
    font-size: 12px;
    font-weight: 800;
    text-align: center;
    border: 1px solid #334155;
    letter-spacing: 0.05em;
    position: sticky;
    top: 0;
    z-index: 2;
}

.fp-grid-table thead th.sr-col {
    background: linear-gradient(135deg, #1E3A8A, #1E40AF);
    color: white;
    width: 4%;
}

.fp-grid-table thead th.group-col {
    background: linear-gradient(135deg, #1E3A8A, #1E40AF);
    color: white;
    width: 7.6%;
}

.fp-grid-table thead th.qty-col {
    background: linear-gradient(135deg, #7C2D12, #9A3412);
    color: white;
    width: 5%;
}

.fp-grid-table thead th.amount-col {
    background: linear-gradient(135deg, #7C2D12, #9A3412);
    color: white;
    width: 7%;
}

.fp-grid-table tbody tr {
    transition: background 0.15s;
}

.fp-grid-table tbody tr:nth-child(even) {
    background: rgba(30, 41, 59, 0.3);
}

.fp-grid-table tbody tr:hover {
    background: rgba(59, 130, 246, 0.08);
}

.fp-grid-table tbody td {
    padding: 8px;
    text-align: center;
    border: 1px solid #334155;
    color: #F1F5F9;
}

.fp-grid-table tbody td.sr-cell {
    background: linear-gradient(135deg, #F59E0B, #D97706);
    color: white;
    font-weight: 900;
    font-size: 16px;
    width: 60px;
}

.fp-grid-table tbody td.sr-cell.sr-10 { background: linear-gradient(135deg, #F97316, #EA580C); }
.fp-grid-table tbody td.sr-cell.sr-11 { background: linear-gradient(135deg, #06B6D4, #0891B2); }
.fp-grid-table tbody td.sr-cell.sr-12 { background: linear-gradient(135deg, #84CC16, #65A30D); }
.fp-grid-table tbody td.sr-cell.sr-13 { background: linear-gradient(135deg, #EC4899, #DB2777); }
.fp-grid-table tbody td.sr-cell.sr-14 { background: linear-gradient(135deg, #8B5CF6, #7C3AED); }
.fp-grid-table tbody td.sr-cell.sr-15 { background: linear-gradient(135deg, #D946EF, #C026D3); }
.fp-grid-table tbody td.sr-cell.sr-16 { background: linear-gradient(135deg, #A3E635, #84CC16); }
.fp-grid-table tbody td.sr-cell.sr-17 { background: linear-gradient(135deg, #10B981, #059669); }
.fp-grid-table tbody td.sr-cell.sr-18 { background: linear-gradient(135deg, #818CF8, #6366F1); }
.fp-grid-table tbody td.sr-cell.sr-19 { background: linear-gradient(135deg, #475569, #334155); }

.fp-cell {
    padding: 4px;
    border-radius: 6px;
    background: #0F172A;
    border: 1.5px solid #334155;
    cursor: pointer;
    transition: all 0.2s;
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-family: var(--font-mono);
    font-size: 15px;
    color: #64748B;
    position: relative;
    overflow: hidden;
}

.fp-cell:hover {
    border-color: #10B981;
    transform: scale(1.03);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.fp-cell.filled {
    background: linear-gradient(135deg, #10B981, #059669);
    color: white;
    border-color: #10B981;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.4);
}

.fp-cell.filled::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: rgba(255,255,255,0.3);
}

.fp-cell.highlighted {
    animation: fpPulse 1.5s ease-in-out infinite;
}

@keyframes fpPulse {
    0%, 100% { box-shadow: 0 2px 8px rgba(16, 185, 129, 0.4); }
    50% { box-shadow: 0 2px 20px rgba(16, 185, 129, 0.8); }
}

.fp-grid-table tbody td.qty-cell {
    background: #1E293B;
    font-weight: 800;
    font-family: var(--font-mono);
    color: #F59E0B;
    font-size: 15px;
}

.fp-grid-table tbody td.amount-cell {
    background: #1E293B;
    font-weight: 800;
    font-family: var(--font-mono);
    color: #10B981;
    font-size: 15px;
}

/* ─── "All" Row ─── */
.fp-all-row {
    background: linear-gradient(90deg, #10B981, #059669) !important;
}

.fp-all-row td {
    background: transparent !important;
    color: white !important;
    border: 1px solid rgba(255,255,255,0.2) !important;
}

.fp-all-row td.sr-cell {
    background: transparent !important;
    color: white !important;
    font-weight: 900;
}

.fp-all-row .fp-cell {
    background: rgba(255,255,255,0.15);
    border-color: rgba(255,255,255,0.3);
    color: rgba(255,255,255,0.6);
}

.fp-all-row .fp-cell:hover {
    background: rgba(255,255,255,0.3);
    border-color: white;
}

.fp-all-row .fp-cell.filled {
    background: white;
    color: #059669;
    border-color: white;
    font-weight: 900;
}

/* ─── Bottom Summary Bar ─── */
.fp-summary-bar {
    display: flex;
    gap: 20px;
    padding: 16px 20px;
    background: linear-gradient(90deg, #1E293B, #0F172A);
    border-top: 2px solid #10B981;
    align-items: center;
    flex-wrap: wrap;
}

.fp-summary-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.fp-summary-label {
    font-size: 12px;
    color: #94A3B8;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.fp-summary-value {
    font-size: 20px;
    font-weight: 900;
    font-family: var(--font-mono);
    color: #F59E0B;
}

.fp-summary-value.amount {
    color: #10B981;
}

.fp-summary-value.total {
    color: #F59E0B;
    font-size: 24px;
}

.fp-submit-btn {
    margin-left: auto;
    padding: 14px 32px;
    background: linear-gradient(135deg, #10B981, #059669);
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 800;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.4);
    letter-spacing: 0.03em;
}

.fp-submit-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.6);
}

.fp-submit-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    box-shadow: none;
}

/* ─── Level 2 Modal ─── */
.fp-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(5, 8, 16, 0.85);
    backdrop-filter: blur(8px);
    z-index: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    animation: fpFadeIn 0.2s;
}

@keyframes fpFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.fp-modal {
    background: linear-gradient(180deg, #1E293B, #0F172A);
    border: 2px solid #10B981;
    border-radius: 20px;
    width: 100%;
    max-width: 520px;
    max-height: 90vh;
    overflow-y: auto;
    animation: fpModalIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 24px 80px rgba(0,0,0,0.6);
}

@keyframes fpModalIn {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.fp-modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid #334155;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    position: sticky;
    top: 0;
    background: linear-gradient(180deg, #1E293B, #1E293B);
    z-index: 2;
}

.fp-modal-title {
    font-size: 18px;
    font-weight: 900;
    color: #F1F5F9;
    margin: 0;
}

.fp-modal-subtitle {
    font-size: 11px;
    color: #94A3B8;
    margin: 4px 0 0;
}

.fp-modal-close {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #334155;
    color: #94A3B8;
    border: none;
    cursor: pointer;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    flex-shrink: 0;
}

.fp-modal-close:hover {
    background: #EF4444;
    color: white;
    transform: rotate(90deg);
}

.fp-modal-body {
    padding: 20px 24px;
}

.fp-modal-numbers {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

.fp-modal-number-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: #0F172A;
    border-radius: 12px;
    border: 1px solid #334155;
    transition: all 0.2s;
}

.fp-modal-number-row:focus-within {
    border-color: #10B981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
}

.fp-modal-number-label {
    font-family: var(--font-mono);
    font-size: 20px;
    font-weight: 900;
    color: #10B981;
    min-width: 40px;
}

.fp-modal-number-input {
    flex: 1;
    padding: 10px 14px;
    background: #1E293B;
    border: 1px solid #334155;
    border-radius: 8px;
    color: #F1F5F9;
    font-family: var(--font-mono);
    font-size: 18px;
    font-weight: 800;
    text-align: center;
    transition: all 0.15s;
}

.fp-modal-number-input:focus {
    outline: none;
    border-color: #10B981;
    background: #0F172A;
}

.fp-modal-number-amount {
    font-size: 12px;
    color: #64748B;
    min-width: 55px;
    text-align: right;
    font-family: var(--font-mono);
}

.fp-modal-footer {
    padding: 16px 24px;
    border-top: 1px solid #334155;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    position: sticky;
    bottom: 0;
    background: #0F172A;
}

.fp-modal-total {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.fp-modal-total-label {
    font-size: 11px;
    color: #64748B;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.fp-modal-total-value {
    font-size: 22px;
    font-weight: 900;
    font-family: var(--font-mono);
    color: #10B981;
}

.fp-modal-actions {
    display: flex;
    gap: 8px;
}

.fp-btn-cancel {
    padding: 12px 24px;
    background: #334155;
    color: #94A3B8;
    border: none;
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s;
}

.fp-btn-cancel:hover {
    background: #475569;
    color: white;
}

.fp-btn-save {
    padding: 12px 32px;
    background: linear-gradient(135deg, #10B981, #059669);
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.15s;
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.4);
}

.fp-btn-save:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.6);
}

.fp-btn-save:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ─── Mobile ─── */
@media (max-width: 768px) {
    .fp-grid-wrapper {
        border-radius: 12px;
    }
    .fp-result-cell, .fp-filter-cell {
        min-width: 65px;
        padding: 8px 10px;
        font-size: 11px;
    }
    .fp-grid-table {
        font-size: 11px;
    }
    .fp-grid-table thead th {
        padding: 8px 4px;
        font-size: 10px;
    }
    .fp-grid-table tbody td {
        padding: 4px;
    }
    .fp-cell {
        min-height: 34px;
        font-size: 11px;
        border-radius: 4px;
    }
    .fp-modal-numbers {
        grid-template-columns: 1fr;
    }
    .fp-submit-btn {
        width: 100%;
        margin-left: 0;
        margin-top: 12px;
    }
    .fp-summary-bar {
        flex-direction: column;
        align-items: stretch;
    }
}

/* ─── Loading skeleton ─── */
.fp-skeleton {
    background: linear-gradient(90deg, #1E293B 25%, #334155 50%, #1E293B 75%);
    background-size: 200% 100%;
    animation: fpShimmer 1.5s infinite;
    border-radius: 8px;
}

@keyframes fpShimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ═══════════════════════════════════════════════════════════════
   SINGLE PICK — Variation of Full Pack Grid
   Different accent color (purple)
   ═══════════════════════════════════════════════════════════════ */

.sp-grid-wrapper {
    background: linear-gradient(180deg, #1A1035 0%, #0F172A 100%);
    border-radius: 16px;
    border: 1px solid rgba(139, 92, 246, 0.2);
    overflow: hidden;
    margin-bottom: 24px;
}

.sp-header-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 20px;
    background: linear-gradient(90deg, rgba(139, 92, 246, 0.15), rgba(236, 72, 153, 0.1));
    border-bottom: 2px solid rgba(139, 92, 246, 0.3);
}

.sp-header-title {
    font-size: 16px;
    font-weight: 900;
    color: #A78BFA;
    letter-spacing: 0.02em;
    display: flex;
    align-items: center;
    gap: 10px;
}

.sp-header-rate {
    font-size: 11px;
    color: #94A3B8;
    font-weight: 700;
    font-family: var(--font-mono);
}

.sp-header-rate span {
    color: #F59E0B;
    font-weight: 900;
}

/* Cell filled = purple instead of green */
.sp-grid-wrapper .fp-cell.filled {
    background: linear-gradient(135deg, #8B5CF6, #7C3AED);
    border-color: #8B5CF6;
    box-shadow: 0 2px 8px rgba(139, 92, 246, 0.4);
}

.sp-grid-wrapper .fp-cell:hover {
    border-color: #8B5CF6;
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

/* Summary bar */
.sp-grid-wrapper .fp-summary-bar {
    border-top-color: #8B5CF6;
    background: linear-gradient(90deg, #1A1035, #0F172A);
}

.sp-grid-wrapper .fp-summary-value {
    color: #A78BFA;
}

.sp-grid-wrapper .fp-summary-value.amount {
    color: #A78BFA;
}

.sp-grid-wrapper .fp-submit-btn {
    background: linear-gradient(135deg, #8B5CF6, #7C3AED);
    box-shadow: 0 4px 16px rgba(139, 92, 246, 0.4);
}

.sp-grid-wrapper .fp-submit-btn:hover:not(:disabled) {
    box-shadow: 0 8px 24px rgba(139, 92, 246, 0.6);
}

/* Serial cell colors for Single Pick — purple palette */
.sp-grid-wrapper .fp-grid-table tbody td.sr-cell.sr-10 { background: linear-gradient(135deg, #8B5CF6, #7C3AED); }
.sp-grid-wrapper .fp-grid-table tbody td.sr-cell.sr-11 { background: linear-gradient(135deg, #A78BFA, #8B5CF6); }
.sp-grid-wrapper .fp-grid-table tbody td.sr-cell.sr-12 { background: linear-gradient(135deg, #C4B5FD, #A78BFA); }
.sp-grid-wrapper .fp-grid-table tbody td.sr-cell.sr-13 { background: linear-gradient(135deg, #EC4899, #DB2777); }
.sp-grid-wrapper .fp-grid-table tbody td.sr-cell.sr-14 { background: linear-gradient(135deg, #D946EF, #C026D3); }
.sp-grid-wrapper .fp-grid-table tbody td.sr-cell.sr-15 { background: linear-gradient(135deg, #8B5CF6, #6D28D9); }
.sp-grid-wrapper .fp-grid-table tbody td.sr-cell.sr-16 { background: linear-gradient(135deg, #A78BFA, #8B5CF6); }
.sp-grid-wrapper .fp-grid-table tbody td.sr-cell.sr-17 { background: linear-gradient(135deg, #7C3AED, #6D28D9); }
.sp-grid-wrapper .fp-grid-table tbody td.sr-cell.sr-18 { background: linear-gradient(135deg, #C4B5FD, #A78BFA); }
.sp-grid-wrapper .fp-grid-table tbody td.sr-cell.sr-19 { background: linear-gradient(135deg, #6D28D9, #5B21B6); }

/* ═══════════════════════════════════════════════════════════════
   PHASE 22: RESULT VIEW — ENTERPRISE STYLES
   ═══════════════════════════════════════════════════════════════ */

.result-page {
    background: var(--bg-900);
    min-height: 100vh;
    padding: 20px;
}

.result-container {
    max-width: 1400px;
    margin: 0 auto;
}

.result-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
    padding: 20px;
    background: var(--bg-700);
    border-radius: 16px;
    border: 1px solid var(--bg-600);
}

.back-btn {
    padding: 10px 20px;
    background: var(--bg-600);
    color: var(--text-100);
    border-radius: 8px;
    text-decoration: none;
}

.session-info {
    margin-left: auto;
    text-align: right;
}

.session-code {
    display: block;
    font-weight: 700;
    color: var(--primary);
    font-size: 14px;
}

.session-time {
    display: block;
    font-size: 12px;
    color: var(--text-400);
}

.winning-display {
    text-align: center;
    padding: 40px;
    background: linear-gradient(135deg, var(--bg-700), var(--bg-600));
    border-radius: 20px;
    margin-bottom: 30px;
    border: 2px solid var(--primary);
    box-shadow: 0 0 40px rgba(16, 185, 129, 0.3);
}

.winning-label {
    font-size: 14px;
    color: var(--text-400);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
}

.winning-number {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 20px;
}

.winning-number .digit {
    width: 80px;
    height: 100px;
    background: linear-gradient(135deg, var(--accent), var(--danger));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    font-weight: 900;
    color: white;
    box-shadow: 0 8px 24px rgba(245, 158, 11, 0.4);
}

.winning-prize {
    display: flex;
    justify-content: center;
    gap: 12px;
}

.prize-badge {
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 14px;
}

.prize-100x {
    background: linear-gradient(135deg, var(--accent), var(--danger));
    color: white;
}

.prize-2x {
    background: linear-gradient(135deg, var(--secondary), #8B5CF6);
    color: white;
}

.result-grid-wrapper {
    background: var(--bg-700);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 30px;
    border: 1px solid var(--bg-600);
}

.grid-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--bg-600);
}

.grid-legend {
    display: flex;
    gap: 20px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--text-400);
}

.legend-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.legend-dot.winning { background: var(--accent); }
.legend-dot.same-series { background: var(--secondary); }
.legend-dot.normal { background: var(--bg-600); }

.result-grid {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.result-row {
    display: grid;
    grid-template-columns: 60px repeat(10, 1fr);
    gap: 8px;
}

.row-label {
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--text-400);
    background: var(--bg-800);
    border-radius: 8px;
    font-size: 12px;
}

.result-cell {
    position: relative;
    aspect-ratio: 1;
    background: var(--bg-800);
    border: 1px solid var(--bg-600);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.result-cell.winning {
    background: linear-gradient(135deg, var(--accent), var(--danger));
    border-color: var(--accent);
    animation: pulse-ring 1.5s infinite;
    box-shadow: 0 0 30px rgba(245, 158, 11, 0.8);
}

.result-cell.same-series {
    background: linear-gradient(135deg, var(--secondary), #8B5CF6);
    border-color: var(--secondary);
    animation: glow 2s infinite;
}

@keyframes pulse-ring {
    0% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.8); }
    70% { box-shadow: 0 0 0 20px rgba(245, 158, 11, 0); }
    100% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0); }
}

@keyframes glow {
    0%, 100% { box-shadow: 0 0 20px rgba(59, 130, 246, 0.5); }
    50% { box-shadow: 0 0 40px rgba(59, 130, 246, 0.8); }
}

.cell-group-label {
    font-size: 10px;
    color: var(--text-400);
    position: absolute;
    top: 4px;
    left: 6px;
}

.prize-label {
    font-size: 14px;
    font-weight: 900;
    color: white;
}

.live-count {
    font-size: 10px;
    color: var(--text-400);
    position: absolute;
    bottom: 4px;
    right: 6px;
    font-weight: 600;
}

.live-count.low { color: var(--secondary); }
.live-count.medium { color: var(--accent); }
.live-count.high { color: var(--danger); }

.user-bets-section {
    background: var(--bg-700);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 30px;
    border: 1px solid var(--bg-600);
}

.bets-table table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

.bets-table th {
    text-align: left;
    padding: 12px;
    background: var(--bg-800);
    color: var(--text-400);
    font-size: 12px;
    text-transform: uppercase;
}

.bets-table td {
    padding: 12px;
    border-bottom: 1px solid var(--bg-600);
}

.winner-row {
    background: rgba(245, 158, 11, 0.1);
}

.badge {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 700;
}

.badge-win { background: var(--accent); color: white; }
.badge-series { background: var(--secondary); color: white; }
.badge-loss { background: var(--bg-600); color: var(--text-400); }
.badge-pending { background: var(--bg-600); color: var(--text-400); }

.share-section {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 30px;
}

.btn-share, .btn-download {
    padding: 12px 32px;
    border-radius: 12px;
    border: none;
    font-weight: 700;
    cursor: pointer;
}

.btn-share {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
}

.btn-download {
    background: var(--bg-600);
    color: var(--text-100);
}

.winner-overlay {
    position: fixed;
    inset: 0;
    background: rgba(5, 8, 16, 0.95);
    backdrop-filter: blur(20px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.overlay-content {
    text-align: center;
    padding: 60px;
    background: linear-gradient(135deg, var(--bg-700), var(--bg-600));
    border-radius: 24px;
    border: 2px solid var(--accent);
    box-shadow: 0 0 60px rgba(245, 158, 11, 0.5);
}

.overlay-icon {
    font-size: 100px;
    margin-bottom: 20px;
}

.overlay-title {
    font-size: 32px;
    font-weight: 900;
    color: var(--accent);
    margin-bottom: 16px;
}

.overlay-prize {
    font-size: 48px;
    font-weight: 900;
    color: var(--primary);
    margin-bottom: 30px;
}

.overlay-close {
    padding: 14px 40px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
}

@media (max-width: 768px) {
    .winning-number .digit {
        width: 50px;
        height: 65px;
        font-size: 28px;
    }
    .result-row {
        grid-template-columns: 40px repeat(10, 1fr);
    }
    .grid-legend {
        flex-direction: column;
        gap: 8px;
    }
    .share-section {
        flex-direction: column;
    }
}
