/* ================= CONFIG ================= */
 :root {
    --bg-color: #0f111a;
    --text-color: #c0caf5;
    --primary: #7aa2f7;
    --secondary: #9ece6a;
    --accent: #f7768e;
    --card-bg: #1a1b26;
    --card-hover: #24283b; /* สำหรับอันดับ 4+ */
    --scroll-thumb: #414868;
    --border-line: rgba(255, 255, 255, 0.08);
    
    /* Rank Colors Definition */
    --rank-1-color: #ffd700;       /* Gold */
    --rank-1-bg: rgba(255, 215, 0, 0.05);
    
    --rank-2-color: #e0e0e0;       /* Silver (ปรับให้สว่างขึ้นนิดนึงจากเดิม) */
    --rank-2-bg: rgba(224, 224, 224, 0.05);
    
    --rank-3-color: #cd7f32;       /* Bronze */
    --rank-3-bg: rgba(205, 127, 50, 0.05);

    /* Discord Colors */
    --discord-online: #23a559;
    --discord-idle: #f0b232;
    --discord-dnd: #f23f43;
    --discord-offline: #80848e;
    --discord-code-bg: #2b2d31;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
/* html { scroll-behavior: smooth; } เอาออกเพื่อให้ JS คุม */
body {
    font-family: 'Kanit', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    overflow-x: hidden;
    display: flex; flex-direction: column; min-height: 100vh;
}

/* ================= Utils ================= */
img {
    -webkit-user-drag: none; user-drag: none;
    -webkit-user-select: none; user-select: none;
    pointer-events: none; 
}

a { text-decoration: none; color: inherit; }

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-color); }
::-webkit-scrollbar-thumb { background: var(--scroll-thumb); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary); }

/* ================= AOS ANIMATION STYLE ================= */
.aos-item {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.25, 1, 0.5, 1);
    will-change: opacity, transform;
}
.aos-item.aos-active {
    opacity: 1;
    transform: translateY(0);
}

/* ================= NAV ================= */
nav {
    position: fixed; top: 0; width: 100%;
    padding: 15px 50px;
    display: flex; justify-content: space-between; align-items: center;
    z-index: 1000;
    background: rgba(15, 17, 26, 0.95);
    backdrop-filter: blur(15px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}
.logo { font-size: 1.6rem; font-weight: 700; color: var(--primary); letter-spacing: 1px; }
.nav-links a {
    color: var(--text-color); margin-left: 30px;
    transition: 0.3s; font-size: 1.05rem; font-weight: 500;
    position: relative;
}
.nav-links a:hover, .nav-links a.active { color: var(--primary); }
.nav-links a::after {
    content: ''; position: absolute; bottom: -5px; left: 0; width: 0%; height: 2px;
    background: var(--primary); transition: 0.3s;
}
.nav-links a:hover::after { width: 100%; }

.hamburger { display: none; cursor: pointer; font-size: 1.5rem; color: var(--text-color); }
.close-menu { display: none; position: absolute; top: 25px; right: 25px; font-size: 1.8rem; cursor: pointer; color: var(--text-color); }

/* ================= SECTIONS ================= */
section {
    width: 100%; min-height: 100vh;
    display: flex; flex-direction: column;
    padding: 85px 20px 40px 20px;
    position: relative;
    overflow: hidden;
    justify-content: center;
}

.section-header { text-align: center; margin-bottom: 30px; flex-shrink: 0; }
.section-header h2 { font-size: 3rem; color: #fff; font-weight: 700; letter-spacing: 1px; margin-bottom: 10px; }
.section-header h2 span { color: var(--primary); }
.section-header p { opacity: 0.7; font-size: 1.1rem; }

.content-scroll-container {
    width: 100%; max-width: 1100px; margin: 0 auto;
    flex-grow: 1; padding: 10px;
}

#recent-activities .content-scroll-container { max-width: 80vw; }
@media (max-width: 1024px) { #recent-activities .content-scroll-container { max-width: 95vw; } }

/* --- 1. Home --- */
#main {
    justify-content: center; align-items: center; height: 100vh;
    background: radial-gradient(circle at center top, #2e3c64 0%, var(--bg-color) 60%);
    text-align: center;
}

.hero-avatar-container { margin-bottom: 25px; position: relative; display: inline-block; }
.hero-avatar {
    width: 160px; height: 160px; border-radius: 50%;
    border: 6px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 50px rgba(122, 162, 247, 0.4);
    object-fit: cover; animation: pulse-glow 3s infinite;
}
@keyframes pulse-glow {
    0% { box-shadow: 0 0 30px rgba(122, 162, 247, 0.2); }
    50% { box-shadow: 0 0 60px rgba(122, 162, 247, 0.6); }
    100% { box-shadow: 0 0 30px rgba(122, 162, 247, 0.2); }
}

h1.hero-title {
    font-size: 5rem; font-weight: 800;
    background: linear-gradient(45deg, var(--primary), #a388ee, var(--accent));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    text-transform: uppercase; letter-spacing: 4px; text-align: center;
    line-height: 1.1; margin-bottom: 25px;
}
.hero-desc {
    font-size: 1.25rem; opacity: 0.9; font-weight: 300; max-width: 800px; 
    margin: 0 auto; line-height: 1.6; color: #dbe4ff; margin-bottom: 40px;
}
.hero-btn {
    display: inline-flex; align-items: center; gap: 12px;
    background: var(--primary); color: #0f111a; font-size: 1.3rem; font-weight: 700;
    padding: 18px 45px; border-radius: 50px;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 30px rgba(122, 162, 247, 0.3);
    text-transform: uppercase; letter-spacing: 1px; margin-bottom: 20px;
}
.hero-btn:hover {
    transform: translateY(-5px) scale(1.05);
    background: #fff; box-shadow: 0 15px 40px rgba(122, 162, 247, 0.5);
}
.scroll-btn {
    margin-top: 50px; font-size: 2rem; color: var(--text-color);
    animation: bounce 2s infinite; cursor: pointer; opacity: 0.7; transition: 0.3s;
}
.scroll-btn:hover { opacity: 1; color: var(--primary); }

/* --- 1.5 SECTION: #bot --- */
#bot {
    background: linear-gradient(180deg, var(--bg-color) 0%, #13151f 100%);
    min-height: 100vh; justify-content: center; align-items: center; display: flex; padding-top: 100px; 
}
.bot-showcase-container {
    display: flex; align-items: center; justify-content: center;
    gap: 60px; width: 100%; max-width: 1200px; flex-wrap: wrap; 
}
.discord-profile-card {
    background: var(--card-bg); border-radius: 20px; padding: 0; 
    max-width: 500px; width: 100%; border: 1px solid var(--border-line);
    box-shadow: 0 20px 60px rgba(0,0,0,0.4); position: relative;
    overflow: hidden; display: flex; flex-direction: column;
    transition: transform 0.3s; flex-shrink: 0;
}
a.discord-profile-card:hover {
    transform: translateY(-8px); border-color: var(--primary);
    box-shadow: 0 25px 70px rgba(122, 162, 247, 0.2);
}
.bot-banner {
    width: 100%; height: 180px; background-color: #2b2d31; 
    background-size: cover; background-position: center; position: relative;
}
.bot-card-body { padding: 16px 25px 25px 25px; position: relative; background: var(--card-bg); }
.bot-avatar-wrapper { position: absolute; top: -60px; left: 25px; }
.bot-avatar {
    width: 110px; height: 110px; border-radius: 50%;
    border: 6px solid var(--card-bg); background: var(--card-bg);
    box-shadow: 0 5px 20px rgba(0,0,0,0.4);
}
.bot-status-indicator {
    position: absolute; bottom: 5px; right: 5px;
    width: 26px; height: 26px; border-radius: 50%;
    border: 4px solid var(--card-bg); background-color: var(--discord-offline);
}
.status-online { background-color: var(--discord-online); }
.status-idle { background-color: var(--discord-idle); }
.status-dnd { background-color: var(--discord-dnd); }

.bot-header-spacer { height: 45px; }
.bot-name-row { display: flex; align-items: center; gap: 10px; margin-bottom: 5px; }
.bot-username { font-size: 1.6rem; font-weight: 700; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;}
.bot-discriminator { font-size: 1.1rem; color: #8a91b3; font-weight: 400; }
.bot-badges { display: flex; gap: 8px; margin-bottom: 15px; align-items: center; flex-wrap: wrap; }
.bot-badge { 
    padding: 3px 6px; font-size: 0.65rem; border-radius: 4px; 
    background: #5865f2; color: #fff; font-weight: 600; text-transform: uppercase;
}
.badge-owner { background: #ed4245; }
.badge-dev { background: #e67e22; }
.bot-activity-box {
    background: rgba(0,0,0,0.2); padding: 12px 15px; border-radius: 8px; margin-bottom: 20px;
}
.activity-label { font-size: 0.75rem; color: #b5bac1; font-weight: 700; margin-bottom: 4px; text-transform: uppercase; }
.activity-text { font-size: 0.95rem; color: #f2f3f5; font-weight: 400; display: flex; align-items: center; gap: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.commands-section { margin-top: 20px; border-top: 1px solid var(--border-line); padding-top: 20px; }
.cmd-title { font-size: 0.85rem; font-weight: 700; color: #b5bac1; text-transform: uppercase; margin-bottom: 10px; }
.cmd-list { display: flex; flex-wrap: wrap; gap: 8px; }
.cmd-tag {
    font-family: 'Consolas', 'Monaco', monospace; background-color: var(--discord-code-bg);
    color: #dbdee1; padding: 4px 8px; border-radius: 4px; font-size: 0.85rem;
    border: 1px solid rgba(255,255,255,0.05); transition: 0.2s; cursor: pointer;
}
.cmd-tag:hover { background-color: #404249; color: var(--primary); }

.copy-tooltip {
    position: fixed; bottom: 30px; left: 50%; transform: translateX(-50%) translateY(50px);
    background: var(--primary); color: #000; padding: 10px 20px;
    border-radius: 30px; font-weight: 600; opacity: 0; transition: 0.3s;
    pointer-events: none; z-index: 2000; box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}
.copy-tooltip.show { opacity: 1; transform: translateX(-50%) translateY(0); }

.bot-feature-img {
    max-width: 500px; width: 100%; border-radius: 12px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5); border: 1px solid rgba(255, 255, 255, 0.1);
    animation: floatImage 4s ease-in-out infinite; transition: transform 0.3s;
}
.bot-feature-img:hover { transform: scale(1.02); }
@keyframes floatImage {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

/* --- 2. SYSTEM STATUS LAYOUT --- */
#status .content-scroll-container { display: flex; flex-direction: column; justify-content: center; }
.status-wrapper-right { width: 100%; max-width: 1000px; margin: 0 auto; display: flex; flex-direction: column; gap: 20px; }
.status-header-title {
    font-size: 1.6rem; font-weight: 800; color: #fff; text-transform: uppercase; letter-spacing: 1.2px;
    margin-bottom: -5px; margin-left: 5px; display: flex; align-items: center; gap: 12px;
    border-left: 6px solid var(--primary); padding: 8px 15px;
    background: linear-gradient(90deg, rgba(122, 162, 247, 0.1) 0%, transparent 100%);
    border-radius: 0 10px 10px 0;
}
.status-header-title i { color: var(--primary); font-size: 1.4rem; }
.mini-stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 15px; }
.mini-card {
    background-color: #1e293b; border: 1px solid #334155; border-radius: 12px;
    padding: 20px; position: relative; overflow: hidden;
    display: flex; flex-direction: column; justify-content: space-between;
    min-height: 110px; border-left: 4px solid transparent;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2); transition: transform 0.2s;
}
.mini-card:hover { transform: translateY(-3px); background-color: #242e42; }
.mini-label { font-size: 0.9rem; color: #94a3b8; margin-bottom: 5px; font-weight: 500; }
.mini-value-container { display: flex; align-items: baseline; gap: 6px; font-size: 2rem; font-weight: 700; color: #fff; line-height: 1; }
.mini-icon { position: absolute; right: 15px; bottom: 15px; font-size: 2rem; opacity: 0.15; }
.unit-text { font-size: 1rem; color: #64748b; font-weight: 600; }

.accent-indigo { border-left-color: #6366f1; } .accent-indigo .mini-value-container { color: #818cf8; }
.accent-pink { border-left-color: #ec4899; } .accent-pink .mini-value-container { color: #f472b6; }
.accent-orange { border-left-color: #f97316; } .accent-orange .mini-value-container { color: #fb923c; }
.accent-cyan { border-left-color: #06b6d4; } .accent-cyan .mini-value-container { color: #22d3ee; }
.accent-blue { border-left-color: #38bdf8; } .accent-blue .mini-value-container { color: #38bdf8; }
.accent-green { border-left-color: #34d399; } .accent-green .mini-value-container { color: #34d399; }
.accent-yellow { border-left-color: #facc15; } .accent-yellow .mini-value-container { color: #facc15; }
.accent-purple { border-left-color: #c084fc; } .accent-purple .mini-value-container { color: #c084fc; }

.lavalink-details-card {
    background-color: #1e293b; border: 1px solid #334155; border-radius: 12px;
    padding: 22px; box-shadow: 0 10px 30px rgba(0,0,0,0.3); width: 100%;
}
.lava-group { margin-bottom: 0; }
.lava-header { color: #38bdf8; font-size: 1.2rem; font-weight: 600; margin-bottom: 15px; display: flex; align-items: center; gap: 10px; }
.lava-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; font-size: 0.95rem; border-bottom: 1px solid rgba(255,255,255,0.03); padding-bottom: 6px; }
.lava-row:last-child { border-bottom: none; }
.lava-label { color: #94a3b8; font-weight: 400; flex-shrink: 0; }
.lava-value { color: #f1f5f9; font-weight: 600; text-align: right; max-width: 60%; }
.details-grid { display: grid; grid-template-columns: 1fr; gap: 30px; }
@media (min-width: 600px) { .details-grid { grid-template-columns: 1fr 1fr; } }

/* --- Recent Activity & Top Songs (REVISED WITH AURA) --- */
.activity-box { background: var(--card-bg); border-radius: 20px; border: 1px solid var(--border-line); overflow: hidden; width: 100%; box-shadow: 0 15px 40px rgba(0,0,0,0.25); }
.activity-row { display: flex; align-items: center; padding: 22px 35px; background: rgba(255, 255, 255, 0.02); transition: 0.2s; position: relative; border-bottom: 1px solid var(--border-line); border-left: 6px solid transparent; }
.activity-row:last-child { border-bottom: none; }
.activity-row:hover { background: var(--card-hover); }
.song-thumb { width: 70px; height: 70px; object-fit: cover; border-radius: 10px; margin-right: 25px; background: #000; flex-shrink: 0; box-shadow: 0 4px 15px rgba(0,0,0,0.4); }
.song-info { flex-grow: 1; min-width: 0; }
.song-title a { font-size: 1.25rem; font-weight: 600; color: #fff; text-decoration: none; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-bottom: 6px; }
.song-title a:hover { color: var(--primary); }
.song-artist { font-size: 1rem; color: #8a91b3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.song-status { font-size: 0.9rem; font-weight: 500; padding: 6px 16px; border-radius: 30px; background: rgba(0,0,0,0.2); margin-left: 25px; white-space: nowrap; flex-shrink: 0; display: flex; align-items: center; gap: 8px; }

#top-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; width: 100%; padding-bottom: 30px; }

/* Base Top Song Item */
.top-song-item {
    display: flex; align-items: center; background: var(--card-bg);
    padding: 18px; border-radius: 18px; transition: all 0.3s ease;
    border: 1px solid var(--border-line); position: relative; overflow: hidden;
}

/* Default Hover (Rank 4+) */
.top-song-item:hover {
    background: var(--card-hover); transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3); border-color: rgba(255,255,255,0.2);
}

/* Common Styles for Badge & Pill */
.medal-badge {
    width: 45px; height: 45px; flex-shrink: 0; display: flex; justify-content: center; align-items: center;
    font-size: 1.4rem; font-weight: 800; margin-right: 20px; border-radius: 12px;
    color: rgba(255,255,255,0.8); background: rgba(255,255,255,0.05);
}

.play-count-pill {
    margin-left: auto; padding: 6px 18px; 
    background: rgba(122, 162, 247, 0.15); color: var(--primary);
    border: 1px solid var(--primary); border-radius: 30px;
    display: flex; align-items: center; gap: 8px; font-size: 0.95rem; font-weight: 600; flex-shrink: 0;
}

/* --- RANK 1: GOLD + AURA --- */
.card-rank-1 {
    background: var(--rank-1-bg);
    border: 2px solid var(--rank-1-color);
    box-shadow: 0 0 25px rgba(255, 215, 0, 0.2); /* เพิ่มความฟุ้งเริ่มต้น */
    transform: scale(1.02);
    /* เพิ่ม Animation */
    animation: glow-gold 3s infinite alternate; 
}
.card-rank-1:hover {
    background: rgba(255, 215, 0, 0.25); /* สีตอนชี้เข้มขึ้น */
    /* ไม่ต้องเปลี่ยน shadow ใน hover แล้ว เพราะ animation คุมอยู่ */
}
.card-rank-1 .play-count-pill {
    background: rgba(255, 215, 0, 0.2);
    color: var(--rank-1-color);
    border-color: var(--rank-1-color);
}
.card-rank-1 .medal-badge {
    color: var(--rank-1-color);
    background: rgba(255, 215, 0, 0.1);
}

/* --- RANK 2: SILVER + AURA --- */
.card-rank-2 {
    background: var(--rank-2-bg);
    border: 1px solid var(--rank-2-color);
    box-shadow: 0 0 20px rgba(224, 224, 224, 0.15);
    animation: glow-silver 3s infinite alternate;
    animation-delay: 1s; /* ให้จังหวะต่างจากที่ 1 */
}
.card-rank-2:hover {
    background: rgba(224, 224, 224, 0.25);
}
.card-rank-2 .play-count-pill {
    background: rgba(224, 224, 224, 0.2);
    color: var(--rank-2-color);
    border-color: var(--rank-2-color);
}
.card-rank-2 .medal-badge {
    color: var(--rank-2-color);
    background: rgba(224, 224, 224, 0.1);
}

/* --- RANK 3: BRONZE + AURA --- */
.card-rank-3 {
    background: var(--rank-3-bg);
    border: 1px solid var(--rank-3-color);
    box-shadow: 0 0 20px rgba(205, 127, 50, 0.15);
    animation: glow-bronze 3s infinite alternate;
    animation-delay: 2s; /* ให้จังหวะต่างจากที่ 1, 2 */
}
.card-rank-3:hover {
    background: rgba(205, 127, 50, 0.25);
}
.card-rank-3 .play-count-pill {
    background: rgba(205, 127, 50, 0.2);
    color: var(--rank-3-color);
    border-color: var(--rank-3-color);
}
.card-rank-3 .medal-badge {
    color: var(--rank-3-color);
    background: rgba(205, 127, 50, 0.1);
}

/* --- KEYFRAMES FOR AURA PULSE --- */
@keyframes glow-gold {
    0% { box-shadow: 0 0 20px rgba(255, 215, 0, 0.2); border-color: rgba(255, 215, 0, 0.6); }
    100% { box-shadow: 0 0 45px rgba(255, 215, 0, 0.6); border-color: rgba(255, 215, 0, 1); }
}

@keyframes glow-silver {
    0% { box-shadow: 0 0 15px rgba(224, 224, 224, 0.1); border-color: rgba(224, 224, 224, 0.4); }
    100% { box-shadow: 0 0 35px rgba(224, 224, 224, 0.4); border-color: rgba(224, 224, 224, 1); }
}

@keyframes glow-bronze {
    0% { box-shadow: 0 0 15px rgba(205, 127, 50, 0.1); border-color: rgba(205, 127, 50, 0.4); }
    100% { box-shadow: 0 0 35px rgba(205, 127, 50, 0.4); border-color: rgba(205, 127, 50, 1); }
}

/* Mobile Adjust */
@media (max-width: 768px) {
    h1.hero-title { font-size: 3.5rem; letter-spacing: 3px; }
    nav { padding: 15px 20px; }
    .hamburger, .close-menu { display: block; }
    .hamburger { z-index: 2000; }
    
    .nav-links {
        display: flex; position: fixed; right: -100%; top: 0;
        height: 100vh; width: 80%; background: rgba(15, 17, 26, 0.98);
        backdrop-filter: blur(20px); flex-direction: column;
        align-items: center; justify-content: center; gap: 35px;
        transition: 0.5s cubic-bezier(0.77, 0, 0.175, 1); z-index: 1500;
        box-shadow: -10px 0 30px rgba(0,0,0,0.7);
    }
    .nav-links.active { right: 0; }
    .nav-links a { font-size: 1.4rem; margin-left: 0; }
    section { padding-top: 80px; padding-bottom: 20px; }
    #top-list { grid-template-columns: 1fr; gap: 15px; }
    .status-wrapper-right { margin: 0 auto; max-width: 100%; }
    .details-grid { grid-template-columns: 1fr; }
}

/* --- DEV & FOOTER --- */
#developers { background-color: #0b0c13; }
.dev-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); gap: 40px; width: 100%; max-width: 1000px; margin: 0 auto; }

.support-box {
    text-align: center; margin-top: 60px; padding: 30px;
    background: rgba(255,255,255,0.03); border-radius: 15px; border: 1px solid var(--border-line);
    max-width: 800px; margin-left: auto; margin-right: auto;
}
.support-box h3 { font-size: 1.5rem; color: #fff; margin-bottom: 10px; }
.support-box p { color: #8a91b3; margin-bottom: 25px; }
.support-btn {
    display: inline-flex; align-items: center; gap: 10px; background: #5865f2; color: #fff;
    padding: 12px 30px; border-radius: 30px; font-weight: 600; transition: 0.3s;
}
.support-btn:hover { background: #4752c4; transform: translateY(-3px); box-shadow: 0 10px 20px rgba(88, 101, 242, 0.3); }

footer {
    background: linear-gradient(to top, #05060a, #0b0c13);
    border-top: 1px solid rgba(255,255,255,0.03); padding: 60px 20px 20px 20px;
    margin-top: auto; font-size: 0.95rem;
}
.footer-container { max-width: 1100px; margin: 0 auto; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 50px; margin-bottom: 40px; }
.footer-col h3 { color: #fff; font-size: 1.1rem; margin-bottom: 20px; font-weight: 600; }
.footer-logo { display: flex; align-items: center; gap: 10px; font-size: 1.4rem; font-weight: 700; color: var(--primary); margin-bottom: 15px; }
.footer-logo img { width: 40px; height: 40px; border-radius: 50%; }
.footer-desc { color: #8a91b3; line-height: 1.6; margin-bottom: 20px; }
.invite-btn {
    display: inline-block; background: var(--primary); color: #000;
    padding: 10px 20px; border-radius: 8px; font-weight: 600; transition: 0.2s;
}
.invite-btn:hover { background: #fff; transform: translateY(-2px); }
.footer-links, .footer-features { list-style: none; }
.footer-links li, .footer-features li { margin-bottom: 12px; }
.footer-links a { color: #8a91b3; transition: 0.2s; display: flex; align-items: center; gap: 8px; }
.footer-links a:hover { color: var(--primary); padding-left: 5px; }
.footer-features li { color: #8a91b3; display: flex; align-items: center; gap: 10px; }
.footer-features i { color: var(--secondary); }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.05); padding-top: 20px;
    display: flex; justify-content: space-between; align-items: center; color: #565d75;
}
.social-links a { color: #8a91b3; font-size: 1.2rem; margin-left: 15px; transition: 0.2s; }
.social-links a:hover { color: #fff; }
@media (max-width: 768px) {
    .bot-showcase-container { flex-direction: column; gap: 40px; padding: 20px; }
    .bot-feature-img { max-width: 90%; margin-top: 20px; }
    .discord-profile-card { max-width: 100%; }
    .footer-grid { grid-template-columns: 1fr; gap: 30px; }
    .footer-bottom { flex-direction: column; gap: 15px; text-align: center; }
}

/* ================= FLOATING STATS WIDGET ================= */
#floating-stats {
    position: fixed;
    bottom: 30px;
    left: 30px;
    background: rgba(15, 17, 26, 0.9); /* สีพื้นหลังเข้มแบบโปร่งแสง */
    backdrop-filter: blur(10px);
    padding: 12px 25px;
    border-radius: 50px;
    border: 1px solid rgba(122, 162, 247, 0.3); /* ขอบสี Primary จางๆ */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    gap: 15px;
    z-index: 9999; /* ให้ลอยอยู่บนสุด */
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    opacity: 0; 
    transform: translateY(20px);
    animation: fadeUpStats 0.8s forwards 1s; /* Animation ตอนโหลดหน้า */
}

@keyframes fadeUpStats {
    to { opacity: 1; transform: translateY(0); }
}

#floating-stats:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(122, 162, 247, 0.3);
    border-color: var(--primary);
    background: rgba(26, 27, 38, 0.95);
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1rem;
    font-weight: 600;
    color: #c0caf5;
}

.stat-divider {
    width: 1px;
    height: 20px;
    background: rgba(255, 255, 255, 0.15);
}

/* Like Button Styles */
.like-btn {
    cursor: pointer;
    transition: 0.2s;
    user-select: none;
}

.like-btn:hover {
    color: var(--accent); /* สีชมพู */
}

.like-btn i {
    font-size: 1.1rem;
    transition: transform 0.2s;
}

/* เมื่อกดไลค์แล้ว */
.like-btn.liked {
    color: var(--accent);
}

.like-btn.liked i {
    font-weight: 900; /* เปลี่ยน icon เป็นแบบทึบ (Solid) */
    animation: heart-pop 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes heart-pop {
    0% { transform: scale(1); }
    50% { transform: scale(1.4); }
    100% { transform: scale(1); }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    #floating-stats {
        bottom: 20px;
        left: 20px;
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}