.modal-container {
    background: rgba(20, 20, 40, 0.95); /* สีพื้นหลังโทนเข้ม */
    border: 1px solid rgba(163, 51, 255, 0.5);
    border-radius: 15px;
    
    /* --- ส่วนที่ต้องปรับเพื่อขยายขนาด --- */
    width: 90%;           /* ขยายกว้าง 90% ของหน้าจอ */
    max-width: 1200px;    /* กำหนดความกว้างสูงสุด (ปรับเพิ่มได้ตามใจชอบ) */
    height: 80vh;         /* ความสูง 80% ของหน้าจอ */
    
    margin: 5vh auto;     /* จัดวางกึ่งกลางแนวตั้งและแนวนอน */
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
    box-shadow: 0 0 30px rgba(163, 51, 255, 0.3);
}

/* ปรับให้เนื้อหาข้างใน (iframe) เต็มความสูงของ Modal */
.modal-body {
    flex: 1; 
    padding: 0;
    position: relative;
}

#modalIframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}
/* ปรับแต่งปุ่ม ENTER WORLD ให้เข้ากับชุดพรีเมียม */
.btn-galactic-primary {
    position: relative;
    background: rgba(124, 58, 237, 0.2); /* ม่วงโปร่งแสง */
    color: #ffffff !important;
    border: 1px solid rgba(167, 139, 250, 0.5);
    padding: 12px 20px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 3px; /* เว้นวรรคตัวอักษรให้ดูขรึม */
    text-transform: uppercase;
    overflow: hidden;
    transition: all 0.4s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    cursor: pointer;
}

/* แสงสีขาววิ่ง (Shine Effect) เหมือนปุ่มสมัคร */
.btn-galactic-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: 0.6s;
}

/* เอฟเฟคตอน Hover: ระเบิดออร่าม่วงขาว */
.btn-galactic-primary:hover {
    background: rgba(139, 92, 246, 0.4);
    transform: translateY(-2px) scale(1.02); /* ขยายใหญ่นิดนึงให้ดูมีพลัง */
    border-color: #ffffff; /* ขอบเปลี่ยนเป็นสีขาวสว่าง */
    box-shadow: 0 0 25px rgba(167, 139, 250, 0.8), 
                inset 0 0 15px rgba(255, 255, 255, 0.2);
}

.btn-galactic-primary:hover::before {
    left: 100%;
}

/* ตัวหนังสือในปุ่ม */
.btn-text {
    position: relative;
    z-index: 2;
    text-shadow: 0 0 10px rgba(167, 139, 250, 0.8);
}

/* แสงพื้นหลังปุ่ม (Glow) */
.btn-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 150%;
    height: 300%;
    background: radial-gradient(circle, rgba(167, 139, 250, 0.4) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: 0.5s;
    z-index: 1;
}

.btn-galactic-primary:hover .btn-glow {
    opacity: 1;
}
.btn-premium-reg {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(139, 92, 246, 0.1); /* พื้นหลังม่วงโปร่งแสง */
    color: #ffffff !important;
    padding: 12px 20px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    text-decoration: none !important;
    border: 1px solid rgba(167, 139, 250, 0.3);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    cursor: pointer;
}

/* เอฟเฟคแสงสีขาววิ่งผ่าน (Shine Effect) */
.btn-premium-reg::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    transition: 0.5s;
}

.btn-premium-reg:hover::before {
    left: 100%;
}

/* เอฟเฟคตอน Hover */
.btn-premium-reg:hover {
    background: rgba(139, 92, 246, 0.3);
    color: #ffffff;
    border-color: #a78bfa;
    transform: translateY(-3px); /* ยกตัวขึ้น */
    box-shadow: 0 0 20px rgba(167, 139, 250, 0.6), 
                inset 0 0 10px rgba(167, 139, 250, 0.4);
}

.btn-premium-reg:active {
    transform: translateY(-1px);
}

/* ตกแต่งไอคอน */
.reg-icon {
    margin-right: 10px;
    color: #ddd6fe; /* สีขาวม่วงพาสเทล */
    font-size: 16px;
    filter: drop-shadow(0 0 5px rgba(167, 139, 250, 0.8));
}

/* เอฟเฟคอนิเมชั่นตัวอักษรขยับตอน Hover */
.btn-premium-reg span {
    position: relative;
    z-index: 1;
}
/* ชื่อตัวละคร: สีฟ้าสว่าง (Cyan) ตัดกับเงาม่วง ทำให้ดูเด่นที่สุด */
.char-name {
    color: #22d3ee; 
    font-weight: 800;
    text-shadow: 0 0 8px rgba(34, 211, 238, 0.5);
    letter-spacing: 0.5px;
}

/* อาชีพ: สีม่วงอ่อน (Lavender) ไล่เฉดขาวม่วง */
.job-text {
    background: linear-gradient(to right, #e9d5ff, #c084fc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 600;
}

/* LV / JOB Badge: โทนม่วงเข้มโปร่งแสง */
.badge-level {
    background: rgba(139, 92, 246, 0.15);
    color: #a78bfa;
    border: 1px solid rgba(167, 139, 250, 0.3);
    padding: 3px 12px;
    border-radius: 4px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-weight: bold;
}

/* แผนที่ล่าสุด: สีขาวเทา (Silver) เพื่อไม่ให้แย่งความเด่นจากชื่อ */
.map-text {
    color: #cbd5e1 !important;
    font-size: 13px;
    font-weight: 400;
}

/* ไอคอนแผนที่: เปลี่ยนเป็นสีม่วงนีออนแทนสีแดงเดิม */
.map-icon {
    color: #d8b4fe;
    filter: drop-shadow(0 0 5px rgba(216, 180, 254, 0.8));
}
/* ตกแต่งส่วนหัวตาราง */
.table-custom thead tr {
    background: rgba(139, 92, 246, 0.1); /* สีม่วงจางๆ */
    border-bottom: 2px solid #8b5cf6;
}

.table-custom th {
    color: #a78bfa !important; /* ม่วงอ่อนพาสเทล */
    font-weight: 600;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 1px;
    border: none;
}

/* เอฟเฟคแถวตอน Hover */
.table-custom tbody tr {
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.table-custom tbody tr:hover {
    background: rgba(167, 139, 250, 0.1) !important; /* พื้นหลังสว่างขึ้นตอนชี้ */
    transform: translateX(5px); /* ขยับขวาเบาๆ ให้ดูมีลูกเล่น */
}

/* ตกแต่งชื่อตัวละคร (เรืองแสงสีทอง) */
.char-name {
    color: #fbbf24; 
    font-weight: bold;
    text-shadow: 0 0 8px rgba(251, 191, 36, 0.4);
}

/* ตกแต่ง Level/Job (Badge Style) */
.badge-level {
    background: linear-gradient(45deg, #6d28d9, #a855f7);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    box-shadow: 0 0 10px rgba(109, 40, 217, 0.3);
}

/* ตกแต่งอาชีพ */
.job-text {
    color: #e9d5ff;
    font-style: italic;
}

/* ตกแต่ง Map */
.map-text {
    color: #94a3b8;
    font-size: 12px;
}
/* Custom Dark Purple Theme */
.modal-purple-dark .modal-content {
    background-color: #1a1a2e; /* พื้นหลังม่วงเข้มมากเกือบดำ */
    color: #e0e0e0;
    border: 2px solid #1a1a2e;
    border-radius: 15px;
    box-shadow: 0 0 20px rgba(72, 52, 212, 0.5);
}

.modal-purple-dark .modal-header {
    border-bottom: 1px solid #1a1a2e;
    background: linear-gradient(90deg, #1a1a2e, #686de0);
    border-radius: 13px 13px 0 0;
}

.modal-purple-dark .modal-title {
    color: #ffffff !important;
    font-weight: 600;
}

.modal-purple-dark .modal-body {
    background-color: #16213e; /* พื้นหลังส่วนเนื้อหา */
}

.modal-purple-dark .list-group-item {
    background-color: #0f3460;
    border: 1px solid #1a1a2e;
    color: #ffffff;
    margin-bottom: 5px;
    border-radius: 8px !important;
}

.modal-purple-dark .table {
    color: #ffffff;
    border-color: #1a1a2e;
}

.modal-purple-dark .table thead {
    background-color: #1a1a2e;
    color: #fff;
}

.modal-purple-dark .form-control {
    background-color: #0f3460;
    border: 1px solid #1a1a2e;
    color: #fff;
}

.modal-purple-dark .form-control:focus {
    background-color: #16213e;
    border-color: #686de0;
    color: #fff;
    box-shadow: 0 0 8px rgba(104, 109, 224, 0.6);
}

.modal-purple-dark .btn-secondary {
    background-color: #1a1a2e;
    border: none;
    transition: 0.3s;
}

.modal-purple-dark .btn-secondary:hover {
    background-color: #686de0;
    transform: translateY(-2px);
}

.modal-purple-dark .badge-cash {
    background-color: #ff9f43;
    color: #000;
    padding: 3px 8px;
    border-radius: 5px;
}

.modal-purple-dark .label-custom {
    display: block;
    background: #1a1a2e;
    color: white;
    padding: 8px 12px;
    border-radius: 5px 5px 0 0;
    font-size: 0.9rem;
    margin-bottom: 0;
}

.modal-purple-dark .btn-close {
    filter: invert(1) grayscale(100%) brightness(200%); /* เปลี่ยนปุ่ม X เป็นสีขาว */
}
/* คอนเทนเนอร์หลักธีมม่วงมืด */
    .ethereal-card-locked {
        background: radial-gradient(circle at top right, rgba(45, 20, 80, 0.8), rgba(15, 10, 25, 0.95)) !important;
        border: 1px solid rgba(138, 43, 226, 0.4);
        box-shadow: 0 0 25px rgba(0, 0, 0, 0.5), inset 0 0 15px rgba(138, 43, 226, 0.2);
        border-radius: 20px;
        backdrop-filter: blur(12px);
        transition: transform 0.3s ease;
    }

    /* เส้นนีออนวิ่ง */
    .neon-line {
        height: 2px;
        background: linear-gradient(90deg, transparent, #a855f7, #ffffff, #a855f7, transparent);
        background-size: 200% 100%;
        animation: neonFlow 3s linear infinite;
    }

    @keyframes neonFlow {
        0% { background-position: 200% 0; }
        100% { background-position: -200% 0; }
    }

    /* การ์ดแต่ละอันดับ */
    .rank-node-modern {
        background: rgba(255, 255, 255, 0.03);
        border-radius: 12px;
        padding: 12px;
        margin-bottom: 12px;
        border: 1px solid rgba(255, 255, 255, 0.05);
        display: flex;
        align-items: center;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        position: relative;
        overflow: hidden;
    }

    .rank-node-modern:hover {
        background: rgba(138, 43, 226, 0.15);
        border-color: rgba(168, 85, 247, 0.6);
        transform: scale(1.02);
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    }

    .rank-node-modern::before {
        content: '';
        position: absolute;
        top: 0; left: -100%;
        width: 100%; height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
        transition: 0.5s;
    }

    .rank-node-modern:hover::before {
        left: 100%;
    }

    /* รูปกิลด์ */
    .guild-emblem-v2 {
        width: 50px;
        height: 50px;
        border-radius: 8px;
        border: 2px solid rgba(168, 85, 247, 0.5);
        box-shadow: 0 0 10px rgba(168, 85, 247, 0.3);
        background-color: #000;
        z-index: 2;
    }

    /* ข้อความ */
    .premium-title {
        color: #fff;
        text-shadow: 0 0 10px rgba(168, 85, 247, 0.8);
        font-weight: 800;
        letter-spacing: 1px;
    }

    .text-castle-neon {
        color: #d8b4fe;
        font-weight: bold;
        font-size: 13px;
    }

    .text-master-soft {
        color: rgba(255, 255, 255, 0.6);
        font-size: 11px;
    }

    /* สถานะว่างเปล่า */
    .empty-state-container {
        padding: 40px 20px;
        text-align: center;
        background: rgba(0,0,0,0.2);
        border-radius: 15px;
        border: 1px dashed rgba(138, 43, 226, 0.3);
    }

    .pulse-icon {
        font-size: 3rem;
        color: rgba(138, 43, 226, 0.4);
        margin-bottom: 15px;
        animation: pulseGhost 2s infinite;
    }

    @keyframes pulseGhost {
        0% { transform: scale(1); opacity: 0.4; }
        50% { transform: scale(1.1); opacity: 0.7; }
        100% { transform: scale(1); opacity: 0.4; }
    }
/* บังคับล้างสีขาวจาก Bootstrap */
.modal-content {
    background-color: #1a0b2e !important;
    border: 1px solid #a855f7 !important;
    color: #ffffff !important;
}

/* แก้ไอ้ตัวขาวๆ ในรูป (list-group) */
.list-group-item {
    background-color: rgba(255, 255, 255, 0.05) !important; /* พื้นหลังใสๆ มืดๆ */
    border: 1px solid rgba(168, 85, 247, 0.2) !important;
    color: #ffffff !important;
}

/* ส่วนหัวตารางและกล่องแจ้งเตือนตอนไม่มีตัวละคร */
.panel-body, .panel-modal {
    background: transparent !important;
}

.table {
    color: #fff !important;
}

.table thead th {
    border-bottom: 2px solid #a855f7 !important;
    background: rgba(168, 85, 247, 0.2);
}

/* ปุ่มปิดด้านล่าง */
.modal-footer .btn-secondary {
    background-color: #3f1671 !important;
    border: 1px solid #a855f7 !important;
}

/* ช่อง Input ใน Modal อื่นๆ */
.modal-body input.form-control {
    background-color: rgba(0, 0, 0, 0.5) !important;
    border: 1px solid #a855f7 !important;
    color: #fff !important;
}
/* Dashboard Styling */
.user-profile-header {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 20px;
}

.user-badge-id {
    font-size: 0.8rem;
    letter-spacing: 2px;
    color: #a855f7;
    text-transform: uppercase;
    font-weight: bold;
}

.stat-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 20px;
}

.stat-card {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 12px;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.stat-card:hover {
    border-color: #a855f7;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(168, 85, 247, 0.2);
}

.stat-label {
    font-size: 0.7rem;
    color: #888;
    display: block;
    margin-bottom: 5px;
}

.stat-value {
    font-family: 'Monaco', monospace;
    font-size: 1.1rem;
    font-weight: bold;
    color: #fff;
}

/* Action Buttons */
.menu-action-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.menu-action-item {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    margin-bottom: 8px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    color: #ccc !important;
    text-decoration: none !important;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

.menu-action-item i {
    width: 25px;
    margin-right: 10px;
    font-size: 1.1rem;
    color: #a855f7;
}

.menu-action-item:hover {
    background: rgba(168, 85, 247, 0.1);
    color: #fff !important;
    border-left: 3px solid #a855f7;
    padding-left: 20px;
}

.btn-logout-neon {
    background: rgba(220, 38, 38, 0.1);
    color: #ef4444 !important;
    border: 1px solid rgba(220, 38, 38, 0.2);
}

.btn-logout-neon:hover {
    background: #ef4444 !important;
    color: #fff !important;
    border-left-color: #fff;
}
@media (min-width: 1200px) {
        .ethereal-card-locked {
            height: 600px !important; /* กำหนดความสูงคงที่ที่ต้องการ */
            display: flex;
            flex-direction: column;
            overflow: hidden;
        }
        /* คุมความสูงของ Slider ให้พอดีกับความสูงของ Card */
        .slider-locked-container {
            height: 100% !important;
            aspect-ratio: auto !important; 
        }
    }

    /* ป้องกันเนื้อหาภายในดัน Layout ให้ทะลุขอบ */
    .card-inner-locked {
        flex: 1;
        display: flex;
        flex-direction: column;
        overflow-y: auto; /* หากเนื้อหาเยอะจะ Scroll ภายในแทนการดัน Card */
        scrollbar-width: thin;
        scrollbar-color: rgba(255,255,255,0.2) transparent;
    }

    /* ปรับแต่ง Scrollbar สำหรับ Chrome/Safari */
    .card-inner-locked::-webkit-scrollbar { width: 4px; }
    .card-inner-locked::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.2); border-radius: 10px; }

    /* ล็อคตำแหน่งภาพใน Slide ไม่ให้เบี้ยว */
    .object-fit-cover { object-fit: cover; }
:root {
    --p-purple: #bc13fe;
    --p-white: #ffffff;
    --card-bg: rgba(255, 255, 255, 0.03);
}

.stats-card-modern {
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 16px;
    border: 1px solid rgba(188, 19, 254, 0.2);
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* เอฟเฟกต์เมื่อ Hover */
.stats-card-modern:hover {
    transform: translateY(-5px) scale(1.01);
    border-color: var(--p-purple);
    box-shadow: 0 10px 30px rgba(188, 19, 254, 0.2);
    background: rgba(188, 19, 254, 0.05);
}

/* ข้อความหลัก */
.stats-text-main {
    color: var(--p-white);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

/* ไอคอนพร้อมแสงเรือง */
.icon-box-neon {
    color: var(--p-purple);
    font-size: 1.2rem;
    filter: drop-shadow(0 0 8px var(--p-purple));
    animation: icon-float 3s ease-in-out infinite;
}

/* จุดสถานะกระพริบ */
.status-badge {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    padding: 4px 12px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.status-label {
    color: rgba(255, 255, 255, 0.6);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 1px;
}

.pulse-dot {
    width: 6px;
    height: 6px;
    background-color: var(--p-purple);
    border-radius: 50%;
    margin-right: 8px;
    box-shadow: 0 0 0 rgba(188, 19, 254, 0.4);
    animation: pulse-purple 2s infinite;
}

/* --- Animations --- */

@keyframes pulse-purple {
    0% { box-shadow: 0 0 0 0 rgba(188, 19, 254, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(188, 19, 254, 0); }
    100% { box-shadow: 0 0 0 0 rgba(188, 19, 254, 0); }
}

@keyframes icon-float {
    0%, 100% { transform: translateY(0); opacity: 0.8; }
    50% { transform: translateY(-3px); opacity: 1; }
}

/* แสงวิ่งผ่านการใช้ Linear Gradient (สไตล์ทันสมัย) */
.stats-card-modern::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(188, 19, 254, 0.1),
        rgba(255, 255, 255, 0.1),
        transparent
    );
    transition: 0.5s;
    animation: shine-swipe 4s infinite linear;
}

@keyframes shine-swipe {
    0% { left: -100%; }
    20% { left: 100%; }
    100% { left: 100%; }
}

/* container สำหรับ Text Sub */
        .text-sub-container {
            text-align: center;
            position: relative;
        }

        /* สไตล์หลักของ Text Sub */
        .modern-text-sub {
            font-size: 3rem; /* ขนาดใหญ่กำลังดี */
            font-weight: 800; /* ตัวหนา */
            color: #ffffff; /* สีขาวหลัก */
            text-transform: uppercase; /* ตัวพิมพ์ใหญ่ทั้งหมดเพื่อความเท่ */
            letter-spacing: 0.15em; /* เพิ่มระยะห่างระหว่างตัวอักษร */
            position: relative;
            display: inline-block;
            
            /* --- หัวใจหลัก: เอฟเฟกต์แสงเรืองแสง (Glow) 多層 --- */
            /* ชั้นที่ 1-3: แสงสีขาวนวลรอบตัว */
            /* ชั้นที่ 4-6: แสงสีฟ้า-ม่วงออโรร่า */
            text-shadow: 
                0 0 5px rgba(255, 255, 255, 0.8),
                0 0 10px rgba(255, 255, 255, 0.5),
                0 0 15px rgba(255, 255, 255, 0.3),
                0 0 20px #00f2fe, /* ฟ้า */
                0 0 35px #00f2fe,
                0 0 40px #00f2fe,
                0 0 50px #4facfe,
                0 0 75px #ff00de; /* ม่วงแดงปน */

            /* --- ใส่ Animation --- */
            animation: nebula-glow 4s ease-in-out infinite alternate;
        }

        /* ลูกเล่นเพิ่มเติม: ขีดเส้นใต้เรืองแสง (Optional) */
        .modern-text-sub::after {
            content: '';
            position: absolute;
            left: 10%;
            bottom: -10px;
            width: 80%;
            height: 2px;
            background: linear-gradient(90deg, transparent, #00f2fe, #4facfe, #ff00de, transparent);
            border-radius: 2px;
            box-shadow: 0 0 10px #00f2fe, 0 0 20px #ff00de;
            animation: line-pulse 4s ease-in-out infinite alternate;
        }

        /* --- Animations --- */

        /* Animation เลื่อนแสง Aurora และชีพจรแสง */
        @keyframes nebula-glow {
            0% {
                text-shadow: 
                    0 0 5px rgba(255, 255, 255, 0.8),
                    0 0 10px rgba(255, 255, 255, 0.5),
                    0 0 15px rgba(255, 255, 255, 0.3),
                    0 0 20px #00f2fe,
                    0 0 35px #00f2fe,
                    0 0 40px #00f2fe,
                    0 0 50px #4facfe,
                    0 0 75px #ff00de;
                transform: translateY(0);
            }
            50% {
                /* ช่วงกลาง: แสงจางลงเล็กน้อยและเลื่อนขึ้น */
                text-shadow: 
                    0 0 3px rgba(255, 255, 255, 0.6),
                    0 0 7px rgba(255, 255, 255, 0.4),
                    0 0 12px rgba(255, 255, 255, 0.2),
                    0 0 15px #4facfe,
                    0 0 30px #4facfe,
                    0 0 35px #4facfe,
                    0 0 45px #ff00de,
                    0 0 70px #00f2fe;
                transform: translateY(-5px); /* ขยับขึ้นเล็กน้อย */
            }
            100% {
                /* กลับมาเข้มเหมือนเดิมแต่สีเข้มกว่า */
                text-shadow: 
                    0 0 5px rgba(255, 255, 255, 0.8),
                    0 0 10px rgba(255, 255, 255, 0.5),
                    0 0 15px rgba(255, 255, 255, 0.3),
                    0 0 25px #00f2fe,
                    0 0 40px #00f2fe,
                    0 0 45px #00f2fe,
                    0 0 55px #4facfe,
                    0 0 80px #ff00de;
                transform: translateY(0);
            }
        }

        /* Animation เส้นใต้ชีพจร */
        @keyframes line-pulse {
            0% {
                opacity: 0.5;
                transform: scaleX(0.8);
            }
            100% {
                opacity: 1;
                transform: scaleX(1);
            }
        }
.move-right {
  display: inline-block;
  text-decoration: none;
  color: #333;
  font-size: 20px;
  font-family: sans-serif;
  
  /* กำหนดระยะเวลาการเคลื่อนไหว */
  transition: transform 0.3s ease;
}

/* เมื่อนำเมาส์มาวาง */
.move-right:hover {
  /* ขยับไปทางขวา 15 พิกเซล */
  transform: translateX(15px);
  color: #ff4757; /* เปลี่ยนสีเพื่อความสวยงาม */
}
/* Modal Overlay */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(10, 5, 20, 0.85); /* มืดแบบโปร่งแสง */
    backdrop-filter: blur(8px); /* เบลอหลังพื้นหลัง */
    z-index: 9999;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

/* Modal Container */
.modal-container {
    background: #1a1a2e; /* โทนมืดม่วงเข้ม */
    width: 90%;
    max-width: 1000px; /* ขนาดใหญ่พิเศษ */
    height: 80vh;
    border-radius: 20px;
    position: relative;
    border: 1px solid rgba(138, 43, 226, 0.5);
    box-shadow: 0 0 40px rgba(138, 43, 226, 0.3), inset 0 0 15px rgba(255, 255, 255, 0.05);
    transform: scale(0.7) translateY(50px);
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* Show State */
.modal-overlay.active {
    display: flex;
    opacity: 1;
}
.modal-overlay.active .modal-container {
    transform: scale(1) translateY(0);
}

/* Header */
.modal-header {
    padding: 1px 10px;
    background: linear-gradient(90deg, #2e1a47 0%, #1a1a2e 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-title {
    color: #e0d5ff;
    font-weight: bold;
    letter-spacing: 1.5px;
    text-shadow: 0 0 10px rgba(168, 85, 247, 0.8);
}

.close-btn {
    background: none;
    border: none;
    color: #fff;
    font-size: 30px;
    cursor: pointer;
    transition: 0.3s;
}
.close-btn:hover {
    color: #ff4dff;
    transform: rotate(90deg);
}

/* Body & Iframe */
.modal-body {
    flex: 1;
    position: relative;
    background: #fdfdfd; /* พื้นหลังขาวสำหรับเนื้อหา */
    margin: 10px;
    border-radius: 12px;
    overflow: hidden;
}

iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Magic Loader */
.loader {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 50px; height: 50px;
    border: 5px solid #331a4d;
    border-top: 5px solid #a855f7;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}
/* --- Character Floating Effect --- */
.footer-char-wrap {
    position: relative;
    padding-top: 20px;
}

.char-img-float {
    max-width: 250px;
    filter: drop-shadow(0 0 20px rgba(138, 43, 226, 0.5));
    animation: floatAnim 4s ease-in-out infinite;
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.footer-char-wrap:hover .char-img-float {
    transform: scale(1.05) translateY(-10px);
    filter: drop-shadow(0 0 35px rgba(0, 212, 255, 0.7));
}

@keyframes floatAnim {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

/* --- Server Status Pill --- */
.server-status-pill {
    display: inline-block;
    background: rgba(0, 255, 133, 0.1);
    border: 1px solid rgba(0, 255, 133, 0.3);
    color: #00ff85;
    padding: 5px 15px;
    border-radius: 50px;
    font-size: 12px;
    letter-spacing: 2px;
    margin-top: -20px;
    position: relative;
    z-index: 5;
}

.status-dot {
    height: 8px;
    width: 8px;
    background-color: #00ff85;
    border-radius: 50%;
    display: inline-block;
    margin-right: 5px;
    box-shadow: 0 0 10px #00ff85;
    animation: blink 1.5s infinite;
}

/* --- Modern Menu Links --- */
.modern-footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.m-f-link {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 500;
    font-size: 14px;
    letter-spacing: 2px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.m-f-link span {
    font-size: 10px;
    margin-right: 15px;
    color: #8a2be2;
    border: 1px solid #8a2be2;
    padding: 2px 6px;
    border-radius: 4px;
    transition: all 0.3s;
}

.m-f-link:hover {
    color: #fff;
    transform: translateX(5px);
}

.m-f-link:hover span {
    background: #8a2be2;
    color: #fff;
    box-shadow: 0 0 15px #8a2be2;
}

/* --- Copyright Text Styling --- */
.designer-name {
    background: linear-gradient(90deg, #ff00cc, #3333ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: bold;
}
:root {
    --primary-glow: rgba(0, 212, 255, 0.6);
    --accent-color: #00d4ff;
}

.footer-brand-zone {
    perspective: 1000px; /* สร้างมิติความลึก */
    padding: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo-wrapper {
    position: relative;
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
}

/* เอฟเฟครูปภาพโลโก้ */
.mega-logo {
    max-width: 280px; /* ปรับขนาดตามต้องการ */
    height: auto;
    filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.2));
    transition: all 0.4s ease;
    z-index: 2;
    position: relative;
}

/* เอฟเฟคเรืองแสงด้านหลัง */
.logo-reflection {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 120%;
    background: radial-gradient(circle, var(--primary-glow) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
    pointer-events: none;
}

/* ข้อความ Sub-title */
.sub-title-glow {
    margin-top: 15px;
    font-family: 'Arial', sans-serif;
    letter-spacing: 4px;
    color: #fff;
    text-shadow: 0 0 10px var(--accent-color);
    opacity: 0.8;
    font-weight: bold;
}

/* --- Mouse Interactivity --- */

/* เมื่อเอาเมาส์มาวาง: โลโก้ขยายและเอียงเล็กน้อย */
.logo-wrapper:hover {
    transform: scale(1.1) rotateX(10deg) rotateY(-5deg);
}

.logo-wrapper:hover .mega-logo {
    filter: drop-shadow(0 0 25px var(--accent-color));
}

.logo-wrapper:hover .logo-reflection {
    opacity: 1;
    animation: pulse-glow 2s infinite;
}

/* แอนิเมชั่นการเต้นของแสง */
@keyframes pulse-glow {
    0% { transform: translate(-50%, -50%) scale(1); opacity: 0.5; }
    50% { transform: translate(-50%, -50%) scale(1.2); opacity: 0.8; }
    100% { transform: translate(-50%, -50%) scale(1); opacity: 0.5; }
}
/* จัดการให้โลโก้อยู่ตรงกลางตามแนวตั้งของกรอบ */
.timeline-with-logo {
    align-items: center; /* จัดโลโก้และข้อความให้อยู่ตรงกลางแนวนอนเดียวกัน */
}

/* ส่วนครอบโลโก้ */
.logo-wrapper {
    flex-shrink: 0; /* กันโลโก้โดนบีบขนาด */
    width: 80px;  /* ปรับขนาดความกว้างที่ต้องการเห็นชัด */
    height: 80px; /* ให้เป็นสี่เหลี่ยมจัตุรัส */
    display: flex;
    justify-content: center;
    align-items: center;
}

/* สไตล์โลโก้ขนาดใหญ่ เห็นชัด พร้อมลูกเล่น */
.logo-timeline-large {
    width: 100%;
    height: 100%;
    object-fit: contain; /* กันรูปเบี้ยว */
    border-radius: 50%; /* ทำรูปทรงกลม (ถ้าต้องการ) */
    
    /* -- ลูกเล่น 1: Glow (เรืองแสงเข้าธีม) -- */
    box-shadow: 0 0 15px rgba(111, 66, 193, 0.6), /* แสงสีม่วงตามธีม */
                0 0 30px rgba(0, 191, 255, 0.3); /* แสงสีฟ้าบางๆ */
    
    /* -- ลูกเล่น 2: Floating (ลอยขึ้นลงช้าๆ) -- */
    animation: logoFloat 4s ease-in-out infinite;
    
    transition: transform 0.3s ease; /* เมื่อเมาส์ชี้ จะขยายขึ้น */
}

/* เมื่อเอาเมาส์มาชี้ โลโก้จะขยาย */
.ethereal-card:hover .logo-timeline-large {
    transform: scale(1.1);
}

/* Keyframes สำหรับ Animation การลอย (Floating) */
@keyframes logoFloat {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); } /* ลอยขึ้น 10px */
    100% { transform: translateY(0px); }
}

/* ปรับระยะ d-flex gap สำหรับ Bootstrap 5.1 ลงไป */
.gap-4 { gap: 1.5rem; }
.subtitle-small-blue {
            /* -- ปรับขนาดตัวอักษรเล็ก -- */
            font-size: 1rem; /* ประมาณ 16px หรือปรับตามความเหมาะสม */
            
            /* -- ปรับความบางของตัวอักษร -- */
            font-weight: 300; /* บาง light */
            
            /* -- สีฟ้าไซเบอร์อ่อนๆ -- */
            color: #cddc39; 
            
            /* -- เอฟเฟคเรืองแสงชั้นแรก -- */
            text-shadow: 
                0 0 5px rgba(0, 191, 255, 0.7),  /* แสงชั้นในสุด */
                0 0 10px rgba(0, 191, 255, 0.5); /* แสงชั้นถัดไป */

            /* -- ลูกเล่นการกะพริบ (Pulse) ช้าๆ -- */
            animation: subtitlePulse 2.5s infinite alternate;
            
            /* -- จัดตำแหน่งและระยะห่าง -- */
            letter-spacing: 0.5px;
            text-transform: uppercase; /* (ตัวเลือก) ทำให้เป็นตัวพิมพ์ใหญ่ทั้งหมด */
            margin: 0;
        }

        @keyframes subtitlePulse {
            0% {
                text-shadow: 0 0 5px rgba(0, 191, 255, 0.7), 0 0 10px rgba(0, 191, 255, 0.5);
                opacity: 0.9;
            }
            100% {
                text-shadow: 0 0 10px rgba(0, 191, 255, 0.9), 0 0 20px rgba(0, 122, 204, 0.7);
                opacity: 1; /* ให้รู้สึกว่าแสงกำลัง "เต้น" */
            }
        }
    /* เพิ่ม Margin ให้แต่ละข่าวเล็กน้อยเพื่อให้กระจายตัวสวยงาม */
    .news-item-premium {
        margin-bottom: 8px; /* ปรับค่านี้ให้พอดีกับพื้นที่ว่างที่ต้องการ */
    }
    .news-item-premium:last-child {
        margin-bottom: 0;
    }
    #news-pagination .btn-outline-light {
        color: #aaa;
        border-color: rgba(255,255,255,0.2);
    }
    #news-pagination .btn-primary {
        background-color: #6f42c1;
        border-color: #6f42c1;
    }

/* คอนเทนเนอร์คุมโลโก้ให้อยู่กลางสไลด์ */
    .logo-center-overlay {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        z-index: 5;
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
        pointer-events: none; /* เพื่อให้ยังสามารถกดปุ่ม Prev/Next ได้ */
    }

    /* ตัวโลโก้และการปรับขนาด */
    .slider-logo {
        width: 500px; /* ปรับขนาดโลโก้ได้ที่นี่ */
        height: auto;
        pointer-events: auto; /* ให้รับการ Hover ได้ */
        cursor: pointer;
        transition: all 0.4s ease-in-out;
        
        /* เอฟเฟคแสงพื้นหลัง (Glow) */
        filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.7));
    }

    /* เอฟเฟคเมื่อเอาเมาส์ไปวาง (Hover) */
    .slider-logo:hover {
        width: 400px; /* ขนาดเมื่อ Hover */
        filter: drop-shadow(0 0 30px rgba(255, 255, 255, 1)) brightness(1.1);
        transform: scale(1.1);
    }

    /* ปรับขนาดโลโก้สำหรับมือถือ */
    @media (max-width: 768px) {
        .slider-logo {
            width: 100px;
        }
        .slider-logo:hover {
            width: 110px;
        }
    }
.capsule-menu {
    /* ปรับจากเดิมเล็กน้อยเพื่อให้แอบข้างจอ */
    right: -65px !important; 
    transition: all 0.6s cubic-bezier(0.68, -0.6, 0.32, 1.6) !important;
}

/* เมื่อมี Class .active ให้เด้งกลับเข้ามา */
.capsule-menu.active {
    right: 20px !important;
}

/* สร้างปุ่มกด (Trigger) ที่ยื่นออกมาจากขอบ */
.menu-trigger {
    position: absolute;
    left: -35px; /* ยื่นออกมาทางซ้ายของตัวเมนู */
    top: 50%;
    transform: translateY(-50%);
    width: 35px;
    height: 70px;
    background: var(--main-purple); /* ใช้ตัวแปรเดิมของคุณ */
    border-radius: 15px 0 0 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
    box-shadow: -5px 0 15px rgba(157, 80, 187, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-right: none;
    z-index: -1;
}

/* ปรับแต่งไอคอนในปุ่ม Trigger */
.menu-trigger i {
    font-size: 1rem;
    transition: transform 0.4s ease;
}

/* หมุนลูกศรเมื่อเมนูเปิดออก */
.capsule-menu.active #triggerIcon {
    transform: rotate(180deg);
}

/* Responsive สำหรับมือถือ (ให้ซ่อนลงด้านล่างแทน) */
@media (max-width: 768px) {
    .capsule-menu {
        right: 50% !important;
        left: 50% !important;
        bottom: -70px !important; /* แอบลงข้างล่าง */
        top: auto !important;
        transform: translateX(-50%) !important;
    }
    .capsule-menu.active {
        bottom: 25px !important;
    }
    .menu-trigger {
        left: 50%;
        top: -30px;
        transform: translateX(-50%);
        width: 60px;
        height: 30px;
        border-radius: 15px 15px 0 0;
    }
}
.neon-divider-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 0; /* ระยะห่างบน-ล่าง ของเส้นคั่น */
    width: 100%;
    overflow: hidden;
}

/* เส้นฐานหลัก */
.neon-line-base {
    height: 1px;
    width: 100%;
    /* ไล่สีจากโปร่งใส -> ม่วงนีออน -> โปร่งใส */
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(188, 19, 254, 0.2) 20%, 
        rgba(188, 19, 254, 1) 50%, 
        rgba(188, 19, 254, 0.2) 80%, 
        transparent 100%);
    position: relative;
}

/* ลูกเล่นแสงวิ่งผ่านเส้น (Scanline Effect) */
.neon-line-base::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 30%;
    height: 100%;
    background: linear-gradient(90deg, transparent, #fff, transparent);
    animation: dividerScan 4s cubic-bezier(0.4, 0, 0.2, 1) infinite;
    opacity: 0.8;
}

/* จุดกลมตรงกลาง (Orb) */
.neon-orb-center {
    position: absolute;
    width: 8px;
    height: 8px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 
        0 0 10px #fff,
        0 0 20px #bc13fe,
        0 0 40px #bc13fe;
    z-index: 2;
    animation: orbPulse 2s ease-in-out infinite alternate;
}

/* Animation: แสงวิ่ง */
@keyframes dividerScan {
    0% { left: -100%; }
    50% { left: 100%; }
    100% { left: 100%; }
}

/* Animation: จุดกลางกะพริบ */
@keyframes orbPulse {
    from {
        transform: scale(1);
        opacity: 0.8;
        box-shadow: 0 0 10px #fff, 0 0 20px #bc13fe;
    }
    to {
        transform: scale(1.3);
        opacity: 1;
        box-shadow: 0 0 15px #fff, 0 0 30px #bc13fe, 0 0 50px #bc13fe;
    }
}
.ultra-sub-glow {
    display: inline-flex;
    position: relative;
    isolation: isolate;
    padding: 3px 12px;
    margin: 5px;
    background: #000000; 
    border-radius: 3px;
    /* เน้นเส้นขอบกรอบให้ชัดเพื่อสร้างขอบเขตสายตา */
    border: 1px solid #00FFFF; 
    align-items: center;
    justify-content: center;
    overflow: hidden;
    /* สร้างรัศมีเรืองแสงที่ตัวกรอบแทนตัวหนังสือ */
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.3), inset 0 0 5px rgba(191, 0, 255, 0.2);
}

.sub-text-neon {
    font-size: 10px;
    font-weight: 800; /* ปรับลดลงเล็กน้อยไม่ให้ตัวอักษรเบียดกันจนตัน */
    letter-spacing: 2px;
    text-transform: uppercase;
    
    /* --- ปรับจุดนี้เพื่อให้ชัด --- */
    /* เปลี่ยนจาก Gradient เป็นสีเดี่ยวสว่างๆ (Cyan) จะอ่านง่ายกว่ามากในขนาดเล็ก */
    color: #00FFFF; 
    
    /* ถอด drop-shadow ที่ตัวหนังสือออก เพื่อไม่ให้มันฟุ้งกลบเส้นอักษร */
    filter: none; 
    
    /* ใส่เงาบางๆ ด้านหลังตัวหนังสือแค่ชั้นเดียวเพื่อสร้างมิติ */
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
    
    white-space: nowrap;
    position: relative;
    z-index: 2;
}

/* เอฟเฟกต์เรืองแสงพื้นหลัง (Aura) - ย้ายมาฟุ้งที่ขอบนอกแทน */
.ultra-sub-glow::before {
    content: '';
    position: absolute;
    inset: 0;
    /* ใช้แสงจางๆ วิ่งรอบๆ แทนการฟุ้งกระจาย */
    background: linear-gradient(90deg, transparent, rgba(191, 0, 255, 0.2), transparent);
    z-index: -1;
}

/* แสงวิ่งผ่านแบบคมๆ (Scanline Effect) */
.ultra-sub-glow::after {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 20px;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 255, 0.4), transparent);
    transform: skewX(-20deg);
    animation: shine-sweep 3s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

@keyframes shine-sweep {
    0% { left: -120%; }
    100% { left: 220%; }
}
:root {
    /* สีชมพู Coral แบบพรีเมียม */
    --pink-coral: #FF7F50; 
    --coral-glow: rgba(255, 127, 80, 0.6);
    --soft-white: #fff5f2;
}

.coral-glow-container {
    padding: 2rem;
    text-align: center;
    background: rgba(255, 127, 80, 0.03); /* พื้นหลังเรืองแสงจางๆ */
    border-radius: 20px;
    position: relative;
    overflow: hidden;
}

.coral-text-premium {
    font-size: 3.5rem;
    font-weight: 900;
    color: var(--soft-white);
    letter-spacing: 4px;
    /* เอฟเฟกต์ไล่สีจากขาวไป Coral */
    background: linear-gradient(to bottom, #ffffff 20%, var(--pink-coral) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    
    /* เอฟเฟกต์เรืองแสง (Multi-layer Glow) */
    filter: drop-shadow(0 0 10px var(--coral-glow)) 
            drop-shadow(0 0 20px rgba(255, 127, 80, 0.3));
    
    animation: coralPulse 3s ease-in-out infinite alternate;
}

.coral-subtext {
    color: var(--pink-coral);
    font-size: 1rem;
    letter-spacing: 2px;
    opacity: 0.8;
    text-transform: uppercase;
    margin-top: 10px;
}

/* เอฟเฟกต์พื้นหลังเรืองแสงแบบวูบวาบ */
@keyframes coralPulse {
    from {
        filter: drop-shadow(0 0 10px var(--coral-glow));
        transform: scale(1);
    }
    to {
        filter: drop-shadow(0 0 25px var(--pink-coral));
        transform: scale(1.02);
    }
}

/* เอฟเฟกต์แสงฟุ้ง (Backlight) */
.coral-glow-container::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 200px;
    background: var(--pink-coral);
    filter: blur(100px);
    opacity: 0.15;
    z-index: -1;
}
@media (min-width: 1200px) {
    .slider-container {
        min-height: 500px !important;
    }
}

@media (max-width: 1199px) {
    .slider-container {
        min-height: 250px !important; /* ปรับลดความสูงลงในมือถือเพื่อให้พอดีจอ */
        aspect-ratio: 16/9;
    }
    .carousel-caption h1 {
        font-size: 1.8rem; /* ลดขนาดหัวข้อในมือถือไม่ให้บังภาพ */
    }
}
/* แกนกลาง Timeline */
.timeline-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
}

.timeline-central-axis {
    position: absolute;
    width: 2px;
    background: linear-gradient(to bottom, transparent, var(--neon-light), var(--royal-purple), transparent);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -1px;
    z-index: 1;
}

/* จุดกลมกลางแกน */
.timeline-dot {
    position: absolute;
    width: 20px;
    height: 20px;
    background: var(--deep-void);
    border: 2px solid var(--neon-light);
    border-radius: 50%;
    top: 40px;
    left: 50%;
    margin-left: -10px;
    z-index: 5;
}

/* การจัดวาง Item */
.timeline-item {
    padding: 10px 40px;
    position: relative;
    width: 50%;
    z-index: 2;
}

.timeline-item.left { left: 0; text-align: right; }
.timeline-item.right { left: 50%; text-align: left; }

/* ทำให้การ์ดใน Timeline สวยขึ้น */
.timeline-item .ethereal-card {
    transition: 0.4s ease;
    cursor: default;
}

/* เอฟเฟกต์เส้นเชื่อม (Connector) */
.timeline-item::after {
    content: '';
    position: absolute;
    width: 40px;
    height: 2px;
    background: var(--neon-light);
    top: 50px;
    z-index: 1;
    opacity: 0.5;
}

.timeline-item.left::after { right: 0; }
.timeline-item.right::after { left: 0; }

/* Responsive สำหรับมือถือ (ให้เรียงต่อกัน) */
@media (max-width: 767px) {
    .timeline-central-axis { left: 30px; }
    .timeline-item { width: 100%; padding-left: 70px; padding-right: 25px; text-align: left !important; }
    .timeline-item.right { left: 0; }
    .timeline-dot { left: 30px; }
    .timeline-item::after { left: 30px; width: 40px; }
}

/* เพิ่ม Glow ให้กับ Progress Bar */
.progress-bar {
    box-shadow: 0 0 10px var(--neon-light);
}
/* พื้นหลังมืดสนิทเพื่อขับแสงนีออน */
.grand-cosmic-footer {
    position: relative;
    background: #05010a; /* มืดลึกแบบ Void */
    padding-top: 100px;
    padding-bottom: 40px;
    overflow: hidden;
    color: #fff;
}

/* แสงฟุ้งด้านบนและล่าง */
.void-glow-top {
    position: absolute;
    top: -150px; left: 50%; transform: translateX(-50%);
    width: 100%; height: 300px;
    background: radial-gradient(circle, rgba(188, 19, 254, 0.15) 0%, transparent 70%);
    filter: blur(80px);
}

/* เส้น Divider นีออนแบบ Dynamic */
.cosmic-divider {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 2px;
    background: linear-gradient(90deg, transparent, #bc13fe, #fff, #3e0a6d, transparent);
    background-size: 200% 100%;
    animation: cosmicShift 5s linear infinite;
    box-shadow: 0 0 25px rgba(188, 19, 254, 0.6);
}

@keyframes cosmicShift {
    0% { background-position: 200% 0%; }
    100% { background-position: -200% 0%; }
}

/* หัวข้อใหญ่แบบ Mega Title */
.mega-title {
    font-size: 3.5rem;
    font-weight: 900;
    letter-spacing: 10px;
    background: linear-gradient(to bottom, #fff 30%, #bc13fe 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 20px rgba(188, 19, 254, 0.5));
    margin-bottom: 0;
}

.sub-title-glow {
    font-size: 0.8rem;
    letter-spacing: 5px;
    color: var(--text-purple);
    text-shadow: 0 0 10px var(--neon-light);
    font-weight: bold;
}

/* หัวข้อส่วนต่างๆ */
.footer-heading-neon {
    font-size: 1.1rem;
    font-weight: 800;
    letter-spacing: 3px;
    margin-bottom: 30px;
    color: #fff;
    border-left: 4px solid var(--neon-light);
    padding-left: 15px;
}

/* การจัดรายการลิงก์ */
.f-link {
    display: block;
    color: var(--text-purple);
    text-decoration: none;
    margin-bottom: 12px;
    font-weight: 500;
    transition: 0.4s;
    opacity: 0.6;
}
.f-link span { color: var(--neon-light); opacity: 0; transition: 0.3s; margin-right: 5px; }
.f-link:hover {
    opacity: 1;
    color: #fff;
    transform: translateX(10px);
    text-shadow: 0 0 10px var(--neon-light);
}
.f-link:hover span { opacity: 1; }

/* ปุ่มโซเชียลแบบล้ำๆ */
.btn-cosmic-icon {
    width: 50px; height: 50px;
    display: flex; align-items: center; justify-content: center;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(188, 19, 254, 0.2);
    border-radius: 12px;
    color: #fff;
    font-size: 1.2rem;
    transition: 0.4s;
    text-decoration: none;
}
.btn-cosmic-icon:hover, .btn-cosmic-icon.active {
    background: var(--royal-purple);
    border-color: var(--neon-light);
    box-shadow: 0 0 20px var(--neon-light);
    transform: translateY(-5px);
}

/* Credit Box */
.v-line { width: 1px; height: 30px; background: rgba(255,255,255,0.1); }
.ethereal-card {
    background: rgba(20, 10, 35, 0.4) !important;
    backdrop-filter: blur(15px);
    border: 1px solid rgba(188, 19, 254, 0.2);
    border-radius: 20px;
}

/* แถบล่างสุด */
.footer-copyright-zone {
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.05);
}
.copy-text, .tech-text {
    font-size: 0.7rem;
    color: var(--text-purple);
    opacity: 0.4;
    letter-spacing: 1px;
}
/* การจัดระเบียบ Stat ในส่วนซ้าย */
.stat-row-mini {
    display: flex;
    justify-content: space-between;
    padding: 12px 5px;
    border-bottom: 1px solid rgba(188, 19, 254, 0.1);
}
.stat-row-mini .label { color: var(--text-purple); font-size: 0.7rem; font-weight: bold; }
.stat-row-mini .val { color: rgba(255,255,255,0.8); font-size: 0.75rem; }

/* รายการข่าวสาร */
.news-item-premium {
    display: flex;
    align-items: center;
    padding: 15px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 15px;
    margin-bottom: 10px;
    border: 1px solid transparent;
    transition: 0.3s;
    cursor: pointer;
}
.news-item-premium:hover {
    background: rgba(188, 19, 254, 0.08);
    border-color: rgba(188, 19, 254, 0.2);
    transform: translateX(5px);
}
.news-item-premium.highlight {
    background: linear-gradient(90deg, rgba(62, 10, 109, 0.3), transparent);
    border-left: 3px solid var(--neon-light);
}

.news-tag {
    font-size: 0.6rem;
    padding: 3px 8px;
    background: var(--royal-purple);
    color: #fff;
    border-radius: 5px;
    margin-right: 15px;
    font-weight: bold;
}

.news-info { flex-grow: 1; }
.news-date { font-size: 0.7rem; color: var(--text-purple); opacity: 0.5; font-family: monospace; }

/* เอฟเฟกต์ปุ่ม */
.btn-click-effect { transition: 0.3s; position: relative; z-index: 5; }
.btn-click-effect:hover {
    background: rgba(188, 19, 254, 0.05);
}
.btn-click-effect:active { transform: scale(0.95); }

/* Custom Scrollbar */
.custom-scroll-purple::-webkit-scrollbar { width: 5px; }
.custom-scroll-purple::-webkit-scrollbar-track { background: rgba(0,0,0,0.2); border-radius: 10px; }
.custom-scroll-purple::-webkit-scrollbar-thumb { background: var(--royal-purple); border-radius: 10px; }
.custom-scroll-purple::-webkit-scrollbar-thumb:hover { background: var(--neon-light); }

/* ปรับระยะห่าง Card Inner ให้แน่นอน */
.card-inner {
    position: relative;
    z-index: 5;
}
/* เอฟเฟกต์รูปซูมเข้าช้าๆ */
.zoom-animation {
    animation: zoomAction 20s infinite alternate linear;
}

@keyframes zoomAction {
    from { transform: scale(1); }
    to { transform: scale(1.12); }
}

/* เลเยอร์ไล่เฉดสีให้ข้อความเด่น */
.cinematic-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to top, rgba(15, 5, 25, 0.95) 0%, rgba(15, 5, 25, 0.4) 50%, transparent 100%);
    z-index: 1;
}

/* การตั้งค่าลูกศร ซ้าย-ขวา ให้มาอยู่ตรงกลาง */
.custom-nav-btn {
    width: 60px !important;
    height: 60px !important;
    top: 50% !important;
    transform: translateY(-50%); /* ดันขึ้นกึ่งกลางพอดี */
    opacity: 0.8;
    z-index: 10;
    margin: 0 15px; /* เว้นระยะจากขอบรูป */
}

.nav-glass-circle {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(188, 19, 254, 0.5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.custom-nav-btn:hover .nav-glass-circle {
    background: rgba(188, 19, 254, 0.3);
    border-color: #bc13fe;
    box-shadow: 0 0 20px rgba(188, 19, 254, 0.6);
    transform: scale(1.1);
}

/* Indicators (ขีดล่าง) */
.custom-indicators [data-bs-target] {
    width: 45px;
    height: 4px;
    background-color: rgba(188, 19, 254, 0.3);
    border: none;
    border-radius: 2px;
}

.custom-indicators .active {
    background-color: #bc13fe;
    box-shadow: 0 0 10px #bc13fe;
}

/* Typography & Effects */
.glow-text {
    text-shadow: 0 0 15px rgba(188, 19, 254, 0.8);
    letter-spacing: 2px;
}

.badge-neon {
    display: inline-block;
    padding: 5px 15px;
    background: rgba(188, 19, 254, 0.1);
    border: 1px solid #bc13fe;
    color: #fff;
    font-size: 0.7rem;
    font-weight: bold;
    letter-spacing: 2px;
    border-radius: 4px;
}

.btn-premium-neon {
    background: linear-gradient(45deg, #3e0a6d, #bc13fe);
    border: 1px solid rgba(255,255,255,0.2);
    color: #fff;
    padding: 12px 35px;
    border-radius: 50px;
    font-weight: bold;
    transition: 0.3s;
}

.btn-premium-neon:hover {
    box-shadow: 0 0 20px rgba(188, 19, 254, 0.6);
    transform: translateY(-3px);
    color: #fff;
}

/* Animations สำหรับข้อความ */
.animate-up-1 { animation: fadeInUp 0.8s both 0.2s; }
.animate-up-2 { animation: fadeInUp 0.8s both 0.4s; }
.animate-up-3 { animation: fadeInUp 0.8s both 0.6s; }

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ซ่อนลูกศรในมือถือถ้าต้องการความสะอาดตา หรือจะเก็บไว้ก็ได้ */
@media (max-width: 768px) {
    .custom-nav-btn { width: 40px !important; margin: 0 5px; }
    .nav-glass-circle { width: 40px; height: 40px; font-size: 0.9rem; }
}
:root {
    --deep-void: #05010a;
    --royal-purple: #3e0a6d;
    --neon-light: #bc13fe;
    --text-purple: #d8b4fe;
}

/* แก้ไข Layout หลัก */
.ultra-premium-layout {
    min-height: 100vh;
    background-color: rgba(5, 1, 10, 0.3); 
    position: relative;
    overflow-x: hidden;
    display: flex;
    /* เปลี่ยนจาก center เป็น flex-start เพื่อให้คอนเทนต์เริ่มจากด้านบน */
    align-items: flex-start; 
    /* เว้นระยะห่างจากขอบบนสุดลงมาพอประมาณ (ปรับตัวเลขได้ตามชอบ) */
    padding-top: 2rem; 
}

/* Nebula & Star Background (คงเดิม) */
.nebula-bg, .star-field {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: 0;
    pointer-events: none;
}

.nebula-bg {
    background: radial-gradient(circle at 20% 30%, rgba(62, 10, 109, 0.4) 0%, transparent 40%),
                radial-gradient(circle at 80% 70%, rgba(188, 19, 254, 0.2) 0%, transparent 40%);
    filter: blur(80px);
    animation: nebulaMove 20s ease-in-out infinite alternate;
}

@keyframes nebulaMove {
    from { transform: scale(1) translate(0, 0); }
    to { transform: scale(1.2) translate(5%, 5%); }
}

/* --- ส่วนที่แก้ไข: กระจกฝ้าโปร่งแสง --- */
.ethereal-card {
    /* ปรับค่า 0.5 เพื่อความใส (0.1 ใสมาก - 0.9 ทึบ) */
    background: rgba(20, 10, 35, 0.5) !important; 
    
    /* ปรับค่าความชัดของกระจกฝ้าที่นี่ (20px คือกำลังสวย) */
    backdrop-filter: blur(20px) !important; 
    -webkit-backdrop-filter: blur(20px);
    
    border: 1px solid rgba(188, 19, 254, 0.3);
    border-radius: 25px;
    position: relative;
    z-index: 2;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    overflow: hidden;
    transition: 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.ethereal-card:hover {
    border-color: var(--neon-light);
    box-shadow: 0 0 40px rgba(188, 19, 254, 0.2);
    transform: translateY(-5px);
}

/* --- ส่วนอื่นๆ ห้ามแตะ (คงไว้ตามต้นฉบับทั้งหมด) --- */
.neon-line {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 3px;
    background: linear-gradient(90deg, transparent, var(--neon-light), transparent);
    animation: neonRun 3s linear infinite;
}

@keyframes neonRun {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.premium-title {
    font-weight: 900;
    letter-spacing: 5px;
    background: linear-gradient(to bottom, #fff, var(--text-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 10px rgba(188, 19, 254, 0.5));
    text-shadow: 0 0 15px rgba(188, 19, 254, 0.8);
}

.input-glow-wrapper label {
    display: block;
    color: var(--text-purple);
    font-size: 0.8rem;
    margin-bottom: 8px;
    letter-spacing: 1px;
}

.galactic-input {
    width: 100%;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(188, 19, 254, 0.2);
    border-radius: 12px;
    padding: 12px 20px;
    color: #fff;
    outline: none;
    transition: 0.3s;
    position: relative;
    z-index: 10 !important;
    pointer-events: auto !important;
}

.galactic-input:focus {
    background: rgba(188, 19, 254, 0.05);
    border-color: var(--neon-light);
    box-shadow: 0 0 15px rgba(188, 19, 254, 0.3);
}

.btn-galactic-primary {
    position: relative;
    background: var(--royal-purple);
    border: none;
    padding: 15px;
    border-radius: 15px;
    overflow: hidden;
    transition: 0.3s;
    z-index: 10 !important;
    pointer-events: auto !important;
}

.btn-galactic-primary .btn-text {
    position: relative;
    z-index: 2;
    color: #fff;
    font-weight: bold;
    letter-spacing: 2px;
}

.btn-galactic-primary:hover {
    transform: scale(1.02);
    box-shadow: 0 0 30px var(--neon-light);
}

.rank-node {
    display: flex;
    align-items: center;
    padding: 18px;
    background: rgba(255,255,255,0.03);
    border-radius: 20px;
    margin-bottom: 15px;
    border: 1px solid transparent;
    transition: 0.3s;
}

.rank-node:hover {
    background: rgba(188, 19, 254, 0.1);
    border-color: rgba(188, 19, 254, 0.3);
}

.rank-1 {
    background: linear-gradient(45deg, rgba(62, 10, 109, 0.4), rgba(188, 19, 254, 0.1));
    border: 1px solid var(--neon-light);
}

.guild-emblem {
    width: 50px; height: 50px;
    background: #000;
    border-radius: 12px;
    margin: 0 15px;
}

.shadow-glow { box-shadow: 0 0 15px var(--neon-light); }

.g-name { display: block; font-weight: bold; color: #fff; }
.g-score { font-size: 0.75rem; color: var(--text-purple); }

.neon-text-purple {
    color: #bc13fe;
    filter: drop-shadow(0 0 10px #bc13fe);
}

.carousel-control-prev, .carousel-control-next, .nav-link-premium {
    position: relative;
    z-index: 10 !important;
    pointer-events: auto !important;
}

@media (max-width: 1199px) {
    .ultra-premium-layout { padding: 20px 0; }
    .display-3 { font-size: 2.5rem; }
}
:root {
    --p-main: #a855f7;
    --p-soft: #e9d5ff;
    --p-glow: rgba(168, 85, 247, 0.3);
    /* ปรับกรอบหลังให้มืดสนิท โทนม่วงดำ */
    --glass: rgba(10, 5, 21, 0.95); 
}

/* --- แสงฟุ้งกระจายพื้นหลัง (เน้นคุมโทนมืด) --- */
.ambient-light {
    position: absolute;
    top: 50%; left: 50%;
    width: 600px; height: 600px;
    background: radial-gradient(circle, var(--p-glow) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 0;
    opacity: 0.6;
}

.timeline-header { text-align: center; margin-bottom: 100px; position: relative; z-index: 1; }
.sub-title { color: var(--p-soft); font-size: 0.9rem; letter-spacing: 4px; font-weight: 300; }
.main-title { 
    color: #fff; font-size: 3rem; font-weight: 900; margin: 10px 0;
    background: linear-gradient(to bottom, #fff, var(--p-soft));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}

/* --- เส้น Timeline พริ้วไหว --- */
.timeline-fluid-wrapper { position: relative; padding: 20px 0; }

.glow-path {
    position: absolute; top: 50px; left: 0;
    width: 100%; height: 2px;
    background: linear-gradient(90deg, transparent, rgba(168, 85, 247, 0.2), transparent);
}

.path-runner {
    position: absolute; top: 0; left: 0;
    width: 150px; height: 100%;
    background: linear-gradient(90deg, transparent, var(--p-main), #fff, var(--p-main), transparent);
    box-shadow: 0 0 20px var(--p-main);
    animation: flowRun 6s infinite ease-in-out;
}

@keyframes flowRun {
    0% { left: -10%; opacity: 0; }
    50% { opacity: 1; }
    100% { left: 110%; opacity: 0; }
}

/* --- การจัดวางแบบพริ้ว (Zig-Zag Softly) --- */
.timeline-grid {
    display: flex; justify-content: space-between;
    gap: 20px; position: relative; z-index: 2;
}

.timeline-card {
    flex: 1; position: relative;
    transition: 0.5s cubic-bezier(0.2, 1, 0.3, 1);
}

.timeline-card:nth-child(even) { transform: translateY(40px); }
.timeline-card:nth-child(odd) { transform: translateY(-40px); }

/* ปรับปรุงกรอบการ์ดให้มืดและคม */
.card-glass-wrap {
    background: var(--glass);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(168, 85, 247, 0.2);
    border-radius: 30px;
    padding: 30px 20px;
    text-align: center;
    transition: 0.4s;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

/* --- Node Portal --- */
.node-portal {
    width: 60px; height: 60px; margin: 0 auto 20px;
    position: relative; display: flex; align-items: center; justify-content: center;
}

.portal-core {
    width: 100%; height: 100%;
    background: #fff; border-radius: 50%;
    color: var(--p-main); font-size: 1.2rem;
    display: flex; align-items: center; justify-content: center;
    z-index: 2; box-shadow: 0 0 15px #fff;
    transition: 0.4s;
}

.portal-ring {
    position: absolute;
    width: 140%; height: 140%;
    border: 1px dashed var(--p-soft);
    border-radius: 50%;
    animation: spin 8s linear infinite;
    opacity: 0.5;
}

@keyframes spin { 100% { transform: rotate(360deg); } }

/* --- Content Style --- */
.ep-tag { color: var(--p-main); font-weight: 800; font-size: 0.75rem; display: block; margin-bottom: 10px; opacity: 0.9; }
.card-content h5 { color: #fff; font-size: 1.2rem; margin: 0 0 10px; letter-spacing: 1px; }
.card-content p { color: rgba(255,255,255,0.7); font-size: 0.8rem; line-height: 1.6; }

/* --- Hover Effects --- */
.timeline-card:hover { transform: translateY(0) scale(1.05) !important; z-index: 10; }

.timeline-card:hover .card-glass-wrap {
    background: #120524; /* มืดขึ้นแต่ดูมีมิติเมื่อ hover */
    border-color: var(--p-main);
    box-shadow: 0 20px 40px rgba(0,0,0,0.6);
}

.timeline-card:hover .portal-core {
    background: var(--p-main); color: #fff;
    box-shadow: 0 0 25px var(--p-main);
}

.timeline-card:hover .portal-ring {
    opacity: 1; border-style: solid; transform: scale(1.1);
}

/* --- Featured Item --- */
.featured .card-glass-wrap {
    border: 1px solid var(--p-main);
    background: linear-gradient(180deg, rgba(168, 85, 247, 0.15), var(--glass));
}

/* --- Mobile --- */
@media (max-width: 992px) {
    .timeline-grid { flex-direction: column; gap: 80px; align-items: center; }
    .timeline-card { width: 100%; max-width: 350px; }
    .timeline-card:nth-child(even), .timeline-card:nth-child(odd) { transform: translateY(0); }
    .glow-path { width: 2px; height: 100%; left: 50%; top: 0; }
}
/* บังคับซ่อนสำหรับ Chrome, Safari, Edge (WebKit) */
html, body, .hide-scroll {
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none !important; /* Firefox */
    -ms-overflow-style: none !important;  /* IE and Edge */
}

html::-webkit-scrollbar, 
body::-webkit-scrollbar, 
.hide-scroll::-webkit-scrollbar {
    display: none !important; /* Chrome, Safari, Opera */
    width: 0 !important;
    height: 0 !important;
}
/* --- ส่วนที่ 1: Acrux Fantasy Portal (ปรับโทนมืด) --- */
:root {
    --f-purple: #b794f4;
    --f-purple-dark: #805ad5;
    --f-white: #ffffff;
    /* เปลี่ยนจากขาวใส เป็นม่วงดำมืด */
    --f-glass: rgba(10, 5, 21, 0.9); 
}

.acrux-fantasy-portal {
    padding: 50px 0;
    font-family: 'Kanit', sans-serif;
}

.portal-container {
    display: flex;
    max-width: 1200px;
    margin: 0 auto;
    gap: 25px;
    padding: 0 15px;
}

.fantasy-card {
    position: relative;
    background: var(--f-glass);
    border: 2px solid rgba(168, 85, 247, 0.25); /* เปลี่ยนขอบเป็นม่วงจาง */
    border-radius: 40px;
    padding: 30px;
    height: 100%;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    overflow: hidden;
    box-sizing: border-box;
}

.inner-shine {
    position: absolute;
    top: 0; left: -150%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(168, 85, 247, 0.1), transparent);
    transform: skewX(-20deg);
    transition: 0.8s;
}
.fantasy-card:hover .inner-shine { left: 150%; }

.card-header { display: flex; align-items: center; gap: 15px; margin-bottom: 25px; }

.icon-wrap-fantasy {
    width: 55px; height: 55px;
    background: var(--f-purple-dark); /* เปลี่ยนพื้นหลังไอคอนเป็นม่วงเข้ม */
    border-radius: 18px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem; color: #fff;
    box-shadow: 0 0 20px rgba(168, 85, 247, 0.4);
}
.blue-glow { box-shadow: 0 0 20px rgba(168, 85, 247, 0.4); color: #fff; }

.header-titles h4 { margin: 0; color: #fff; font-size: 1.3rem; letter-spacing: 1px; }
.status-badge-soft { font-size: 0.75rem; color: #eee; display: flex; align-items: center; gap: 6px; }
.dot-online { width: 8px; height: 8px; background: #a855f7; border-radius: 50%; box-shadow: 0 0 10px #a855f7; }

.fantasy-stats-grid { display: grid; gap: 10px; margin-bottom: 20px; }
.stat-item {
    background: rgba(255, 255, 255, 0.05); /* เปลี่ยนจากขาวล้วนเป็นโปร่งแสง */
    padding: 12px 18px; border-radius: 18px;
    display: flex; align-items: center; gap: 12px;
}
.stat-item i { color: var(--f-purple); font-size: 1.2rem; }
.stat-info span { display: block; font-size: 0.65rem; color: #bbb; font-weight: bold; }
.stat-info strong { font-size: 1.1rem; color: #fff; }

.rate-group { margin-bottom: 15px; }
.rate-group label {
    display: block; font-size: 0.8rem; color: var(--f-purple);
    font-weight: bold; margin-bottom: 6px; padding-left: 5px;
}
.rate-line {
    display: flex; justify-content: space-between;
    padding: 8px 15px; background: rgba(255,255,255,0.04);
    border-radius: 12px; margin-bottom: 4px;
    color: #fff; font-size: 0.85rem; transition: 0.3s;
    border: 1px solid rgba(255,255,255,0.05);
}
.rate-line:hover { background: rgba(168, 85, 247, 0.2); transform: translateX(5px); }
.highlight-purple { background: var(--f-purple-dark); border: 1px solid rgba(255,255,255,0.3); }
.glow-txt { text-shadow: 0 0 8px rgba(255,255,255,0.8); }

.fantasy-news-list { display: flex; flex-direction: column; gap: 12px; }
.news-link-fantasy {
    display: flex; align-items: center;
    background: rgba(255,255,255,0.05);
    padding: 18px; border-radius: 25px;
    text-decoration: none; border: 1px solid rgba(255,255,255,0.05);
    transition: 0.3s;
}
.news-link-fantasy:hover { background: rgba(168, 85, 247, 0.1); border-color: var(--f-purple); }

.news-date {
    background: var(--f-purple-dark); color: #fff;
    width: 55px; height: 55px; border-radius: 15px;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    font-weight: bold; font-size: 1.1rem; margin-right: 18px; flex-shrink: 0;
}
.news-date small { font-size: 0.6rem; opacity: 0.8; }

.news-main h5 { margin: 0 0 5px; color: #fff; font-size: 1.05rem; }
.news-main p { margin: 0; color: rgba(255,255,255,0.6); font-size: 0.85rem; line-height: 1.4; }

.news-link-fantasy:hover h5 { color: var(--f-purple); }
.news-link-fantasy:hover p { color: #fff; }

.pink-mode .news-date { background: #9b6dff; }
.green-mode .news-date { background: #7c4dff; }

.news-arrow { margin-left: auto; font-size: 1.3rem; color: #fff; opacity: 0.4; transition: 0.3s; }
.news-link-fantasy:hover .news-arrow { transform: scale(1.2); color: var(--f-purple); opacity: 1; }

/* --- ส่วนที่ 2: Acrux Soft Portal (ปรับโทนมืด) --- */
:root {
    --soft-purple: #b197fc;
    --soft-white: #ffffff;
    --text-dark: #ffffff; /* เปลี่ยนเป็นขาวเผื่อไว้สำหรับ Hover */
    --bg-blur: rgba(10, 5, 21, 0.85); /* เปลี่ยนจากขาวใส เป็นม่วงดำ */
}

.acrux-soft-portal {
    padding: 60px 0;
    font-family: 'Kanit', sans-serif;
}

.side-30 { flex: 0 0 30%; }
.side-70 { flex: 0 0 70%; }

.puffy-card {
    position: relative;
    background: var(--bg-blur);
    border: 3px solid rgba(168, 85, 247, 0.2);
    border-radius: 45px;
    padding: 35px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
    height: 100%;
    box-sizing: border-box;
}

.puffy-card:hover {
    transform: translateY(-8px);
    border-color: var(--soft-purple);
    background: rgba(20, 10, 40, 0.95);
    box-shadow: 0 20px 40px rgba(168, 85, 247, 0.2);
}

.cloud-blob {
    position: absolute;
    width: 150px; height: 150px;
    background: var(--soft-purple);
    filter: blur(70px);
    opacity: 0.15;
    bottom: -50px; right: -50px;
    z-index: -1;
}

.puffy-header { display: flex; align-items: center; gap: 15px; margin-bottom: 25px; }

.icon-circle {
    width: 50px; height: 50px;
    background: var(--soft-purple); /* เปลี่ยนเป็นสีม่วง */
    border-radius: 18px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem; color: #fff;
}

.shadow-purple { box-shadow: 0 8px 15px rgba(168, 85, 247, 0.4); }
.shadow-blue { box-shadow: 0 8px 15px rgba(168, 85, 247, 0.4); }

.puffy-header h4 { margin: 0; color: #fff; font-size: 1.2rem; letter-spacing: 1px; }

.online-pill {
    background: rgba(168, 85, 247, 0.2);
    color: #fff;
    padding: 8px 20px; border-radius: 30px;
    font-size: 0.8rem; font-weight: bold;
    display: inline-flex; align-items: center; gap: 10px;
    margin-bottom: 25px;
    border: 1px solid var(--soft-purple);
}

.pulse-dot { width: 10px; height: 10px; background: #a855f7; border-radius: 50%; animation: soft-pulse 2s infinite; }

.rate-row-soft {
    display: flex; justify-content: space-between;
    padding: 12px 20px; background: rgba(255, 255, 255, 0.05);
    border-radius: 20px; margin-bottom: 10px;
    color: #fff; border: 1px solid rgba(255, 255, 255, 0.05);
}

.purple-highlight {
    background: var(--soft-purple);
    box-shadow: 0 5px 15px rgba(168, 85, 247, 0.4);
}

.news-soft-container { display: flex; flex-direction: column; gap: 15px; }

.news-item-soft {
    display: flex; align-items: center;
    background: rgba(255, 255, 255, 0.05);
    padding: 20px; border-radius: 30px;
    text-decoration: none; transition: 0.3s;
    border: 1px solid transparent;
}

.news-item-soft:hover {
    background: rgba(168, 85, 247, 0.15);
    border-color: var(--soft-purple);
    transform: scale(1.02);
}

.date-tag {
    background: var(--soft-purple);
    color: #fff; padding: 10px; border-radius: 20px;
    font-size: 0.75rem; text-align: center;
    font-weight: bold; min-width: 60px; margin-right: 20px;
}

.news-item-soft h5 { margin: 0 0 5px; color: #fff; font-size: 1.1rem; }
.news-item-soft p { margin: 0; color: rgba(255,255,255,0.6); font-size: 0.85rem; }

.news-item-soft:hover h5 { color: var(--soft-purple); }
.news-item-soft:hover p { color: #fff; }

.go-btn {
    margin-left: auto; width: 35px; height: 35px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%; display: flex;
    align-items: center; justify-content: center;
    color: #fff; transition: 0.3s;
}

.news-item-soft:hover .go-btn { background: var(--soft-purple); transform: rotate(-45deg); }

@keyframes soft-pulse {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(168, 85, 247, 0.7); }
    70% { transform: scale(1.1); box-shadow: 0 0 0 10px rgba(168, 85, 247, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(168, 85, 247, 0); }
}

@media (max-width: 992px) {
    .portal-container { flex-direction: column; }
    .side-30, .side-70 { flex: 0 0 100% !important; }
}
/* --- Base Theme (Acrux Modern Fantasy - Dark Mode Version) --- */
:root {
    --purple-vibrant: #a855f7; /* ม่วงสว่าง */
    --purple-soft: #d8b4fe;    /* ม่วงอ่อน */
    --purple-glow: rgba(168, 85, 247, 0.3); /* ลดความสว่างลงเพื่อให้โทนมืดดูสมดุล */
    --white-soft: rgba(255, 255, 255, 0.95); /* ขาวนุ่มๆ */
    --text-primary: #ffffff;
    --text-muted: rgba(255, 255, 255, 0.7);
}

.acrux-portal-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    flex-wrap: wrap;
}

/* --- Premium Menu Card (Dark Glassmorphism) --- */
.premium-menu-card {
    position: relative;
    display: block;
    width: 300px;
    margin-bottom: 25px;
    text-decoration: none;
    z-index: 1;
}

.menu-inner-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    padding: 18px 25px;
    /* ปรับพื้นหลังให้มืดสนิท (ม่วงดำ) เพื่อให้เป็นโทนมืด */
    background: rgba(10, 5, 21, 0.85); 
    border: 2px solid rgba(168, 85, 247, 0.2);
    border-radius: 20px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 2;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
}

/* เอฟเฟกต์เรืองแสงหลังปุ่ม */
.card-glow-effect {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 140%;
    background: radial-gradient(circle, var(--purple-glow) 0%, transparent 70%);
    filter: blur(20px);
    opacity: 0.5;
    z-index: 1;
    transition: all 0.4s ease;
}

/* --- Hover/Active Action --- */
.premium-menu-card:hover .menu-inner-wrapper {
    transform: translateY(-8px) scale(1.02);
    border-color: var(--purple-soft); /* ขอบม่วงขาวสว่างเมื่อ hover */
    box-shadow: 0 0 15px rgba(168, 85, 247, 0.3), 0 0 30px var(--purple-vibrant);
    background: rgba(20, 10, 40, 0.95); /* มืดขึ้นแต่ดูพรีเมียม */
}

.premium-menu-card:hover .card-glow-effect {
    opacity: 1;
    width: 130%;
    filter: blur(30px);
    background: radial-gradient(circle, rgba(240, 230, 255, 0.2) 0%, var(--purple-vibrant) 70%);
}

/* --- Icon & Text Style --- */
.menu-icon-box {
    width: 55px;
    height: 55px;
    margin-right: 18px;
    display: flex;
    justify-content: center;
    align-items: center;
    filter: drop-shadow(0 0 10px rgba(168, 85, 247, 0.5)) drop-shadow(0 0 20px var(--purple-vibrant));
}

.menu-icon-box img {
    width: 100%;
    height: auto;
}

.menu-text-content {
    display: flex;
    flex-direction: column;
}

.sub-title-en {
    color: var(--purple-soft); 
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 2px;
}

.main-title-th {
    color: var(--text-primary); 
    font-size: 1.3rem;
    font-weight: bold;
    text-shadow: 0 0 10px rgba(168, 85, 247, 0.5);
}

/* --- Acrux Center Logo Effects (Supernova) --- */
.acrux-center-logo {
    position: relative;
    width: 400px;
    height: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 5;
}

.logo-aurora-glow {
    position: absolute;
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(240, 230, 255, 0.3) 0%, var(--purple-vibrant) 50%, transparent 70%);
    filter: blur(50px);
    opacity: 0.5;
    animation: pulse-aura 5s infinite ease-in-out;
}

.logo-light-ring {
    position: absolute;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    border: 3px solid transparent;
    border-top: 3px solid #ffffff;
    border-bottom: 3px solid var(--purple-soft);
    filter: blur(2px) drop-shadow(0 0 15px var(--purple-vibrant));
    animation: rotate-ring 15s linear infinite;
}

.logo-particles {
    position: absolute;
    width: 100px;
    height: 100px;
    top: -50px;
    z-index: 2;
}

.logo-particles span {
    position: absolute;
    width: 4px;
    height: 4px;
    background: #ffffff;
    border-radius: 50%;
    filter: blur(1px) drop-shadow(0 0 5px var(--purple-soft));
    animation: particles-up 3s infinite linear;
}

/* รักษาสัดส่วนอนุภาคเดิม */
.logo-particles span:nth-child(1) { left: 10%; animation-delay: 0s; width: 3px; height: 3px; }
.logo-particles span:nth-child(2) { left: 30%; animation-delay: 0.5s; }
.logo-particles span:nth-child(3) { left: 50%; animation-delay: 1.2s; width: 5px; height: 5px; }
.logo-particles span:nth-child(4) { left: 70%; animation-delay: 0.8s; }
.logo-particles span:nth-child(5) { left: 90%; animation-delay: 1.5s; width: 3px; height: 3px; }
.logo-particles span:nth-child(6) { left: 60%; animation-delay: 1.8s; }

.portal-main-logo {
    position: relative;
    width: 140%; 
    max-width: 500px; 
    height: auto;
    z-index: 10;
    cursor: pointer;
    filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.2)) 
            drop-shadow(0 0 30px var(--purple-vibrant));
    animation: logo-floating 4s ease-in-out infinite;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.portal-main-logo:hover {
    transform: scale(1.1) translateY(-10px) rotate(2deg);
    filter: drop-shadow(0 0 25px rgba(255, 255, 255, 0.4)) 
            drop-shadow(0 0 50px var(--purple-vibrant))
            brightness(1.1);
}

/* --- Animation Keyframes --- */
@keyframes logo-floating {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

@keyframes pulse-aura {
    0%, 100% { transform: scale(1); opacity: 0.4; }
    50% { transform: scale(1.2); opacity: 0.7; }
}

@keyframes rotate-ring {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes particles-up {
    0% { transform: translateY(0); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translateY(-100px); opacity: 0; }
}

/* Mobile Responsive */
@media (max-width: 992px) {
    .acrux-portal-container { flex-direction: column; padding: 40px; }
    .acrux-side-menu { order: 2; }
    .acrux-center-logo { order: 1; width: 250px; height: 250px; }
    .logo-light-ring { width: 220px; height: 220px; }
}

/* --- Cloud Divider (Dark Theme) --- */
.header-cloud-divider {
    position: relative;
    width: 100%;
    line-height: 0;
    margin-top: -100px;
    z-index: 10;
}

.clouds-svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 150px;
}

/* ปรับสีเมฆให้มืดลง เพื่อให้กลืนไปกับพื้นหลังโทนมืด */
.cloud-path { transition: all 0.3s ease; }

.cloud-bg-back {
    fill: #1a0b2e; /* ม่วงเข้มมืด */
    opacity: 0.8;
    animation: cloud-float 8s ease-in-out infinite;
}

.cloud-bg-mid {
    fill: #2d1b4d; /* ม่วงมืดกลาง */
    opacity: 0.9;
    animation: cloud-float 6s ease-in-out infinite reverse;
}

.cloud-bg-front {
    fill: #0a0515; /* มืดสนิทเหมือนพื้นหลัง */
    animation: cloud-float 4s ease-in-out infinite;
}

@keyframes cloud-float {
    0%, 100% { transform: translateY(0) scaleX(1); }
    50% { transform: translateY(-15px) scaleX(1.02); }
}

@media (max-width: 768px) {
    .clouds-svg { height: 80px; }
    .header-cloud-divider { margin-top: -50px; }
}

.cloud-bg-front {
    filter: drop-shadow(0 -5px 15px rgba(168, 85, 247, 0.2));
}
	:root {
    --p-neon: #bc13fe;
    --p-dark: #4a00e0;
    --white-soft: rgba(255, 255, 255, 0.9);
}

/* --- Container หลัก --- */
.top-announcement-bar {
    width: 100%;
    height: 45px;
    background: rgba(20, 0, 40, 0.85); /* ม่วงมืดโปร่งแสง */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    position: relative;
    z-index: 9999; /* ให้อยู่บนสุดเสมอ */
    display: flex;
    align-items: center;
    overflow: hidden;
    border-bottom: 1px solid rgba(188, 19, 254, 0.2);
}

.announcement-container {
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    height: 100%;
}

/* --- ป้ายประกาศฝั่งซ้าย --- */
.announcement-label {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--p-neon);
    color: white;
    padding: 0 15px;
    height: 100%;
    font-family: 'Kanit', sans-serif;
    font-weight: 600;
    font-size: 0.85rem;
    clip-path: polygon(0 0, 90% 0, 100% 100%, 0% 100%); /* ทรงเฉียงเท่ๆ */
    margin-right: 15px;
    white-space: nowrap;
}

/* --- ระบบข้อความเลื่อน (Infinite Marquee) --- */
.marquee-wrapper {
    flex: 1;
    overflow: hidden;
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
}

.marquee-content {
    display: flex;
    white-space: nowrap;
    animation: marqueeFlow 30s linear infinite; /* ปรับความเร็วตรงนี้ */
}

.marquee-item {
    font-family: 'Mitr', sans-serif;
    color: var(--white-soft);
    font-size: 0.9rem;
    padding-right: 100px; /* ระยะห่างระหว่างประโยค */
    font-weight: 300;
}

.marquee-item i {
    color: var(--p-neon);
}

@keyframes marqueeFlow {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* --- ปุ่ม Join ฝั่งขวา --- */
.btn-top-join {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    text-decoration: none;
    font-size: 0.75rem;
    padding: 4px 12px;
    border-radius: 50px;
    border: 1px solid rgba(188, 19, 254, 0.5);
    transition: 0.3s;
    white-space: nowrap;
}

.btn-top-join:hover {
    background: var(--p-neon);
    box-shadow: 0 0 15px var(--p-neon);
    color: white;
}

/* --- เส้นนีออนวิ่งด้านล่าง --- */
.topbar-bottom-line {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--p-neon), #fff, var(--p-neon), transparent);
    background-size: 200% 100%;
    animation: lineFlow 4s linear infinite;
}

@keyframes lineFlow {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Responsive สำหรับมือถือ */
@media (max-width: 768px) {
    .announcement-label span, .announcement-close {
        display: none; /* ซ่อนตัวหนังสือ News และปุ่ม Join บนมือถือเพื่อประหยัดพื้นที่ */
    }
    .announcement-label { padding: 0 10px; margin-right: 5px; }
    .marquee-item { font-size: 0.8rem; padding-right: 50px; }
}
/* --- Base Theme (Acrux Dark Glass) --- */
:root {
    --p-bright: #bc13fe;
    --p-soft: #e0c3fc;
    /* ปรับจากขาวโปร่งแสง เป็นม่วงดำมืดโปร่งแสง */
    --glass-white: rgba(10, 5, 21, 0.85); 
    --glass-border: rgba(188, 19, 254, 0.3); /* ขอบม่วงจางๆ */
    --font-heading: 'Kanit', sans-serif;
    --font-body: 'Mitr', sans-serif;
}

/* --- Main Slider Container --- */
.glass-portal-slider {
    width: 100%;
    min-height: 550px;
    position: relative;
    overflow: hidden;
    border-radius: 40px;
    background: #0a0515; /* พื้นหลังกันแสงรั่ว */
    box-shadow: 0 30px 60px rgba(0,0,0,0.6);
}

/* --- LAYER 1: รูปพื้นหลัง (Full Cover) --- */
.slide-bg-image {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
    opacity: 0.6; /* ลดความสว่างรูปพื้นหลังลงเพื่อให้โทนมืดชัดขึ้น */
    transition: transform 1s ease-out;
}

.carousel-item.active .slide-bg-image {
    transform: scale(1.1);
}

/* --- LAYER 2: หน้าต่างกระจกฝ้า (The Glass Portal - Dark Mode) --- */
.glass-portal-content {
    position: relative;
    z-index: 10;
    background: var(--glass-white);
    backdrop-filter: blur(15px); /* เพิ่มความเบลอให้ดูพรีเมียม */
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    width: 90%;
    max-width: 1100px;
    height: 85%;
    margin: 40px auto;
    border-radius: 30px;
    padding: 50px;
    box-shadow: 0 25px 50px rgba(0,0,0,0.5), inset 0 0 20px rgba(188, 19, 254, 0.1);
    display: flex;
    align-items: center;
}

/* --- Content Styling --- */
.content-side { text-align: left; padding-right: 20px; }

.badge-portal {
    background: linear-gradient(135deg, var(--p-bright), var(--p-soft));
    color: white;
    padding: 6px 18px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 2px;
    margin-bottom: 20px;
    display: inline-block;
    box-shadow: 0 0 15px rgba(188, 19, 254, 0.5);
}
.badge-portal.promo { background: linear-gradient(135deg, #ffd700, #ff8c00); }

.portal-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 3rem;
    color: #ffffff;
    margin-bottom: 15px;
    text-shadow: 0 0 15px rgba(188, 19, 254, 0.6); /* เงาสีม่วงฟุ้ง */
}

.portal-desc {
    color: rgba(255,255,255,0.7);
    font-size: 1.1rem;
    line-height: 1.6;
    font-weight: 300;
    margin-bottom: 30px;
}

.btn-read-more-portal {
    color: var(--p-soft);
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    transition: 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.btn-read-more-portal:hover {
    color: #ffffff;
    transform: translateX(10px);
    text-shadow: 0 0 10px var(--p-bright);
}

/* --- Image & Aura Styling --- */
.image-side { position: relative; display: flex; justify-content: center; align-items: center; }

.orb-glow-purple {
    position: absolute;
    width: 300px; height: 300px;
    background: radial-gradient(circle, var(--p-bright) 0%, transparent 70%);
    opacity: 0.5;
    filter: blur(50px);
    z-index: 1;
}

.floating-logo {
    position: relative;
    z-index: 2;
    max-height: 380px;
    filter: drop-shadow(0 0 20px rgba(188, 19, 254, 0.4));
    animation: floatLogo 5s ease-in-out infinite;
}

@keyframes floatLogo {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(2deg); }
}

/* --- ตัวนำทาง (Pills Design - Dark) --- */
.custom-nav-pills {
    width: 60px; height: 60px;
    background: rgba(188, 19, 254, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(188, 19, 254, 0.2);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    margin: 0 10px;
    transition: 0.3s;
    opacity: 1;
    z-index: 20;
    color: #fff;
}

.custom-nav-pills:hover { 
    background: var(--p-bright); 
    box-shadow: 0 0 25px var(--p-bright); 
    color: #fff;
}

.custom-indicators-pill [data-bs-target] {
    width: 15px; height: 15px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.2);
    margin: 0 8px;
    opacity: 0.6;
}

.custom-indicators-pill .active {
    background-color: var(--p-bright);
    width: 30px;
    border-radius: 10px;
    opacity: 1;
    box-shadow: 0 0 10px var(--p-bright);
}

/* --- Responsive --- */
@media (max-width: 991px) {
    .glass-portal-slider { min-height: 450px; border-radius: 20px; }
    .glass-portal-content {
        width: 100%; height: 100%;
        margin: 0;
        border-radius: 0;
        border: none;
        padding: 30px;
        text-align: center;
        flex-direction: column;
        background: rgba(10, 5, 21, 0.95);
    }
    .content-side { text-align: center; padding: 0; }
    .portal-title { font-size: 2.2rem; }
    .floating-logo { max-height: 200px; }
    .custom-nav-pills { display: none; }
}

/* --- ปุ่มเติมเงินสไตล์ Portal Glass (ม่วง-ขาว-ทอง โทนมืด) --- */
.btn-wrap-topup-glass {
    position: relative;
    padding: 2px;
    background: linear-gradient(90deg, #bc13fe, #ffffff, #bc13fe); /* ปรับสีขาวแทรกกลางให้ดูแพรวพราว */
    background-size: 200%;
    border-radius: 50px;
    animation: flowGold 3s linear infinite;
    box-shadow: 0 5px 20px rgba(188, 19, 254, 0.4);
    display: inline-block;
}

@keyframes flowGold {
    0% { background-position: 0%; }
    100% { background-position: 200%; }
}

.btn-topup-glass {
    position: relative;
    z-index: 2;
    /* พื้นหลังมืดสนิทเข้ากับโทนใหม่ */
    background: rgba(15, 0, 30, 0.9); 
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: none;
    padding: 10px 25px;
    border-radius: 50px;
    color: #ffffff;
    font-family: 'Mitr', sans-serif;
    font-weight: 400;
    font-size: 1rem;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.btn-wrap-topup-glass:hover {
    transform: scale(1.05);
    box-shadow: 0 0 30px rgba(188, 19, 254, 0.6);
}

.btn-wrap-topup-glass:hover .btn-topup-glass {
    background: rgba(188, 19, 254, 0.2);
    color: #ffffff;
}

.coin-icon {
    color: #ffcc00;
    text-shadow: 0 0 10px rgba(255, 204, 0, 0.8);
    transition: 0.3s;
    margin-right: 8px; /* เพิ่มระยะห่างนิดหน่อย */
}

.btn-wrap-topup-glass:hover .coin-icon {
    transform: rotate(360deg);
}

@media (max-width: 991px) {
    .btn-wrap-topup-glass { width: 100%; text-align: center; }
    .btn-topup-glass { width: 100%; }
}
	:root {
    --gold-linear: linear-gradient(to bottom, #fff 20%, #ffcc00 50%, #d4af37 100%);
    --silver-linear: linear-gradient(to bottom, #fff 20%, #e0e0e0 50%, #9e9e9e 100%);
    --purple-neon: #bc13fe;
}

.subtitle-visual-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 10px;
    perspective: 1000px;
}

.subtitle-content {
    display: flex;
    align-items: center;
    gap: 15px;
    font-family: 'Kanit', sans-serif;
    font-weight: 500;
    letter-spacing: 3px; /* ระยะห่างตัวอักษรให้ดูโปร่งและหรู */
    font-size: 1.2rem;
    text-transform: uppercase;
}

/* --- เอฟเฟกต์สีทอง Metallic --- */
.text-glow-gold {
    background: var(--gold-linear);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 8px rgba(255, 204, 0, 0.4));
    position: relative;
}

/* --- เอฟเฟกต์สีเงิน Metallic --- */
.text-glow-silver {
    background: var(--silver-linear);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.3));
}

/* --- ตัวคั่นดีไซน์ใหม่ (ลูกแก้วเรืองแสง) --- */
.visual-divider {
    width: 8px;
    height: 8px;
    background: var(--purple-neon);
    border-radius: 50%;
    box-shadow: 0 0 15px var(--purple-neon), 0 0 5px #fff;
    display: inline-block;
    animation: pulseOrb 2s infinite ease-in-out;
}

/* --- เส้นเรืองแสงด้านล่าง --- */
.glowing-bar {
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--purple-neon), #fff, var(--purple-neon), transparent);
    margin-top: 12px;
    border-radius: 2px;
    box-shadow: 0 0 10px var(--purple-neon);
    animation: expandLine 1.5s forwards ease-out 1s;
}

/* --- Animations --- */
@keyframes pulseOrb {
    0%, 100% { transform: scale(1); opacity: 0.6; }
    50% { transform: scale(1.5); opacity: 1; }
}

@keyframes expandLine {
    from { width: 0; opacity: 0; }
    to { width: 350px; opacity: 0.8; }
}

/* การปรับแต่งสำหรับมือถือ */
@media (max-width: 768px) {
    .subtitle-content {
        flex-direction: column;
        gap: 8px;
        font-size: 0.9rem;
        letter-spacing: 1px;
    }
    .visual-divider { display: none; } /* ซ่อนจุดคั่นบนมือถือเพื่อความสะอาดตา */
    .glowing-bar { width: 200px !important; }
}
	/* --- กำหนดตัวแปรสีม่วง-ขาว สำหรับธีมมืด --- */
:root {
    --purple-vivid: #bc13fe; /* ม่วงสว่าง (สำหรับเน้น) */
    --purple-deep: #7d09ac; /* ม่วงเข้ม (สำหรับไล่สี) */
    --purple-glow: rgba(188, 19, 254, 0.5); /* แสงเงาสีม่วง */
    --white-clean: #ffffff;
    --white-soft: rgba(255, 255, 255, 0.7);
    --font-heading: 'Kanit', sans-serif;
    --font-body: 'Mitr', sans-serif;
}

/* --- Container หลัก --- */
.hero-lunaris-container {
    text-align: center;
    font-family: var(--font-body);
}

/* --- 1. ส่วนหัวข้อ: สบายตาและเท่ --- */
.title-group-lunaris {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.main-server-name {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 4rem; /* ขนาดใหญ่แต่ดูละมุน */
    letter-spacing: 2px;
    margin-bottom: 5px;
}

.text-white {
    color: var(--white-clean);
}

.text-purple-glow {
    background: linear-gradient(to right, var(--purple-vivid) 0%, #fff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0px 0px 15px var(--purple-glow));
    font-weight: 500;
}

.server-subtitle-premium {
    font-family: var(--font-body);
    font-weight: 300; /* บาง สบายตา */
    font-size: 1.1rem;
    color: var(--white-soft);
    letter-spacing: 2px;
}

.divider {
    color: var(--purple-glow);
    margin: 0 10px;
}

/* --- 2. ส่วนของปุ่มดีไซน์ใหม่ --- */
.cta-button-group {
    margin-top: 2rem;
}

/* --- 2.1 ปุ่มหลัก: สไตล์ 'Portal Glass' (ม่วงละมุน) --- */
.btn-wrap-download-glass {
    position: relative;
    padding: 2px; /* สำหรับขอบแสง */
    background: linear-gradient(90deg, var(--purple-deep), #fff, var(--purple-deep));
    background-size: 200%;
    border-radius: 50px; /* ทรงแคปซูล สบายตา */
    animation: flowBg 4s linear infinite;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

@keyframes flowBg {
    0% { background-position: 0%; }
    100% { background-position: 200%; }
}

.btn-lunaris-glass {
    position: relative;
    z-index: 2;
    background: rgba(125, 9, 172, 0.2); /* โปร่งแสง */
    backdrop-filter: blur(10px); /* กระจกฝ้า */
    border: none;
    padding: 14px 40px;
    border-radius: 50px;
    color: var(--white-clean);
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.btn-wrap-download-glass:hover {
    transform: scale(1.08) rotate(-1deg); /* โยกเล็กน้อยเมื่อ Hover */
    box-shadow: 0 15px 40px var(--purple-glow);
}

.btn-wrap-download-glass:hover .download-icon {
    animation-play-state: running; /* ให้ไอคอนเต้นเมื่อ Hover */
}

/* --- 2.2 ปุ่มรอง: สไตล์ 'Outline Shine' (สีขาว) --- */
.btn-contact-lunaris-outline {
    position: relative;
    background: transparent;
    color: var(--white-soft);
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-family: var(--font-body);
    font-weight: 400;
    padding: 14px 30px;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
    overflow: hidden; /* สำหรับแสงวิ่ง */
}

.contact-icon {
    transition: 0.3s;
}

.btn-contact-lunaris-outline:hover {
    color: var(--white-clean);
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 5px 20px rgba(255, 255, 255, 0.1);
}

.btn-contact-lunaris-outline:hover .contact-icon {
    transform: scale(1.2) rotate(-5deg);
    color: var(--purple-vivid);
}

/* ลูกเล่นแสงวิ่งผ่านกระจก (Shine Effect) */
.btn-border-shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transform: skewX(-30deg);
    transition: 0.5s;
}

.btn-contact-lunaris-outline:hover .btn-border-shine {
    left: 150%;
}

/* การปรับแต่งสำหรับมือถือ */
@media (max-width: 768px) {
    .main-server-name { font-size: 2.8rem; }
    .server-subtitle-premium { font-size: 0.9rem; }
    .btn-wrap-download-glass { width: 100%; max-width: 300px; }
    .btn-lunaris-glass { width: 100%; padding: 12px; }
    .divider { display: block; margin: 5px 0; }
}
:root {
    --main-purple: #9d50bb;
    --light-purple: #e0c3fc;
    --glass-white: rgba(255, 255, 255, 0.05);
    --spring-ease: cubic-bezier(0.68, -0.6, 0.32, 1.6);
}

.capsule-menu {
    position: fixed;
    z-index: 9999;
    transition: all 0.5s var(--spring-ease);
}

.menu-inner {
    position: relative;
    background: var(--glass-white);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    display: flex;
    box-shadow: 0 15px 35px rgba(157, 80, 187, 0.15);
}

/* --- Desktop Design (ชิดขวา) --- */
@media (min-width: 769px) {
    .capsule-menu {
        right: 30px;
        top: 50%;
        transform: translateY(-50%);
    }
    .menu-inner {
        flex-direction: column;
        padding: 15px 10px;
        border-radius: 100px;
        gap: 20px;
    }
}

/* --- Mobile Design (อยู่ด้านล่าง) --- */
@media (max-width: 768px) {
    .capsule-menu {
        bottom: 25px;
        left: 50%;
        transform: translateX(-50%);
        width: 90%;
        max-width: 350px;
    }
    .menu-inner {
        flex-direction: row;
        padding: 10px 15px;
        border-radius: 50px;
        justify-content: space-around;
    }
}

/* --- ลูกเล่นปุ่มและไอคอน --- */
.menu-item {
    position: relative;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--main-purple);
    font-size: 1.4rem;
    text-decoration: none;
    transition: all 0.3s ease;
    z-index: 2;
}

.menu-item:hover {
    transform: scale(1.15);
    color: #6e48aa;
}

/* ตัว Tooltip แบบพรีเมียม */
.menu-item::after {
    content: attr(data-name);
    position: absolute;
    right: 70px;
    background: white;
    color: var(--main-purple);
    padding: 5px 15px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: bold;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    opacity: 0;
    pointer-events: none;
    transition: 0.3s var(--spring-ease);
}

@media (min-width: 769px) {
    .menu-item:hover::after {
        opacity: 1;
        right: 60px;
    }
}

/* Active State */
.menu-item.active {
    color: white;
    background: linear-gradient(135deg, var(--main-purple), var(--light-purple));
    border-radius: 50%;
    box-shadow: 0 8px 20px rgba(157, 80, 187, 0.4);
}
:root {
    /* --- ปรับขนาดโลโก้ที่นี่ --- */
    --logo-width: 500px; 
    
    /* --- โทนสี --- */
    --p-white: #ffffff;
    --p-purple: #a855f7;
    --deep-bg: #05020a;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

#preloader {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-color: var(--deep-bg);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 999999;
    overflow: hidden;
    transition: opacity 1s ease, visibility 1s;
}

/* --- พื้นหลังดวงดาว (Space Effect) --- */
.space-bg {
    position: absolute;
    width: 100%; height: 100%;
    z-index: -1;
    background: radial-gradient(circle at center, #1a0b2e 0%, #05020a 100%);
}

#stars, #stars2 {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: 
        radial-gradient(1px 1px at 20px 30px, #fff, rgba(0,0,0,0)),
        radial-gradient(1px 1px at 40px 70px, #fff, rgba(0,0,0,0)),
        radial-gradient(2px 2px at 50px 160px, #ddd, rgba(0,0,0,0)),
        radial-gradient(2px 2px at 90px 40px, #fff, rgba(0,0,0,0));
    background-size: 200px 200px;
    animation: twinkle 4s ease-in-out infinite alternate;
}

#stars2 {
    background-size: 300px 300px;
    animation-delay: 2s;
    opacity: 0.5;
}

@keyframes twinkle {
    from { opacity: 0.3; transform: scale(1); }
    to { opacity: 0.8; transform: scale(1.05); }
}

.nebula {
    position: absolute;
    width: 100%; height: 100%;
    background: radial-gradient(circle at 50% 50%, rgba(168, 85, 247, 0.08) 0%, transparent 60%);
    filter: blur(80px);
}

/* --- Loader Content --- */
.loader-wrapper {
    text-align: center;
    width: 100%;
    max-width: 600px;
    padding: 20px;
}

.logo-container {
    margin-bottom: 50px;
}

.premium-logo {
    width: var(--logo-width);
    height: auto;
    filter: drop-shadow(0 0 20px rgba(255,255,255,0.2));
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

/* --- Progress Bar ขนาดใหญ่ --- */
.progress-section {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.progress-info {
    font-family: 'Inter', sans-serif;
    color: var(--p-white);
    font-size: 4rem; /* ตัวเลขขนาดใหญ่ */
    font-weight: 200;
    margin-bottom: 15px;
    letter-spacing: -2px;
}

.unit { font-size: 1.5rem; margin-left: 5px; opacity: 0.6; }

.main-progress-bar {
    width: 100%;
    max-width: 450px;
    height: 12px; /* ขนาดหลอดใหญ่ขึ้น */
    background: rgba(255, 255, 255, 0.05);
    border-radius: 30px;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

#fill {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, #7c3aed, #a855f7, #c084fc);
    box-shadow: 0 0 25px rgba(168, 85, 247, 0.6);
    border-radius: 30px;
    position: relative;
    transition: width 0.3s ease-out;
}

.light-sweep {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    animation: sweep 2s infinite;
}

@keyframes sweep {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.loading-status {
    color: var(--p-white);
    opacity: 0.4;
    font-size: 0.75rem;
    letter-spacing: 4px;
    margin-top: 20px;
    text-transform: uppercase;
}

/* --- Responsive (Mobile) --- */
@media (max-width: 768px) {
    :root { --logo-width: 180px; } /* ปรับขนาดโลโก้ลงบนมือถือ */
    .progress-info { font-size: 3rem; }
    .main-progress-bar { max-width: 280px; height: 8px; }
}

/* Class สำหรับซ่อน Preloader */
.loader-finished {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

	/* --- ส่วนควบคุมหิมะ (Snowfall Container) --- */
.snow-container {
    position: fixed; /* ให้หิมะอยู่ติดหน้าจอเวลาเลื่อนเว็บ */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1; /* ให้หิมะอยู่หน้าพื้นหลัง แต่หลังเมนูและเนื้อหา */
    pointer-events: none; /* ป้องกันไม่ให้หิมะขวางการคลิกปุ่ม */
    overflow: hidden;
}

.snow {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    /* สร้างเม็ดหิมะด้วย Radial Gradient (ขาวสลับม่วงอ่อน) */
    /* พี่สามารถปรับขนาดเม็ดหิมะได้ตรง 1px, 1.5px นะครับ */
    background-image: 
        radial-gradient(circle at 20% 30%, #ffffff 1px, transparent 0),
        radial-gradient(circle at 70% 10%, #a29bfe 1.5px, transparent 0),
        radial-gradient(circle at 40% 80%, #ffffff 1px, transparent 0),
        radial-gradient(circle at 90% 50%, #dcd7ff 1.2px, transparent 0);
    background-size: 400px 400px; /* ขนาดของบล็อกหิมะ */
}

/* ชั้นที่ 1: ตกช้าๆ เม็ดเล็ก ดูอยู่ไกล */
.layer1 {
    animation: snowFall 25s linear infinite;
    opacity: 0.8;
}

/* ชั้นที่ 2: ตกเร็วขึ้นนิดหน่อย เม็ดใหญ่ขึ้น และเยื้องไปทางขวา */
.layer2 {
    animation: snowFall 20s linear infinite;
    margin-left: 200px;
    opacity: 0.6;
    filter: blur(1px); /* ใส่ blur นิดหน่อยให้ดูมีมิติ */
}

/* ชั้นที่ 3: ตกแบบเฉียงๆ และจางที่สุด */
.layer3 {
    animation: snowFall 30s linear infinite;
    margin-left: -150px;
    opacity: 0.4;
}

/* --- Animation การเคลื่อนที่ของหิมะ (ตกจากบนลงล่าง) --- */
@keyframes snowFall {
    0% {
        transform: translateY(-100%);
    }
    100% {
        transform: translateY(100%);
    }
}
	/* --- 1. เอฟเฟคตัวหนังสือเมนู (Nav Links) --- */
.nav-link-cute {
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1); /* ปรับให้ลื่นไหล */
    position: relative;
    z-index: 1;
	
}

/* เมื่อ Hover: ให้มีออร่าขาวฟุ้งสว่างขึ้นมา */
.nav-link-cute:hover {
    color: #ffffff !important;
    transform: translateY(-2px); /* เด้งขึ้นนิดหน่อยให้ดูมีมิติ */
    
    /* เอฟเฟคขาวฟุ้งรอบตัวหนังสือ (Permanent White Glow on Hover) */
    text-shadow: 
        0 0 10px rgba(255, 255, 255, 1), 
        0 0 20px rgba(255, 255, 255, 0.8), 
        0 0 30px rgba(255, 255, 255, 0.5);
}

/* --- 2. เอฟเฟคปุ่มเติมเงิน (Register Button) --- */
.btn-register-glow {
    transition: all 0.4s ease;
}

/* เมื่อ Hover: ให้ปุ่มเปล่งแสงขาวฟุ้งกระจายออกมา */
.btn-register-glow:hover {
    transform: scale(1.08); /* ขยายใหญ่ขึ้นเล็กน้อย */
    
    /* แสงขาวฟุ้งรอบตัวปุ่ม (Glow Box Shadow) */
    box-shadow: 
        0 0 20px rgba(255, 255, 255, 0.8), 
        0 0 40px rgba(255, 255, 255, 0.4);
    
    filter: brightness(1.1); /* สว่างขึ้นอีกนิด */
}

/* --- 3. เอฟเฟค Logo เมื่อ Hover (แถมให้เพื่อความสมบูรณ์) --- */
.logo-aura-container:hover .nav-logo-img {
    filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.9));
    transform: scale(1.05);
    transition: 0.4s;
}
	/* --- ปรับระยะโลโก้ให้กระชับ --- */
.main-logo {
    /* ลด margin-bottom ของตัวโลโก้เองลง */
    margin-bottom: 0px !important; 
    filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.5));
    max-width: 400px; /* ปรับขนาดโลโก้ตามความเหมาะสม */
}

/* --- ปรับแต่งหัวข้อให้ชิดขึ้น --- */
.hero-title-modern {
    /* ปรับบรรทัดให้แคบลงนิดนึงเพื่อให้ดูชิดโลโก้ */
    margin-top: -10px; 
    font-size: clamp(2rem, 5vw, 3.5rem);
    line-height: 1.1;
}

/* --- ปรับระยะปุ่มให้ขยับขึ้นมาหาหัวข้อ --- */
.hero-title-modern + div {
    margin-top: -5px; 
}
	/* --- 1. หัวข้อตัวหนังสือ (Modern Neon Text) --- */
.hero-title-modern {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    line-height: 1.2;
    cursor: default;
    transition: 0.5s;
}

.hero-title-modern .text-main {
    color: #ffffff;
    /* การซ้อนเงาหลายชั้นเพื่อให้เกิดเอฟเฟคฟุ้ง (Multi-layered Purple Glow) */
    text-shadow: 
        0 0 10px rgba(255, 255, 255, 0.8),    /* ชั้นที่ 1: แสงขาวนวลประชิดตัวอักษร */
        0 0 20px rgba(162, 155, 254, 0.9),   /* ชั้นที่ 2: สีม่วงลาเวนเดอร์เริ่มฟุ้ง */
        0 0 40px rgba(108, 92, 231, 0.6),    /* ชั้นที่ 3: สีม่วงเข้มแผ่ออกกว้าง */
        0 0 70px rgba(108, 92, 231, 0.3);    /* ชั้นที่ 4: ออร่าจางๆ รอบนอกสุด */
        
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 700;
    letter-spacing: 1px;
}

/* เพิ่มลูกเล่นเมื่อเอาเมาส์ไปวาง (Hover) ให้แสงวูบวาบสว่างขึ้น */
.hero-title-modern:hover .text-main {
    text-shadow: 
        0 0 15px rgba(255, 255, 255, 1),
        0 0 30px rgba(162, 155, 254, 1),
        0 0 50px rgba(108, 92, 231, 0.8);
    letter-spacing: 3px; /* ตัวอักษรขยายห่างกันเล็กน้อยดูทันสมัย */
    transform: scale(1.02);
}

.hero-title-modern .text-highlight {
    /* ปรับ Gradient ให้สว่างขึ้น เน้นสีขาวและม่วงลาเวนเดอร์สว่าง */
    background: linear-gradient(180deg, #ffffff 10%, #a29bfe 60%, #6c5ce7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    
    /* หัวใจสำคัญ: เพิ่มเงาซ้อนหลายชั้น (Multi-layer Glow) เพื่อให้ตัวอักษรลอยเด่น */
    filter: drop-shadow(0 0 2px rgba(255, 255, 255, 0.8)) 
            drop-shadow(0 0 15px rgba(162, 155, 254, 1))
            drop-shadow(0 0 30px rgba(108, 92, 231, 0.6));
            
    display: inline-block;
    transition: 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    
    /* เพิ่มลูกเล่นตัวหนังสือลอยขึ้นลงเบาๆ ไม่ให้ดูแข็ง */
    animation: textFloat 3s ease-in-out infinite;
}

/* เมื่อ Hover ให้สว่างวาบขึ้นอีก */
.hero-title-modern:hover .text-highlight {
    transform: scale(1.1) translateY(-10px) rotate(-2deg);
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 1)) 
            drop-shadow(0 0 25px rgba(255, 118, 117, 1)); /* เปลี่ยนออร่าเป็นชมพูสว่าง */
    background: linear-gradient(180deg, #ffffff 0%, #ffcbd1 100%);
    -webkit-background-clip: text;
}

@keyframes textFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* ลูกเล่นเมื่อนำเมาส์ไปวางที่ตัวหนังสือ */
.hero-title-modern:hover .text-highlight {
    transform: scale(1.1) translateY(-10px) rotate(-2deg);
    filter: drop-shadow(0 0 25px rgba(162, 155, 254, 0.8));
    background: linear-gradient(180deg, #ffffff 0%, #ff7675 100%); /* เปลี่ยนเป็นโทนชมพูเมื่อ hover */
    -webkit-background-clip: text;
}

.hero-title-modern:hover .text-main {
    letter-spacing: 2px;
    opacity: 0.8;
}

/* --- 2. ปุ่มดาวน์โหลด (Aura Glow Button) --- */
.btn-aura-wrapper {
    position: relative;
    padding: 5px;
}

.btn-download-modern {
    background: linear-gradient(135deg, #6c5ce7 0%, #a29bfe 100%);
    color: white !important;
    border: 3px solid rgba(255, 255, 255, 0.7);
    border-radius: 50px;
    padding: 16px 45px;
    font-family: 'Mitr', sans-serif;
    font-size: 1.25rem;
    font-weight: 600;
    position: relative;
    z-index: 1;
    box-shadow: 0 10px 30px rgba(108, 92, 231, 0.4);
    transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
}

/* แสงสีขาววิ่งผ่าน (Shimmer) */
.btn-download-modern::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transition: 0.5s;
}

.btn-download-modern:hover {
    transform: scale(1.1) translateY(-5px);
    box-shadow: 0 20px 40px rgba(108, 92, 231, 0.6);
}

.btn-download-modern:hover::before {
    left: 100%;
}

/* --- 3. ปุ่มติดต่อ (Glass Edge Button) --- */
.btn-contact-modern {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white !important;
    border-radius: 50px;
    padding: 15px 40px;
    font-family: 'Mitr', sans-serif;
    font-size: 1.1rem;
    transition: 0.4s;
}

.btn-contact-modern:hover {
    background: rgba(255, 255, 255, 0.95);
    color: #6c5ce7 !important;
    border-color: #ffffff;
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(255, 255, 255, 0.2);
}
	/* Container หลักของโลโก้ */
.logo-aura-container {
    position: relative;
    padding: 10px 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible; /* ให้แสงฟุ้งออกนอกขอบได้ */
}

/* เลเยอร์แสงออร่าพื้นหลัง (ม่วง-ขาว) */
.aura-layer {
    position: absolute;
    width: 120%;
    height: 120%;
    background: radial-gradient(circle, 
        rgba(162, 155, 254, 0.6) 0%, 
        rgba(255, 255, 255, 0.4) 30%, 
        transparent 70%);
    border-radius: 50%;
    filter: blur(15px);
    z-index: 0;
    opacity: 0.7;
    /* แอนิเมชันวูบวาบเบาๆ */
    animation: purpleWhitePulse 4s ease-in-out infinite;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* เมื่อเมาส์ไปวาง (Hover): เปลี่ยนเป็นละอองฟุ้งสีขาว */
.logo-aura-container:hover .aura-layer {
    background: radial-gradient(circle, 
        rgba(255, 255, 255, 0.9) 0%, 
        rgba(255, 255, 255, 0.6) 20%, 
        rgba(162, 155, 254, 0.2) 50%,
        transparent 80%);
    opacity: 1;
    transform: scale(1.3);
    filter: blur(25px); /* ทำให้ดูฟุ้งเหมือนละอองน้ำ */
    /* เปลี่ยนจังหวะการวูบวาบให้เร็วขึ้นเล็กน้อยเหมือนละอองกระจาย */
    animation: whiteMistShift 2s infinite alternate;
}

/* ตั้งค่ารูปภาพโลโก้ */
.nav-logo-img {
    position: relative;
    z-index: 2; /* อยู่เหนือแสง */
    height: 65px;
    width: auto;
    transition: all 0.4s ease;
    filter: drop-shadow(0 5px 15px rgba(108, 92, 231, 0.3));
}

/* เมื่อ Hover ให้โลโก้เด้งและชัดขึ้น */
.logo-aura-container:hover .nav-logo-img {
    transform: scale(1.1) translateY(-3px);
    filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.8));
}

/* --- Animations --- */

/* แสงวูบวาบ ม่วง-ขาว */
@keyframes purpleWhitePulse {
    0%, 100% {
        transform: scale(0.9);
        opacity: 0.5;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

/* ละอองฟุ้งสีขาว (ตอน Hover) */
@keyframes whiteMistShift {
    from {
        opacity: 0.7;
        filter: blur(20px);
    }
    to {
        opacity: 1;
        filter: blur(30px);
        transform: scale(1.4) rotate(5deg);
    }
}
		/* --- การตั้งค่าพื้นฐานของ Nav --- */
.navbar {
    padding: 20px 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
}

/* เมื่อ Scroll ลงมา: เปลี่ยนเป็นกระจกขาวมุก นุ่มๆ ไม่แข็งกระด้าง */
.navbar.scrolled {
    background: rgba(255, 255, 255, 0.85) !important;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    padding: 12px 0;
    box-shadow: 0 10px 30px rgba(108, 92, 231, 0.15);
}

/* --- ลูกเล่น LOGO --- */
.nav-logo-img {
    height: 90px; /* ปรับขนาดตามต้องการ */
    width: auto;
    filter: drop-shadow(0 5px 15px rgba(0,0,0,0.1));
    transition: 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.nav-logo-img:hover {
    transform: scale(1.15) rotate(-3deg); /* เอียงเล็กน้อยให้ดูน่ารัก */
}

/* --- ลูกเล่น Menu Links --- */
.nav-link-cute {
    font-family: 'Mitr', sans-serif;
    font-weight: 400;
    color: #ffffff !important; /* เริ่มต้นสีขาวเพื่อให้เด่นบน Header ดำ-ม่วง */
    margin: 0 10px;
    position: relative;
    transition: 0.3s;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

/* เมื่อ Scroll แล้ว: เปลี่ยนสีตัวอักษรเป็นม่วงเข้ม */
.navbar.scrolled .nav-link-cute {
    color: var(--deep-purple) !important;
    text-shadow: none;
}

/* เส้นใต้เมนูแบบนุ่มนวล (Underline Animation) */
.nav-link-cute::after {
    content: '';
    position: absolute;
    width: 0;
    height: 4px;
    background: #ff7675; /* สีชมพู Coral ตัดกับม่วงสวยมาก */
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 10px;
    transition: 0.3s;
}
.nav-link-cute:hover::after, 
.nav-link-cute.active::after {
    width: 30px;
}
.nav-link-cute:hover {
    color: #ff7675 !important;
    transform: translateY(-2px);
}

/* --- ปุ่มลงทะเบียนแบบเรืองแสง (Glow Button) --- */
.btn-register-glow {
    background: linear-gradient(135deg, #a29bfe, #6c5ce7);
    color: white !important;
    border-radius: 50px;
    padding: 10px 30px;
    font-family: 'Mitr', sans-serif;
    border: 3px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 0 20px rgba(108, 92, 231, 0.4);
    transition: 0.3s;
    text-decoration: none;
    display: inline-block;
}
.btn-register-glow:hover {
    transform: scale(1.05);
    box-shadow: 0 0 30px rgba(108, 92, 231, 0.6);
    background: linear-gradient(135deg, #6c5ce7, #a29bfe);
}

/* --- Hamburger Menu สำหรับมือถือ --- */
.hamburger-icon span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: white; /* เริ่มต้นสีขาว */
    margin: 5px 0;
    border-radius: 10px;
    transition: 0.3s;
}
.navbar.scrolled .hamburger-icon span {
    background-color: var(--deep-purple); /* เมื่อ scroll เป็นสีม่วง */
}
        :root {
    /* สีหลักเดิม */
    --cute-purple: #a29bfe;
    --deep-purple: #6c5ce7;
    --glass-bg: rgba(255, 255, 255, 0.4);
    --glass-border: rgba(255, 255, 255, 0.6);

    /* --- เพิ่มส่วนที่ทำให้ตัวหนังสือไม่จม --- */
    /* 1. เส้นขอบตัดสีขาวเข้ม (สำหรับใช้กับ -webkit-text-stroke) */
    --text-stroke-white: 1.5px #ffffff;
    
    /* 2. เงาฟุ้งสีขาว (สำหรับทำออร่าหลังตัวหนังสือ) */
    --white-glow: 0 0 15px rgba(255, 255, 255, 0.8), 0 0 30px rgba(255, 255, 255, 0.4);
    
    /* 3. เงาตัดพื้นหลัง (Shadow) ช่วยให้ตัวหนังสือมีมิติ */
    --text-drop-shadow: 2px 4px 10px rgba(0, 0, 0, 0.3);
}
/* ล้างค่า body ให้โปร่งใสเพื่อโชว์เลเยอร์ข้างล่าง */
body {
    font-family: 'Prompt', sans-serif;
    margin: 0;
    padding: 0;
    background: #0c0a1f !important; /* เปลี่ยนจากรูปเป็นสีมืดพื้นฐาน */
    min-height: 100vh;
}

/* Container หลักของพื้นหลัง */
#master-bg-parallax {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -999;
    overflow: hidden;
    pointer-events: none;
}

/* เลเยอร์รูปภาพ bg.jpg (ย้ายมาจาก body) */
#bg-image-layer {
    position: absolute;
    width: 110%; /* ใหญ่กว่าจอนิดหน่อยเพื่อให้มีพื้นที่ขยับ */
    height: 110%;
    top: -5%;
    left: -5%;
    background: url('images/bg.jpg') no-repeat center center;
    background-size: cover;
    opacity: 0.8; /* ปรับให้มืดลงนิดนึงเพื่อให้ออร่าม่วงเด่นขึ้น */
    will-change: transform;
}

/* เอฟเฟคออร่าสีขาวม่วงตามเมาส์ */
#aura-glow {
    position: absolute;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, 
        rgba(255, 255, 255, 0.2) 0%, 
        rgba(162, 155, 254, 0.15) 40%, 
        transparent 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    z-index: 1; /* ให้อยู่หน้ารูปพื้นหลัง */
    mix-blend-mode: screen;
    pointer-events: none;
}
/* --- เลเยอร์กระจกฝ้าฉาบทั้งเว็บไซต์ (100% Full Site Glass) --- */
body::before {
    content: "";
    position: fixed; /* ตรึงไว้กับหน้าจอ ไม่ว่าสโครลไปไหนกระจกก็ยังอยู่ */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1; /* ให้อยู่ข้างหลังเนื้อหา (Content) แต่ต้องอยู่หน้าตัวรูปพื้นหลัง */
    
    /* --- เทคนิคกระจกฝ้า สีดำตัดม่วง (ยกมาจากโค้ดเดิมของคุณ) --- */
    background: linear-gradient(
        135deg, 
        rgba(20, 20, 30, 0.75) 0%,      /* ดำเข้มแบบ Night Mode */
        rgba(108, 92, 231, 0.45) 50%,   /* ม่วงกลางนุ่มนวล */
        rgba(162, 155, 254, 0.25) 100%  /* ม่วงสว่างใสๆ */
    );

    /* เพิ่มความเบลอให้ทั้งเว็บดูฟุ้งละมุน */
    backdrop-filter: blur(2px); /* ปรับเพิ่มจาก 3px เป็น 12px เพื่อให้ดูเป็นฝ้ากระจกทั้งเว็บ */
    -webkit-backdrop-filter: blur(12px);
    
    /* เพิ่มแสงฟุ้ง (Inner Shadow) ขอบจอให้ดูมีมิติ */
    box-shadow: inset 0 0 100px rgba(0, 0, 0, 0.4);
}

/* --- ปรับแต่งส่วน Header เดิมให้โปร่งใส --- */
.hero-header {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 20px;
    
    /* ล้างพื้นหลังเดิมออก เพื่อให้มองทะลุไปเห็นกระจกของ body */
    background: transparent !important; 
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    box-shadow: none !important;
    border-bottom: 1px solid rgba(162, 155, 254, 0.2);
}

/* ปรับแต่ง LOGO หลัก (Hero Logo) ให้ลอยเด่นและมีออร่าขาวฟุ้ง */
.main-logo {
    /* 1. ปรับตำแหน่ง: เพิ่ม margin-top เพื่อให้โลโก้ต่ำลงมาจากด้านบน */
    margin-top: 100px; 
    margin-bottom: 30px;

    /* 2. สร้างแสงออร่าสีขาวฟุ้ง (White Mist Effect) */
    /* ใช้ Drop Shadow สีขาวซ้อนกัน 2 ชั้น เพื่อความสว่างและฟุ้งกระจาย */
    filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.9)) 
            drop-shadow(0 0 40px rgba(255, 255, 255, 0.4));

    /* 3. ลูกเล่นเพิ่มเติม: ให้โลโก้ลอยขึ้นลงนุ่มๆ (Floating) */
    animation: mainLogoFloat 4s ease-in-out infinite;
    
    /* ปรับขนาดให้รองรับมือถือ (Responsive) */
    max-width: clamp(250px, 80%, 500px);
    height: auto;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* เมื่อนำเมาส์ไปวาง: ให้แสงขาวสว่างวาบขึ้น (Glow Up) */
.main-logo:hover {
    transform: scale(1.05) translateY(10px); /* ต่ำลงอีกนิดเมื่อ hover */
    filter: drop-shadow(0 0 20px rgba(255, 255, 255, 1)) 
            drop-shadow(0 0 60px rgba(255, 255, 255, 0.6));
}

/* แอนิเมชันการลอยนุ่มๆ */
@keyframes mainLogoFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

/* ปรับสีตัวอักษรใน Header ให้เป็นสีขาวนวลเพื่อให้อ่านง่าย */
.hero-header h1, .hero-header p {
    color: #ffffff;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
}

        .main-logo {
            max-width: clamp(250px, 60%, 800px);
            filter: drop-shadow(0 15px 25px rgba(0,0,0,0.1));
            animation: float 4s ease-in-out infinite;
        }

        @keyframes float {
            0%, 100% { transform: translateY(0) rotate(0deg); }
            50% { transform: translateY(-25px) rotate(2deg); }
        }

        /* ---------------------------------
           BUTTONS: นุ่มนวล เด้งดึ๋ง
        --------------------------------- */
        .btn-cute {
            background: linear-gradient(135deg, var(--cute-purple), var(--deep-purple));
            color: white;
            border: 4px solid white;
            border-radius: 50px;
            padding: 15px 45px;
            font-family: 'Mitr', sans-serif;
            font-size: 1.3rem;
            box-shadow: 0 10px 25px rgba(108, 92, 231, 0.3);
            transition: 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        }
        .btn-cute:hover {
            transform: scale(1.1);
            color: white;
            box-shadow: 0 15px 35px rgba(108, 92, 231, 0.5);
        }

        /* ---------------------------------
           CONTENT SECTION: Glass Cards
        --------------------------------- */
        .glass-card {
            background: rgba(255, 255, 255, 0.7);
            backdrop-filter: blur(15px);
            border: 2px solid var(--glass-border);
            border-radius: 45px;
            padding: 40px;
            box-shadow: 0 20px 40px rgba(0,0,0,0.05);
            transition: 0.4s ease;
            margin-bottom: 30px;
        }
        .glass-card:hover {
            transform: translateY(-10px);
            background: rgba(255, 255, 255, 0.85);
        }

        .section-tag {
            background: var(--cute-purple);
            color: white;
            padding: 5px 20px;
            border-radius: 50px;
            font-size: 0.9rem;
            display: inline-block;
            margin-bottom: 15px;
        }

        /* Mobile Responsive 100% */
        @media (max-width: 768px) {
            .hero-header { height: 85vh; }
            .glass-card { border-radius: 30px; padding: 25px; }
            .main-logo { width: 80%; }
        }