/* ======================================================
   NANO789 — Blue & White Light Theme
   ====================================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Kanit', sans-serif;
}

:root {
    /* Blue palette */
    --gold-darker: #1a4fa0;
    --gold-main:   #2563eb;
    --gold-mid:    #3b82f6;
    --gold-light:  #60a5fa;
    --gold-glow:   #93c5fd;
    --gold-pale:   #dbeafe;

    /* Accent — sky blue */
    --red-deep:    #0369a1;
    --red-main:    #0284c7;
    --red-bright:  #0ea5e9;
    --red-glow:    rgba(14, 165, 233, 0.4);

    /* Light backgrounds */
    --black-deep:  #f0f7ff;
    --black-card:  #ffffff;
    --black-raised:#e8f2ff;
    --black-border:#bfdbfe;
    --black-hover: #dbeafe;

    /* Text */
    --text-light:  #1e3a5f;
    --text-mid:    #2563eb;
    --text-muted:  #64748b;
    --white:       #ffffff;

    /* Shadows */
    --shadow-gold:  rgba(37, 99, 235, 0.25);
    --shadow-gold2: rgba(59, 130, 246, 0.18);
    --shadow-red:   rgba(2, 132, 199, 0.3);
    --shadow-deep:  rgba(30, 58, 138, 0.12);
}

body {
    background: linear-gradient(160deg, #e8f4ff 0%, #f0f7ff 50%, #e0ecff 100%);
    color: var(--text-light);
    min-height: 100vh;
    overflow-x: hidden;
}

/* ======================================================
   HERO IMAGE (a01) — บนสุด
   ====================================================== */

.hero-image {
    width: calc(100% - 24px);
    display: block;
    cursor: pointer;
    position: relative;
    z-index: 1;
    margin: 12px auto 0;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(201, 162, 39, 0.25);
}

.hero-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    border-radius: 20px;
}

/* ======================================================
   HEADER (ถ้ายังมีอยู่ — ซ่อนไว้)
   ====================================================== */

.header {
    display: none;
}

/* ======================================================
   CTA BUTTONS
   ====================================================== */

.cta-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    max-width: 420px;
    width: calc(100% - 32px);
    margin: 10px auto;
    padding: 16px 24px;
    border-radius: 50px;
    font-size: 1.15rem;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    border: none;
    transition: all 0.25s ease;
    position: relative;
    z-index: 1;
    letter-spacing: 0.5px;
    overflow: hidden;
}

.cta-button img {
    display: none;
}

/* ปุ่ม 1 — สมัครสมาชิก (Blue gradient premium) */
.cta-button-1 {
    background: linear-gradient(135deg, #1a4fa0, #2563eb 30%, #0ea5e9 65%, #1a4fa0);
    background-size: 200% auto;
    color: var(--white);
    box-shadow: 0 6px 24px var(--shadow-red), 0 2px 8px var(--shadow-gold);
    animation: pulseCta 2.5s ease-in-out infinite;
    border: 1.5px solid #93c5fd;
    text-shadow: 0 1px 4px rgba(0,0,0,0.3);
}

.cta-button-1::before {
    content: '⊙';
    font-size: 1.4rem;
    flex-shrink: 0;
}

.cta-button-1::after {
    content: 'สมัครสมาชิก';
    font-size: 1.15rem;
    font-weight: 700;
}

.cta-button-1:hover {
    background-position: right center;
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 10px 30px rgba(37, 99, 235, 0.55);
}

.cta-button-1:active {
    transform: translateY(0) scale(0.98);
}

/* ปุ่ม 2 — LINE (ขาวมีขอบฟ้า) */
.cta-button-2 {
    background: linear-gradient(135deg, #f0f9ff, #e0f2fe, #f0f9ff);
    color: #0284c7;
    box-shadow: 0 6px 20px rgba(14, 165, 233, 0.2), 0 0 0 1px #bae6fd;
    animation: pulseCta 2.5s ease-in-out 0.5s infinite;
    border: 1.5px solid #0ea5e9;
}

.cta-button-2::before {
    content: '';
    width: 22px;
    height: 22px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%230284c7'%3E%3Cpath d='M12 2C6.48 2 2 6.03 2 11c0 3.13 1.75 5.88 4.38 7.5L5 22l4.75-2.5C10.44 19.83 11.21 20 12 20c5.52 0 10-4.03 10-9S17.52 2 12 2z'/%3E%3C/svg%3E") center/contain no-repeat;
    flex-shrink: 0;
}

.cta-button-2::after {
    content: 'ติดต่อ';
    font-size: 1.15rem;
    font-weight: 700;
}

.cta-button-2:hover {
    background: linear-gradient(135deg, #e0f2fe, #bae6fd);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 10px 30px rgba(14, 165, 233, 0.4);
    border-color: #0284c7;
}

.cta-button-2:active {
    transform: translateY(0) scale(0.98);
}

@keyframes pulseCta {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.03);
    }
}

/* ======================================================
   STATS SECTION
   ====================================================== */

.header-stats {
    display: flex;
    gap: 10px;
    margin: 16px;
    position: relative;
    z-index: 1;
}

.stat-box {
    flex: 1;
    min-width: 0;
    background: var(--black-card);
    border-radius: 20px;
    padding: 14px 10px;
    text-align: center;
    border: 1px solid var(--black-border);
    box-shadow: 0 3px 12px var(--shadow-deep);
    transition: all 0.3s ease;
}

.stat-box:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(201, 162, 39, 0.3);
    border-color: var(--gold-main);
}

.stat-box.updated {
    box-shadow: 0 0 16px rgba(249, 199, 0, 0.3);
    border-color: var(--gold-light);
}

.stat-icon {
    font-size: 1.5rem;
    margin-bottom: 6px;
    color: var(--gold-light);
}

.stat-value {
    color: var(--text-light);
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 4px;
    transition: color 0.3s ease;
    line-height: 1.2;
}

.stat-value.updated {
    color: var(--gold-light);
}

.stat-label {
    color: var(--text-muted);
    font-size: 0.78rem;
}

/* ======================================================
   JACKPOT SECTION
   ====================================================== */

.jackpot-container {
    background: linear-gradient(160deg, #ffffff, #f0f7ff 60%, #e8f4ff);
    border-radius: 28px;
    padding: 20px;
    margin: 10px 16px 16px;
    box-shadow: 0 4px 24px var(--shadow-deep), 0 0 0 1px #bfdbfe, inset 0 1px 0 rgba(255,255,255,0.8);
    border: 1px solid #bfdbfe;
    position: relative;
    z-index: 1;
}

.jackpot-title {
    text-align: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gold-light);
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--black-border);
}

.jackpot-amount {
    background: linear-gradient(135deg, #eff6ff, #dbeafe 50%, #e0f2fe);
    border-radius: 20px;
    padding: 20px;
    text-align: center;
    margin-bottom: 16px;
    border: 1.5px solid #93c5fd;
    box-shadow: 0 4px 16px var(--shadow-gold2), 0 0 12px rgba(14,165,233,0.15);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.jackpot-amount::before {
    content: '';
    position: absolute;
    top: -50%; left: -50%;
    width: 200%; height: 200%;
    background: linear-gradient(45deg, transparent, rgba(59,130,246,0.1), transparent);
    transform: rotate(45deg);
    animation: shine 3s infinite;
}

@keyframes shine {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
    }

    100% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
    }
}

.jackpot-amount:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 24px rgba(212, 160, 23, 0.35);
}

.amount-label {
    color: var(--text-muted);
    font-size: 1rem;
    margin-bottom: 6px;
    position: relative;
    z-index: 1;
}

.amount-value {
    color: var(--gold-light);
    font-size: 2.4rem;
    font-weight: 700;
    position: relative;
    z-index: 1;
    text-shadow: 0 0 20px rgba(249, 199, 0, 0.4);
}

.jackpot-info {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.info-item {
    background: var(--black-raised);
    border-radius: 18px;
    padding: 14px;
    text-align: center;
    border: 1px solid var(--black-border);
    transition: all 0.3s ease;
}

.info-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(201, 162, 39, 0.25);
    border-color: var(--gold-main);
}

.info-label {
    color: var(--text-muted);
    font-size: 0.88rem;
    margin-bottom: 6px;
    font-weight: 500;
}

.info-value {
    color: var(--gold-light);
    font-size: 1.2rem;
    font-weight: 700;
}

/* ======================================================
   WITHDRAWAL / LIVE FEED SECTION
   ====================================================== */

.withdrawal-section {
    max-width: 600px;
    margin: 16px auto;
    padding: 0 16px;
    position: relative;
    z-index: 1;
}

.withdrawal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    background: var(--black-card);
    border-radius: 20px;
    margin-bottom: 10px;
    box-shadow: 0 3px 12px var(--shadow-deep);
    border: 1px solid var(--black-border);
}

.withdrawal-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 8px;
}

.withdrawal-title::before {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    background: var(--gold-main);
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M21 18v1c0 1.1-.9 2-2 2H5c-1.1 0-2-.9-2-2V5c0-1.1.9-2 2-2h14c1.1 0 2 .9 2 2v1h-9c-1.1 0-2 .9-2 2v8c0 1.1.9 2 2 2h9zm-9-2h10V8H12v8zm4-2.5c-.83 0-1.5-.67-1.5-1.5s.67-1.5 1.5-1.5 1.5.67 1.5 1.5-.67 1.5-1.5 1.5z'/%3E%3C/svg%3E") center/contain no-repeat;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M21 18v1c0 1.1-.9 2-2 2H5c-1.1 0-2-.9-2-2V5c0-1.1.9-2 2-2h14c1.1 0 2 .9 2 2v1h-9c-1.1 0-2 .9-2 2v8c0 1.1.9 2 2 2h9zm-9-2h10V8H12v8zm4-2.5c-.83 0-1.5-.67-1.5-1.5s.67-1.5 1.5-1.5 1.5.67 1.5 1.5-.67 1.5-1.5 1.5z'/%3E%3C/svg%3E") center/contain no-repeat;
    flex-shrink: 0;
}

.live-feed-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #3a0000, #1a0000);
    color: var(--gold-light);
    font-size: 0.8rem;
    font-weight: 600;
    padding: 5px 10px;
    border-radius: 20px;
    border: 1px solid var(--red-bright);
    box-shadow: 0 0 8px var(--red-glow);
}

.live-feed-badge::before {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--red-bright);
    border-radius: 50%;
    animation: livePulse 1.5s ease-in-out infinite;
    box-shadow: 0 0 6px var(--red-glow);
    flex-shrink: 0;
}

@keyframes livePulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.4;
        transform: scale(0.7);
    }
}

.withdrawal-container {
    background: var(--black-card);
    border-radius: 24px;
    padding: 12px;
    box-shadow: 0 4px 16px var(--shadow-deep);
    border: 1px solid var(--black-border);
    overflow: hidden;
}

.notification-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.notification {
    background: var(--black-raised);
    border: 1px solid var(--black-border);
    padding: 12px 14px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    opacity: 0;
    transform: scale(0.98) translateY(8px);
    animation: notificationIn 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    cursor: pointer;
}

.notification:hover {
    transform: scale(1.01);
    box-shadow: 0 4px 16px rgba(201, 162, 39, 0.18);
    border-color: var(--gold-main);
}

.notification.fade-out {
    animation: notificationOut 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.notification .icon {
    width: 44px;
    height: 44px;
    margin-right: 12px;
    border-radius: 50%;
    padding: 3px;
    flex-shrink: 0;
    border: none;
    background: transparent;
    box-shadow: none;
}

.notification:hover .icon {
    transform: none;
}

.notification .title-highlight {
    flex: 1;
    min-width: 0;
}

.notification .highlight {
    color: var(--text-light);
    font-weight: 700;
    font-size: 0.95rem;
}

.notification p {
    margin: 2px 0;
    color: var(--text-muted);
    font-size: 0.82rem;
    font-weight: 400;
}

.status {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
    margin-left: 10px;
    flex-shrink: 0;
}

.status .amount {
    color: var(--text-light);
    font-size: 0.95rem;
    font-weight: 700;
}

.status .check {
    color: var(--gold-light);
    font-size: 0.78rem;
    font-weight: 600;
}

.status i {
    color: var(--gold-light);
    font-size: 1.1rem;
}

.status.processing i {
    animation: spin 1s linear infinite;
}

.withdrawal-footer {
    text-align: center;
    padding: 10px;
    color: var(--text-muted);
    font-size: 0.82rem;
    margin-top: 8px;
}

@keyframes notificationIn {
    0% {
        opacity: 0;
        transform: scale(0.98) translateY(8px);
    }

    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes notificationOut {
    0% {
        opacity: 1;
        transform: scale(1);
    }

    100% {
        opacity: 0;
        transform: scale(0.98) translateY(8px);
    }
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* ======================================================
   ONLINE USERS BAR
   ====================================================== */

.online-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--black-card);
    border-radius: 12px;
    padding: 12px 16px;
    margin: 0 16px 10px;
    border: 1px solid var(--black-border);
    box-shadow: 0 2px 8px var(--shadow-deep);
    font-size: 0.95rem;
    color: var(--text-mid);
}

.online-bar .dot-live {
    width: 10px;
    height: 10px;
    background: var(--gold-light);
    border-radius: 50%;
    animation: livePulse 1.5s ease-in-out infinite;
    flex-shrink: 0;
}

.online-bar .count {
    font-weight: 700;
    color: var(--gold-pale);
    font-size: 1.1rem;
}

/* ======================================================
   IMAGE GALLERY (ซ่อนไว้ ถ้าไม่ใช้)
   ====================================================== */

.image-gallery {
    display: none;
}

/* ======================================================
   GAME SECTION
   ====================================================== */

.game-section-title {
    color: var(--gold-light);
    text-align: center;
    font-size: 1.25rem;
    margin: 24px 16px 14px;
    font-weight: 700;
    position: relative;
    z-index: 1;
}

.game-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    max-width: 1000px;
    margin: 0 auto 20px;
    padding: 0 16px;
    position: relative;
    z-index: 1;
}

.game-box {
    background: var(--black-card);
    border: 1px solid var(--black-border);
    border-radius: 12px;
    padding: 10px;
    text-align: center;
    box-shadow: 0 3px 10px var(--shadow-deep);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.game-box:hover {
    transform: scale(1.06) translateY(-4px);
    box-shadow: 0 8px 24px rgba(201, 162, 39, 0.3);
    border-color: var(--gold-main);
}

.game-image {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: contain;
    background: var(--black-raised);
    border-radius: 8px;
    margin-bottom: 8px;
    border: 1px solid var(--black-border);
}

.game-name {
    font-size: 14px;
    color: var(--text-mid);
    font-weight: 600;
    margin-bottom: 6px;
}

.percent {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--gold-light);
}

/* ======================================================
   PROVIDER SECTION
   ====================================================== */

.provider-section {
    max-width: 1200px;
    margin: 20px auto 40px;
    padding: 0 16px;
    position: relative;
    z-index: 1;
}

.provider-title {
    color: var(--gold-light);
    text-align: center;
    font-size: 1.25rem;
    margin-bottom: 16px;
    font-weight: 700;
}

.provider-container {
    width: 100%;
    padding: 16px;
    background: var(--black-card);
    border: 1px solid var(--black-border);
    border-radius: 24px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 4px 16px var(--shadow-deep);
}

.provider-list {
    display: flex;
    gap: 12px;
    animation: providerSlide 25s linear infinite;
    white-space: nowrap;
}

.provider-container:hover .provider-list {
    animation-play-state: paused;
}

.provider-item {
    position: relative;
    display: inline-block;
    background: var(--black-raised);
    padding: 6px;
    border-radius: 16px;
    box-shadow: 0 2px 8px var(--shadow-deep);
    border: 1px solid var(--black-border);
    transition: all 0.3s ease;
    flex-shrink: 0;
}

/* ซ่อน game section ทั้งหมด */
.game-section-title,
.game-container {
    display: none !important;
}

.provider-item:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 16px rgba(201, 162, 39, 0.3);
    border-color: var(--gold-main);
}

.provider-item .hot-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(255, 69, 0, 0.7);
    border: 2px solid #1c1c1c;
    background: linear-gradient(135deg, #ff4500, #ff8c00);
}

@keyframes providerSlide {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* ======================================================
   RESPONSIVE
   ====================================================== */

@media (max-width: 768px) {
    .game-container {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 8px !important;
        padding: 0 12px !important;
    }

    .game-name {
        font-size: 13px;
    }

    .percent {
        font-size: 1rem;
    }

    .stat-value {
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .game-container {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 6px !important;
        padding: 0 10px !important;
    }

    .cta-button {
        font-size: 1.05rem;
        padding: 14px 20px;
    }

    .amount-value {
        font-size: 2rem;
    }
}

@media (min-width: 768px) {
    .cta-button {
        max-width: 480px;
    }

    .header-stats {
        max-width: 600px;
        margin: 16px auto;
    }

    .jackpot-container {
        max-width: 600px;
        margin: 10px auto 16px;
    }

    .withdrawal-section {
        max-width: 600px;
    }
}

@media (min-width: 1024px) {
    body {
        max-width: 480px;
        margin: 0 auto;
        box-shadow: 0 0 60px rgba(37, 99, 235, 0.15);
    }

    .game-container {
        grid-template-columns: repeat(4, 1fr);
        gap: 14px;
    }

    .game-box {
        padding: 12px;
    }
}