.lottery-ball {
    width: 28px;
    height: 28px;
    min-width: 28px;
    min-height: 28px;
    max-width: 28px;
    max-height: 28px;
    border-radius: 50%;
    background-color: var(--sl-red);
    color: white;
    margin: 2px 1px;
    border: none;
    box-shadow: none;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    font-weight: bold;
    font-size: 12px;
    box-sizing: border-box;
    flex-shrink: 0;
    text-align: center;
    line-height: 28px;
}

.lottery-ball .frequency {
    position: absolute;
    bottom: 10%;
    left: 50%;
    transform: translateX(-50%);
    font-size: 9px;
    font-weight: normal;
    text-align: center;
    line-height: 1;
    margin: 0;
    padding: 0;
    width: 100%;
    white-space: nowrap;
}

.lottery-ball-sm {
    width: 26px;
    height: 26px;
    min-width: 26px;
    min-height: 26px;
    max-width: 26px;
    max-height: 26px;
    font-size: 12px;
    margin: 0 2px 2px 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
}

.lottery-ball-xs {
    width: 20px;
    height: 20px;
    min-width: 20px;
    min-height: 20px;
    max-width: 20px;
    max-height: 20px;
    font-size: 10px;
    margin: 2px 1px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: var(--sl-red);
    color: white;
    border: none;
    box-shadow: none;
    padding: 0;
    white-space: nowrap;
    font-weight: bold;
    box-sizing: border-box;
    flex-shrink: 0;
    text-align: center;
    line-height: 1;
}

.lottery-ball-lg {
    width: 50px;
    height: 50px;
    font-size: 20px;
    white-space: nowrap;
}

.lottery-ball-red {
    background-color: var(--sl-red);
    color: white !important;
}

.lottery-ball-yellow {
    background-color: var(--sl-yellow);
    color: var(--sl-dark) !important;
}

.lottery-ball-green {
    background-color: var(--sl-green);
    color: white !important;
}

.lottery-ball-blue {
    background-color: var(--sl-blue);
    color: var(--sl-dark) !important;
}

/* gradient version wins over simple version */
.lottery-ball-bonus {
    position: relative;
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    border: 2px solid #f39c12;
    color: #8b4513;
    font-weight: bold;
}

.lottery-ball-bonus::after {
    content: '';
    position: absolute;
    top: -3px;
    right: -3px;
    width: 10px;
    height: 10px;
    background-color: var(--sl-red);
    border-radius: 50%;
    border: 1px solid white;
}

.ticket-scanner .lottery-ball {
    width: 40px;
    height: 40px;
    min-width: 40px;
    min-height: 40px;
    max-width: 40px;
    max-height: 40px;
    font-size: 16px;
    margin: 0 3px 6px 0;
}

#winning-numbers-for-games .lottery-ball {
    width: 40px;
    height: 40px;
    min-width: 40px;
    min-height: 40px;
    max-width: 40px;
    max-height: 40px;
    font-size: 16px;
    margin: 0 3px 6px 0;
}

.lottery-plus-sign {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0 10px;
    font-size: 28px;
    font-weight: bold;
    color: #333;
    vertical-align: middle;
    height: 58px;
    line-height: 1;
}

.bonus-indicator {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    font-weight: bold;
    color: var(--sl-dark);
}

.game-type-badge {
    display: inline-block !important;
    padding: 3px 8px !important;
    border-radius: 3px !important;
    font-weight: bold !important;
    font-size: 0.75rem !important;
    text-transform: uppercase !important;
    margin-right: 5px !important;
}

.game-type-lottery {
    background-color: #E03237 !important;
    color: white !important;
}

.game-type-powerball {
    background-color: #FFE11D !important;
    color: #333 !important;
}

span.game-type-badge.game-type-powerball,
.game-type-badge.game-type-powerball {
    background-color: #FFE11D !important;
    color: #333 !important;
    border: 1px solid #E6CC00 !important;
}

.game-type-daily {
    background-color: #19A03A !important;
    color: white !important;
}

.game-type-daily-plus {
    background-color: #0D7A26 !important;
    color: white !important;
}

.numbers-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
}

.lottery-ball-container {
    width: 26px;
    text-align: center;
    display: inline-block;
    margin: 0 2px 4px;
}

.main-numbers {
    margin-bottom: 15px;
}

.bonus-numbers {
    padding-top: 15px;
    border-top: 2px dashed #dee2e6;
}

.financial-info-card {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    padding: 12px;
    text-align: center;
    height: 100%;
    transition: all 0.3s ease;
}

.financial-info-card:hover {
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transform: translateY(-1px);
}

.financial-info-card.compact {
    padding: 8px;
    margin-bottom: 8px;
    min-height: 65px;
}

.financial-label {
    font-size: 11px;
    color: #6c757d;
    font-weight: 500;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.2;
}

.financial-value {
    font-size: 14px;
    font-weight: bold;
    color: #28a745;
    margin: 0;
    line-height: 1.3;
}

.financial-info-card.compact .financial-value {
    font-size: 13px;
}

.stat-box {
    padding: 8px;
    text-align: center;
}

.stat-number {
    font-size: 24px;
    font-weight: bold;
    color: #007bff;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 12px;
    color: #6c757d;
    text-transform: uppercase;
    font-weight: 500;
}

.match-indicator {
    position: absolute;
    top: -5px;
    right: -5px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background-color: #00c800;
    color: white;
    font-size: 12px;
    font-weight: bold;
    line-height: 18px;
    text-align: center;
    z-index: 100;
    box-shadow: 0 0 3px rgba(0, 0, 0, 0.7);
    border: 2px solid white;
    pointer-events: none;
    font-family: Arial, sans-serif;
}

.match-powerball {
    background-color: #25a244;
}

.match-powerball-plus {
    background-color: #1a98c5;
}

.match-lottery-plus-1 {
    background-color: #8a2be2;
}

.match-lottery-plus-2 {
    background-color: #ff7f00;
}

.match-powerball-bonus {
    background-color: #008000;
}

.match-powerball-plus-bonus {
    background-color: #0070c0;
}

.match-lottery-plus-1-bonus {
    background-color: #6a1b9a;
}

.match-lottery-plus-2-bonus {
    background-color: #e65100;
}

#ticket-numbers .mb-3 {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 1rem !important;
}

#results-container {
    transition: opacity 0.5s ease;
    margin-top: 1.5rem;
}

#ticket-numbers {
    transition: opacity 0.3s ease;
}

#success-content {
    display: none;
}

#success-content.show,
#success-content:not(.d-none) {
    display: block;
}

.ticket-info-row {
    display: flex;
    flex-wrap: wrap;
}

.ticket-info-row .col-sm-4 {
    margin-bottom: 0.5rem;
}

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid var(--sl-light);
    border-top: 5px solid var(--sl-red);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.loading-text {
    color: white;
    margin-top: 20px;
    text-align: center;
}

.progress-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.progress-container {
    width: 80%;
    max-width: 600px;
    background-color: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
    text-align: center;
}

.progress-title {
    margin-bottom: 15px;
    color: var(--sl-dark);
}

.progress-bar-container {
    height: 20px;
    background-color: #f0f0f0;
    border-radius: 10px;
    margin-bottom: 15px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background-color: var(--sl-red);
    border-radius: 10px;
    width: 0;
    transition: width 0.3s ease;
}

.progress-text {
    font-size: 14px;
    color: var(--sl-dark);
    text-align: center;
    margin-bottom: 10px;
}

.progress-stats {
    font-size: 12px;
    color: #777;
}

.screenshot-thumbnail {
    max-width: 150px;
    max-height: 100px;
    cursor: pointer;
    border: 1px solid #ddd;
    padding: 2px;
    border-radius: 3px;
}

.image-preview-modal .modal-dialog {
    max-width: 90%;
}

.gallery-card {
    transition: box-shadow 0.3s ease;
    border: 1px solid rgba(0,0,0,0.125);
}

.gallery-card:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.gallery-image-container {
    height: 200px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f8f9fa;
}

.gallery-image-container img {
    object-fit: contain;
    max-height: 100%;
    width: 100%;
}

.gallery-card .card-body {
    padding: 1rem;
    height: 100%;
}

.gallery-card .card-title {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.gallery-card .btn {
    transition: all 0.2s ease;
}

.info-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.info-item {
    display: flex;
    flex-direction: column;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}

.info-item:last-child {
    border-bottom: none;
}

.info-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: #6c757d;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-value {
    font-size: 1rem;
    color: #212529;
    font-weight: 500;
}

.numbers-container {
    text-align: center;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    gap: 15px;
    text-align: center;
}

.stat-item {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 15px 10px;
    transition: all 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.stat-value {
    font-size: 1.5rem;
    font-weight: bold;
    color: #007bff;
    line-height: 1;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 0.75rem;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.divisions-summary {
    font-size: 0.9rem;
}

.division-row {
    display: flex;
    justify-content: space-between;
    padding: 3px 0;
    border-bottom: 1px dotted #eee;
}

.division-name {
    font-weight: 600;
}

.division-prize {
    color: var(--sl-red);
    font-weight: 600;
}

.slogan-banner {
    background-color: var(--sl-yellow);
    padding: 5px 15px;
    border-radius: 20px;
    display: inline-block;
    transform: rotate(-2deg);
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.1);
}

.slogan-text {
    color: var(--sl-dark);
    font-weight: bold;
    text-shadow: 1px 1px 1px rgba(255, 255, 255, 0.7);
}

.heatmap-ball {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin: 4px;
    border-radius: 50%;
    font-weight: bold;
    background-color: rgba(255, 255, 255, 0.8);
    border: 2px solid rgba(200, 200, 200, 1);
    transition: background-color 0.3s, transform 0.2s;
    cursor: pointer;
}

.heatmap-ball:hover {
    transform: scale(1.1);
}

.heatmap-color {
    width: 15px;
    height: 15px;
    border-radius: 50%;
}

.data-analytics-preview {
    overflow: visible !important;
    position: relative;
    z-index: 100;
    isolation: isolate;
    height: auto !important;
}

.data-analytics-preview .chart-card {
    height: 350px;
    margin-bottom: 20px;
    background-color: #fff;
    padding: 10px;
    border-radius: 5px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    overflow: visible;
}

.chart-card {
    background-color: #fff;
    padding: 8px;
    border-radius: 5px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    margin-bottom: 20px;
    height: 350px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 10;
}

.data-analytics-preview .flex-container {
    display: flex;
    flex-wrap: nowrap;
    align-items: flex-start;
    justify-content: space-between;
    width: 100%;
}

.data-analytics-preview .frequency-chart-container {
    width: 100%;
    height: 320px;
    margin-top: -15px;
    margin-bottom: -5px;
    flex: 1;
    overflow: visible;
    padding: 0;
    position: relative;
    z-index: 20;
}

.data-analytics-preview .bar-chart-container {
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
}

.data-analytics-preview .frequency-chart {
    width: 100% !important;
    margin: 0 !important;
    padding-left: 10px !important;
    padding-right: 0 !important;
    justify-content: flex-start !important;
}

.data-analytics-preview .temperature-chart-container {
    width: 100%;
    height: 280px;
}

.data-analytics-preview .chart-legend-container {
    display: flex;
    align-items: center;
    margin-top: 10px;
}

.data-analytics-preview .pie-chart-container {
    width: 140px;
    height: 140px;
}

.data-analytics-preview svg {
    width: 100%;
    height: 100%;
}

.data-analytics-preview .legend-container {
    display: flex;
    flex-direction: column;
    margin-left: 10px;
    margin-top: 15px;
}

.data-analytics-preview .legend-item {
    margin-right: 8px;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    font-size: 11px;
}

.data-analytics-preview .legend-color {
    display: inline-block;
    width: 10px;
    height: 10px;
    margin-right: 3px;
}

.data-analytics-preview .legend-color-d1 {
    background-color: #e03237;
}

.data-analytics-preview .legend-color-d2 {
    background-color: #ffe11d;
}

.data-analytics-preview .legend-color-d3 {
    background-color: #19a03a;
}

.data-analytics-preview .legend-color-d4 {
    background-color: #67c6ed;
}

.data-analytics-preview .legend-color-d5 {
    background-color: #adb5bd;
}

.data-analytics-preview .legend-color-red {
    background-color: #e03237;
}

.data-analytics-preview .legend-color-yellow {
    background-color: #ffe11d;
}

.data-analytics-preview .legend-color-green {
    background-color: #19a03a;
}

.data-analytics-preview .legend-color-blue {
    background-color: #67c6ed;
}

.data-analytics-preview .legend-color-default {
    background-color: #adb5bd;
}

.hot-cold-container {
    display: block !important;
    height: auto !important;
    overflow: visible !important;
    padding-bottom: 2px;
    transform-origin: top center;
    position: relative;
    z-index: 5;
}

.hot-numbers, .cold-numbers, .absent-numbers {
    padding: 0;
    margin-bottom: 15px !important;
    position: relative;
    z-index: 3;
    overflow: visible !important;
    display: block !important;
}

.hot-numbers h5, .cold-numbers h5, .absent-numbers h5 {
    font-size: 0.88rem;
    margin: 0 0 10px 0;
    padding: 5px 0;
    position: relative;
    z-index: 10;
    background-color: transparent;
    clear: both;
}

.hot-numbers h6, .cold-numbers h6, .absent-numbers h6 {
    margin-bottom: 8px !important;
    font-size: 0.9rem;
}

.hot-number-item, .cold-number-item, .absent-number-item {
    display: inline-flex !important;
    flex-direction: column !important;
    align-items: center !important;
    margin: 0 5px 10px 0 !important;
    padding: 0 !important;
    transform-origin: center top;
    position: relative !important;
    z-index: 2 !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.hot-number-item .lottery-ball,
.cold-number-item .lottery-ball,
.absent-number-item .lottery-ball {
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    min-height: 40px !important;
    max-width: 40px !important;
    max-height: 40px !important;
    font-size: 16px !important;
    font-weight: bold !important;
    line-height: 1 !important;
    position: relative;
    z-index: 1;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 50% !important;
    margin: 0 5px 10px 0 !important;
}

.hot-number-item .lottery-ball .number,
.cold-number-item .lottery-ball .number,
.absent-number-item .lottery-ball .number {
    font-size: 16px !important;
    font-weight: bold !important;
    line-height: 40px !important;
    position: relative;
    z-index: 2;
}

.frequency-label {
    font-size: 0.65rem;
    color: #6c757d;
    margin-top: 1px;
    padding: 0;
    line-height: 0.9;
    position: relative;
    z-index: 1;
}

.data-analytics-preview .chart-card h5 {
    margin-bottom: 2px;
    margin-top: 0;
}

.bar-chart-container {
    width: 100%;
    overflow-x: hidden;
    margin: 0 auto;
}

.frequency-chart {
    display: flex !important;
    align-items: end !important;
    justify-content: center !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 10px 5px !important;
    box-sizing: border-box !important;
}

.bar-column {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex-shrink: 0;
}

.interactive-bar-container {
    display: flex !important;
    align-items: flex-end !important;
    height: 170px !important;
}

.interactive-bar {
    border-radius: 4px !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1) !important;
    transition: transform 0.2s !important;
}

.number-label {
    font-size: 12px;
    font-weight: bold;
    color: #333;
    margin-top: 4px;
    white-space: nowrap;
}

.frequency-legend {
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center !important;
}

.ball-matched {
    position: relative;
}

.border-glow {
    box-shadow: 0 0 15px rgba(255, 255, 0, 0.8), 0 0 5px rgba(255, 215, 0, 0.9);
    animation: pulse-matched 1.5s infinite;
    transform: scale(1.1);
    z-index: 2;
    position: relative;
    border: 2px solid gold !important;
}

.predicted-numbers-display {
    margin: 8px 0;
    padding: 8px 0;
    border-top: 1px solid #e9ecef;
}

.predicted-label, .matched-label {
    font-weight: 600;
    color: #495057;
    font-size: 0.9rem;
    margin-right: 8px;
}

.predicted-ball-small, .matched-ball-small {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    font-size: 11px;
    font-weight: bold;
    margin: 0 3px 2px 0;
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    background-color: #6c757d;
    color: white;
}

.predicted-ball-small.matched {
    background-color: #28a745;
    border: 2px solid #1e7e34;
    box-shadow: 0 2px 4px rgba(40, 167, 69, 0.3);
    animation: subtle-pulse 2s infinite;
}

.matched-ball-small {
    background-color: #28a745;
    border: 2px solid #1e7e34;
    color: white;
}

.check-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
    color: rgba(0, 0, 0, 0.6);
    font-size: 1rem;
    pointer-events: none;
    text-shadow: 0 0 2px white;
}

.lottery-ball-red .check-overlay,
.lottery-ball-green .check-overlay {
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 0 2px black;
}

.check-overlay::before {
    content: '';
    position: absolute;
    width: 15px;
    height: 15px;
    background-color: rgba(255, 255, 255, 0.7);
    border-radius: 50%;
    z-index: -1;
}

.pulse-btn {
    animation: pulse-button 2s infinite;
}

.fa-sync.spinning {
    animation: spin 1s linear infinite;
}

.latest-results-table {
    margin-bottom: 0 !important;
    border-spacing: 0 !important;
    border-collapse: separate !important;
}

.latest-results-table tbody tr:last-child {
    border-bottom: none !important;
}

.latest-results-table tbody tr:last-child td {
    border-bottom: none !important;
    padding-bottom: 8px !important;
}

.results-body .table-responsive {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

.results-body .table-responsive::after {
    display: none !important;
}

.latest-results-table tr {
    line-height: 1.2 !important;
}

.latest-results-table td {
    padding: 6px 2px !important;
    vertical-align: middle !important;
}

.latest-results-table tbody tr:nth-child(6) {
    margin-bottom: 0 !important;
}

.latest-results-table tbody tr:nth-child(6) td {
    padding-bottom: 6px !important;
}

@keyframes pulse-button {
    0% {
        box-shadow: 0 0 0 0 rgba(25, 160, 58, 0.7);
        transform: scale(1);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(25, 160, 58, 0);
        transform: scale(1.05);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(25, 160, 58, 0);
        transform: scale(1);
    }
}

@keyframes subtle-pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

@keyframes pulse-matched {
    0% {
        box-shadow: 0 0 10px gold, 0 0 5px yellow;
    }
    50% {
        box-shadow: 0 0 20px gold, 0 0 10px yellow, 0 0 30px rgba(255, 215, 0, 0.5);
        transform: scale(1.15);
    }
    100% {
        box-shadow: 0 0 10px gold, 0 0 5px yellow;
    }
}

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

@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; visibility: hidden; }
}
