/**
 * Results Module - Premium CSS
 * Mobile-First Design
 */

/* ===========================================
   CSS Variables
   =========================================== */
:root {
    --results-bg: var(--color-bg-primary);
    --results-surface: var(--color-bg-card);
    --results-surface-2: var(--color-bg-card-hover);
    --results-border: var(--color-border);
    --results-text: var(--color-text-primary);
    --results-text-muted: var(--color-text-secondary);
    --results-primary: #8b5cf6;
    --results-primary-light: #a78bfa;
    --results-gold: #fbbf24;
    --results-gold-light: #fcd34d;
    --results-success: #10b981;
    --results-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --results-gradient-gold: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    --card-shadow: var(--shadow-lg);
    --card-shadow-hover: var(--shadow-xl);
}

/* ===========================================
   Breadcrumbs
   =========================================== */
.breadcrumbs {
    background: var(--results-surface);
    padding: 12px 0;
    border-bottom: 1px solid var(--results-border);
}

.breadcrumb-list {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 0.85rem;
}

.breadcrumb-item a {
    color: var(--results-text-muted);
    text-decoration: none;
    transition: color 0.2s;
}

.breadcrumb-item a:hover {
    color: var(--results-primary-light);
}

.breadcrumb-item .current {
    color: var(--results-text);
    font-weight: 500;
}

.breadcrumb-item:not(:last-child)::after {
    content: '/';
    margin-left: 8px;
    color: var(--results-border);
}

/* ===========================================
   Hero Section
   =========================================== */
.results-hero {
    background: var(--results-gradient);
    padding: 40px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.results-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    color: white;
    margin-bottom: 12px;
}

.hero-badge i {
    color: var(--results-gold);
}

.archive-badge i {
    color: var(--results-primary-light);
}

.hero-title {
    font-size: clamp(1.8rem, 5vw, 3rem);
    font-weight: 800;
    color: white;
    margin: 0 0 8px 0;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.hero-date {
    font-size: clamp(1rem, 3vw, 1.3rem);
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
}

/* Lottery Hero Specific */
.lottery-hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.hero-logo-img {
    width: 80px;
    height: 80px;
    border-radius: 16px;
    object-fit: cover;
    border: 3px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.hero-logo-placeholder {
    width: 80px;
    height: 80px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
}

@media (min-width: 768px) {
    .lottery-hero-content {
        flex-direction: row;
        justify-content: center;
        gap: 24px;
    }

    .lottery-hero-info {
        text-align: left;
    }
}

/* ===========================================
   Day Navigation
   =========================================== */
.day-navigation {
    background: var(--results-surface);
    padding: 16px 0;
    border-bottom: 1px solid var(--results-border);
}

.day-nav-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.day-nav-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: var(--results-surface-2);
    border-radius: 10px;
    text-decoration: none;
    color: var(--results-text);
    transition: all 0.2s;
    min-width: 120px;
}

.day-nav-btn:hover {
    background: var(--results-primary);
    transform: translateY(-2px);
}

.day-nav-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.day-nav-btn i {
    font-size: 1.2rem;
}

.day-nav-text {
    display: flex;
    flex-direction: column;
}

.day-nav-text small {
    font-size: 0.7rem;
    color: var(--results-text-muted);
}

.day-nav-text strong {
    font-size: 0.85rem;
}

.day-nav-btn.next {
    text-align: right;
}

.day-nav-current {
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn-today {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: var(--results-primary);
    border-radius: 8px;
    color: white;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.85rem;
    transition: all 0.2s;
}

.btn-today:hover,
.btn-today.active {
    background: var(--results-gold);
    color: #1a1a1a;
}

.date-picker {
    padding: 8px 12px;
    background: var(--results-surface-2);
    border: 1px solid var(--results-border);
    border-radius: 8px;
    color: var(--results-text);
    font-size: 0.85rem;
    cursor: pointer;
}

.date-picker::-webkit-calendar-picker-indicator {
    filter: invert(1);
}

/* ===========================================
   Filters Section
   =========================================== */
.results-filters {
    background: var(--results-surface);
    padding: 16px 0;
    border-bottom: 1px solid var(--results-border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.filters-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.filter-label {
    font-size: 0.85rem;
    color: var(--results-text-muted);
    font-weight: 500;
}

.filter-pills {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.filter-pill {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: var(--results-surface-2);
    border: 1px solid var(--results-border);
    border-radius: 20px;
    color: var(--results-text-muted);
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s;
}

.filter-pill:hover {
    border-color: var(--results-primary);
    color: var(--results-text);
}

.filter-pill.active {
    background: var(--results-primary);
    border-color: var(--results-primary);
    color: white;
}

.filter-count {
    font-size: 0.85rem;
    color: var(--results-text-muted);
}

.filter-count span {
    font-weight: 600;
    color: var(--results-primary-light);
}

/* ===========================================
   Results Grid
   =========================================== */
.results-main {
    padding: 24px 0;
    min-height: 400px;
}

.results-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

@media (min-width: 576px) {
    .results-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 992px) {
    .results-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1200px) {
    .results-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* ===========================================
   Result Card
   =========================================== */
.result-card {
    display: flex;
    flex-direction: column;
    background: var(--results-surface);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--results-border);
    box-shadow: var(--card-shadow);
    transition: all 0.3s ease;
}

.result-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--card-shadow-hover);
    border-color: var(--results-primary);
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    background: var(--results-surface-2);
    border-bottom: 1px solid var(--results-border);
}

.lottery-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.lottery-logo {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    object-fit: cover;
}

.lottery-logo-placeholder {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--results-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    color: white;
}

.lottery-details {
    display: flex;
    flex-direction: column;
}

.lottery-name {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--results-text);
}

.lottery-shift {
    font-size: 0.75rem;
    color: var(--results-text-muted);
    display: flex;
    align-items: center;
    gap: 4px;
}

.draw-type-badge {
    padding: 4px 10px;
    background: var(--results-primary);
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
    color: white;
    text-transform: uppercase;
}

/* Card Body - Winning Number */
.card-body {
    padding: 20px 16px;
    flex: 1;
}

.winning-number-container {
    text-align: center;
}

.winning-label {
    display: block;
    font-size: 0.75rem;
    color: var(--results-text-muted);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.winning-number {
    display: flex;
    justify-content: center;
    gap: 4px;
}

.digit {
    display: flex;
    align-items: center;
    justify-content: center;
    width: clamp(28px, 8vw, 38px);
    height: clamp(35px, 10vw, 45px);
    background: var(--results-gradient-gold);
    border-radius: 8px;
    font-size: clamp(1rem, 4vw, 1.4rem);
    font-weight: 800;
    color: #1a1a1a;
    box-shadow: 0 2px 10px rgba(251, 191, 36, 0.3);
}

/* All Draws Container (A, B, C) */
.all-draws {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.draw-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.draw-type-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: var(--results-primary);
    border-radius: 50%;
    font-size: 0.7rem;
    font-weight: 700;
    color: white;
    text-transform: uppercase;
}

.draw-item:nth-child(2) .draw-type-label {
    background: var(--results-success);
}

.draw-item:nth-child(3) .draw-type-label {
    background: #f59e0b;
}

@media (min-width: 768px) {
    .digit {
        width: clamp(32px, 10vw, 42px);
        height: clamp(40px, 12vw, 50px);
        font-size: clamp(1.1rem, 4vw, 1.5rem);
    }

    .all-draws {
        gap: 16px;
    }
}

/* Animal Info */
.animal-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 12px;
}

.animal-img {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    object-fit: cover;
}

.animal-name {
    font-size: 0.85rem;
    color: var(--results-gold);
    font-weight: 500;
}

/* Card Footer */
.card-footer {
    display: flex;
    gap: 8px;
    padding: 12px 16px;
    border-top: 1px solid var(--results-border);
}

.btn-play,
.btn-history {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s;
}

.btn-play {
    background: var(--results-primary);
    color: white;
}

.btn-play:hover {
    background: var(--results-primary-light);
}

.btn-history {
    background: var(--results-surface-2);
    color: var(--results-text);
    border: 1px solid var(--results-border);
}

.btn-history:hover {
    background: var(--results-surface);
    border-color: var(--results-primary);
}

/* ===========================================
   No Results State
   =========================================== */
.no-results {
    text-align: center;
    padding: 60px 20px;
    background: var(--results-surface);
    border-radius: 16px;
    border: 1px dashed var(--results-border);
}

.no-results-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: var(--results-surface-2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.no-results-icon i {
    font-size: 2.5rem;
    color: var(--results-text-muted);
}

.no-results h2 {
    margin: 0 0 10px;
    font-size: 1.3rem;
    color: var(--results-text);
}

.no-results p {
    margin: 0 0 24px;
    color: var(--results-text-muted);
}

.no-results-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ===========================================
   Latest Result Section (Lottery Page)
   =========================================== */
.latest-result-section {
    padding: 24px 0;
}

.latest-result-card {
    background: var(--results-surface);
    border-radius: 20px;
    overflow: hidden;
    border: 2px solid var(--results-gold);
    box-shadow: 0 8px 40px rgba(251, 191, 36, 0.15);
}

.latest-header {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 20px;
    background: var(--results-surface-2);
    border-bottom: 1px solid var(--results-border);
}

@media (min-width: 576px) {
    .latest-header {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}

.latest-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--results-gradient-gold);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #1a1a1a;
}

.latest-date-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.latest-date {
    font-size: 0.95rem;
    color: var(--results-text);
    font-weight: 500;
}

.latest-time {
    font-size: 0.85rem;
    color: var(--results-text-muted);
}

.latest-body {
    padding: 40px 20px;
}

.winning-number-large {
    text-align: center;
}

.winning-label-large {
    display: block;
    font-size: 0.9rem;
    color: var(--results-text-muted);
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.number-display-large {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.digit-large {
    display: flex;
    align-items: center;
    justify-content: center;
    width: clamp(60px, 15vw, 90px);
    height: clamp(75px, 18vw, 110px);
    background: var(--results-gradient-gold);
    border-radius: 16px;
    font-size: clamp(2rem, 6vw, 3.5rem);
    font-weight: 800;
    color: #1a1a1a;
    box-shadow: 0 8px 30px rgba(251, 191, 36, 0.4);
}

.animal-info-large {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 20px;
}

.animal-img-large {
    width: 48px;
    height: 48px;
    border-radius: 12px;
}

.animal-name-large {
    font-size: 1.1rem;
    color: var(--results-gold);
    font-weight: 600;
}

.draw-type-large {
    display: inline-block;
    margin-top: 20px;
    padding: 6px 20px;
    background: var(--results-primary);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    color: white;
    text-transform: uppercase;
}

.latest-footer {
    padding: 20px;
    background: var(--results-surface-2);
    text-align: center;
}

/* ===========================================
   History Table
   =========================================== */
.history-section {
    padding: 32px 0;
}

.section-header {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 20px;
}

@media (min-width: 576px) {
    .section-header {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}

.section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    font-size: 1.3rem;
    color: var(--results-text);
}

.section-title i {
    color: var(--results-primary);
}

.section-subtitle {
    font-size: 0.85rem;
    color: var(--results-text-muted);
}

.history-table-wrapper {
    background: var(--results-surface);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--results-border);
}

.history-table {
    width: 100%;
    border-collapse: collapse;
}

.history-table th {
    padding: 14px 16px;
    background: var(--results-surface-2);
    text-align: left;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--results-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.history-table td {
    padding: 14px 16px;
    border-top: 1px solid var(--results-border);
}

.history-table tr:hover {
    background: var(--results-surface-2);
}

.history-date a {
    color: var(--results-primary-light);
    text-decoration: none;
    font-weight: 500;
}

.history-date a:hover {
    text-decoration: underline;
}

.history-shift {
    color: var(--results-text);
}

.history-shift small {
    display: block;
    color: var(--results-text-muted);
}

.history-number {
    text-align: center;
}

.history-winning-number {
    display: inline-block;
    padding: 8px 16px;
    background: var(--results-gradient-gold);
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 700;
    color: #1a1a1a;
}

.history-animal {
    display: block;
    margin-top: 4px;
    color: var(--results-text-muted);
    font-size: 0.75rem;
}

.type-badge {
    display: inline-block;
    padding: 4px 10px;
    background: var(--results-primary);
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
    color: white;
}

/* ===========================================
   Quick Dates & Lotteries
   =========================================== */
.quick-dates-section,
.lotteries-section,
.other-lotteries-section {
    padding: 32px 0;
    background: var(--results-surface);
}

.quick-dates-grid {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 8px;
    -webkit-overflow-scrolling: touch;
}

.quick-date-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12px 16px;
    background: var(--results-surface-2);
    border: 1px solid var(--results-border);
    border-radius: 12px;
    text-decoration: none;
    color: var(--results-text);
    transition: all 0.2s;
    min-width: 70px;
}

.quick-date-btn:hover {
    border-color: var(--results-primary);
    background: var(--results-surface);
}

.quick-date-btn.active {
    background: var(--results-primary);
    border-color: var(--results-primary);
}

.quick-date-btn .day-name {
    font-size: 0.75rem;
    color: var(--results-text-muted);
}

.quick-date-btn.active .day-name {
    color: rgba(255, 255, 255, 0.8);
}

.quick-date-btn .day-date {
    font-size: 0.95rem;
    font-weight: 600;
}

.lotteries-quick-grid,
.other-lotteries-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

@media (min-width: 576px) {

    .lotteries-quick-grid,
    .other-lotteries-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (min-width: 768px) {

    .lotteries-quick-grid,
    .other-lotteries-grid {
        grid-template-columns: repeat(6, 1fr);
    }
}

.lottery-quick-card,
.other-lottery-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 16px 12px;
    background: var(--results-surface-2);
    border: 1px solid var(--results-border);
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.2s;
}

.lottery-quick-card:hover,
.other-lottery-card:hover {
    transform: translateY(-4px);
    border-color: var(--results-primary);
    box-shadow: var(--card-shadow);
}

.quick-logo,
.other-logo {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    object-fit: cover;
}

.quick-logo-placeholder,
.other-logo-placeholder {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--results-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 700;
    color: white;
}

.quick-name,
.other-name {
    font-size: 0.75rem;
    color: var(--results-text);
    text-align: center;
}

/* ===========================================
   CTA Section
   =========================================== */
.cta-section {
    padding: 32px 0 48px;
}

.cta-card {
    background: var(--results-gradient);
    border-radius: 20px;
    padding: 32px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -30%;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.cta-content {
    position: relative;
    z-index: 1;
}

.cta-content h2 {
    margin: 0 0 8px;
    font-size: 1.5rem;
    color: white;
}

.cta-content p {
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
}

.cta-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.btn-cta-primary,
.btn-cta-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 24px;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
}

.btn-cta-primary {
    background: white;
    color: #764ba2;
}

.btn-cta-primary:hover {
    background: var(--results-gold);
    color: #1a1a1a;
    transform: translateY(-2px);
}

.btn-cta-secondary {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-cta-secondary:hover {
    background: rgba(255, 255, 255, 0.3);
}

@media (min-width: 768px) {
    .cta-card {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
        padding: 40px;
    }
}

/* ===========================================
   Utility Classes
   =========================================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--results-primary);
    color: white;
}

.btn-primary:hover {
    background: var(--results-primary-light);
}

.btn-outline {
    background: transparent;
    color: var(--results-text);
    border: 1px solid var(--results-border);
}

.btn-outline:hover {
    border-color: var(--results-primary);
    color: var(--results-primary-light);
}

.btn-lg {
    padding: 16px 32px;
    font-size: 1rem;
}

/* ===========================================
   Smart Filters Bar
   =========================================== */
.smart-filters-bar {
    background: var(--results-surface);
    padding: 16px 0;
    border-bottom: 1px solid var(--results-border);
    transition: all 0.3s ease;
}

.smart-filters-bar.sticky {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.filters-container {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.filter-search {
    position: relative;
    flex: 1;
    min-width: 200px;
    max-width: 300px;
}

.filter-search i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--results-text-muted);
}

.filter-input {
    width: 100%;
    padding: 10px 12px 10px 38px;
    background: var(--results-surface-2);
    border: 1px solid var(--results-border);
    border-radius: 10px;
    color: var(--results-text);
    font-size: 0.9rem;
    transition: all 0.2s;
}

.filter-input::placeholder {
    color: var(--results-text-muted);
}

.filter-input:focus {
    outline: none;
    border-color: var(--results-primary);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.2);
}

.filter-select {
    min-width: 160px;
}

.filter-dropdown {
    width: 100%;
    padding: 10px 12px;
    background: var(--results-surface-2);
    border: 1px solid var(--results-border);
    border-radius: 10px;
    color: var(--results-text);
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s;
}

.filter-dropdown:focus {
    outline: none;
    border-color: var(--results-primary);
}

.filter-shifts {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.shift-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: var(--results-surface-2);
    border: 1px solid var(--results-border);
    border-radius: 20px;
    color: var(--results-text-muted);
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s;
}

.shift-btn:hover {
    border-color: var(--results-primary);
    color: var(--results-text);
}

.shift-btn.active {
    background: var(--results-primary);
    border-color: var(--results-primary);
    color: white;
}

.shift-btn span {
    display: none;
}

@media (min-width: 768px) {
    .shift-btn span {
        display: inline;
    }
}

.filter-count {
    margin-left: auto;
    font-size: 0.85rem;
    color: var(--results-text-muted);
    white-space: nowrap;
}

.filter-count span {
    font-weight: 600;
    color: var(--results-primary-light);
}

/* ===========================================
   Shift Navigation (Quick Jump)
   =========================================== */
.shift-nav {
    background: var(--results-surface-2);
    padding: 12px 0;
    border-bottom: 1px solid var(--results-border);
}

.shift-nav-items {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
}

.shift-nav-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: var(--results-surface);
    border: 1px solid var(--results-border);
    border-radius: 12px;
    text-decoration: none;
    color: var(--results-text);
    white-space: nowrap;
    transition: all 0.2s;
}

.shift-nav-item:hover {
    border-color: var(--results-primary);
    background: var(--results-primary);
    color: white;
}

.shift-nav-item i {
    color: var(--results-gold);
}

.shift-nav-item:hover i {
    color: white;
}

.shift-nav-name {
    font-weight: 500;
}

.shift-nav-count {
    background: var(--results-primary);
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: 600;
}

.shift-nav-item:hover .shift-nav-count {
    background: rgba(255, 255, 255, 0.2);
}

/* ===========================================
   Shift Sections
   =========================================== */
.shift-section {
    margin-bottom: 32px;
    scroll-margin-top: 80px;
}

.shift-section.hidden {
    display: none;
}

.shift-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: var(--results-surface);
    border-radius: 16px 16px 0 0;
    border: 1px solid var(--results-border);
    border-bottom: none;
    margin-bottom: 0;
}

.shift-title {
    display: flex;
    align-items: center;
    gap: 10px;
}

.shift-title i {
    font-size: 1.3rem;
    color: var(--results-gold);
}

.shift-title h2 {
    margin: 0;
    font-size: 1.2rem;
    color: var(--results-text);
}

.shift-time {
    font-size: 0.8rem;
    color: var(--results-text-muted);
    padding: 4px 10px;
    background: var(--results-surface-2);
    border-radius: 12px;
}

.shift-count {
    font-size: 0.85rem;
    color: var(--results-text-muted);
}

.shift-count .count-num {
    font-weight: 600;
    color: var(--results-primary-light);
}

.shift-section .results-grid {
    background: var(--results-surface-2);
    padding: 16px;
    border-radius: 0 0 16px 16px;
    border: 1px solid var(--results-border);
    border-top: none;
}

.no-results-shift {
    text-align: center;
    padding: 40px 20px;
    background: var(--results-surface-2);
    border-radius: 0 0 16px 16px;
    border: 1px solid var(--results-border);
    border-top: none;
    color: var(--results-text-muted);
}

.no-results-shift i {
    font-size: 2rem;
    margin-bottom: 12px;
    display: block;
}

/* Card hidden state */
.result-card.hidden {
    display: none !important;
}

/* ===========================================
   All Lotteries Section
   =========================================== */
.all-lotteries-section {
    padding: 40px 0;
    background: var(--results-surface);
}

.all-lotteries-section .section-header {
    text-align: center;
    margin-bottom: 24px;
}

.all-lotteries-section .section-title {
    justify-content: center;
    margin-bottom: 8px;
}

.all-lotteries-section .section-subtitle {
    color: var(--results-text-muted);
}

.all-lotteries-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

@media (min-width: 576px) {
    .all-lotteries-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 768px) {
    .all-lotteries-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (min-width: 992px) {
    .all-lotteries-grid {
        grid-template-columns: repeat(6, 1fr);
    }
}

.lottery-card-mini {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 16px 12px;
    background: var(--results-surface-2);
    border: 1px solid var(--results-border);
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.2s;
}

.lottery-card-mini:hover {
    transform: translateY(-4px);
    border-color: var(--results-primary);
    box-shadow: var(--card-shadow);
}

.mini-logo {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    object-fit: cover;
}

.mini-logo-placeholder {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--results-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
    color: white;
}

.mini-info {
    text-align: center;
}

.mini-name {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--results-text);
    margin-bottom: 4px;
}

.mini-action {
    font-size: 0.7rem;
    color: var(--results-primary-light);
}

.mini-action i {
    font-size: 0.65rem;
}

/* ===========================================
   Archive Navigation
   =========================================== */
.archive-nav-section {
    padding: 24px 0;
}

.archive-nav-card {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 24px;
    background: var(--results-surface);
    border: 1px solid var(--results-border);
    border-radius: 16px;
}

@media (min-width: 576px) {
    .archive-nav-card {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}

.archive-nav-content h3 {
    margin: 0 0 4px;
    font-size: 1.1rem;
    color: var(--results-text);
    display: flex;
    align-items: center;
    gap: 8px;
}

.archive-nav-content h3 i {
    color: var(--results-primary);
}

.archive-nav-content p {
    margin: 0;
    font-size: 0.85rem;
    color: var(--results-text-muted);
}

.archive-nav-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.date-picker-input {
    padding: 10px 14px;
    background: var(--results-surface-2);
    border: 1px solid var(--results-border);
    border-radius: 10px;
    color: var(--results-text);
    font-size: 0.9rem;
    cursor: pointer;
}

.date-picker-input::-webkit-calendar-picker-indicator {
    filter: invert(1);
    cursor: pointer;
}

/* ===========================================
   No Results Global
   =========================================== */
.no-results-global {
    text-align: center;
    padding: 80px 20px;
    background: var(--results-surface);
    border-radius: 20px;
    border: 1px dashed var(--results-border);
}

.no-results-global .no-results-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 24px;
    background: var(--results-surface-2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.no-results-global .no-results-icon i {
    font-size: 3rem;
    color: var(--results-text-muted);
}

.no-results-global h2 {
    margin: 0 0 12px;
    font-size: 1.5rem;
    color: var(--results-text);
}

.no-results-global p {
    margin: 0 0 32px;
    color: var(--results-text-muted);
    font-size: 1rem;
}

.no-results-global .no-results-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ===========================================
   Hero Subtitle
   =========================================== */
.hero-subtitle {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 8px;
}

/* ===========================================
   Button View More
   =========================================== */
.btn-view-more {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s;
    background: var(--results-surface-2);
    color: var(--results-text);
    border: 1px solid var(--results-border);
}

.btn-view-more:hover {
    background: var(--results-surface);
    border-color: var(--results-primary);
    color: var(--results-primary-light);
}

.lottery-time {
    font-size: 0.75rem;
    color: var(--results-text-muted);
    display: flex;
    align-items: center;
    gap: 4px;
}

/* ===========================================
   Zodiac Result Styles
   =========================================== */
.draw-item.zodiac {
    border-left: 2px solid var(--results-gold);
    padding-left: 12px;
    margin-left: 6px;
}

.draw-type-label.zodiac-label {
    background: var(--results-gradient-gold);
    color: #1e293b;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
}

.zodiac-result {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.zodiac-number {
    font-family: 'Space Mono', monospace;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--results-gold);
    letter-spacing: 2px;
}

.zodiac-sign {
    font-size: 0.65rem;
    color: var(--results-text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
}

/* All draws improvements */
.all-draws {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    align-items: flex-start;
}

.draw-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.draw-type-label {
    font-size: 0.7rem;
    font-weight: 600;
    color: #fff;
    background: var(--results-primary);
    border-radius: 12px;
    padding: 2px 10px;
    text-transform: uppercase;
}

.draw-type-label.b {
    background: #10b981;
}

.draw-type-label.c {
    background: #f97316;
}

/* ===========================================
   SMART FILTERS - Compact Single Row Layout
   =========================================== */

/* Smart Filters Container */
.smart-filters {
    background: var(--results-surface);
    padding: 12px 0;
    border-bottom: 1px solid var(--results-border);
    position: sticky;
    top: 0;
    z-index: 100;
}

/* Single Row Layout */
.smart-filters-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

/* Search Input - Compact */
.filter-search-wrapper {
    position: relative;
    min-width: 180px;
    max-width: 220px;
}

.filter-search-wrapper i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--results-text-muted);
    font-size: 0.8rem;
}

.filter-search-input {
    width: 100%;
    padding: 8px 12px 8px 34px;
    background: var(--results-surface-2);
    border: 1px solid var(--results-border);
    border-radius: 8px;
    color: var(--results-text);
    font-size: 0.85rem;
    transition: all 0.2s ease;
}

.filter-search-input::placeholder {
    color: var(--results-text-muted);
}

.filter-search-input:focus {
    outline: none;
    border-color: var(--results-primary);
    box-shadow: 0 0 0 2px rgba(139, 92, 246, 0.15);
}

/* Filter Pills Group - Compact */
.filter-pills-group {
    display: flex;
    gap: 6px;
    align-items: center;
}

.filter-label {
    font-size: 0.75rem;
    color: var(--results-text-muted);
    font-weight: 500;
}

.filter-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid transparent;
    border-radius: 16px;
    color: var(--results-text-muted);
    font-size: 0.75rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
    white-space: nowrap;
}

.filter-pill:hover {
    background: rgba(139, 92, 246, 0.1);
    border-color: rgba(139, 92, 246, 0.3);
    color: var(--results-text);
}

.filter-pill input[type="checkbox"] {
    display: none;
}

.filter-pill:has(input:checked) {
    background: var(--results-gradient);
    border-color: transparent;
    color: #fff;
}

.filter-pill i {
    font-size: 0.75rem;
}

/* Date Picker - Compact */
.filter-date-wrapper {
    position: relative;
}

.filter-date-input {
    padding: 6px 10px;
    background: var(--results-surface-2);
    border: 1px solid var(--results-border);
    border-radius: 8px;
    color: var(--results-text);
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-date-input:focus {
    outline: none;
    border-color: var(--results-primary);
}

.filter-date-input::-webkit-calendar-picker-indicator {
    filter: invert(1);
    cursor: pointer;
}

/* Status Pills - Compact */
.filter-status-pills {
    display: flex;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    padding: 3px;
    gap: 2px;
}

.filter-status-pill {
    padding: 6px 12px;
    background: transparent;
    border: none;
    border-radius: 6px;
    color: var(--results-text-muted);
    font-size: 0.75rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.filter-status-pill input[type="radio"] {
    display: none;
}

.filter-status-pill:hover {
    color: var(--results-text);
    background: rgba(255, 255, 255, 0.05);
}

.filter-status-pill:has(input:checked) {
    background: var(--results-primary);
    color: #fff;
}

/* Clear Filters Button - Compact */
.clear-filters-btn {
    display: none;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    padding: 0;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 6px;
    color: #ef4444;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.clear-filters-btn:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: #ef4444;
}

/* Mobile Responsive - Stack on small screens */
@media (max-width: 768px) {
    .smart-filters-row {
        gap: 8px;
    }

    .filter-search-wrapper {
        flex: 1 1 100%;
        max-width: none;
        order: 1;
    }

    .filter-pills-group {
        order: 2;
    }

    .filter-status-pills {
        flex: 1 1 100%;
        order: 4;
        justify-content: space-between;
    }

    .filter-status-pill {
        flex: 1;
        text-align: center;
    }

    .filter-date-wrapper {
        order: 3;
    }

    .clear-filters-btn {
        order: 5;
    }
}

/* Number Matches Summary */
.number-matches-summary {
    display: none;
    background: rgba(251, 191, 36, 0.1);
    border: 1px solid rgba(251, 191, 36, 0.3);
    border-radius: 12px;
    padding: 12px 16px;
    margin-top: 12px;
}

.matches-header {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--results-gold);
    font-size: 0.85rem;
    margin-bottom: 8px;
}

.matches-header i {
    font-size: 1rem;
}

.matches-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.match-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    font-size: 0.8rem;
    color: var(--results-text);
}

.match-item strong {
    color: var(--results-primary-light);
}

/* No Filter Results */
.no-filter-results {
    display: none;
    text-align: center;
    padding: 48px 24px;
    background: var(--results-surface);
    border-radius: 16px;
    border: 1px dashed var(--results-border);
    margin-top: 24px;
}

.no-filter-results i {
    font-size: 3rem;
    color: var(--results-text-muted);
    opacity: 0.5;
    margin-bottom: 16px;
}

.no-filter-results h3 {
    color: var(--results-text);
    margin: 0 0 8px 0;
    font-size: 1.2rem;
}

.no-filter-results p {
    color: var(--results-text-muted);
    margin: 0;
    font-size: 0.9rem;
}

/* Card Filtering Animations */
.result-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.result-card.filtered-out {
    display: none;
    opacity: 0;
    transform: scale(0.95);
    pointer-events: none;
}

.result-card.filtered-in {
    opacity: 1;
    transform: scale(1);
}

.result-card.number-match {
    border-color: var(--results-gold) !important;
    box-shadow: 0 0 20px rgba(251, 191, 36, 0.25) !important;
}

.result-card.number-match::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    right: -1px;
    bottom: -1px;
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.2), transparent);
    border-radius: 17px;
    pointer-events: none;
    z-index: 0;
}

/* Section Hidden */
.results-section.section-hidden {
    display: none;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .smart-filters-wrapper {
        gap: 12px;
    }

    .filters-row {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .filters-row.primary {
        padding-bottom: 12px;
    }

    .filter-search-wrapper {
        max-width: none;
    }

    .filter-chip-group {
        flex-wrap: wrap;
    }

    .filter-status-group {
        width: 100%;
        justify-content: space-between;
    }

    .filter-status-item {
        flex: 1;
        text-align: center;
        padding: 10px 8px;
    }

    .filter-number-wrapper {
        width: 100%;
    }

    .filter-date-wrapper {
        width: 100%;
    }

    .filter-date-input {
        width: 100%;
    }
}

/* ============================================
   LIGHT THEME SUPPORT - Premium Edition
   ============================================ */
[data-theme="light"] {
    /* Premium backgrounds */
    --results-bg: #eef2f6;
    --results-surface: #ffffff;
    --results-surface-2: #f4f6f9;

    /* High contrast borders */
    --results-border: rgba(15, 23, 42, 0.12);

    /* High contrast text */
    --results-text: #0a1628;
    --results-text-muted: #4b5563;

    /* Premium gold accent */
    --results-primary: #8b5cf6;
    --results-primary-light: #a78bfa;
    --results-gold: #b8860b;

    /* Premium shadows */
    --card-shadow: 0 4px 15px rgba(15, 23, 42, 0.08);
    --card-shadow-hover: 0 12px 35px rgba(15, 23, 42, 0.15);
}

/* Breadcrumbs - Light Premium */
[data-theme="light"] .breadcrumbs {
    background: #ffffff;
    border-bottom: 1px solid rgba(15, 23, 42, 0.1);
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
}

[data-theme="light"] .breadcrumb-item a {
    color: #4b5563;
}

[data-theme="light"] .breadcrumb-item a:hover {
    color: #8b5cf6;
}

[data-theme="light"] .breadcrumb-item .current {
    color: #0a1628;
    font-weight: 600;
}

/* Filters - Light Premium */
[data-theme="light"] .results-filters {
    background: #ffffff;
    border-bottom: 1px solid rgba(15, 23, 42, 0.1);
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
}

[data-theme="light"] .filter-pill {
    background: #f4f6f9;
    border: 1px solid rgba(15, 23, 42, 0.12);
    color: #374151;
}

[data-theme="light"] .filter-pill:hover {
    border-color: #8b5cf6;
    color: #0a1628;
    background: #f0f4f8;
}

[data-theme="light"] .filter-pill.active {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    border-color: transparent;
    color: #ffffff;
}

/* Day Navigation - Light */
[data-theme="light"] .day-navigation {
    background: #fff;
    border-bottom-color: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .day-nav-btn {
    background: #f1f5f9;
    color: #1e293b;
}

[data-theme="light"] .day-nav-btn:hover {
    background: var(--results-primary);
    color: #fff;
}

[data-theme="light"] .date-picker {
    background: #f1f5f9;
    border-color: rgba(0, 0, 0, 0.1);
    color: #1e293b;
}

[data-theme="light"] .date-picker::-webkit-calendar-picker-indicator {
    filter: invert(0);
}

/* Results Main - Light */
[data-theme="light"] .results-main {
    background: #f8fafc;
}

/* Result Cards - Light */
[data-theme="light"] .result-card {
    background: #fff;
    border-color: rgba(0, 0, 0, 0.1);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .result-card:hover {
    border-color: var(--results-primary);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .card-header {
    background: #f8fafc;
    border-bottom-color: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .lottery-name {
    color: #1e293b;
}

[data-theme="light"] .lottery-shift {
    color: #64748b;
}

[data-theme="light"] .lottery-logo-placeholder {
    background: linear-gradient(135deg, #667eea, #764ba2);
}

[data-theme="light"] .winning-label {
    color: #64748b;
}

[data-theme="light"] .card-footer {
    border-top-color: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .btn-history {
    background: #f1f5f9;
    color: #1e293b;
    border-color: rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .btn-history:hover {
    background: #e2e8f0;
    border-color: var(--results-primary);
}

/* Chance Card - Light */
[data-theme="light"] .chance-card {
    background: #fff;
    border-color: rgba(0, 0, 0, 0.1);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .chance-card:hover {
    border-color: var(--card-accent);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .chance-header {
    border-bottom-color: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .chance-lottery-name {
    color: #1e293b;
}

[data-theme="light"] .chance-schedule {
    color: #64748b;
}

[data-theme="light"] .chance-history-btn {
    background: rgba(0, 0, 0, 0.05);
    color: #64748b;
}

[data-theme="light"] .chance-history-btn:hover {
    background: var(--card-accent);
    color: #fff;
}

[data-theme="light"] .chance-results-table th {
    background: rgba(0, 0, 0, 0.02);
    color: #64748b;
    border-bottom-color: rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .chance-results-table td {
    border-bottom-color: rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .chance-results-table .td-time {
    color: #64748b;
}

[data-theme="light"] .chance-results-table tbody tr:hover {
    background: rgba(0, 0, 0, 0.02);
}

[data-theme="light"] .chance-footer {
    border-top-color: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .chance-no-schedules {
    color: #94a3b8;
}

/* Triple Card - Light */
[data-theme="light"] .triple-card {
    background: #fff;
    border-color: rgba(0, 0, 0, 0.1);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .triple-card:hover {
    border-color: var(--card-accent);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .triple-header {
    border-bottom-color: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .triple-lottery-name {
    color: #1e293b;
}

[data-theme="light"] .triple-schedule {
    color: #64748b;
}

[data-theme="light"] .triple-history-btn {
    background: rgba(0, 0, 0, 0.05);
    color: #64748b;
}

[data-theme="light"] .triple-history-btn:hover {
    background: var(--card-accent);
    color: #fff;
}

[data-theme="light"] .triple-results-table th {
    background: rgba(0, 0, 0, 0.02);
    color: #64748b;
    border-bottom-color: rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .triple-results-table td {
    border-bottom-color: rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .triple-results-table .td-time {
    color: #64748b;
}

[data-theme="light"] .triple-results-table tbody tr:hover {
    background: rgba(0, 0, 0, 0.02);
}

[data-theme="light"] .triple-footer {
    border-top-color: rgba(0, 0, 0, 0.08);
}

/* Horizontal Card - Light */
[data-theme="light"] .horizontal-card {
    background: #fff;
    border-color: rgba(0, 0, 0, 0.1);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .horizontal-card:hover {
    border-color: var(--card-accent);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .horizontal-header {
    border-bottom-color: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .horizontal-lottery-name {
    color: #1e293b;
}

[data-theme="light"] .horizontal-schedule {
    color: #64748b;
}

[data-theme="light"] .horizontal-history-btn {
    background: rgba(0, 0, 0, 0.05);
    color: #64748b;
}

[data-theme="light"] .horizontal-history-btn:hover {
    background: var(--card-accent);
    color: #fff;
}

[data-theme="light"] .horizontal-results-table th {
    background: rgba(0, 0, 0, 0.02);
    color: #64748b;
    border-bottom-color: rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .horizontal-results-table td {
    border-bottom-color: rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .horizontal-results-table .td-time {
    color: #64748b;
}

[data-theme="light"] .horizontal-results-table tbody tr:hover {
    background: rgba(0, 0, 0, 0.02);
}

[data-theme="light"] .horizontal-footer {
    border-top-color: rgba(0, 0, 0, 0.08);
}

/* Terminal Card - Light */
[data-theme="light"] .terminal-card {
    background: #fff;
    border-color: rgba(0, 0, 0, 0.1);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .terminal-card:hover {
    border-color: var(--card-accent);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .terminal-header {
    border-bottom-color: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .terminal-lottery-name {
    color: #1e293b;
}

[data-theme="light"] .terminal-schedule {
    color: #64748b;
}

[data-theme="light"] .terminal-history-btn {
    background: rgba(0, 0, 0, 0.05);
    color: #64748b;
}

[data-theme="light"] .terminal-history-btn:hover {
    background: var(--card-accent);
    color: #fff;
}

[data-theme="light"] .terminal-results-table th {
    background: rgba(0, 0, 0, 0.02);
    color: #64748b;
    border-bottom-color: rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .terminal-results-table td {
    border-bottom-color: rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .terminal-results-table .td-time {
    color: #64748b;
}

[data-theme="light"] .terminal-results-table tbody tr:hover {
    background: rgba(0, 0, 0, 0.02);
}

[data-theme="light"] .terminal-footer {
    border-top-color: rgba(0, 0, 0, 0.08);
}

/* Section Headers - Light */
[data-theme="light"] .section-title {
    color: #1e293b;
}

[data-theme="light"] .section-subtitle {
    color: #64748b;
}

[data-theme="light"] .results-category-title {
    color: #1e293b;
}

[data-theme="light"] .category-count {
    color: #64748b;
}

/* History Table - Light */
[data-theme="light"] .history-table-wrapper {
    background: #fff;
    border-color: rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .history-table th {
    background: #f8fafc;
    color: #64748b;
}

[data-theme="light"] .history-table td {
    border-top-color: rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .history-table tr:hover {
    background: #f8fafc;
}

[data-theme="light"] .history-shift {
    color: #1e293b;
}

[data-theme="light"] .history-shift small {
    color: #64748b;
}

/* Quick Dates & Lotteries - Light */
[data-theme="light"] .quick-dates-section,
[data-theme="light"] .lotteries-section,
[data-theme="light"] .other-lotteries-section {
    background: #fff;
}

[data-theme="light"] .quick-date-btn {
    background: #f1f5f9;
    border-color: rgba(0, 0, 0, 0.1);
    color: #1e293b;
}

[data-theme="light"] .quick-date-btn:hover {
    border-color: var(--results-primary);
    background: #fff;
}

[data-theme="light"] .quick-date-btn .day-name {
    color: #64748b;
}

[data-theme="light"] .lottery-quick-card,
[data-theme="light"] .other-lottery-card {
    background: #f1f5f9;
    border-color: rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .lottery-quick-card:hover,
[data-theme="light"] .other-lottery-card:hover {
    border-color: var(--results-primary);
    background: #fff;
}

[data-theme="light"] .quick-name,
[data-theme="light"] .other-name {
    color: #1e293b;
}

/* No Results - Light */
[data-theme="light"] .no-results {
    background: #fff;
    border-color: rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .no-results-icon {
    background: #f1f5f9;
}

[data-theme="light"] .no-results h2 {
    color: #1e293b;
}

[data-theme="light"] .no-results p {
    color: #64748b;
}

/* Filter Chips - Light */
[data-theme="light"] .filter-chip {
    background: #f1f5f9;
    color: #64748b;
}

[data-theme="light"] .filter-chip:hover,
[data-theme="light"] .filter-chip.active {
    background: var(--results-primary);
    color: #fff;
}

/* Filter Search - Light */
[data-theme="light"] .filter-search-input {
    background: #f1f5f9;
    border-color: rgba(0, 0, 0, 0.1);
    color: #1e293b;
}

[data-theme="light"] .filter-search-input:focus {
    border-color: var(--results-primary);
}

[data-theme="light"] .filter-search-btn {
    color: #64748b;
}

/* Filter Status - Light */
[data-theme="light"] .filter-status-item {
    color: #64748b;
}

[data-theme="light"] .filter-status-item.active,
[data-theme="light"] .filter-status-item:hover {
    color: #1e293b;
    background: rgba(139, 92, 246, 0.1);
}

/* Date Input - Light */
[data-theme="light"] .filter-date-input {
    background: #f1f5f9;
    border-color: rgba(0, 0, 0, 0.1);
    color: #1e293b;
}