
        :root {
            --bg-primary: #002244;      /* Deep Navy Blue */
            --bg-secondary: #003366;    /* Lighter Blue */
            --bg-panel: #004080;        /* Panel Blue */
            --accent-gold: #D4AF37;     /* Gold */
            --accent-gold-hover: #b5952f;
            --accent-gold-bright: #FFD700;
            --text-light: #FFFFFF;      /* White */
            --text-muted: #99BBDD;      /* Light Blue/Gray */
            --shadow-gold: rgba(212, 175, 55, 0.4);
            --shadow-black: rgba(0, 0, 0, 0.5);
            --border-color: #00509e;
        }

        * {
            box-sizing: border-box;
            margin: 0;
            padding: 0;
        }

        body {
            font-family: 'Kanit', sans-serif;
            background-color: #030614;
            background-image: 
                radial-gradient(circle at 20% 30%, rgba(13, 24, 46, 1) 0%, transparent 60%),
                radial-gradient(circle at 80% 80%, rgba(20, 29, 56, 1) 0%, transparent 50%),
                linear-gradient(135deg, #02040a 0%, #060b1c 50%, #010206 100%);
            background-attachment: fixed;
            color: var(--text-light);
            min-height: 100vh;
            padding-top: 80px; 
            padding-bottom: 50px;
        }

        .container {
            max-width: 640px;
            margin: 0 auto;
            padding: 0 15px;
        }

        /* HEADER */
        header {
            background: rgba(0, 34, 68, 0.85);
            backdrop-filter: blur(10px);
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            z-index: 50;
            border-bottom: 2px solid var(--accent-gold);
            box-shadow: 0 4px 15px var(--shadow-black);
        }

        .nav-container {
            max-width: 1200px;
            margin: 0 auto;
            display: flex;
            justify-content: space-between;
            align-items: center;
            height: 80px;
            padding: 0 20px;
        }

        .logo img {
            width: 120px;
            height: 60px;
            object-fit: contain;
        }

        .nav-buttons {
            display: flex;
            gap: 15px;
        }

        .btn {
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: 600;
            padding: 10px 20px;
            border-radius: 50px;
            text-decoration: none;
            transition: all 0.3s ease;
            box-shadow: 0 4px 10px rgba(0,0,0,0.3);
            font-size: 1rem;
            animation: pulseJackpot 1.5s infinite;
            white-space: nowrap;
        }

        .btn-register {
            background-color: var(--accent-gold);
            color: var(--bg-primary);
        }
        .btn-register:hover {
            background-color: var(--accent-gold-hover);
            transform: scale(1.05);
        }
        .btn-register img {
            width: 24px;
            height: 24px;
            margin-right: 8px;
            border-radius: 4px;
        }

        .btn-login {
            background-color: transparent;
            color: var(--text-light);
            border: 2px solid var(--accent-gold);
        }
        .btn-login:hover {
            background-color: var(--accent-gold);
            color: var(--bg-primary);
            transform: scale(1.05);
        }
        .btn-login svg {
            width: 24px;
            height: 24px;
            margin-right: 8px;
        }

        /* MEDIA GROUPS */
        .image-block {
            margin: 20px 0;
            border-radius: 16px;
            overflow: hidden;
            box-shadow: 0 4px 15px var(--shadow-black);
            border: 2px solid var(--border-color);
        }
        .image-block img {
            width: 100%;
            display: block;
            object-fit: cover;
        }

        .gallery-grid {
            display: grid;
            gap: 10px;
            margin: 20px 0;
        }
        .grid-2 {
            grid-template-columns: 1fr 1fr;
        }
        .gallery-grid img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            border-radius: 12px;
            border: 1px solid var(--border-color);
            transition: transform 0.3s ease;
        }
        .gallery-grid img:hover {
            transform: scale(1.02);
            border-color: var(--accent-gold);
        }

        .empty-frame {
            background: rgba(0, 51, 102, 0.5);
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--text-muted);
            font-size: 1rem;
            border: 2px dashed var(--accent-gold);
            border-radius: 16px;
        }
        .image-block.empty-frame {
            width: 100%;
            max-width: 606px;
            aspect-ratio: 606 / 300;
            margin-left: auto;
            margin-right: auto;
        }
        .gallery-grid .empty-frame {
            width: 100%;
            aspect-ratio: 1 / 1;
            border-radius: 12px;
        }

        /* LARGE BUTTON BLOCK */
        .large-link-btn {
            display: flex;
            align-items: center;
            justify-content: center;
            background: linear-gradient(180deg, var(--accent-gold-bright) 0%, var(--accent-gold) 100%);
            color: var(--bg-primary);
            padding: 15px 25px;
            border-radius: 14px;
            text-decoration: none;
            font-size: 1.2rem;
            font-weight: 700;
            margin: 20px 0;
            box-shadow: 0 6px 20px var(--shadow-gold);
            transition: transform 0.2s;
            animation: pulseJackpot 1.5s infinite;
        }
        .large-link-btn:hover {
            transform: translateY(-3px);
            box-shadow: 0 8px 25px var(--shadow-gold);
        }
        .large-link-btn img {
            width: 30px;
            height: 30px;
            margin-right: 15px;
            border-radius: 6px;
        }


        /* JACKPOT WIDGET */
        #pdz-jackpot {
            margin: 40px 0;
            color: var(--text-light);
        }
        #pdz-jackpot .dashboard-container {
            display: grid; gap: 20px;
        }
        #pdz-jackpot .stat-grid {
            display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px;
        }
        #pdz-jackpot .stat-card, #pdz-jackpot .bottom-card {
            background: var(--bg-panel);
            border-radius: 15px;
            padding: 20px;
            text-align: center;
            border: 1px solid var(--border-color);
            box-shadow: 0 4px 15px rgba(0,0,0,0.3);
        }
        #pdz-jackpot .icon { width: 2.2rem; height: 2.2rem; margin: 0 auto 6px auto; color: var(--accent-gold); display: block; }
        #pdz-jackpot .stat-card h3 { font-size: 1.6rem; font-weight: 700; margin: 5px 0; color: var(--accent-gold-bright); }
        #pdz-jackpot .stat-card p, #pdz-jackpot .bottom-card .label { margin: 0; font-size: 0.9rem; color: var(--text-muted); }
        
        #pdz-jackpot .jackpot-card {
            grid-column: 1 / -1;
            background: linear-gradient(145deg, var(--bg-secondary), var(--bg-primary));
            border: 2px solid var(--accent-gold);
            box-shadow: 0 0 20px var(--shadow-gold);
            position: relative; overflow: hidden;
            border-radius: 15px; padding: 25px; text-align: center;
        }
        #pdz-jackpot .jackpot-card::before {
            content: 'แจ็คพอตรวม';
            position: absolute; top: 15px; left: 50%; transform: translateX(-50%);
            font-size: 1.2rem; font-weight: 600; color: var(--accent-gold);
        }
        #pdz-jackpot .jackpot-value-wrapper { margin-top: 40px; margin-bottom: 25px; }
        #pdz-jackpot #jackpot-total {
            font-size: 3.2rem; font-weight: 700; color: var(--accent-gold-bright);
            text-shadow: 0 0 10px var(--shadow-gold), 0 0 20px var(--shadow-gold);
            animation: pulseJackpot 1.5s infinite;
        }
        @keyframes pulseJackpot { 0% {transform: scale(1)} 50% {transform: scale(1.05)} 100% {transform: scale(1)} }
        
        #pdz-jackpot .bottom-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
        #pdz-jackpot .bottom-card p { font-size: 1.6rem; font-weight: 700; margin: 5px 0; color: var(--text-light); }

        @media (max-width: 430px) {
            #pdz-jackpot .stat-card { padding: 12px; }
            #pdz-jackpot .icon { width: 1.5rem; height: 1.5rem; }
            #pdz-jackpot .stat-card h3 { font-size: 1.2rem; }
            #pdz-jackpot .stat-card p { font-size: 0.75rem; }
            #pdz-jackpot #jackpot-total { font-size: 2.3rem; }
            #pdz-jackpot .bottom-card { padding: 15px; }
            #pdz-jackpot .bottom-card p { font-size: 1.2rem; }
            
            .nav-container { padding: 0 10px; }
            .btn { padding: 8px 12px; font-size: 0.9rem; }
            .btn svg, .btn img { width: 18px; height: 18px; margin-right: 4px; }
        }


        /* WITHDRAWALS WIDGET */
        #pdz-withdrawals {
            margin: 40px 0;
            background: var(--bg-panel);
            padding: 20px;
            border-radius: 16px;
            border: 1px solid var(--border-color);
            box-shadow: 0 4px 20px var(--shadow-black);
        }
        #pdz-withdrawals h2 {
            text-align: center;
            color: var(--accent-gold);
            font-weight: 600;
            font-size: 1.5rem;
            margin-bottom: 20px;
            text-shadow: 0 0 8px var(--shadow-gold);
        }
        .withdrawal-list {
            list-style: none;
            display: flex;
            flex-direction: column;
            gap: 12px;
        }
        .withdrawal-item {
            background: var(--bg-primary);
            border-radius: 12px;
            border: 1px solid var(--border-color);
            padding: 12px 15px;
            display: flex;
            align-items: center;
            gap: 12px;
            transition: all 0.3s ease;
        }
        .withdrawal-item.highlight {
            border-color: var(--accent-gold);
            box-shadow: 0 0 15px var(--shadow-gold);
        }
        .bank-icon {
            width: 40px; height: 40px; border-radius: 8px; background: #fff; padding: 4px; display: flex; align-items: center; justify-content: center; flex-shrink: 0;
        }
        .bank-icon img { max-width: 100%; max-height: 100%; object-fit: contain; }
        .withdrawal-details { flex-grow: 1; display: flex; flex-direction: column; gap: 2px; }
        .user-info { font-size: 0.95rem; font-weight: 500; }
        .amount-info { font-size: 0.95rem; font-weight: 700; color: var(--accent-gold-bright); }
        .amount-info .baht { font-size: 0.85rem; font-weight: 400; color: var(--text-light); }
        .date-info { font-size: 0.75rem; color: var(--text-muted); }
        .status-wrapper { display: flex; align-items: center; gap: 8px; width: 100px; }
        .status-icon { width: 18px; height: 18px; }
        .icon-spinner {
            fill: none; stroke: var(--accent-gold); stroke-width: 3; stroke-dasharray: 10 5; stroke-linecap: round; animation: spin 1s linear infinite;
        }
        .icon-check { fill: #4CAF50; animation: popIn 0.5s ease-out; }
        .status-text { font-weight: 500; font-size: 0.9rem; }
        .withdrawal-item.processing .icon-check { display: none; }
        .withdrawal-item.processing .status-text { color: var(--accent-gold); }
        .withdrawal-item:not(.processing) .icon-spinner { display: none; }
        .withdrawal-item:not(.processing) .status-text { color: #4CAF50; }

        @keyframes spin { 100% { transform: rotate(360deg); } }
        @keyframes popIn { 0% { transform: scale(0); } 80% { transform: scale(1.2); } 100% { transform: scale(1); } }

        /* REVIEWS WIDGET */
        #pdz-reviews {
            margin: 40px 0;
        }
        .review-header { text-align: center; margin-bottom: 20px; }
        .review-header h2 { color: var(--accent-gold); font-size: 1.6rem; margin-bottom: 5px; }
        .review-header p { color: var(--text-muted); font-size: 0.95rem; }
        .review-card {
            background: var(--bg-panel);
            border: 1px solid var(--border-color);
            border-radius: 14px;
            padding: 20px;
            display: flex; flex-direction: column; gap: 10px;
            box-shadow: 0 8px 25px rgba(0,0,0,0.4);
            transition: opacity 0.35s ease, transform 0.35s ease;
        }
        .review-card.updating { opacity: 0; transform: scale(0.95); }
        .review-card-header { display: flex; justify-content: space-between; align-items: center; }
        .reviewer-name { font-weight: 700; font-size: 1.1rem; color: var(--accent-gold-bright); }
        .review-stars { display: flex; gap: 4px; }
        .review-stars svg { width: 18px; height: 18px; }
        .star-filled { color: var(--accent-gold-bright); filter: drop-shadow(0 0 3px var(--shadow-gold)); }
        .star-empty { color: var(--bg-primary); }
        .review-text { font-size: 1rem; line-height: 1.6; min-height: 4.8em; font-style: italic; }
        .review-time { text-align: right; font-size: 0.8rem; color: var(--text-muted); }
        @keyframes pdzShake { 25% { transform: translateX(3px) } 75% { transform: translateX(-3px) } }
        .review-card.shaking { animation: pdzShake 0.3s ease-in-out; }

        /* Floating Line Mobile */
        @keyframes floatPulse {
            0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(0, 195, 0, 0.7); }
            50% { transform: scale(1.1); box-shadow: 0 0 0 15px rgba(0, 195, 0, 0); }
            100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(0, 195, 0, 0); }
        }
        .floating-line {
            display: none;
            position: fixed;
            bottom: 20px;
            right: 20px;
            width: 65px;
            height: 65px;
            background-color: #00C300;
            border-radius: 50%;
            box-shadow: 0 4px 15px rgba(0,0,0,0.5);
            z-index: 9999;
            align-items: center;
            justify-content: center;
            text-decoration: none;
            transition: transform 0.3s ease;
            border: none;
            animation: floatPulse 2s infinite;
        }
        .floating-line:hover {
            transform: scale(1.1);
        }
        .floating-line img {
            width: 40px;
            height: 40px;
            object-fit: contain;
            border-radius: 8px;
        }
        .btn-register-mobile {
            display: none !important;
        }

        @media (max-width: 768px) {
            .floating-line {
                display: flex;
            }
            .btn-line-desktop {
                display: none !important;
            }
            .btn-register-mobile {
                display: flex !important;
                padding: 6px 10px !important;
                font-size: 0.85rem !important;
            }
        }

        /* Shooting Stars */
        #shooting-stars-container {
            position: fixed;
            top: 0; left: 0;
            width: 100%; height: 100%;
            z-index: -1;
            pointer-events: none;
            overflow: hidden;
        }
        .shooting-star {
            position: absolute;
            width: 2px;
            height: 80px;
            background: linear-gradient(to bottom, rgba(255, 215, 0, 0) 0%, rgba(212, 175, 55, 0.8) 100%);
            animation: shootingStar linear infinite;
            opacity: 0;
            transform: rotate(45deg);
        }
        .shooting-star::after {
            content: "";
            position: absolute;
            bottom: 0;
            left: 50%;
            transform: translateX(-50%);
            width: 4px;
            height: 4px;
            background: #FFD700;
            border-radius: 50%;
            box-shadow: 0 0 10px #FFD700, 0 0 20px #FFD700;
        }
        @keyframes shootingStar {
            0% {
                transform: translate(0, -200px) rotate(45deg);
                opacity: 0;
            }
            10% {
                opacity: 1;
            }
            80% {
                opacity: 1;
            }
            100% {
                transform: translate(-1500px, 1500px) rotate(45deg);
                opacity: 0;
            }
        }
        
        /* Twinkling Sparkles */
        .sparkle {
            position: absolute;
            width: 2px;
            height: 2px;
            background: #fff;
            border-radius: 50%;
            box-shadow: 0 0 5px 2px #FFD700, 0 0 10px 4px rgba(255, 255, 255, 0.4);
            animation: twinkle infinite ease-in-out alternate;
            opacity: 0;
        }
        @keyframes twinkle {
            0% { opacity: 0.1; transform: scale(0.5); }
            50% { opacity: 1; transform: scale(1.2); }
            100% { opacity: 0.1; transform: scale(0.5); }
        }
        
        /* Premium Ambient Orbs */
        .ambient-orb {
            position: fixed;
            border-radius: 50%;
            filter: blur(90px);
            opacity: 0.25;
            z-index: -2;
            animation: orbFloat 12s infinite alternate ease-in-out;
            pointer-events: none;
        }
        .orb-1 { width: 300px; height: 300px; background: #D4AF37; top: -5%; left: -5%; animation-delay: 0s; }
        .orb-2 { width: 400px; height: 400px; background: #003366; bottom: -10%; right: -10%; animation-delay: -5s; }
        .orb-3 { width: 350px; height: 350px; background: #FFD700; top: 50%; left: 50%; transform: translate(-50%, -50%); opacity: 0.15; animation-delay: -3s; }

        @keyframes orbFloat {
            0% { transform: translate(0, 0) scale(1); }
            100% { transform: translate(60px, -60px) scale(1.15); }
        }
    
/* Footer CSS */

        .lightbox {
            display: none;
            position: fixed;
            z-index: 9999;
            padding-top: 100px;
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            overflow: auto;
            background-color: rgba(0,0,0,0.9);
            backdrop-filter: blur(5px);
        }
        .lightbox-content {
            margin: auto;
            display: block;
            max-width: 90%;
            max-height: 80vh;
            object-fit: contain;
            border-radius: 12px;
            animation: zoomIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        }
        .lightbox-close {
            position: absolute;
            top: 25px;
            right: 35px;
            color: #f1f1f1;
            font-size: 40px;
            font-weight: bold;
            transition: 0.3s;
            cursor: pointer;
            z-index: 10000;
        }
        .lightbox-close:hover,
        .lightbox-close:focus {
            color: var(--accent-gold);
            text-decoration: none;
            cursor: pointer;
        }
        @keyframes zoomIn {
            from {transform:scale(0.8); opacity: 0;} 
            to {transform:scale(1); opacity: 1;}
        }
    
