:root {
            --pink-gradient: linear-gradient(90deg, #ff85c0, #f759ab);
            --blue-gradient: linear-gradient(90deg, #70d6ff, #1890ff);
            --glass: rgba(255, 255, 255, 0.85);
            --glass-dark: rgba(255, 255, 255, 0.95);
        }

        body, html {
            margin: 0;
            padding: 0;
            width: 100%;
            height: 100%;
            font-family: 'Kanit', sans-serif;
            overflow-x: hidden;
        }

        .bg-layer {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background:linear-gradient(rgba(15, 23, 42, 0.75), rgba(15, 23, 42, 0.75)), url('/register/l0oxldl0oxldl0ox.webp') no-repeat center center;
            background-size: cover;
            z-index: -1;
            filter: brightness(0.8);
        }

        /* Navbar */
        .navbar {
            position: fixed;
            top: 20px;
            left: 50%;
            transform: translateX(-50%);
            background: #fff;
            padding: 10px 30px;
            border-radius: 50px;
            display: flex;
            align-items: center;
            gap: 25px;
            box-shadow: 0 5px 20px rgba(0,0,0,0.15);
            z-index: 100;
        }

        .nav-item { text-decoration: none; color: #444; font-weight: bold; font-size: 14px; transition: 0.3s; }
        .nav-item:hover { color: #f759ab; }
        .nav-active { background: var(--blue-gradient); color: white; padding: 5px 20px; border-radius: 20px; }

        .logo-center { text-align: center; font-weight: bold; }
        .logo-main { color: #f759ab; font-size: 20px; display: block; line-height: 1; }
        .logo-sub { color: #1890ff; font-size: 10px; text-transform: uppercase; }

        /* Main Content */
        .container {
            max-width: 1000px;
            margin: 120px auto 50px;
            padding: 0 20px;
            z-index: 10;
            position: relative;
        }

        .download-header {
            text-align: center;
            color: white;
            text-shadow: 2px 2px 10px rgba(0,0,0,0.5);
            margin-bottom: 40px;
        }

        .download-header h1 { font-size: 40px; margin: 0; }

        /* Download Section */
        .download-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 25px;
            margin-bottom: 40px;
        }

        .dl-card {
            background: var(--glass);
            backdrop-filter: blur(10px);
            border-radius: 20px;
            padding: 30px;
            text-align: center;
            box-shadow: 0 10px 30px rgba(0,0,0,0.1);
            transition: 0.3s;
        }

        .dl-card:hover { transform: translateY(-5px); background: white; }

        .dl-card h2 { color: #333; margin-top: 0; }
        .dl-card p { color: #666; font-size: 14px; }

        .btn-dl {
            display: inline-block;
            padding: 15px 40px;
            border-radius: 12px;
            text-decoration: none;
            color: white;
            font-weight: bold;
            margin-top: 15px;
            transition: 0.3s;
        }

        .btn-full { background: var(--pink-gradient); width: 80%; }
        .btn-mirror { background: var(--blue-gradient); width: 80%; }

        /* Requirements Table */
        .spec-container {
            background: var(--glass-dark);
            border-radius: 20px;
            padding: 30px;
            box-shadow: 0 10px 30px rgba(0,0,0,0.1);
        }

        .spec-container h3 {
            text-align: center;
            color: #333;
            margin-bottom: 25px;
            font-size: 22px;
            border-bottom: 2px solid #f759ab;
            display: inline-block;
            width: 100%;
            padding-bottom: 10px;
        }

        table {
            width: 100%;
            border-collapse: collapse;
            font-size: 15px;
        }

        th {
            background: #f0f2f5;
            color: #555;
            padding: 12px;
            text-align: left;
        }

        td {
            padding: 12px;
            border-bottom: 1px solid #eee;
            color: #444;
        }

        .spec-label { font-weight: bold; color: #1890ff; width: 30%; }

        /* Footer */
        .footer {
            text-align: center;
            color: rgba(255, 255, 255, 0.8);
            font-size: 12px;
            padding: 40px 0;
            line-height: 1.6;
        }

        @media (max-width: 768px) {
            .download-grid { grid-template-columns: 1fr; }
            .navbar { width: 90%; gap: 10px; padding: 10px; }
            .nav-item { font-size: 12px; }
        }
               /* Register Specific Styles */
        .register-box {
            background: var(--glass);
            backdrop-filter: blur(15px);
            max-width: 450px;
            margin: 0 auto;
            padding: 40px;
            border-radius: 30px;
            box-shadow: 0 15px 35px rgba(0,0,0,0.2);
        }

        .register-box h2 {
            text-align: center;
            color: #333;
            margin-bottom: 30px;
            letter-spacing: 2px;
        }

        .form-group { margin-bottom: 20px; }
        
        .form-group label {
            display: block;
            margin-bottom: 8px;
            font-size: 14px;
            color: #555;
            font-weight: bold;
        }

        .form-group input {
            width: 100%;
            padding: 12px 15px;
            border: 1px solid #ddd;
            border-radius: 10px;
            box-sizing: border-box; /* สำคัญเพื่อให้ input ไม่ล้น */
            font-family: 'Kanit', sans-serif;
            transition: 0.3s;
        }

        .form-group input:focus {
            outline: none;
            border-color: #f759ab;
            box-shadow: 0 0 8px rgba(247, 89, 171, 0.2);
        }

        /* Captcha Styles */
        .captcha-container {
            display: flex;
            gap: 10px;
            align-items: center;
        }

        #captcha-img {
            background: var(--blue-gradient);
            color: white;
            font-weight: bold;
            font-size: 20px;
            padding: 8px 20px;
            border-radius: 10px;
            cursor: pointer;
            user-select: none;
            letter-spacing: 5px;
        }

        .btn-register {
            width: 100%;
            padding: 15px;
            background: var(--pink-gradient);
            border: none;
            border-radius: 12px;
            color: white;
            font-weight: bold;
            font-size: 16px;
            cursor: pointer;
            transition: 0.3s;
            margin-top: 10px;
        }

        .btn-register:hover {
            transform: scale(1.02);
            box-shadow: 0 5px 15px rgba(247, 89, 171, 0.4);
        }
               /* จัดการโครงสร้างโลโก้ตรงกลาง Navbar */
        .logo-center { 
            display: flex;
            flex-direction: column;
            align-items: center; 
            justify-content: center;
            font-weight: bold; 
        }
        
        /* กล่องควบคุมขนาดรูปภาพ */
        .logo-animation-box {
            height: 55px; /* ปรับขนาดความสูงของรูปบน Navbar ได้ที่นี่ */
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 2px 0; /* เว้นระยะห่างบน-ล่าง */
        }

        .nav-logo-char {
            height: 100%;
            width: auto;
            filter: drop-shadow(0 2px 5px rgba(0,0,0,0.2));
            /* เรียกใช้แอนิเมชันขยับ */
            animation: logoBounce 3s infinite ease-in-out; 
            transform-origin: bottom center; /* ให้ฐานของรูปเป็นจุดหมุน/ยืด */
        }

        /* โค้ดแอนิเมชันขยับเด้งเบาๆ แบบนุ่มนวล (Squash and Stretch) */
        @keyframes logoBounce {
            0%, 100% {
                transform: scale(1) translateY(0);
            }
            30% {
                transform: scale(1.08, 0.92) translateY(0); /* ยุบตัวลงเล็กน้อย */
            }
            50% {
                transform: scale(0.95, 1.05) translateY(-6px); /* ยืดตัวขึ้นและลอยขึ้น */
            }
            70% {
                transform: scale(1.02, 0.98) translateY(0); /* ย่อตัวตอนตกลงมา */
            }
        }
.footer {
    width: 100%;
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 11px;
    padding: 10px 0; 
    background: rgba(15, 23, 42, 0.95); 
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
    z-index: 30;
    line-height: 1.4;
    margin-top: auto; /* ตรึงให้อยู่ล่างสุดเสมอ */
    .footer-links { margin-bottom: 10px; }
.footer-links a { color: #38bdf8; text-decoration: none; margin: 0 10px; transition: color 0.2s; }
.footer-links a:hover { color: #7dd3fc; text-decoration: underline; }
}
