html, body {
    height: 100%;
    margin: 0;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: 'Kanit', sans-serif;
}


h1, h2, h3, h4, h5 {
    font-weight: 600;
}

.nav-btn {
    font-weight: 500;
    font-family: 'Kanit', sans-serif;
}

.status {
    font-weight: 600;
    letter-spacing: 0.5px;
}

button, .btn {
    font-family: 'Kanit', sans-serif;
}

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 90px;
    z-index: 1000;
}


.navbar-flyff {
    background: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(8px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
}

.navbar-flyff {
    background: linear-gradient(
        180deg,
        rgba(0,0,0,.75),
        rgba(0,0,0,.35)
    );
    backdrop-filter: blur(8px);
}

.navbar::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(
        90deg,
        transparent,
        #ffd86b,
        transparent
    );
}


.navbar-flyff .nav-link {
    font-weight: 500;
    transition: 0.3s;
}

.navbar-flyff .nav-link:hover {
    color: #ffd86b;
}

.navbar-logo {
    height: 90px;              /* ลดนิดให้ดูนิ่ง */
    margin-top: 0;             /* ตัด -6px ออก */
    display: block;

    filter:
        drop-shadow(0 0 8px rgba(255,215,120,1))
        drop-shadow(0 0 22px rgba(255,190,80,.85));

    transition: transform .3s ease, filter .3s ease;
}

/* Hover เล็กน้อย */
.navbar-logo:hover {
    transform: scale(1.06);
    filter:
        drop-shadow(0 0 12px rgba(255,230,150,1))
        drop-shadow(0 0 30px rgba(255,200,100,1));
}

.logo-wrap {
    padding: 0px 14px;   /* ลดบน–ล่าง */
    border-radius: 40px;

    background: linear-gradient(
        180deg,
        rgba(0,0,0,.65),
        rgba(0,0,0,.35)
    );

    border: 1px solid rgba(255,215,120,.45);
    box-shadow:
        0 0 20px rgba(255,200,80,.45),
        inset 0 0 12px rgba(255,215,120,.35);

    backdrop-filter: blur(8px);
}



/* ===== NAV BUTTON ===== */
.nav-btn {
    display: inline-block;
    padding: 8px 20px;
    border-radius: 30px;
    font-weight: 600;
    color: #fff;
    text-decoration: none;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255,255,255,0.25);
    transition: all 0.3s ease;
}

/* Hover Effect */
.nav-btn:hover {
    background: #ffd86b;
    color: #000;
    box-shadow: 0 0 15px rgba(255,216,107,0.9);
    transform: translateY(-2px);
}

/* Active */
.nav-btn.active {
    background: #ffc107;
    color: #000;
    box-shadow: 0 0 15px rgba(255,193,7,0.8);
}

/* Download Button (เด่นพิเศษ) */
.nav-btn-download {
    background: linear-gradient(135deg, #28a745, #5dd879);
    border: none;
}

.nav-btn-download:hover {
    background: linear-gradient(135deg, #34ce57, #7cff9a);
    color: #000;
}

/* Top Up – Premium Glow */
.nav-btn-topup {
    position: relative;
    background: linear-gradient(
        180deg,
        #ffcf5a,
        #ffb400
    );
    color: #3a2a00;
    font-weight: 600;

    box-shadow:
        0 0 10px rgba(255, 200, 80, 0.65),
        0 0 22px rgba(255, 180, 0, 0.45);

    animation: topupPulse 3.5s ease-in-out infinite;
}

/* Hover – เพิ่มพลังขึ้นนิดเดียว */
.nav-btn-topup:hover {
    transform: translateY(-1px) scale(1.04);
    box-shadow:
        0 0 14px rgba(255, 220, 120, 0.9),
        0 0 34px rgba(255, 180, 40, 0.8);
}

/* ไอคอนเพชรให้เด้งกว่านิด */
.nav-btn-topup i {
    color: #fff3c4;
    text-shadow: 0 0 6px rgba(255, 230, 150, 0.9);
}

@keyframes topupPulse {
    0% {
        box-shadow:
            0 0 10px rgba(255, 200, 80, 0.6),
            0 0 20px rgba(255, 180, 0, 0.4);
    }
    50% {
        box-shadow:
            0 0 18px rgba(255, 220, 120, 0.9),
            0 0 36px rgba(255, 190, 40, 0.75);
    }
    100% {
        box-shadow:
            0 0 10px rgba(255, 200, 80, 0.6),
            0 0 20px rgba(255, 180, 0, 0.4);
    }
}


.hero {
    flex: 1;
    background: url('../img/flyff_bg.jpg') center / cover no-repeat;
}

.hero .container-fluid {
    margin-top: -40px; /* ปรับค่าได้ -20 / -30 / -60 */
}

.hero-message {
    color: #fff;
    text-shadow: 0 0 15px rgba(0,0,0,0.7);
}

.hero-center {
    position: relative;
}

/* HERO TEXT OVER VIDEO */
.hero-overlay {
    position: absolute;
    top: 10%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
    width: 100%;
    pointer-events: none;
}

/* TITLE */
.hero-title {
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(
        180deg,
        #ffffff 0%,
        #ffe29a 60%,
        #ffcc66 100%
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow:
        0 4px 12px rgba(0,0,0,0.6),
        0 0 25px rgba(255,215,120,0.6);
}

/* SUB TITLE */
.hero-subtitle {
    font-size: 1.25rem;
    color: #ffffff;
    text-shadow:
        0 2px 6px rgba(0,0,0,0.8);
    margin-top: 10px;
}

.hero-badges {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.badge-hero {
    background: rgba(0,0,0,0.65);
    color: #ffd56b;
    padding: 6px 12px;
    font-size: 0.85rem;
    border-radius: 20px;
    box-shadow: 0 0 10px rgba(255,213,107,0.4);
}

/* ===== SERVER BOX ===== */
.server-box {
    background: rgba(255,255,255,0.9);
    border-radius: 18px;
    padding: 20px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.25);
    margin-top: 40px; /* ปรับระยะห่างจากด้านบน */
}

/* ถ้ามี announcement bar ให้เผื่อเพิ่ม */
@media (min-width: 992px) {
    .server-box {
        margin-top: 60px;
    }
}

/* ===== STATUS ===== */
.status {
    font-size: 0.7rem;
    font-weight: bold;
    padding: 4px 10px;
    border-radius: 12px;
    min-width: 70px;
    text-align: center;
    letter-spacing: 0.5px;
    
}

.server-status > div {
    margin-bottom: 10px;
}


/* ONLINE */
.status.online {
    background: #1f8f3a;
    color: #fff;
    box-shadow: 0 0 6px rgba(0,255,100,.8);
    animation: pulseGreen 1.5s infinite;
}

/* OFFLINE */
.status.offline {
    background: #b11212;
    color: #fff;
    box-shadow: 0 0 6px rgba(255,0,0,.6);
}


/* green pulse animation */
@keyframes pulseGreen {
    0%   { box-shadow: 0 0 5px rgba(0,255,100,.4); }
    50%  { box-shadow: 0 0 12px rgba(0,255,100,1); }
    100% { box-shadow: 0 0 5px rgba(0,255,100,.4); }
}

.maintenance-box {
    background: linear-gradient(180deg, #2a2a2a, #1a1a1a);
    border: 1px solid rgba(255,200,80,0.35);
    border-radius: 12px;
    padding: 12px 14px;
    font-size: 0.9rem;
}

.maintenance-title {
    color: #ffcc66;
    font-weight: 600;
    margin-bottom: 6px;
}

.maintenance-time {
    color: #ffffff;
    line-height: 1.4;
}

.maintenance-note {
    margin-top: 6px;
    font-size: 0.8rem;
    color: #ff9f43;
}


/* ===== SERVER UPTIME ===== */
.server-uptime {
    margin-top: 12px;
    padding: 14px;
    border-radius: 16px;
    background: rgba(0,0,0,0.75);
    text-align: center;
    box-shadow:
        0 0 15px rgba(255,215,120,0.35),
        inset 0 0 10px rgba(255,215,120,0.25);
}

.uptime-title {
    font-size: 13px;
    color: #ffd86b;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.uptime-days {
    font-size: 26px;
    font-weight: 800;
    color: #fff;
    text-shadow:
        0 0 10px rgba(255,215,120,0.9);
}

.uptime-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 8px;
}

.uptime-box {
    background: rgba(255,255,255,0.08);
    border-radius: 14px;
    padding: 10px 0;
    box-shadow:
        inset 0 0 8px rgba(255,215,120,0.25),
        0 0 8px rgba(255,215,120,0.25);
}

.uptime-number {
    display: block;
    font-size: 22px;
    font-weight: 800;
    color: #fff;
    text-shadow: 0 0 8px rgba(255,215,120,0.9);
}

.uptime-label {
    font-size: 12px;
    color: #ffd86b;
    letter-spacing: 0.5px;
}

.uptime-sub {
    margin-top: 8px;
    font-size: 11px;
    color: #ccc;
}


.video-box {
    width: 100%;
    max-width: 800px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.4);
    border: 2px solid rgba(255,255,255,0.3);
}

.video-box video {
    width: 100%;
    height: auto;
    display: block;
}

.video-wrapper {
    max-width: 900px;
    width: 100%;
    margin-top: 48px;
}

.sound-btn {
    position: absolute;
    bottom: 15px;
    right: 15px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: none;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    z-index: 10;
    transition: all 0.2s ease;
}

.sound-btn:hover {
    background: rgba(255, 215, 100, 0.9);
    color: #000;
    transform: scale(1.1);
}

.hero-announcement {
    margin-top: 90px;   /* ⭐ ชดเชย navbar */
    background: rgba(0,0,0,0.85);
    color: #fff;
    font-size: 14px;
    padding: 8px 0;
    position: relative;
    z-index: 999;
}


.news-tag {
    background: #ffc107;
    color: #000;
    padding: 3px 8px;
    border-radius: 20px;
    font-weight: 600;
    margin-right: 8px;
}

.hero-announcement .news-tag {
    background: #ffb400;
    color: #000;
    padding: 4px 10px;
    border-radius: 12px;
    font-weight: 600;
    margin-right: 8px;
    font-size: 0.8rem;
}

.hero-announcement .news-text {
    color: #f1f1f1;
}


.flyff-footer {
    position: relative;
    width: 100%;
    padding: 15px 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(6px);
    color: #fff;
    font-size: 14px;
    letter-spacing: 0.5px;
    margin-top: auto;
}

.flyff-footer strong {
    color: #ffd966;
    text-shadow: 0 0 6px rgba(255, 217, 102, 0.8);
    margin-top: 0;
    margin: 0;
}

.social-icon {
    font-size: 22px;
    color: #fff;
    transition: all 0.25s ease;
}

.social-icon.facebook:hover {
    color: #1877f2;
    text-shadow: 0 0 8px rgba(24, 119, 242, 0.9);
}

.footer-wrap {
    position: relative;
    text-align: center;
}

.footer-center {
    font-size: 14px;
}

/* base icon */
.social-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 22px;
}

/* Facebook */
.social-icon.facebook {
    background: linear-gradient(145deg, #1877f2, #0d5bd7);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.15);
    box-shadow: 0 0 10px rgba(24,119,242,0.6);
    animation: fbGlow 2.5s infinite ease-in-out;
}

/* Hover = เรืองแรงขึ้น */
.social-icon.facebook:hover {
    box-shadow: 0 0 22px rgba(24,119,242,1);
}

/* เอฟเฟกต์กระพริบ */
@keyframes fbGlow {
    0% {
        box-shadow: 0 0 8px rgba(24,119,242,0.4);
        filter: brightness(0.95);
    }
    50% {
        box-shadow: 0 0 18px rgba(24,119,242,0.9);
        filter: brightness(1.15);
    }
    100% {
        box-shadow: 0 0 8px rgba(24,119,242,0.4);
        filter: brightness(0.95);
    }
}

.social-icon.facebook {
    animation: fbGlow 2.5s infinite;
}

/* กล่องรวม social */
.footer-social {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    gap: 10px;
}

/* YouTube Icon */
.social-icon.youtube {
    background: linear-gradient(145deg, #ff0000, #c40000);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.15);
    box-shadow: 0 0 10px rgba(255,0,0,0.6);
    animation: ytGlow 2.5s infinite ease-in-out;
}

.social-icon.youtube:hover {
    box-shadow: 0 0 22px rgba(255,0,0,1);
}

/* เอฟเฟกต์เรือง YouTube */
@keyframes ytGlow {
    0% {
        box-shadow: 0 0 8px rgba(255,0,0,0.4);
        filter: brightness(0.95);
    }
    50% {
        box-shadow: 0 0 18px rgba(255,0,0,0.9);
        filter: brightness(1.15);
    }
    100% {
        box-shadow: 0 0 8px rgba(255,0,0,0.4);
        filter: brightness(0.95);
    }
}


/* ให้ main ดัน footer ลง */
.flex-fill {
    flex: 1;
}

/* ===== Register Page ===== */
.register-page {
    background: url('../img/flyff_bg.jpg') center / cover no-repeat fixed;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.page-content {
    flex: 1;
    padding-top: 90px; /* ชดเชย navbar fixed */
    display: flex;
    align-items: center;
    justify-content: center;
}

.register-section {
    width: 100%;
    align-items: center;
    justify-content: center;
    padding-top: 40px;
    padding-bottom: 40px;
    padding: 40px 0;
}

.register-card::before {
    content: "";
    position: absolute;
    inset: -1px;
    border-radius: 22px;
    background: linear-gradient(
        120deg,
        transparent,
        rgba(255,193,7,0.35),
        transparent
    );
    opacity: 0.6;
    pointer-events: none;
}

.register-card {
    background: rgba(255,255,255,0.95);
    border-radius: 20px;
    padding: 35px;
    color: #333; /* ✅ อ่านได้ */
    max-width: 420px;
    width: 100%;
    box-shadow: 0 25px 50px rgba(0,0,0,0.25);
    animation: floatCard 5.5s ease-in-out infinite;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
    position: relative;
    overflow: hidden;
}

.register-card h3 {
    font-weight: 700;
    color: #ffb703;
    text-shadow: 0 0 6px rgba(255,183,3,0.5);
}

.register-card .form-label {
    font-size: 14px;
}

.register-card .form-control {
    background: #fff;
    border: 1px solid #ddd;
    color: #333;
}

.register-card .form-control:focus {
    border-color: #ffc107;
    box-shadow: 0 0 0 0.15rem rgba(255,193,7,.25);
}

/* Register Button */
.btn-register {
    background: linear-gradient(135deg, #28a745, #5dd879);
    border: none;
    font-weight: 600;
    color: #000;
    padding: 12px;
    border-radius: 30px;
    transition: all 0.3s ease;
}

.btn-register:hover {
    transform: translateY(-14px) scale(1.01);
    box-shadow: 0 40px 80px rgba(0,0,0,0.35);
}

@keyframes floatCard {
    0% {
        transform: translateY(0px);
        box-shadow: 0 25px 50px rgba(0,0,0,0.25);
    }
    50% {
        transform: translateY(-10px);
        box-shadow: 0 35px 60px rgba(0,0,0,0.3);
    }
    100% {
        transform: translateY(0px);
        box-shadow: 0 25px 50px rgba(0,0,0,0.25);
    }
}


/* ===== Download Page ===== */
.download-section {
    flex: 1;                    /* ⭐ ดัน footer ลง */
    padding-top: 120px;         /* เผื่อ navbar */
    padding-bottom: 40px;
    background: #f5f6f8;
}


/* ===== Download Card ===== */
.download-card {
    background: #2f3742;
    color: #fff;
    border-radius: 18px;
    padding: 32px;
    text-align: center;
    box-shadow: 0 10px 25px rgba(0,0,0,0.25);
    transition: all 0.35s ease;
    position: relative;
    overflow: hidden;
}

.download-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 
        0 25px 60px rgba(0,0,0,0.5),
        0 0 25px rgba(0,180,255,0.4);
}

.download-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, #00b4ff, transparent);
    transition: all 0.6s ease;
}

.download-card:hover::before {
    left: 100%;
}


.download-card i {
    font-size: 52px;
    color: #00b4ff;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.download-card:hover i {
    transform: scale(1.15) rotate(-5deg);
    filter: drop-shadow(0 0 12px rgba(0,180,255,0.9));
}

.download-card h5 {
    font-weight: 600;
}

.download-card p {
    color: #cfd6dd;
    margin-bottom: 20px;
}

.download-card:hover .btn-download {
    box-shadow: 0 0 18px rgba(0,180,255,0.9);
    transform: scale(1.05);
}


/* ===== Download Button ===== */
.btn-download {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 30px;
    background: #3a4452;
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
}

.download-card.google i {
    color: #1a73e8;
}

.download-card.google:hover {
    box-shadow:
        0 25px 60px rgba(0,0,0,0.5),
        0 0 30px rgba(26,115,232,0.6);
}

.download-card.google::before {
    background: linear-gradient(
        90deg,
        transparent,
        #1a73e8,
        transparent
    );
}

.download-card.google:hover .btn-download {
    background: #1a73e8;
    box-shadow: 0 0 20px rgba(26,115,232,0.9);
}

.download-card.mega i {
    color: #ff2d2d;
}

.download-card.mega:hover {
    box-shadow:
        0 25px 60px rgba(0,0,0,0.5),
        0 0 30px rgba(255,45,45,0.6);
}

.download-card.mega::before {
    background: linear-gradient(
        90deg,
        transparent,
        #ff2d2d,
        transparent
    );
}

.download-card.mega:hover .btn-download {
    background: #ff2d2d;
    box-shadow: 0 0 20px rgba(255,45,45,0.9);
}

/* ===== Login Page ===== */
.login-page {
    background: url('../img/flyff_bg.jpg') center / cover no-repeat fixed;
    min-height: 100vh;
    font-family: 'Kanit', sans-serif;
}

.page-content {
    flex: 1;
    padding-top: 110px; /* ชดเชย navbar fixed */
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-section {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding-bottom: 60px;
}

/* Card */
.login-card {
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(8px);
    border-radius: 22px;
    padding: 35px;
    box-shadow: 0 25px 50px rgba(0,0,0,.5);
    color: #fff;
    animation: floatCard 6s ease-in-out infinite;
}

@keyframes floatCard {
    0%   { transform: translateY(0px); }
    50%  { transform: translateY(-8px); }
    100% { transform: translateY(0px); }
}

.login-card h3 {
    color: #ffd86b;
    text-shadow: 0 0 10px rgba(255,216,107,.8);
    font-weight: 600;
}

/* Input */
.login-card .form-control {
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.3);
    color: #fff;
}

.login-card .form-control:focus {
    border-color: #ffd86b;
    box-shadow: none;
    background: rgba(255,255,255,0.2);
}

/* Button */
.btn-login {
    background: linear-gradient(135deg, #ffd86b, #ffb703);
    color: #000;
    font-weight: 600;
    border-radius: 30px;
    padding: 12px;
    border: none;
    transition: all .3s ease;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 25px rgba(255,216,107,.9);
}

.link-small {
    font-size: 14px;
    color: #ffd86b;
    text-decoration: none;
}

.link-small:hover {
    text-decoration: underline;
}
