/* ป้องกันการคลุมดำข้อความทั้งเว็บ */
body {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* สไตล์ Popup แจ้งเตือน (Toast) */
.copy-protection-toast {
    position: fixed;
    top: 150px;
    right: -300px; /* ซ่อนไว้ทางขวาเริ่มต้น */
    background: rgba(20, 20, 20, 0.9);
    backdrop-filter: blur(10px);
    color: #fff;
    padding: 15px 25px;
    border-radius: 12px;
    border-left: 4px solid #a951ed; /* เส้นม่วงแนวเดียวกับธีมเว็บ */
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 1000000;
    transition: right 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    font-family: 'Kanit', sans-serif;
    pointer-events: none;
}

.copy-protection-toast.show {
    right: 20px; /* เลื่อนเข้ามา */
}

.copy-protection-toast i {
    color: #a951ed;
    font-size: 1.2rem;
}
/* ซ่อนเมาส์จริงทุกที่ */
* {
    cursor: none !important;
}

#custom-cursor {
    width: 32px; 
    height: 32px;
    position: fixed;
    left: 0;
    top: 0;
    pointer-events: none; /* สำคัญมาก: เพื่อให้คลิกทะลุรูปไปโดนปุ่มได้ */
    z-index: 999999; /* สูงสุดๆ เพื่อไม่ให้โดนทับ */
    background-size: contain;
    background-repeat: no-repeat;
    /* ใส่รูปภาพปกติที่นี่ */
    background-image: url('images/cursor/Sword1.png'); 
    /* หากรูปไม่ขึ้น ให้ใช้สีแดงทดสอบชั่วคราว: background-color: red; */
    transform: translate(0, 0); 
    display: block;
    will-change: left, top; /* ช่วยให้การเคลื่อนไหวลื่นไหล */
}

#custom-cursor.cursor-hover {
    /* ใส่รูปตอนวางบนปุ่มที่นี่ */
    background-image: url('images/cursor/ro.png');
    width: 40px;
    height: 40px;
}

/* ละออง Particle */
.mouse-particle {
    position: fixed;
    pointer-events: none;
    border-radius: 50%;
    z-index: 999998;
    animation: particle-fade 0.8s ease-out forwards;
}

@keyframes particle-fade {
    0% { opacity: 1; transform: translate(0, 0) scale(1); }
    100% { opacity: 0; transform: translate(var(--dx), var(--dy)) scale(0); }
}
/* เพิ่มลูกเล่นเมื่อ Hover เล็กน้อย (ทางเลือก) */
.custom-button:hover {
    background-color: #6200ea;
    color: white;
}
	/* ลบพื้นหลังและขอบ Card ออกทั้งหมด */
.news-container-clean {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
}

/* หัวข้อ NEWS & ACTIVITIES */
.header-modern {
    font-weight: 900;
    letter-spacing: 1.5px;
    color: #fff;
    border-left: 4px solid #6f42c1;
    padding-left: 15px;
    text-shadow: 0 0 10px rgba(111, 66, 193, 0.5);
}

/* รายการข่าว (เป็น DIV คลิกไม่ได้) */
.news-display-row {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    margin-bottom: 8px;
    background: rgba(255, 255, 255, 0.02); /* พื้นหลังจางมากๆ */
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: default; /* เปลี่ยนเป็นลูกศรปกติ ไม่ใช่รูปมือ */
}

/* ลูกเล่นเมื่อนำเมาส์ไปวาง (Hover) */
.news-display-row:hover {
    background: rgba(111, 66, 193, 0.1); /* ไฮไลท์ม่วงจางๆ */
    border-color: #6f42c1;
    transform: translateX(10px); /* เลื่อนขวาเล็กน้อย */
    box-shadow: -5px 0 20px rgba(111, 66, 193, 0.2);
}

/* สีของ Badge หมวดหมู่ */
.cat-tag {
    font-size: 10px;
    font-weight: bold;
    padding: 2px 8px;
    border-radius: 4px;
    margin-right: 15px;
    text-transform: uppercase;
    border: 1px solid currentColor;
    background: rgba(255, 255, 255, 0.05);
}
.cat-update { color: #00d4ff; }
.cat-promo { color: #ffc107; }
.cat-event { color: #e91e63; }

/* จัดการวันที่ */
.date-text {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.4);
    font-weight: 600;
    min-width: 90px;
    text-align: right;
}

/* Tabs และ Pagination (เหมือนเดิมแต่คุมโทนม่วง) */
.news-tabs .nav-link { color: rgba(255,255,255,0.5); border: none; background: transparent; }
.news-tabs .nav-link.active { color: #a951ed !important; background: transparent !important; border-bottom: 2px solid #a951ed; border-radius: 0; }
	/* --- CupidRO Purple & White Header --- */
:root {
    --cupid-purple: #8e44ad;       /* ม่วงหลัก */
    --cupid-purple-light: #a29bfe; /* ม่วงสว่างสำหรับ Glow */
}

.header-cupid-ro {
    font-size: 3.5rem;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    position: relative;
    display: inline-block;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* ส่วนของคำว่า CUPID (สีม่วงไล่เฉด) */
.header-cupid-ro span.cupid {
    color: var(--cupid-purple-light);
    /* สร้างเอฟเฟกต์ Gradient ให้ตัวอักษร */
    background: linear-gradient(to bottom, #fff, var(--cupid-purple-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    /* แสงนีออนรอบตัวอักษร */
    filter: drop-shadow(0 0 8px rgba(142, 68, 173, 0.6));
    transition: 0.4s;
}

/* ส่วนของคำว่า RAGNAROK (สีขาวสะอาด) */
.header-cupid-ro span.ragnarok {
    color: #ffffff;
    font-weight: 900;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.4);
    opacity: 1; /* ปรับให้ชัดเจนขึ้น */
}

/* --- เอฟเฟกต์ตอน Hover --- */

.header-cupid-ro:hover {
    transform: scale(1.05);
}

/* เมื่อ Hover ให้คำว่า CUPID สว่างขึ้นอีก */
.header-cupid-ro:hover span.cupid {
    filter: drop-shadow(0 0 15px var(--cupid-purple)) 
            drop-shadow(0 0 30px var(--cupid-purple-light));
}

/* เมื่อ Hover ให้คำว่า RAGNAROK เรืองแสงสีขาว */
.header-cupid-ro:hover span.ragnarok {
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.8);
}

/* เส้นใต้แบบ Aurora (ม่วง-ขาว) */
.header-cupid-ro::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 50%;
    width: 0;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--cupid-purple-light), #fff, var(--cupid-purple-light), transparent);
    border-radius: 10px;
    transition: all 0.5s ease;
    box-shadow: 0 0 15px var(--cupid-purple-light);
}

.header-cupid-ro:hover::after {
    width: 100%;
    left: 0;
}
	/* --- Premium Copyright Wrapper --- */
.copyright-wrap {
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 0.5px;
}

/* เอฟเฟกต์ข้อความลิขสิทธิ์ */
.copyright-text {
    transition: 0.3s;
}

.copyright-text:hover {
    color: #fff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
}

/* ตกแต่งส่วน Designer Signature */
.designer-credit {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: 0.3s ease;
    text-decoration: none;
    color: inherit;
}

.designer-name {
    color: #fff;
    font-weight: 700;
    position: relative;
    padding-bottom: 2px;
}

.designer-name::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent);
    box-shadow: 0 0 8px var(--accent);
    transition: 0.3s ease;
}

.designer-credit:hover {
    color: var(--accent);
    transform: translateX(-5px); /* ขยับเล็กน้อยให้ดูมี Interaction */
}

.designer-credit:hover .designer-name::after {
    width: 100%;
}

/* ไอคอนประดับเล็กๆ */
.credit-icon {
    font-size: 0.7rem;
    color: var(--accent);
}
	/* --- Footer Logo Premium Animation --- */
.footer-logo-wrapper {
    display: inline-block;
    perspective: 1000px;
    text-decoration: none !important;
}

.footer-logo-img {
    height: 100px; /* ปรับขนาดความสูงตามต้องการ */
    width: auto;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    filter: drop-shadow(0 0 5px rgba(142, 68, 173, 0.3));
    /* ลูกเล่นลอยขึ้นลงอัตโนมัติ */
    animation: footerFloat 3s ease-in-out infinite;
}

/* เอฟเฟกต์เมื่อ Hover */
.footer-logo-wrapper:hover .footer-logo-img {
    transform: scale(1.1) rotate(5deg);
    filter: drop-shadow(0 0 15px var(--accent)) brightness(1.2);
}

/* ข้อความด้านล่างโลโก้ (ถ้ามี) */
.footer-logo-text {
    display: block;
    font-size: 0.7rem;
    letter-spacing: 5px;
    margin-top: 10px;
    color: var(--accent);
    opacity: 0.6;
    transition: 0.3s;
    text-align: center;
}

.footer-logo-wrapper:hover .footer-logo-text {
    opacity: 1;
    letter-spacing: 7px;
    text-shadow: 0 0 10px var(--accent);
}

/* Keyframes สำหรับการลอยตัว */
@keyframes footerFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}
	/* --- CupidRO Premium Logo Style --- */
:root {
    --accent: #d4af37; /* สีทองเมทัลลิกสำหรับ CupidRO */
}

/* สไตล์พื้นฐานของ Link โลโก้ */
.navbar-brand-cupid {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

/* ขนาดโลโก้ */
.brand-logo-img {
    height: 80px; /* ปรับขนาดความสูงตามต้องการ */
    width: auto;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55); /* Animation แบบเด้ง */
    filter: drop-shadow(0 0 2px rgba(255, 255, 255, 0.2)); /* เพิ่มมิติให้รูป */
}

/* ข้อความ CUPIDRO ด้านข้างโลโก้ (ถ้าคุณต้องการคงข้อความไว้ด้วย) */
.brand-text-cupid {
    font-size: 1.5rem;
    color: #fff;
    font-weight: 800;
    letter-spacing: 2px;
    margin-left: 15px;
    transition: 0.3s ease;
}

.brand-text-ro {
    font-weight: 200;
    opacity: 0.8;
    color: #fff;
    letter-spacing: 1px;
}

/* --- ลูกเล่นเวลา Mouse Over (Hover Effect) --- */

/* 1. โลโก้จะขยายตัวและเอียงเล็กน้อย เหมือนกำลังจะยิงธนู */
.navbar-brand-cupid:hover .brand-logo-img {
    transform: scale(1.1) rotate(-10deg);
    filter: drop-shadow(0 0 10px var(--accent)) drop-shadow(0 0 20px var(--accent));
}

/* 2. ข้อความจะเรืองแสงสีทอง */
.navbar-brand-cupid:hover .brand-text-cupid {
    color: var(--accent);
    text-shadow: 0 0 10px var(--accent);
}
	/* --- Ultra Modern Glass Stat Cards (No BG Image) --- */
.glass-card-premium {
    position: relative;
    background: rgba(255, 255, 255, 0.03); /* พื้นหลังโปร่งใสจางๆ */
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 35px 20px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* เอฟเฟกต์แสงสะท้อนวิ่งผ่าน (Shine Effect) */
.glass-card-premium::after {
    content: "";
    position: absolute;
    top: 0;
    left: -150%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.1),
        transparent
    );
    transition: 0.6s;
}

.glass-card-premium:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(142, 68, 173, 0.5); /* สีม่วงประจำ Acrux */
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 
                inset 0 0 15px rgba(142, 68, 173, 0.2);
}

.glass-card-premium:hover::after {
    left: 150%;
}

/* ตกแต่ง Icon ให้มีรัศมี (Glow) */
.stat-icon {
    font-size: 3rem;
    margin-bottom: 15px;
    transition: 0.5s ease;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.1));
}

.glass-card-premium:hover .stat-icon {
    transform: scale(1.2) rotate(10deg);
    filter: drop-shadow(0 0 20px currentColor);
}

/* ปรับแต่งตัวเลขให้ดูทันสมัย */
.stat-val-new {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -1px;
    margin-top: 5px;
}

.stat-label {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    opacity: 0.6;
}

/* Animation สำหรับจุด Pulse ที่หัวข้อ */
@keyframes pulse-green {
    0% { box-shadow: 0 0 0 0 rgba(46, 204, 113, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(46, 204, 113, 0); }
    100% { box-shadow: 0 0 0 0 rgba(46, 204, 113, 0); }
}
.badge-dot {
    width: 8px;
    height: 8px;
    background: #2ecc71;
    border-radius: 50%;
    display: inline-block;
    margin-right: 10px;
    animation: pulse-green 2s infinite;
}
	/* --- Server Info Premium UI --- */
.stats-sidebar-static {
    background: rgba(20, 18, 45, 0.6);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(142, 68, 173, 0.3);
    border-radius: 30px;
    padding: 30px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

.rate-card-premium {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
}

/* เอฟเฟกต์บรรทัดรายการ */
.rate-item {
    padding: 10px 12px;
    border-radius: 12px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.rate-item:hover {
    background: rgba(142, 68, 173, 0.1);
    border-color: rgba(142, 68, 173, 0.3);
    transform: translateX(8px);
}

.rate-label {
    font-size: 0.85rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
}

.rate-label i {
    width: 25px;
    font-size: 1.1rem;
    color: #8e44ad; /* สีม่วงหลัก */
    filter: drop-shadow(0 0 5px rgba(142, 68, 173, 0.5));
}

.rate-value {
    font-family: 'Cinzel', serif; /* หรือฟอนต์ตัวเลขเท่ๆ */
    font-weight: 800;
    letter-spacing: 1px;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.2);
}

/* ตกแต่งส่วน Online Status */
.server-live-box {
    background: linear-gradient(145deg, rgba(0,0,0,0.4), rgba(142, 68, 173, 0.1)) !important;
    position: relative;
}

.server-live-box::after {
    content: '';
    position: absolute;
    top: -50%; left: -50%;
    width: 200%; height: 200%;
    background: radial-gradient(circle, rgba(142, 68, 173, 0.1) 0%, transparent 70%);
    pointer-events: none;
}
	/* ซ่อน Scroll bar แนวนอนในส่วนของตารางทั้งหมด */
.table-responsive {
    overflow-x: hidden !important; /* บังคับซ่อน Scroll bar แนวนอน */
    padding: 5px; /* เพิ่มพื้นที่หายใจเล็กน้อย ไม่ให้ตัวที่ Scale โดนตัดขอบ */
}

/* หากต้องการให้เลื่อนได้แต่ "ซ่อนแถบ" (สำหรับมือถือ) ให้ใช้ชุดนี้แทน */
.table-responsive::-webkit-scrollbar {
    display: none; /* สำหรับ Chrome, Safari และ Opera */
}

.table-responsive {
    -ms-overflow-style: none;  /* สำหรับ IE และ Edge */
    scrollbar-width: none;  /* สำหรับ Firefox */
}

/* ปรับแต่งตอน Hover ไม่ให้ตัวตารางขยายจนทะลุขอบ */
.table-seamless tbody tr:hover {
    background: rgba(142, 68, 173, 0.15);
    transform: scale(1.01); /* ลดขนาดการขยายลงเล็กน้อยเพื่อความปลอดภัย */
    box-shadow: inset 0 0 10px rgba(142, 68, 173, 0.2); /* ใช้ Shadow ด้านในแทนด้านนอก */
}
	/* --- Compact Glass Ranking Wrapper --- */
.ranking-wrapper {
    max-width: 1500px; /* ปรับขนาดให้เล็กลงกะทัดรัด */
    margin: 0 auto;
    background: rgba(15, 12, 41, 0.4); /* พื้นหลังโปร่งแสงมืด */
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(142, 68, 173, 0.3); /* กรอบสีม่วงจางๆ */
    border-radius: 25px;
    padding: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5), inset 0 0 20px rgba(142, 68, 173, 0.1);
    position: relative;
    overflow: hidden;
}

/* เอฟเฟกต์แสงสะท้อนที่มุมกรอบ */
.ranking-wrapper::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: linear-gradient(135deg, rgba(142, 68, 173, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

/* ปรับแต่ง Tab Menu */
.nav-seamless {
    border-bottom: 2px solid rgba(255, 255, 255, 0.05);
    margin-bottom: 20px;
    gap: 10px;
}

.nav-seamless .nav-link {
    border: none;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 700;
    padding: 10px 25px;
    transition: 0.3s;
    border-radius: 10px 10px 0 0;
    font-size: 0.85rem;
    letter-spacing: 1px;
}

.nav-seamless .nav-link.active {
    background: transparent;
    color: #fff;
    border-bottom: 3px solid #8e44ad;
    text-shadow: 0 0 10px #8e44ad;
}

/* ปรับแต่งตารางด้านใน */
.table-seamless {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 8px; /* เว้นระยะระหว่างแถวให้ดูโปร่ง */
}

.table-seamless thead th {
    color: var(--primary);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 10px;
    border: none;
    opacity: 0.8;
}

.table-seamless tbody tr {
    background: rgba(255, 255, 255, 0.03);
    transition: 0.3s;
}

.table-seamless tbody tr:hover {
    background: rgba(142, 68, 173, 0.15);
    transform: scale(1.01);
}

.table-seamless td {
    padding: 12px 10px;
    vertical-align: middle;
    border: none;
}

.table-seamless td:first-child { border-radius: 12px 0 0 12px; }
.table-seamless td:last-child { border-radius: 0 12px 12px 0; }

/* ตกแต่งตัวเลขลำดับ */
.rank-num {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-weight: 800;
    background: rgba(0, 0, 0, 0.3);
    font-size: 0.8rem;
}

.top-rank-1 { color: #f1c40f; border: 1px solid #f1c40f; box-shadow: 0 0 10px rgba(241, 196, 15, 0.3); }
.top-rank-2 { color: #bdc3c7; border: 1px solid #bdc3c7; }
.top-rank-3 { color: #e67e22; border: 1px solid #e67e22; }

/* ข้อความตัวเล็กด้านล่างชื่อ */
.player-class {
    display: block;
    font-size: 0.7rem;
    opacity: 0.5;
    margin-top: 2px;
}

.guild-name {
    font-size: 0.75rem;
    color: #8e44ad;
}
	.glass-card-premium {
    position: relative;
    overflow: hidden; /* กันรูปภาพล้นขอบ */
    padding: 30px 20px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.4s ease;
    z-index: 1;
    /* ใส่รูปภาพพื้นหลังที่นี่ (เปลี่ยน URL เป็นรูปที่คุณต้องการ) */
    background-image: url('https://your-image-url.com/bg-card.jpg'); 
    background-size: cover;
    background-position: center;
}

/* เลเยอร์ฝ้ากระจก (The Glass Overlay) */
.glass-card-premium::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* ปรับความมืดและเอฟเฟกต์ฝ้าตรงนี้ */
    background: rgba(7, 5, 26, 0.65); 
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: -1; /* ให้อยู่หลังข้อความ */
}

/* เอฟเฟกต์เมื่อ Hover */
.glass-card-premium:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow: 0 10px 30px rgba(142, 68, 173, 0.3);
}

.glass-card-premium:hover::before {
    background: rgba(15, 12, 41, 0.4); /* สว่างขึ้นเล็กน้อยเมื่อชี้ */
    backdrop-filter: blur(4px); /* ลดความเบลอลงเพื่อให้เห็นภาพหลังชัดขึ้นนิดหน่อย */
}

/* ตกแต่งส่วน Icon และ Text ให้ลอยเด่น */
.stat-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
    filter: drop-shadow(0 0 10px currentColor);
}

.stat-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    opacity: 0.7;
    color: #fff;
}

.stat-val-new {
    font-size: 1.5rem;
    font-weight: 800;
    color: #fff;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}
	/* --- Footer Custom Buttons --- */
.footer-btn-container {
    display: flex;
    justify-content: center;
    gap: 30px;
    padding: 60px 20px;
    flex-wrap: wrap;
    background: linear-gradient(to top, rgba(142, 68, 173, 0.1), transparent);
}

.btn-cyber {
    position: relative;
    padding: 15px 35px;
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #fff;
    text-decoration: none;
    border-radius: 12px;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 220px;
}

/* --- ปุ่มที่ 1: แสงสีม่วงวิ่งรอบ (The Pulse) --- */
.btn-purple-pulse {
    background: #000;
    border: 1px solid #8e44ad;
    box-shadow: 0 0 15px rgba(142, 68, 173, 0.4);
}
.btn-purple-pulse:hover {
    box-shadow: 0 0 30px rgba(142, 68, 173, 0.8), inset 0 0 15px rgba(142, 68, 173, 0.5);
    transform: translateY(-5px);
}
.btn-purple-pulse::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-purple-pulse:hover::before { left: 100%; }

/* --- ปุ่มที่ 2: แสงนีออนสะท้อน (The Mirror Glow) --- */
.btn-cyan-glow {
    background: linear-gradient(45deg, #00d4ff, #0081ff);
    border: none;
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.4);
}
.btn-cyan-glow:hover {
    box-shadow: 0 0 40px rgba(0, 212, 255, 0.7);
    transform: scale(1.05);
}
.btn-cyan-glow i {
    animation: bounceIcon 2s infinite;
}

/* --- ปุ่มที่ 3: เส้นขอบนีออนกะพริบ (The Electric Frame) --- */
.btn-gold-electric {
    background: transparent;
    border: 2px solid #f1c40f;
    color: #f1c40f;
}
.btn-gold-electric:hover {
    background: #f1c40f;
    color: #000;
    box-shadow: 0 0 50px rgba(241, 196, 15, 0.6);
}

@keyframes bounceIcon {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

/* รองรับมือถือ */
@media (max-width: 768px) {
    .footer-btn-container {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }
    .btn-cyber { width: 90%; }
}
	/* --- New Premium Navbar Style --- */
.navbar {
    background: rgba(15, 12, 41, 0.2); /* โปร่งใสช่วงแรก */
    backdrop-filter: blur(0px);
    transition: all 0.4s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 15px 0;
}

/* เมื่อเลื่อนจอลงมาให้กลายเป็นกระจกฝ้า */
.navbar.scrolled {
    background: rgba(15, 12, 41, 0.85) !important;
    backdrop-filter: blur(15px) !important;
    padding: 10px 0;
    border-bottom: 1px solid rgba(142, 68, 173, 0.3);
}

.nav-link {
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 1px;
    padding: 10px 15px !important;
    transition: 0.3s;
    display: flex;
    align-items: center;
    color: rgba(255,255,255,0.7) !important;
}

.nav-link i {
    font-size: 1.1rem;
    color: var(--accent); /* สีม่วงหรือสีหลักของคุณ */
    transition: 0.3s;
}

.nav-link:hover {
    color: #fff !important;
    text-shadow: 0 0 10px var(--accent);
}

.nav-link:hover i {
    transform: translateY(-3px);
    filter: drop-shadow(0 0 5px var(--accent));
}

/* ปุ่ม Discord แบบพรีเมียม */
.btn-discord-nav {
    background: linear-gradient(135deg, #5865F2, #404eed);
    border-radius: 50px;
    color: white !important;
    padding: 8px 20px !important;
    box-shadow: 0 4px 15px rgba(88, 101, 242, 0.3);
    border: 1px solid rgba(255,255,255,0.1);
}

.btn-discord-nav:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(88, 101, 242, 0.5);
    filter: brightness(1.1);
}

/* ปรับแต่งเมนูบนมือถือ */
@media (max-width: 991px) {
    .navbar-collapse {
        background: rgba(7, 5, 26, 0.95);
        margin-top: 15px;
        padding: 20px;
        border-radius: 25px;
        border: 1px solid rgba(142, 68, 173, 0.2);
    }
    .nav-item {
        width: 100%;
        border-bottom: 1px solid rgba(255,255,255,0.05);
    }
    .nav-item:last-child { border: none; }
}
	/* --- Server Rate & Stats Premium Style --- */
.stats-sidebar-static {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(142, 68, 173, 0.2);
    padding: 25px;
    border-radius: 30px;
}

/* การ์ด Rate แบบมีแสงวิ่ง */
.rate-card-premium {
    background: linear-gradient(135deg, rgba(142, 68, 173, 0.1), rgba(0, 0, 0, 0.3));
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-left: 4px solid #8e44ad;
    position: relative;
    overflow: hidden;
    transition: 0.3s;
}

.rate-card-premium:hover {
    transform: translateX(5px);
    background: rgba(142, 68, 173, 0.2);
    border-left-color: #fff;
    box-shadow: 0 0 20px rgba(142, 68, 173, 0.3);
}

.rate-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.5);
}

.rate-value {
    font-family: 'Cinzel', serif; /* หรือฟอนต์แนวตัวเลขสวยๆ */
    font-weight: 800;
    color: #fff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

/* สถานะ Online แบบกะพริบ */
.status-online-pulse {
    background: rgba(46, 204, 113, 0.1);
    color: #2ecc71;
    border: 1px solid rgba(46, 204, 113, 0.3);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.8rem;
    display: inline-flex;
    align-items: center;
    box-shadow: 0 0 15px rgba(46, 204, 113, 0.2);
}

.dot-pulse {
    width: 8px;
    height: 8px;
    background-color: #2ecc71;
    border-radius: 50%;
    margin-right: 10px;
    position: relative;
}

.dot-pulse::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: inherit;
    border-radius: 50%;
    animation: pulseStatus 1.5s infinite;
}

@keyframes pulseStatus {
    0% { transform: scale(1); opacity: 0.8; }
    100% { transform: scale(2.5); opacity: 0; }
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
}
	/* --- Cyber Floating Menu (Desktop & Mobile) --- */
.acrux-side-nav {
    position: fixed;
    z-index: 10000;
    background: rgba(15, 12, 41, 0.7);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(142, 68, 173, 0.3);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    transition: all 0.4s ease;
}

/* สไตล์เมื่อแสดงบน Desktop (ขวาจอ ติด Scroll Bar) */
@media (min-width: 992px) {
    .acrux-side-nav {
        right: 20px;
        top: 50%;
        transform: translateY(-50%);
        flex-direction: column;
        display: flex;
        padding: 15px 10px;
        border-radius: 50px;
        gap: 15px;
    }
    
    .nav-item-box::before {
        content: attr(data-tooltip);
        position: absolute;
        right: 65px;
        background: var(--primary);
        color: white;
        padding: 5px 15px;
        border-radius: 5px;
        font-size: 0.8rem;
        white-space: nowrap;
        opacity: 0;
        visibility: hidden;
        transition: 0.3s;
        box-shadow: 0 0 10px var(--primary);
    }
    
    .nav-item-box:hover::before {
        opacity: 1;
        visibility: visible;
        right: 55px;
    }
}

/* สไตล์เมื่อแสดงบน Mobile (ล่างจอ ติดขอบล่าง) */
@media (max-width: 991px) {
    .acrux-side-nav {
        bottom: 0;
        left: 0;
        width: 100%;
        height: 70px;
        display: flex;
        flex-direction: row;
        justify-content: space-around;
        align-items: center;
        padding: 0 10px;
        border-radius: 20px 20px 0 0; /* มนเฉพาะขอบบน */
        border-right: none;
        border-left: none;
        border-bottom: none;
    }

    .nav-item-box span {
        display: block; /* โชว์ตัวหนังสือเล็กๆ ใต้ไอคอนบนมือถือ */
        font-size: 0.65rem;
        margin-top: 4px;
        opacity: 0.8;
    }
}

/* สไตล์ปุ่มกดเมนู */
.nav-item-box {
    position: relative;
    width: 45px;
    height: 45px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: 0.3s;
    border-radius: 50%;
}

.nav-item-box i {
    font-size: 1.2rem;
}

.nav-item-box:hover, .nav-item-box.active {
    color: var(--primary);
    transform: scale(1.1);
    text-shadow: 0 0 10px var(--primary);
}

/* ปุ่มเติมเงิน สีม่วงเรืองแสง */
.nav-item-refill {
    background: linear-gradient(135deg, #8e44ad, #d35400);
    color: white !important;
    box-shadow: 0 0 15px rgba(142, 68, 173, 0.5);
}

@media (max-width: 991px) {
    .nav-item-refill {
        width: 55px;
        height: 55px;
        margin-top: -30px; /* ให้ปุ่มเติมเงินลอยขึ้นมาเด่นๆ */
        border: 4px solid #07051a;
    }
}
	/* --- Ultimate Cyber Preloader --- */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #07051a; /* สีพื้นหลังมืดสนิทเข้ากับเว็บ */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 99999; /* อยู่บนสุดของทุกอย่าง */
    transition: opacity 0.8s ease, visibility 0.8s;
}

/* เอฟเฟกต์แสงฟุ้งด้านหลังโลโก้ */
.loader-aura {
    position: absolute;
    width: 300px;
    height: 300px;
    background: var(--primary);
    filter: blur(100px);
    opacity: 0.2;
    border-radius: 50%;
    animation: pulseAura 2s infinite alternate;
}

@keyframes pulseAura {
    from { transform: scale(0.8); opacity: 0.1; }
    to { transform: scale(1.2); opacity: 0.3; }
}

/* ส่วนของโลโก้ */
.loader-logo {
    width: 500px; /* ปรับขนาดโลโก้ตามต้องการ */
    margin-bottom: 40px;
    position: relative;
    z-index: 2;
    filter: drop-shadow(0 0 20px rgba(155, 89, 182, 0.5));
    animation: logoFloat 3s ease-in-out infinite;
}

@keyframes logoFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

/* โครงสร้างแถบดาวน์โหลด */
.loader-container {
    width: 300px;
    text-align: center;
    position: relative;
    z-index: 2;
}

.loader-status {
    font-size: 0.7rem;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 4px;
    margin-bottom: 15px;
    font-weight: 800;
    text-shadow: 0 0 10px var(--primary);
}

.progress-track {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.progress-fill {
    width: 0%; /* จะถูกควบคุมด้วย JavaScript */
    height: 100%;
    background: linear-gradient(90deg, var(--primary), #fff);
    box-shadow: 0 0 15px var(--primary);
    border-radius: 20px;
    transition: width 0.4s ease;
}

/* เมื่อโหลดเสร็จแล้วให้จางหายไป */
.loader-hidden {
    opacity: 0;
    visibility: hidden;
}
	/* --- Infinite Plasma Divider (Full Width) --- */
.full-divider-wrapper {
    position: relative;
    width: 100%;
    height: 60px; /* พื้นที่สำหรับแสงฟุ้ง */
    margin: 80px 0;
    overflow: hidden; /* กันแสงแลบออกนอกพื้นที่สไลด์ */
}

.plasma-line {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100vw; /* ยาวสุดขอบจอซ้ายขวา */
    height: 2px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(155, 89, 182, 0.5) 15%, 
        var(--primary) 50%, 
        rgba(155, 89, 182, 0.5) 85%, 
        transparent 100%);
    box-shadow: 0 0 20px rgba(142, 68, 173, 0.8);
    z-index: 1;
}

/* เอฟเฟกต์แสงวิ่งแวบๆ (Scanning Particle) */
.plasma-line::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 20%;
    height: 100%;
    background: linear-gradient(90deg, transparent, #fff, transparent);
    animation: scanningLight 4s infinite linear;
    filter: blur(5px);
}

/* จุดศูนย์กลางที่ชัดเจนขึ้น */
.energy-hub {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(142, 68, 173, 0.4) 0%, transparent 70%);
    z-index: 2;
}

.hub-core {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 4px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 0 20px #fff, 0 0 40px var(--primary);
}

/* ข้อความประดับแบบ Cyberpunk */
.divider-label {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.65rem;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 15px;
    font-weight: 800;
    text-shadow: 0 0 10px var(--primary);
    opacity: 0.8;
}

@keyframes scanningLight {
    0% { left: -100%; opacity: 0; }
    50% { opacity: 1; }
    100% { left: 100%; opacity: 0; }
}

/* เพิ่มเส้น Grid จางๆ ใต้เส้นคั่น */
.divider-grid {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 40px;
    background-image: linear-gradient(rgba(142, 68, 173, 0.1) 1px, transparent 1px);
    background-size: 100% 4px;
    transform: translateY(-50%);
    opacity: 0.3;
}
	/* --- Glowing Particle Effect --- */
.particle-wrapper {
    position: absolute;
    inset: -50px; /* ขยายพื้นที่ให้ละอองลอยออกนอกกรอบได้เล็กน้อย */
    pointer-events: none;
    z-index: 0;
}

.particle {
    position: absolute;
    background: var(--accent);
    border-radius: 50%;
    filter: blur(1px);
    opacity: 0;
    animation: floatParticle 6s infinite linear;
}

/* สร้างขนาดและตำแหน่งสุ่มให้ละอองแสง */
.p1 { width: 3px; height: 3px; top: 20%; left: 10%; animation-delay: 0s; }
.p2 { width: 5px; height: 5px; top: 60%; left: 80%; animation-delay: 1.5s; }
.p3 { width: 2px; height: 2px; top: 10%; left: 50%; animation-delay: 3s; }
.p4 { width: 4px; height: 4px; top: 80%; left: 30%; animation-delay: 0.5s; }
.p5 { width: 3px; height: 3px; top: 40%; left: 90%; animation-delay: 2.2s; }
.p6 { width: 2px; height: 2px; top: 70%; left: 15%; animation-delay: 4.1s; }

@keyframes floatParticle {
    0% {
        transform: translate(0, 0) scale(1);
        opacity: 0;
    }
    20% {
        opacity: 0.8;
        filter: blur(1px) drop-shadow(0 0 5px var(--accent));
    }
    50% {
        transform: translate(20px, -40px) scale(1.2);
    }
    80% {
        opacity: 0.8;
    }
    100% {
        transform: translate(40px, -80px) scale(0.5);
        opacity: 0;
    }
}

/* เพิ่มแสง Aura ฟุ้งๆ ด้านหลังข้อความ */
.header-glow-aura {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 250px;
    height: 80px;
    background: var(--accent);
    filter: blur(60px);
    opacity: 0.15;
    z-index: 0;
    pointer-events: none;
}
	/* --- Ultra Modern Ranking Header --- */
.ranking-header-box {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px;
    margin-bottom: 50px;
    text-align: center;
}

/* กรอบเส้นไฟวิ่งรอบหัวข้อ */
.header-frame {
    position: relative;
    padding: 15px 60px;
    background: rgba(15, 12, 41, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

/* ลูกเล่นเส้นไฟวิ่ง (Animated Border) */
.header-frame::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(
        transparent, 
        transparent, 
        transparent, 
        var(--accent)
    );
    animation: rotateFrame 4s linear infinite;
}

.header-frame::after {
    content: '';
    position: absolute;
    inset: 2px;
    background: rgba(7, 5, 26, 0.9);
    border-radius: 13px;
    z-index: 1;
}

@keyframes rotateFrame {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.ranking-main-title {
    position: relative;
    z-index: 2;
    font-size: 3rem;
    font-weight: 900;
    letter-spacing: 8px;
    text-transform: uppercase;
    margin: 0;
    background: linear-gradient(to bottom, #fff 30%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 15px rgba(0, 212, 255, 0.5));
}

.ranking-sub-title {
    position: relative;
    z-index: 2;
    font-size: 0.8rem;
    color: var(--accent);
    letter-spacing: 5px;
    text-transform: uppercase;
    margin-top: 10px;
    opacity: 0.8;
}

/* ตกแต่งปีกซ้าย-ขวา */
.header-wing {
    position: absolute;
    top: 50%;
    width: 100px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent));
    box-shadow: 0 0 10px var(--accent);
}

.wing-left { right: 100%; margin-right: 30px; transform: rotate(180deg); }
.wing-right { left: 100%; margin-left: 30px; }

@media (max-width: 768px) {
    .ranking-main-title { font-size: 1.8rem; letter-spacing: 4px; }
    .header-wing { display: none; }
}
	/* --- Seamless Ranking Style --- */
.ranking-wrapper {
    padding: 40px 0;
}

/* ปรับแต่ง Tab ให้ดูเป็นเนื้อเดียวกับพื้นหลัง */
.nav-seamless {
    border: none;
    justify-content: center;
    margin-bottom: 50px;
    gap: 20px;
}

.nav-seamless .nav-link {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.4);
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 2px;
    padding: 10px 20px;
    position: relative;
    transition: all 0.4s ease;
}

.nav-seamless .nav-link.active {
    color: var(--accent) !important;
    background: transparent !important;
}

/* เส้นขีดล่างสไตล์ Minimal เมื่อ Tab Active */
.nav-seamless .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: all 0.4s ease;
    transform: translateX(-50%);
    box-shadow: 0 0 10px var(--accent);
}

.nav-seamless .nav-link.active::after {
    width: 100%;
}

/* --- ตารางแบบไม่มีกรอบ (Borderless) --- */
.table-seamless {
    width: 100%;
    color: #fff;
    border-collapse: collapse;
}

.table-seamless thead th {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.3);
    font-weight: 300;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 3px;
    padding: 20px;
}

.table-seamless tbody tr {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05); /* เส้นคั่นบางๆ */
    transition: all 0.3s ease;
}

.table-seamless tbody tr:hover {
    background: linear-gradient(90deg, transparent, rgba(0, 212, 255, 0.05), transparent);
}

.table-seamless td {
    padding: 25px 20px;
    vertical-align: middle;
}

/* ตัวเลขลำดับแบบเรียบหรู */
.rank-num {
    font-family: 'Cinzel', serif; /* หรือฟอนต์แนวโรมัน */
    font-size: 1.4rem;
    font-weight: 200;
    opacity: 0.5;
    font-style: italic;
}

.top-rank-1 { color: #FFD700; opacity: 1; text-shadow: 0 0 15px rgba(255, 215, 0, 0.5); }
.top-rank-2 { color: #C0C0C0; opacity: 1; }
.top-rank-3 { color: #CD7F32; opacity: 1; }

/* ชื่อตัวละครและคลาส */
.player-name {
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 1px;
    display: block;
}

.player-class {
    font-size: 0.7rem;
    text-transform: uppercase;
    color: var(--accent);
    letter-spacing: 1px;
    opacity: 0.7;
}

.guild-name {
    font-size: 0.85rem;
    opacity: 0.5;
}
	/* --- Info Section Layout (Static Sidebar) --- */
.info-section {
    padding: 80px 0;
}

/* Sidebar แบบไม่เลื่อนตาม (Static) */
.stats-sidebar-static {
    background: rgba(15, 12, 41, 0.4);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 35px;
    padding: 35px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* --- Custom Glowing Tabs --- */
.nav-tabs-custom {
    border: none;
    gap: 10px;
    margin-bottom: 25px;
}

.nav-tabs-custom .nav-link {
    color: rgba(255, 255, 255, 0.5) !important;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
    border-radius: 50px;
    padding: 10px 25px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.4s ease;
}

/* Tab ข่าวสาร (สีฟ้า) */
.nav-tabs-custom .nav-link#news-tab.active {
    background: var(--accent) !important;
    color: #000 !important;
    box-shadow: 0 0 20px var(--accent);
}

/* Tab โปรโมชั่น (สีทอง/ส้ม) */
.nav-tabs-custom .nav-link#promo-tab.active {
    background: #ffc107 !important;
    color: #000 !important;
    box-shadow: 0 0 20px #ffc107;
}

/* Tab กิจกรรม (สีเขียว/ชมพู) */
.nav-tabs-custom .nav-link#event-tab.active {
    background: #e91e63 !important;
    color: #fff !important;
    box-shadow: 0 0 20px #e91e63;
}

/* --- News Item Animation --- */
.tab-pane.fade {
    transition: opacity 0.3s linear, transform 0.3s ease-out;
    transform: translateY(10px);
}
.tab-pane.fade.show {
    transform: translateY(0);
}

.news-card-modern {
    display: flex;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 25px;
    margin-bottom: 20px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-decoration: none;
    color: white !important;
}

.news-card-modern:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateX(10px);
}

.news-img-box {
    width: 180px;
    min-width: 180px;
    background: #000;
}

.news-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.7;
    transition: 0.5s;
}

.news-card-modern:hover .news-img-box img {
    opacity: 1;
    transform: scale(1.1);
}
	/* --- Ultimate Cinematic Slider --- */
.main-slider {
    position: relative;
    border-radius: 40px; /* ขอบมนรับกับส่วนอื่นๆ */
    overflow: hidden;
    margin: 40px 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 25px 50px rgba(0,0,0,0.5);
}

.carousel-item {
    height: 500px; /* ปรับความสูงตามต้องการ */
    background-size: cover;
    background-position: center;
    position: relative;
}

/* เอฟเฟกต์มืดที่ขอบภาพเพื่อให้ตัวหนังสือเด่น */
.carousel-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(7, 5, 26, 0.9) 10%, transparent 60%, rgba(7, 5, 26, 0.8));
}

/* Zoom Animation สำหรับรูปภาพ */
.carousel-item.active {
    animation: imageZoom 10s forwards;
}

@keyframes imageZoom {
    from { transform: scale(1); }
    to { transform: scale(1.1); }
}

/* การจัดวางข้อความใน Slider */
.slider-caption {
    position: absolute;
    top: 50%;
    left: 8%;
    transform: translateY(-50%);
    z-index: 10;
    max-width: 500px;
    text-align: left;
}

.slider-tag {
    background: var(--accent);
    color: #000;
    padding: 5px 15px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 20px;
    box-shadow: 0 0 15px var(--accent);
    animation: fadeInUp 0.8s both;
}

.slider-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
    background: linear-gradient(to right, #fff, var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: fadeInUp 0.8s both 0.2s;
}

.slider-desc {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.1rem;
    margin-bottom: 30px;
    animation: fadeInUp 0.8s both 0.4s;
}

/* Navigation Buttons (ลูกศร) */
.carousel-control-prev, .carousel-control-next {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    margin: 0 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s;
}

.carousel-control-prev:hover, .carousel-control-next:hover {
    background: var(--accent);
    box-shadow: 0 0 20px var(--accent);
}

/* จุดบอกตำแหน่ง (Indicators) */
.carousel-indicators [data-bs-target] {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin: 0 8px;
    background-color: var(--accent);
    opacity: 0.3;
}

.carousel-indicators .active {
    opacity: 1;
    transform: scale(1.3);
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .carousel-item { height: 400px; }
    .slider-title { font-size: 2rem; }
    .slider-caption { left: 5%; padding-right: 5%; }
}
	/* --- Ultimate Modern Footer --- */
.main-footer {
    background: linear-gradient(to top, rgba(7, 5, 26, 1) 0%, rgba(15, 12, 41, 0.8) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(0, 212, 255, 0.1);
    padding: 80px 0 30px;
    position: relative;
    overflow: hidden;
}

/* เอฟเฟกต์แสงฟุ้งที่มุม Footer */
.footer-glow {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 300px;
    height: 1px;
    background: var(--accent);
    box-shadow: 0 0 50px 10px var(--accent);
    opacity: 0.3;
}

.footer-logo {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: 2px;
    margin-bottom: 20px;
    display: block;
}

.footer-link-title {
    color: var(--accent);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 25px;
    font-size: 0.9rem;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 300;
}

.footer-links a:hover {
    color: #fff;
    padding-left: 8px;
    text-shadow: 0 0 10px var(--accent);
}

.social-icons a {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.05);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    color: #fff;
    font-size: 1.2rem;
    margin-right: 10px;
    transition: all 0.4s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-icons a:hover {
    background: var(--primary);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(142, 68, 173, 0.4);
    border-color: var(--primary);
}

.copyright-wrap {
    margin-top: 60px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.85rem;
}
	/* --- Sword Divider Style --- */
.divider-container {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 60px 0;
    position: relative;
    overflow: hidden;
}

/* เส้นเรืองแสงด้านซ้ายและขวา */
.divider-line {
    flex: 1;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent), var(--primary), transparent);
    box-shadow: 0 0 10px var(--accent);
    opacity: 0.6;
}

/* ส่วนของดาบตรงกลาง */
.divider-icon-wrap {
    position: relative;
    padding: 0 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    filter: drop-shadow(0 0 15px var(--accent));
    animation: swordGlow 3s ease-in-out infinite;
}

.divider-sword {
    width: 60px; /* ปรับขนาดตามต้องการ */
    height: auto;
    transition: all 0.5s ease;
}

/* เอฟเฟกต์แสงวูบวาบที่ดาบ */
@keyframes swordGlow {
    0%, 100% { filter: drop-shadow(0 0 10px var(--accent)); opacity: 0.8; }
    50% { filter: drop-shadow(0 0 25px var(--primary)); opacity: 1; }
}

/* สำหรับมือถือ */
@media (max-width: 768px) {
    .divider-sword { width: 45px; }
    .divider-line { height: 1px; }
}
	/* --- Modern Section Title Frame --- */
.section-header-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-bottom: 50px;
}

.modern-badge {
    position: relative;
    padding: 12px 40px;
    background: rgba(142, 68, 173, 0.1);
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 50px; /* ทรงแคปซูลละมุน */
    backdrop-filter: blur(5px);
    display: inline-block;
}

/* เอฟเฟกต์เส้นเรืองแสงด้านข้าง */
.modern-badge::before,
.modern-badge::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), transparent);
}

.modern-badge::before {
    right: 100%;
    margin-right: 20px;
}

.modern-badge::after {
    left: 100%;
    margin-left: 20px;
    transform: rotate(180deg);
}

.section-title-new {
    font-size: 2.5rem;
    font-weight: 800;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 5px;
    color: #fff;
    text-shadow: 0 0 20px rgba(0, 212, 255, 0.6);
}

/* ลูกเล่นจุดไฟกะพริบเล็กๆ (Pulse) */
.badge-dot {
    position: absolute;
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
    top: -3px;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 0 0 10px var(--accent);
    animation: badgePulse 2s infinite;
}

@keyframes badgePulse {
    0% { transform: translateX(-50%) scale(1); opacity: 1; }
    50% { transform: translateX(-50%) scale(1.5); opacity: 0.5; }
    100% { transform: translateX(-50%) scale(1); opacity: 1; }
}

@media (max-width: 768px) {
    .section-title-new { font-size: 1.6rem; letter-spacing: 2px; }
    .modern-badge::before, .modern-badge::after { width: 30px; }
}
	/* --- Advanced Stat Cards --- */
.stat-wrapper {
    perspective: 1000px; /* เพิ่มมิติความลึก */
}

.glass-card-premium {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 25px;
    padding: 30px 20px;
    position: relative;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
}

/* เอฟเฟกต์แสงวิ่งที่ขอบเมื่อ Hover */
.glass-card-premium::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(transparent, var(--accent), transparent, var(--primary), transparent);
    animation: rotateBeam 4s linear infinite;
    opacity: 0;
    transition: opacity 0.3s;
    z-index: -1;
}

.glass-card-premium:hover {
    transform: translateY(-15px) rotateX(5deg);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 
                0 0 20px rgba(0, 212, 255, 0.2);
}

.glass-card-premium:hover::before {
    opacity: 1;
}

@keyframes rotateBeam {
    100% { transform: rotate(360deg); }
}

/* ปรับแต่งตัวเลข Stat */
.stat-val-new {
    font-size: 2.2rem;
    font-weight: 900;
    background: linear-gradient(to bottom, #fff 30%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 10px rgba(0, 212, 255, 0.3));
    margin-top: 10px;
}

.stat-label {
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 600;
}

/* ไอคอนให้มีการเรืองแสง */
.stat-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
    display: inline-block;
    filter: drop-shadow(0 0 15px currentColor);
}
	/* --- Notice Bar Style --- */
.notice-bar {
    background: linear-gradient(90deg, rgba(142, 68, 173, 0.1) 0%, rgba(0, 212, 255, 0.1) 100%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    height: 35px;
    display: flex;
    align-items: center;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1030; /* อยู่เหนือทุกอย่าง */
    overflow: hidden;
    transition: transform 0.4s ease, opacity 0.4s ease;
}

/* เมื่อ Scroll ให้ Notice Bar ดันตัวเองขึ้นไปซ่อน */
.notice-bar.scrolled {
    transform: translateY(-100%);
    opacity: 0;
}

.notice-content {
    display: flex;
    white-space: nowrap;
    animation: ticker 25s linear infinite; /* ความเร็วในการวิ่ง */
}

.notice-item {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.85rem;
    font-weight: 300;
    padding: 0 50px;
    display: flex;
    align-items: center;
}

.notice-item i {
    color: var(--accent);
    margin-right: 8px;
}

.notice-tag {
    background: var(--primary);
    color: white;
    font-size: 0.7rem;
    padding: 2px 8px;
    border-radius: 4px;
    margin-right: 10px;
    text-transform: uppercase;
    font-weight: 600;
}

@keyframes ticker {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

/* ปรับตำแหน่ง Navbar ให้ลงมารองรับ Notice Bar */
.navbar {
    top: 35px; /* เว้นที่ให้ Notice Bar */
}

.navbar.scrolled {
    top: 0; /* เมื่อ Scroll ให้ Navbar กลับไปติดขอบบนสุด */
}

@media (max-width: 768px) {
    .notice-item {
        font-size: 0.8rem;
        padding: 0 30px;
    }
}
	/* --- New Hybrid Topup Button (WindHawk + AbyssChaser) --- */
.btn-nav-topup {
    /* ไล่เฉดจากฟ้าไปม่วง ตามโทนตัวละครซ้าย-ขวา */
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.2) 0%, rgba(142, 68, 173, 0.2) 100%);
    border: 1px solid rgba(255, 255, 255, 0.2); /* ขอบบางๆ ดูแพง */
    color: white !important;
    border-radius: 50px;
    padding: 8px 30px !important;
    font-weight: 500;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(5px);
}

.btn-nav-topup:hover {
    /* เมื่อ Hover ให้สีชัดขึ้นและเรืองแสง */
    background: linear-gradient(135deg, var(--accent) 0%, var(--primary) 100%);
    border-color: transparent;
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.4), 0 0 20px rgba(142, 68, 173, 0.4);
    color: #fff !important;
}

/* เพิ่ม Effect แสงวิ่งผ่านปุ่ม (Shine Effect) ให้ดูมีระดับ */
.btn-nav-topup::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-nav-topup:hover::before {
    left: 100%;
}
	/* --- New Soft & Elegant Navbar --- */
.navbar {
    background: linear-gradient(to bottom, rgba(15, 12, 41, 0.8) 0%, rgba(15, 12, 41, 0) 100%) !important;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: none;
    padding: 20px 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* เมื่อ Scroll แล้วให้กลายเป็นบาร์มนๆ ลอยๆ */
.navbar.scrolled {
    margin: 15px 20px;
    padding: 10px 0;
    background: rgba(15, 12, 41, 0.85) !important;
    border-radius: 50px; /* ความมนระดับพรีเมียม */
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    width: auto; /* ทำให้ดูเหมือนลอยอยู่ */
}

/* ตัวอักษรเน้นความเรียบหรู */
.nav-link {
    color: rgba(255, 255, 255, 0.7) !important;
    font-size: 1.05rem;
    font-weight: 300; /* ผอมบาง ดูสะอาดตา */
    letter-spacing: 1px;
    transition: all 0.3s ease;
    padding: 10px 20px !important;
}

.nav-link:hover {
    color: var(--accent) !important;
    text-shadow: 0 0 10px var(--accent);
    transform: translateY(-2px);
}

/* ปุ่ม Topup ให้ดู Soft แต่เด่น */
.btn-nav-topup {
    background: rgba(142, 68, 173, 0.2);
    border: 1px solid var(--primary);
    color: white !important;
    border-radius: 50px;
    padding: 8px 25px !important;
    transition: all 0.3s ease;
}

.btn-nav-topup:hover {
    background: var(--primary);
    box-shadow: 0 0 20px var(--primary);
    transform: scale(1.05);
}

/* Mobile Toggler แบบ Minimal */
.navbar-toggler {
    border: none;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 8px;
}
	/* --- เอฟเฟกต์ละอองแสง (Particle Particles) --- */
.hero-side-wrapper {
    position: absolute;
    bottom: 0;
    height: 100%;
    width: 40%;
    pointer-events: none;
    z-index: 1;
}

/* สร้างจุดละอองแสงด้วย Box Shadow หลายๆ จุด */
.particles {
    position: absolute;
    bottom: 10%;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle, #fff 1px, transparent 1px),
        radial-gradient(circle, #fff 1px, transparent 1px);
    background-size: 100px 100px, 150px 150px;
    background-position: 0 0, 50px 50px;
    opacity: 0;
    animation: particlesUp 4s linear infinite;
}

/* สีละอองแสงฝั่งซ้าย (ฟ้า) */
.side-left .particles {
    filter: blur(1px) drop-shadow(0 0 5px #00d4ff);
}

/* สีละอองแสงฝั่งขวา (ม่วง) */
.side-right .particles {
    filter: blur(1px) drop-shadow(0 0 5px #8e44ad);
    animation-delay: 2s; /* ให้จังหวะต่างกัน */
}

@keyframes particlesUp {
    0% {
        transform: translateY(20%) scale(0.5);
        opacity: 0;
    }
    50% {
        opacity: 0.8;
    }
    100% {
        transform: translateY(-50%) scale(1.2);
        opacity: 0;
    }
}

/* ปรับปรุง CSS เดิมเล็กน้อยเพื่อให้รองรับ Wrapper */
.hero-side-img {
    width: 100%;
    height: auto;
    object-fit: contain;
}
	/* --- 1. ตั้งค่ารูปตัวละครหลัก --- */
.hero-side-img {
    position: absolute;
    bottom: 0;
    max-height: 85%; /* ปรับความสูงตามความเหมาะสม */
    z-index: 1;
    pointer-events: none;
    will-change: transform, filter;
    transition: transform 0.1s ease-out; /* สำหรับ Parallax */
}

/* --- 2. เอฟเฟกต์เรืองแสง (Glow) และ ตำแหน่ง --- */
.side-left {
    left: 2%;
    /* แสงสีฟ้าม่วงสว่างๆ สำหรับ WindHawk */
    filter: drop-shadow(0 0 25px rgba(0, 212, 255, 0.6));
    animation: floatingLeft 5s ease-in-out infinite;
}

.side-right {
    right: 2%;
    /* แสงสีม่วงแดงเข้มๆ สำหรับ AbyssChaser */
    filter: drop-shadow(0 0 25px rgba(142, 68, 173, 0.7));
    animation: floatingRight 6s ease-in-out infinite; /* เวลาไม่เท่ากันเพื่อให้ดูไม่เป็นหุ่นยนต์ */
}

/* --- 3. Animation ขยับขึ้นลง (Floating) --- */
@keyframes floatingLeft {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-30px); } /* ลอยขึ้น 30px */
}

@keyframes floatingRight {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); } /* ลอยขึ้น 20px */
}

/* --- 4. Responsive สำหรับมือถือ --- */
@media (max-width: 992px) {
    .hero-side-img {
        max-height: 45%; /* ย่อขนาดลงเมื่อเปิดในมือถือ */
        opacity: 0.6;
        filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.3)); /* ลดความฟุ้งลงเพื่อความสะอาดตา */
    }
    .side-left { left: -10%; }
    .side-right { right: -10%; }
}
	/* การตั้งค่าพื้นฐานสำหรับรูปด้านข้าง */
.hero-side-img {
    position: absolute;
    bottom: 0;
    max-height: 80%; /* ไม่ให้สูงเกินหน้าจอ */
    z-index: 1;      /* ให้อยู่หลัง Content (logo/text) */
    pointer-events: none; /* ป้องกันไม่ให้รูปบังการคลิกปุ่ม */
    transition: transform 0.1s ease-out;
    will-change: transform;
}

.side-left {
    left: 5%;
}

.side-right {
    right: 5%;
}

/* เมื่อเปิดในมือถือ */
@media (max-width: 992px) {
    .hero-side-img {
        max-height: 40%; /* ลดขนาดลง */
        opacity: 0.4;    /* ปรับให้จางลงเพื่อให้อ่านข้อความง่าย */
    }
    .side-left { left: -5%; }
    .side-right { right: -5%; }
}

/* ตั้งค่าให้ Hero Content อยู่ข้างหน้าเสมอ */
.hero-content {
    position: relative;
    z-index: 10;
}
		/* คุมขนาดโลโก้ */
.logo-main {
    width: 100%;             /* ให้ยืดตาม Container */
    max-width: 900px;        /* ขนาดใหญ่สุดบนจอคอม (ปรับเพิ่ม/ลดเลขนี้ได้ตามใจชอบ) */
    height: auto;            /* รักษาอัตราส่วนภาพ */
    filter: drop-shadow(0 0 35px rgba(0, 212, 255, 0.6));
    animation: float 4s ease-in-out infinite;
    transition: all 0.3s ease; /* เพิ่มความนุ่มนวลเวลาเปลี่ยนขนาดจอ */
}

/* ปรับขนาดเมื่อเปิดบนมือถือ (หน้าจอเล็กกว่า 768px) */
@media (max-width: 768px) {
    .logo-main {
        max-width: 500px;    /* ขนาดที่เหมาะสมสำหรับมือถือ ไม่ให้บังตัวหนังสือเกินไป */
    }
    .display-3 {
        font-size: 2.5rem;   /* ปรับขนาดหัวข้อลงนิดหน่อยให้รับกับโลโก้บนมือถือ */
    }
}
        :root {
            --primary: #8e44ad;
            --accent: #00d4ff;
            --dark-bg: #0f0c29;
            --glass: rgba(255, 255, 255, 0.1);
            --glass-border: rgba(255, 255, 255, 0.2);
        }

        body {
            font-family: 'Kanit', sans-serif;
            background: var(--dark-bg);
            color: white;
            overflow-x: hidden;
            margin: 0;
        }

        /* --- Background & Snow Canvas --- */
        .bg-parallax {
            position: fixed;
            top: -5%;
            left: -5%;
            width: 110%;
            height: 110%;
            background-image: linear-gradient(rgba(15, 12, 41, 0.85), rgba(15, 12, 41, 0.85)), 
                              url('images/bg.jpg'); 
            background-size: cover;
            background-position: center;
            z-index: -2;
            will-change: transform;
            transition: transform 0.1s ease-out;
        }

        #snow-canvas {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            z-index: -1;
            pointer-events: none; /* ให้คลิกทะลุหิมะได้ */
        }

        /* --- Custom Scrollbar --- */
        ::-webkit-scrollbar { width: 8px; }
        ::-webkit-scrollbar-track { background: #0f0c29; }
        ::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 10px; }

        /* --- Navbar --- */
        .navbar {
            background: rgba(15, 12, 41, 0.7) !important;
            backdrop-filter: blur(15px);
            border-bottom: 1px solid var(--glass-border);
            padding: 15px 0;
        }
        .nav-link:hover { color: var(--accent) !important; transform: translateY(-2px); }

        /* --- Hero Section --- */
        .hero {
            height: 100vh;
            display: flex;
            align-items: center;
            justify-content: center;
            position: relative;
        }
        .logo-main {
            filter: drop-shadow(0 0 25px rgba(0, 212, 255, 0.5));
            animation: float 4s ease-in-out infinite;
        }
        @keyframes float {
            0%, 100% { transform: translateY(0); }
            50% { transform: translateY(-20px); }
        }

        /* --- Glassmorphism --- */
        .glass-card {
            background: var(--glass);
            backdrop-filter: blur(20px);
            border: 1px solid var(--glass-border);
            border-radius: 20px;
            transition: 0.4s;
        }
        .glass-card:hover {
            background: rgba(255, 255, 255, 0.15);
            transform: translateY(-10px);
            border-color: var(--accent);
        }

        .btn-glow {
            background: linear-gradient(45deg, var(--primary), var(--accent));
            border: none; color: white; padding: 12px 30px; border-radius: 50px;
            font-weight: 600; box-shadow: 0 4px 15px rgba(142, 68, 173, 0.4);
            transition: 0.3s;
        }
        .btn-glow:hover { transform: scale(1.05); box-shadow: 0 0 25px var(--accent); color: white; }

        .section-title {
            font-weight: 800; font-size: 2.5rem;
            background: linear-gradient(to right, #fff, var(--accent));
            -webkit-background-clip: text; -webkit-text-fill-color: transparent;
            margin-bottom: 50px;
        }

        .stat-val { font-size: 2rem; font-weight: 800; color: var(--accent); text-shadow: 0 0 10px var(--accent); }

        footer { background: rgba(7, 5, 26, 0.9); padding: 60px 0; border-top: 1px solid var(--glass-border); }