/**
 * Gopvonvietlott.com
 * Phát triển bởi: MDDev
 */

.hero {
    padding: 160px 20px 100px;
    background:
        radial-gradient(circle at 20% 50%, rgba(255, 193, 7, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(233, 69, 96, 0.08) 0%, transparent 50%);
    text-align: center;
}

.hero h1 {
    font-size: 56px;
    font-weight: 800;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #fff, var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 20px;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 40px;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin-top: 60px;
}

.hero-stat {
    text-align: center;
}

.hero-stat-value {
    font-size: 36px;
    font-weight: 800;
    color: var(--primary);
}

.hero-stat-label {
    color: var(--text-muted);
    font-size: 14px;
}

.section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 20px;
}

.section-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 40px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.section-title i {
    color: var(--primary);
}

.pools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.pool-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 24px;
    transition: all 0.3s;
    text-decoration: none;
    color: var(--text);
    display: block;
}

.pool-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 20px 40px rgba(255, 193, 7, 0.1);
}

.pool-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.pool-code {
    font-size: 12px;
    color: var(--text-muted);
}

.pool-card-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    line-height: 1.4;
}

.pool-progress {
    margin-bottom: 20px;
}

.pool-progress-bar {
    height: 8px;
    background: var(--border);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 10px;
}

.pool-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--primary-dark));
    border-radius: 4px;
    transition: width 0.3s;
}

.pool-progress-text {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: var(--text-muted);
}

.pool-progress-amount {
    color: var(--primary);
    font-weight: 600;
}

.pool-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid var(--border);
}

.pool-draw-date,
.pool-members {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-muted);
}

.lottery-results-section {
    background: linear-gradient(180deg, var(--bg-card) 0%, transparent 100%);
}

.lottery-results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

.lottery-result-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 24px;
    transition: all 0.3s;
}

.lottery-result-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.lottery-result-card.power {
    border-top: 3px solid var(--power);
}

.lottery-result-card.mega {
    border-top: 3px solid var(--mega);
}

.lottery-result-card.lotto {
    border-top: 3px solid #9c27b0;
}

.lottery-result-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.lottery-type-icon {
    width: 50px;
    height: 50px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}

.power .lottery-type-icon {
    background: linear-gradient(135deg, var(--power), #ff6b6b);
    color: #fff;
}

.mega .lottery-type-icon {
    background: linear-gradient(135deg, var(--mega), #00e5ff);
    color: #fff;
}

.lotto .lottery-type-icon {
    background: linear-gradient(135deg, #9c27b0, #e040fb);
    color: #fff;
}

.lottery-result-header h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 4px;
}

.lottery-date {
    font-size: 13px;
    color: var(--text-muted);
}

.lottery-numbers {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.lottery-ball {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2d2d44, #1a1a2e);
    border: 2px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    animation: ballPop 0.3s ease forwards;
}

.lottery-ball.special {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--bg);
    border-color: var(--primary);
}

.lottery-ball.skeleton {
    background: var(--border);
    animation: pulse 1.5s infinite;
}

@keyframes ballPop {
    0% {
        transform: scale(0);
        opacity: 0;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.lottery-history-tabs {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.history-tab {
    padding: 12px 24px;
    border: 1px solid var(--border);
    border-radius: 30px;
    background: transparent;
    color: var(--text-muted);
    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
}

.history-tab:hover {
    background: var(--bg-card);
    color: var(--text);
}

.history-tab.active {
    background: var(--primary);
    color: var(--bg);
    border-color: var(--primary);
}

.lottery-history-content {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 20px;
    max-height: 400px;
    overflow-y: auto;
}

.history-row {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 15px 0;
    border-bottom: 1px solid var(--border);
}

.history-row:last-child {
    border-bottom: none;
}

.history-date {
    min-width: 100px;
    font-size: 14px;
    color: var(--text-muted);
}

.history-numbers {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.history-ball {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
}

.history-ball.special {
    background: var(--primary);
    color: var(--bg);
}

.history-table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.history-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 500px;
}

.history-table thead th {
    text-align: left;
    padding: 12px 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
}

.history-table tbody tr {
    border-bottom: 1px solid var(--border);
}

.history-table tbody tr:last-child {
    border-bottom: none;
}

.history-table tbody td {
    padding: 12px 8px;
    vertical-align: middle;
}

.history-table .history-date {
    min-width: 90px;
    font-size: 14px;
    color: var(--text-muted);
}

.history-table .history-numbers {
    display: flex;
    gap: 6px;
    flex-wrap: nowrap;
}

.jackpot-cell {
    font-weight: 600;
    color: var(--primary);
    white-space: nowrap;
    font-size: 13px;
}

.jackpot-cell.jackpot-won {
    color: #4caf50;
    background: rgba(76, 175, 80, 0.1);
    border-radius: 4px;
    padding: 4px 8px !important;
    animation: jackpotPulse 1.5s ease-in-out infinite;
}

@keyframes jackpotPulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.7;
    }
}

@media (max-width: 768px) {
    .history-table {
        min-width: 600px;
    }

    .lottery-history-content {
        padding: 15px 10px;
    }
}

.steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.step {
    text-align: center;
    padding: 30px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
}

.step-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
    color: var(--bg);
    margin: 0 auto 20px;
}

.step h3 {
    font-size: 18px;
    margin-bottom: 10px;
}

.step p {
    color: var(--text-muted);
    font-size: 14px;
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 36px;
    }

    .hero p {
        font-size: 16px;
    }

    .hero-stats {
        flex-direction: column;
        gap: 30px;
    }

    .steps {
        grid-template-columns: repeat(2, 1fr);
    }

    .lottery-results-grid {
        grid-template-columns: 1fr;
    }

    .lottery-ball {
        width: 40px;
        height: 40px;
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .steps {
        grid-template-columns: 1fr;
    }
}
