/* Clean, modern design focused on clarity */
    .predictions-container {
        max-width: 1200px;
        margin: 0 auto;
        padding: 20px;
    }
    
    .section-card {
        background: white;
        border-radius: 12px;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        margin-bottom: 25px;
        overflow: hidden;
    }
    
    .section-header {
        background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
        color: white;
        padding: 20px 25px;
        margin: 0;
        font-size: 1.4rem;
        font-weight: 600;
    }
    
    .section-body {
        padding: 25px;
    }
    
    .prediction-horizontal-card {
        background: white;
        border: 1px solid #e9ecef;
        border-radius: 10px;
        padding: 20px;
        box-shadow: 0 2px 4px rgba(0,0,0,0.1);
        height: 100%;
        transition: transform 0.2s, box-shadow 0.2s;
    }
    
    .prediction-horizontal-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    }
    
    .confidence-header {
        text-align: center;
        margin-bottom: 15px;
    }
    
    .confidence-percent {
        background: #ffc107;
        color: #212529;
        padding: 6px 12px;
        border-radius: 15px;
        font-weight: 600;
        font-size: 0.9rem;
    }
    
    .predicted-section {
        margin-bottom: 10px;
    }
    
    .predicted-numbers {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        justify-content: center;
    }
    
    .lottery-ball-horizontal {
        width: 35px;
        height: 35px;
        border-radius: 50%;
        background: #dc3545;
        color: white;
        display: flex;
        align-items: center;
        justify-content: center;
        font-weight: bold;
        font-size: 0.9rem;
    }
    
    .lottery-ball-bonus {
        width: 30px;
        height: 30px;
        border-radius: 50%;
        background: #dc3545;
        color: white;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-weight: bold;
        font-size: 0.85rem;
        margin-left: 5px;
    }
    
    .bonus-section {
        text-align: center;
    }
    
    .prediction-status {
        text-align: center;
        font-size: 0.9rem;
    }
    
    .prediction-date-small {
        text-align: center;
        font-size: 0.8rem;
        color: #6c757d;
    }
    
    .game-type-section {
        margin-bottom: 40px;
    }
    
    .prediction-card-compact {
        background: white;
        border: 1px solid #e9ecef;
        border-radius: 8px;
        padding: 15px;
        height: auto;
        font-size: 0.9rem;
        text-align: center;
    }
    
    .confidence-badge-top {
        display: inline-flex;
        align-items: center;
        background: #ffc107;
        color: #212529;
        padding: 4px 12px;
        border-radius: 15px;
        font-weight: 600;
        font-size: 0.9rem;
        margin-bottom: 15px;
        justify-content: center;
    }
    
    .predicted-compact {
        margin-bottom: 15px;
    }
    
    .numbers-row {
        display: flex;
        flex-wrap: wrap;
        gap: 3px;
        justify-content: center;
        margin-top: 8px;
    }
    
    .lottery-ball-compact {
        width: 35px;
        height: 35px;
        border-radius: 50%;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-weight: bold;
        font-size: 0.9rem;
        color: white;
        margin: 2px;
    }
    
    .lottery-ball-compact {
        background: #dc3545;
    }
    

    
    .lottery-ball-bonus-compact {
        width: 30px;
        height: 30px;
        border-radius: 50%;
        background: #dc3545;
        color: white;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-weight: bold;
        font-size: 0.8rem;
        margin: 2px;
    }
    
    .bonus-compact {
        text-align: center;
    }
    

    
    .pending-status-compact {
        text-align: center;
        font-size: 0.85rem;
        margin-top: 15px;
    }
    
    .date-compact {
        text-align: center;
        font-size: 0.8rem;
        color: #6c757d;
        margin-top: 10px;
    }
    
    .verification-section {
        border-top: 1px solid #e9ecef;
        padding-top: 15px;
    }
    
    .actual-numbers, .prediction-comparison {
        display: flex;
        flex-wrap: wrap;
        gap: 5px;
        justify-content: center;
    }
    
    .lottery-ball-actual, .lottery-ball-actual-bonus {
        width: 30px;
        height: 30px;
        border-radius: 50%;
        background: #6c757d;
        color: white;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-weight: bold;
        font-size: 0.8rem;
    }
    
    .lottery-ball-comparison, .lottery-ball-comparison-bonus {
        width: 30px;
        height: 30px;
        border-radius: 50%;
        background: #dc3545;
        color: white;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-weight: bold;
        font-size: 0.8rem;
    }
    
    .lottery-ball-comparison.matched, .lottery-ball-comparison-bonus.matched {
        background: #28a745;
        box-shadow: 0 0 10px rgba(40, 167, 69, 0.5);
    }
    
    .match-summary {
        text-align: center;
        padding: 8px;
        border-radius: 8px;
        font-size: 0.9rem;
    }
    
    .match-summary.success {
        background: #d4edda;
        color: #155724;
        border: 1px solid #c3e6cb;
    }
    
    .match-summary.no-match {
        background: #f8d7da;
        color: #721c24;
        border: 1px solid #f5c6cb;
    }
    
    .match-badges {
        display: flex;
        gap: 5px;
        justify-content: center;
    }
    
    .match-badge {
        padding: 2px 8px;
        border-radius: 12px;
        font-size: 0.75rem;
        font-weight: 600;
    }
    
    .match-badge.main {
        background: #ffc107;
        color: #212529;
    }
    
    .match-badge.bonus {
        background: #17a2b8;
        color: white;
    }
    
    .accuracy-badges {
        text-align: center;
    }
    
    .accuracy-badge {
        padding: 4px 8px;
        border-radius: 15px;
        font-size: 0.8rem;
        font-weight: 600;
        margin: 0 2px;
    }
    
    .accuracy-badge.main {
        background: #007bff;
        color: white;
    }
    
    .accuracy-badge.bonus {
        background: #17a2b8;
        color: white;
    }
    
    .accuracy-badge.no-prize {
        background: #6c757d;
        color: white;
    }
    
    .accuracy-percent {
        font-weight: bold;
        font-size: 0.9rem;
        color: #495057;
    }
    
    .prediction-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 15px;
        padding-bottom: 10px;
        border-bottom: 1px solid #e5e7eb;
    }
    
    .game-type {
        font-weight: 600;
        font-size: 1.1rem;
        color: #1f2937;
    }
    
    .confidence-badge {
        background: #3b82f6;
        color: white;
        padding: 4px 12px;
        border-radius: 20px;
        font-size: 0.9rem;
        font-weight: 500;
    }
    
    .prediction-numbers {
        margin: 15px 0;
    }
    
    .lottery-ball {
        display: inline-block;
        width: 35px;
        height: 35px;
        background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
        color: white;
        border-radius: 50%;
        text-align: center;
        line-height: 35px;
        margin: 0 5px 5px 0;
        font-weight: 600;
        font-size: 14px;
        box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    }
    
    .prediction-reasoning {
        background: #f1f5f9;
        border-left: 4px solid #3b82f6;
        padding: 15px;
        border-radius: 0 8px 8px 0;
        font-size: 0.95rem;
        line-height: 1.6;
        color: #475569;
        margin-top: 15px;
    }
    
    .controls-section {
        background: #f8fafc;
        padding: 24px;
        border-radius: 14px;
        margin-bottom: 20px;
        border: 1px solid #e2e8f0;
    }

    .admin-action-grid {
        display: grid;
        grid-template-columns: minmax(280px, 1.3fr) repeat(4, minmax(190px, 1fr));
        gap: 16px;
        align-items: end;
    }

    .admin-control-block {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .admin-control-copy {
        color: #64748b;
        font-size: 0.92rem;
        line-height: 1.45;
        margin: 0;
    }

    .admin-action-card {
        background: #ffffff;
        border: 1px solid #e2e8f0;
        border-radius: 14px;
        padding: 16px;
        display: flex;
        flex-direction: column;
        gap: 12px;
        min-height: 100%;
    }

    .admin-action-card h6 {
        margin: 0;
        font-size: 1rem;
        font-weight: 700;
        color: #0f172a;
    }

    .admin-action-card p {
        margin: 0;
        color: #64748b;
        font-size: 0.9rem;
        line-height: 1.45;
    }

    .operations-groups {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px;
    }

    .operations-group {
        background: #ffffff;
        border: 1px solid #dbe4f0;
        border-radius: 16px;
        padding: 20px;
        display: flex;
        flex-direction: column;
        gap: 16px;
        min-height: 100%;
    }

    .operations-group-header h5 {
        margin: 0;
        font-size: 1.2rem;
        font-weight: 700;
        color: #0f172a;
    }

    .operations-group-header p {
        margin: 8px 0 0;
        color: #64748b;
        line-height: 1.5;
    }

    .operations-actions {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
        gap: 14px;
    }

    .operations-actions .admin-action-card {
        min-height: 210px;
    }

    .btn-generate {
        background: linear-gradient(135deg, #10b981 0%, #059669 100%);
        color: white;
        border: none;
        padding: 14px 18px;
        border-radius: 10px;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.3s ease;
        width: 100%;
        min-height: 56px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        text-align: center;
    }
    
    .btn-generate:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
    }
    
    .form-select {
        border: 1px solid #d1d5db;
        border-radius: 10px;
        padding: 12px 14px;
        font-size: 1rem;
    }

    .status-shell {
        min-height: 56px;
    }

    .wheel-layout {
        display: grid;
        grid-template-columns: minmax(280px, 1.3fr) minmax(220px, 0.8fr) minmax(220px, 0.8fr);
        gap: 16px;
        align-items: end;
    }

    .wheel-results-shell {
        border-top: 1px solid #e2e8f0;
        margin-top: 24px;
        padding-top: 24px;
    }

    .wheel-lines-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
        gap: 12px;
        margin-top: 18px;
    }

    .wheel-line-card {
        background: #f8fafc;
        border: 1px solid #e2e8f0;
        border-radius: 12px;
        padding: 14px;
    }

    .wheel-line-label {
        font-size: 0.8rem;
        font-weight: 700;
        letter-spacing: 0.04em;
        color: #64748b;
        margin-bottom: 8px;
        text-transform: uppercase;
    }

    .wheel-line-numbers {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
    }

    @media (max-width: 1199px) {
        .admin-action-grid,
        .wheel-layout {
            grid-template-columns: repeat(2, minmax(0, 1fr));
        }

        .operations-groups {
            grid-template-columns: 1fr;
        }
    }

    @media (max-width: 767px) {
        .admin-action-grid,
        .wheel-layout {
            grid-template-columns: 1fr;
        }

        .operations-actions {
            grid-template-columns: 1fr;
        }
    }
    
    .stats-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 20px;
        margin-top: 20px;
    }
    
    .stat-item {
        text-align: center;
        padding: 15px;
        background: #f8fafc;
        border-radius: 8px;
        border: 1px solid #e5e7eb;
    }
    
    .stat-value {
        font-size: 2rem;
        font-weight: 700;
        color: #1f2937;
        margin-bottom: 5px;
    }
    
    .stat-label {
        color: #6b7280;
        font-size: 0.9rem;
    }
    
    .loading {
        text-align: center;
        padding: 20px;
        color: #6b7280;
    }
    
    .empty-state {
        text-align: center;
        padding: 40px;
        color: #6b7280;
    }

    .prediction-card {
        background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
        border: 1px solid #e9ecef;
        border-radius: 12px;
        padding: 15px;
        margin-bottom: 15px;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        transition: transform 0.3s ease, box-shadow 0.3s ease;
    }

    .prediction-card.is-clickable {
        cursor: pointer;
    }

    .prediction-card.is-clickable:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 18px rgba(15, 23, 42, 0.14);
    }

    .prediction-open-breakdown {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        height: 34px;
        padding: 0 12px;
        border-radius: 10px;
        border: 1px solid #1f2937;
        background: #111827;
        color: #fff !important;
        text-decoration: none;
        font-size: 0.84rem;
        font-weight: 700;
    }

    .prediction-open-breakdown:hover {
        background: #0b1220;
        border-color: #0b1220;
        color: #fff !important;
    }

    .game-type-section {
        margin-bottom: 30px;
    }

    .game-type-header {
        border-bottom: 2px solid #007bff;
        padding-bottom: 8px;
        margin-bottom: 15px;
    }

    .predictions-row {
        display: flex;
        flex-wrap: wrap;
        gap: 15px;
    }

    .lottery-ball.bg-success {
        border: 2px solid #28a745 !important;
        font-weight: bold;
        box-shadow: 0 0 8px rgba(40, 167, 69, 0.6);
        animation: pulse 2s infinite;
    }

    @keyframes pulse {
        0% { box-shadow: 0 0 8px rgba(40, 167, 69, 0.6); }
        50% { box-shadow: 0 0 15px rgba(40, 167, 69, 0.9); }
        100% { box-shadow: 0 0 8px rgba(40, 167, 69, 0.6); }
    }

    .matched-numbers {
        background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
        border: 1px solid #28a745;
        border-radius: 8px;
        padding: 12px;
        margin-top: 10px;
        border-left: 4px solid #28a745;
    }

    .game-type-header h5 {
        color: #0056b3;
        font-weight: 600;
        margin: 0;
    }
    
    /* Interactive prediction number styles */
    .matched-number {
        background: linear-gradient(135deg, #28a745, #20c997) !important;
        color: white !important;
        border: 3px solid #fff !important;
        box-shadow: 0 0 10px rgba(40, 167, 69, 0.5) !important;
        transform: scale(1.1);
    }

    .unmatched-number {
        background: linear-gradient(135deg, #6c757d, #495057) !important;
        color: white !important;
        opacity: 0.7;
    }

    .matched-bonus {
        background: linear-gradient(135deg, #ffc107, #fd7e14) !important;
        color: white !important;
        border: 3px solid #fff !important;
        box-shadow: 0 0 10px rgba(255, 193, 7, 0.5) !important;
        transform: scale(1.1);
    }

    .unmatched-bonus {
        background: linear-gradient(135deg, #6c757d, #495057) !important;
        color: white !important;
        opacity: 0.7;
    }

    .actual-number {
        background: linear-gradient(135deg, #dc3545, #c82333) !important;
        color: white !important;
        border: 2px solid #fff !important;
    }

    .actual-bonus {
        background: linear-gradient(135deg, #fd7e14, #e55a00) !important;
        color: white !important;
        border: 2px solid #fff !important;
    }

    .matched-highlight {
        background: linear-gradient(135deg, #28a745, #20c997) !important;
        color: white !important;
        border: 3px solid #fff !important;
        box-shadow: 0 0 15px rgba(40, 167, 69, 0.8) !important;
    }

    .prediction-ball {
        background: linear-gradient(135deg, #007bff, #0056b3) !important;
        color: white !important;
    }

    .matched-bonus-highlight {
        background: linear-gradient(135deg, #ffc107, #fd7e14) !important;
        color: white !important;
        border: 3px solid #fff !important;
        box-shadow: 0 0 15px rgba(255, 193, 7, 0.8) !important;
    }

    .prediction-bonus {
        background: linear-gradient(135deg, #17a2b8, #138496) !important;
        color: white !important;
    }

    .actual-vs-predicted {
        border: 1px solid #e9ecef;
        border-radius: 8px;
        padding: 12px;
        background: rgba(248, 249, 250, 0.8);
    }

    .web-breakdown-shell {
        background: #fff;
        border: 1px solid #e5e7eb;
        border-radius: 14px;
        box-shadow: 0 10px 26px rgba(15, 23, 42, 0.09);
        padding: 18px;
        margin-bottom: 18px;
        position: relative;
        overflow: hidden;
    }

    .web-breakdown-shell::before {
        content: "";
        position: absolute;
        inset: 0 0 auto 0;
        height: 4px;
        background: linear-gradient(90deg, #ef4444 0%, #fde047 25%, #22c55e 50%, #38bdf8 75%, #6366f1 100%);
    }

    .breakdown-title {
        margin: 0 0 10px 0;
        font-size: 1.35rem;
        font-weight: 900;
        color: #111827;
        letter-spacing: -0.01em;
        text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5);
    }

    .breakdown-game-tabs {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        margin-bottom: 14px;
    }

    .breakdown-game-tab {
        border: 1px solid #c7cfdd;
        border-radius: 999px;
        padding: 7px 13px;
        font-size: 0.82rem;
        font-weight: 800;
        text-decoration: none;
        color: #1f2937;
        background: linear-gradient(180deg, #ffffff 0%, #f3f4f6 100%);
        transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
    }

    .breakdown-game-tab:hover {
        transform: translateY(-1px);
        box-shadow: 0 8px 14px rgba(15, 23, 42, 0.11);
        border-color: #aeb9cf;
    }

    .breakdown-game-tab.active {
        border-color: #d8bf1a;
        background: linear-gradient(135deg, #fff8bf 0%, #ffe55d 100%);
        color: #111827;
        box-shadow: 0 8px 14px rgba(217, 186, 24, 0.28);
    }

    .breakdown-top-card {
        border: 1px solid #e5e7eb;
        border-radius: 12px;
        background: linear-gradient(135deg, #fff7bf 0%, #ffe775 44%, #ffe11d 100%);
        padding: 14px;
        margin-bottom: 12px;
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
    }

    .confidence-track {
        width: 100%;
        height: 8px;
        border-radius: 999px;
        background: rgba(17, 24, 39, 0.16);
        overflow: hidden;
        margin-top: 10px;
    }

    .confidence-fill {
        height: 100%;
        border-radius: inherit;
        background: linear-gradient(90deg, #ef4444 0%, #f59e0b 30%, #22c55e 100%);
        transition: width 0.25s ease;
        position: relative;
        overflow: hidden;
    }

    .confidence-fill::after {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient(
            120deg,
            rgba(255, 255, 255, 0) 20%,
            rgba(255, 255, 255, 0.45) 45%,
            rgba(255, 255, 255, 0) 70%
        );
        transform: translateX(-120%);
        animation: confidenceShine 2.2s linear infinite;
    }

    @keyframes confidenceShine {
        to {
            transform: translateX(120%);
        }
    }

    .breakdown-subtitle {
        margin: 12px 0 8px;
        font-size: 1.05rem;
        font-weight: 800;
        color: #1f2937;
    }

    .breakdown-top-row {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        margin-bottom: 8px;
    }

    .breakdown-pill {
        background: rgba(255, 255, 255, 0.9);
        border-radius: 999px;
        padding: 4px 10px;
        font-weight: 700;
        font-size: 0.84rem;
        border: 1px solid rgba(0, 0, 0, 0.1);
    }

    .breakdown-confidence {
        font-size: 1.5rem;
        font-weight: 900;
        color: #1f2937;
    }

    .breakdown-submeta {
        display: flex;
        flex-wrap: wrap;
        gap: 8px 14px;
        color: #374151;
        font-weight: 600;
        margin-top: 8px;
        font-size: 0.88rem;
    }

    .method-grid {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
        margin-top: 8px;
    }

    .method-card {
        border: 1px solid #e5e7eb;
        border-radius: 12px;
        background: #f8fafc;
        padding: 10px;
        transition: transform 0.18s ease, box-shadow 0.18s ease;
        position: relative;
        overflow: hidden;
    }

    .method-card:hover {
        transform: translateY(-1px);
        box-shadow: 0 10px 14px rgba(15, 23, 42, 0.08);
    }

    .method-card.method-tone-1 {
        border-left: 4px solid #3b82f6;
        background: linear-gradient(145deg, #eef6ff 0%, #f8fbff 100%);
    }

    .method-card.method-tone-2 {
        border-left: 4px solid #22c55e;
        background: linear-gradient(145deg, #f0fff4 0%, #f8fdf9 100%);
    }

    .method-card.method-tone-3 {
        border-left: 4px solid #f97316;
        background: linear-gradient(145deg, #fff5ed 0%, #fffaf6 100%);
    }

    .method-card.method-tone-4 {
        border-left: 4px solid #8b5cf6;
        background: linear-gradient(145deg, #f6f1ff 0%, #fbf9ff 100%);
    }

    .method-card h6 {
        margin: 0 0 6px 0;
        font-weight: 800;
        color: #111827;
    }

    .method-header-row {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 8px;
    }

    .method-weight-label {
        color: #5d6773;
        font-size: 0.78rem;
        font-weight: 700;
    }

    .method-card p {
        margin: 6px 0 0;
        color: #4b5563;
        font-size: 0.82rem;
    }

    .breakdown-stats-row {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 10px;
        margin-top: 10px;
    }

    .breakdown-stat {
        border: 1px solid #e5e7eb;
        border-radius: 10px;
        background: #fff;
        padding: 8px 10px;
    }

    .breakdown-stat .label {
        color: #6b7280;
        font-size: 0.8rem;
    }

    .breakdown-stat .value {
        color: #111827;
        font-weight: 800;
        font-size: 1.1rem;
    }

    .prediction-interact-bar {
        margin: 8px 0 10px;
        border: 1px dashed #c9d3e4;
        border-radius: 10px;
        background: linear-gradient(90deg, #f8fbff 0%, #fffdf1 100%);
        color: #41526c;
        font-size: 0.83rem;
        font-weight: 700;
        padding: 8px 10px;
        transition: border-color 0.18s ease, box-shadow 0.18s ease;
    }

    .prediction-interact-bar.active {
        border-color: #38bdf8;
        box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.12);
    }

    .most-drawn-row {
        margin-top: 10px;
        border: 1px solid #e5e7eb;
        border-radius: 10px;
        background: linear-gradient(180deg, #ffffff 0%, #f9fbff 100%);
        padding: 10px;
    }

    .most-drawn-title {
        font-size: 0.84rem;
        color: #6b7280;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.04em;
        margin-bottom: 6px;
    }

    @media (max-width: 991px) {
        .method-grid {
            grid-template-columns: 1fr;
        }

        .breakdown-stats-row {
            grid-template-columns: 1fr;
        }
    }

    .web-breakdown-shell .lottery-ball-horizontal {
        background: #ffe11d;
        color: #1f2937;
        border: 1px solid #d9d9d9;
        box-shadow: 0 4px 9px rgba(17, 24, 39, 0.12);
        transition: transform 0.16s ease, box-shadow 0.16s ease, filter 0.16s ease;
        cursor: pointer;
    }

    .web-breakdown-shell .lottery-ball-horizontal:hover,
    .web-breakdown-shell .breakdown-bonus-ball:hover {
        transform: translateY(-1px) scale(1.04);
        box-shadow: 0 10px 16px rgba(17, 24, 39, 0.17);
    }

    .web-breakdown-shell .lottery-ball-horizontal.ball-red {
        background: #ef4444;
        color: #fff;
    }

    .web-breakdown-shell .lottery-ball-horizontal.ball-yellow {
        background: #fde047;
    }

    .web-breakdown-shell .lottery-ball-horizontal.ball-green {
        background: #22c55e;
        color: #fff;
    }

    .web-breakdown-shell .lottery-ball-horizontal.ball-blue {
        background: #38bdf8;
        color: #fff;
    }

    .web-breakdown-shell .lottery-ball-horizontal.ball-pink {
        background: #f43f5e;
        color: #fff;
    }

    .web-breakdown-shell .lottery-ball-horizontal.ball-indigo {
        background: #6366f1;
        color: #fff;
    }

    .web-breakdown-shell .lottery-ball-horizontal.ball-slate {
        background: #64748b;
        color: #fff;
    }

    .breakdown-bonus-ball {
        width: 35px;
        height: 35px;
        border-radius: 50%;
        background: #67c6ed;
        color: #1f2937;
        border: 1px solid #d9d9d9;
        box-shadow: 0 4px 9px rgba(17, 24, 39, 0.12);
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-weight: 800;
        font-size: 0.9rem;
        cursor: pointer;
    }

    .engine-notes-row {
        margin-top: 10px;
        border: 1px solid #e5e7eb;
        border-radius: 10px;
        background: #fff;
        padding: 10px;
    }

    .ball-match {
        outline: 3px solid rgba(16, 185, 129, 0.65);
        outline-offset: 2px;
        filter: saturate(1.15);
    }

    .ball-active {
        outline: 3px solid rgba(59, 130, 246, 0.85);
        outline-offset: 2px;
        transform: scale(1.06);
    }

    .breakdown-top-grid {
        display: grid;
        grid-template-columns: minmax(0, 1.2fr) minmax(340px, 0.8fr);
        gap: 18px;
        align-items: start;
        margin-bottom: 0;
    }

    .breakdown-left-column {
        display: flex;
        flex-direction: column;
        gap: 14px;
    }

    .builder-preview-card {
        border: 1px solid #e5e7eb;
        border-radius: 20px;
        background: linear-gradient(180deg, #fffef1 0%, #fff9d6 100%);
        padding: 18px;
        display: flex;
        flex-direction: column;
        gap: 14px;
        box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
    }

    .builder-preview-header h4 {
        margin: 0;
        font-size: 1.5rem;
        font-weight: 800;
        color: #1f2937;
    }

    .builder-preview-header p {
        margin: 6px 0 0;
        color: #5d6773;
        font-weight: 600;
    }

    .builder-form-grid {
        display: grid;
        gap: 12px;
    }

    .builder-field label {
        display: block;
        font-size: 0.85rem;
        font-weight: 800;
        color: #1f2937;
        margin-bottom: 6px;
    }

    .builder-field select {
        width: 100%;
        border: 1px solid #d1d5db;
        border-radius: 14px;
        padding: 12px 14px;
        font-weight: 600;
        color: #1f2937;
        background: #fff;
    }

    .builder-helper-copy {
        margin: -4px 0 0;
        color: #5d6773;
        font-size: 0.92rem;
        font-weight: 600;
        line-height: 1.45;
    }

    .builder-chip-row {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
    }

    .builder-chip {
        border: 1px solid #d1d5db;
        border-radius: 999px;
        padding: 8px 12px;
        background: #fff;
        color: #1f2937;
        font-weight: 700;
        cursor: pointer;
        transition: all 0.18s ease;
        user-select: none;
    }

    .builder-chip.active {
        background: #ffef8b;
        border-color: #d3bf29;
        box-shadow: 0 2px 10px rgba(211, 191, 41, 0.18);
    }

    .builder-summary-card {
        border: 1px solid #d3bf29;
        border-radius: 16px;
        background: rgba(255, 255, 255, 0.6);
        padding: 14px;
    }

    .builder-summary-title {
        margin: 0 0 8px;
        color: #1f2937;
        font-size: 1.25rem;
        font-weight: 900;
    }

    .builder-summary-lead {
        margin: 0 0 12px;
        color: #1f2937;
        font-size: 1rem;
        font-weight: 700;
        line-height: 1.4;
    }

    .builder-summary-line {
        color: #1f2937;
        font-size: 0.98rem;
        line-height: 1.45;
        margin: 4px 0;
    }

    .builder-summary-line strong {
        font-weight: 800;
    }

    .builder-preview-note {
        margin: 0;
        color: #5d6773;
        font-size: 0.92rem;
        font-weight: 600;
    }

    .builder-action-btn {
        width: 100%;
        border: none;
        border-radius: 16px;
        padding: 14px 18px;
        background: linear-gradient(135deg, #2f6fdb 0%, #1d4ed8 100%);
        color: #fff;
        font-size: 1rem;
        font-weight: 800;
        box-shadow: 0 10px 24px rgba(47, 111, 219, 0.2);
        transition: transform 0.18s ease, box-shadow 0.18s ease;
        cursor: pointer;
    }

    .builder-action-btn:hover {
        transform: translateY(-1px);
        box-shadow: 0 12px 28px rgba(47, 111, 219, 0.28);
    }

    .builder-action-btn:active {
        transform: translateY(0);
    }

    .builder-action-btn i {
        margin-right: 8px;
    }

    .builder-results {
        display: none;
        flex-direction: column;
        gap: 12px;
        margin-top: 18px;
    }

    .builder-results.active {
        display: flex;
    }

    .builder-results-title {
        margin: 0;
        color: #1f2937;
        font-size: 1.1rem;
        font-weight: 900;
    }

    .builder-result-card {
        border: 1px solid #d1d5db;
        border-radius: 16px;
        background: #fff;
        padding: 14px;
        box-shadow: 0 4px 12px rgba(15, 23, 42, 0.05);
    }

    .builder-results-grid {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .builder-result-top {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        gap: 12px;
        margin-bottom: 8px;
    }

    .builder-result-top h6 {
        margin: 0;
        font-size: 1rem;
        font-weight: 900;
        color: #1f2937;
    }

    .builder-result-sub {
        margin-top: 4px;
        color: #5d6773;
        font-size: 0.9rem;
        font-weight: 600;
    }

    .builder-badge-row {
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
        margin-bottom: 10px;
    }

    .builder-badge {
        display: inline-flex;
        align-items: center;
        padding: 5px 10px;
        border-radius: 999px;
        background: #fff9d6;
        border: 1px solid #d3bf29;
        color: #1f2937;
        font-size: 0.8rem;
        font-weight: 800;
    }

    .builder-result-meta {
        margin-top: 8px;
        color: #5d6773;
        font-size: 0.92rem;
        font-weight: 600;
        line-height: 1.45;
    }

    @media (max-width: 991.98px) {
        .breakdown-top-grid {
            grid-template-columns: 1fr;
        }

        .builder-results-grid {
            grid-template-columns: 1fr;
        }
    }
