.login-page {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            position: relative;
            overflow: hidden;
            min-height: 100vh;
        }

        .login-page::before {
            content: "";
            position: absolute;
            top: -50%;
            left: -50%;
            width: 200%;
            height: 200%;
            background: radial-gradient(circle, rgba(255,255,255,0.1) 1px, transparent 1px);
            background-size: 50px 50px;
            animation: float 20s linear infinite;
        }

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

        .login-box {
            position: relative;
            z-index: 2;
            width: 400px;
            margin: 5% auto;
            animation: slideInUp 1s ease-out;
        }

        @keyframes slideInUp {
            0% { opacity: 0; transform: translateY(50px); }
            100% { opacity: 1; transform: translateY(0); }
        }

        .gov-header {
            background: linear-gradient(45deg, #1e3c72, #2a5298);
            color: white;
            padding: 25px;
            border-radius: 15px 15px 0 0;
            text-align: center;
            box-shadow: 0 5px 15px rgba(0,0,0,0.3);
            position: relative;
            overflow: hidden;
        }

        .gov-header::before {
            content: "";
            position: absolute;
            top: -50%;
            left: -50%;
            width: 200%;
            height: 200%;
            background: linear-gradient(45deg, transparent, rgba(255,255,255,0.1), transparent);
            animation: shine 3s infinite;
        }

        @keyframes shine {
            0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
            100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
        }

        .gov-logo {
            width: 80px;
            height: 80px;
            background: rgba(255,255,255,0.2);
            border-radius: 50%;
            margin: 0 auto 15px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 2.5rem;
            animation: pulse 2s infinite;
        }

        @keyframes pulse {
            0%, 100% { transform: scale(1); }
            50% { transform: scale(1.05); }
        }

        .login-card-body {
            background: rgba(255,255,255,0.95);
            backdrop-filter: blur(10px);
            border-radius: 0 0 15px 15px;
            padding: 30px;
            box-shadow: 0 10px 30px rgba(0,0,0,0.2);
        }

        /* แทนที่ CSS .form-control เดิม */
            .form-control {
                border: 2px solid #e3f2fd;
                border-radius: 10px;
                padding: 15px;
                font-size: 16px;
                transition: all 0.3s ease;
                background: rgba(255,255,255,0.95) !important;
                color: #333 !important;
            }

            .form-control:focus {
                border-color: #2196f3;
                box-shadow: 0 0 20px rgba(33,150,243,0.3);
                transform: translateY(-2px);
                background: rgba(255,255,255,0.98) !important;
                color: #333 !important;
            }

            /* สำหรับ select dropdown */
            .form-control select {
                color: #333 !important;
            }

            .form-control option {
                color: #333 !important;
                background-color: white !important;
            }

        .input-group-text {
            background: linear-gradient(45deg, #2196f3, #21cbf3);
            border: none;
            color: white;
            border-radius: 0 10px 10px 0;
            transition: all 0.3s ease;
        }

        .input-group:hover .input-group-text {
            transform: scale(1.1);
        }

        .btn-login {
            background: linear-gradient(45deg, #ff6b6b, #ffa726);
            border: none;
            border-radius: 50px;
            padding: 15px;
            font-size: 18px;
            font-weight: bold;
            color: white;
            text-transform: uppercase;
            letter-spacing: 1px;
            transition: all 0.3s ease;
            position: relative;
            overflow: hidden;
        }

        .btn-login::before {
            content: "";
            position: absolute;
            top: 50%;
            left: 50%;
            width: 0;
            height: 0;
            background: rgba(255,255,255,0.3);
            border-radius: 50%;
            transition: all 0.6s ease;
            transform: translate(-50%, -50%);
        }

        .btn-login:hover::before {
            width: 300px;
            height: 300px;
        }

        .btn-login:hover {
            transform: translateY(-3px);
            box-shadow: 0 15px 35px rgba(255,107,107,0.4);
        }

        .thai-pattern {
            position: absolute;
            top: 20px;
            right: 20px;
            width: 100px;
            height: 100px;
            background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M50 10 L60 40 L90 40 L70 60 L80 90 L50 70 L20 90 L30 60 L10 40 L40 40 Z' fill='rgba(255,255,255,0.1)'/%3E%3C/svg%3E") center/contain no-repeat;
            animation: rotate 10s linear infinite;
        }

        @keyframes rotate {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }

        .gov-footer {
            text-align: center;
            margin-top: 20px;
            color: rgba(255,255,255,0.8);
            font-size: 14px;
        }

        /* Searchable username combo: Select2 */
        .username-select-wrap {
            flex: 1 1 auto;
            min-width: 0;
        }

        .username-select-wrap .select2-container {
            width: 100% !important;
            display: block;
        }

        .username-input-group .select2-container--default .select2-selection--single {
            height: 55px !important;
            border: 2px solid #e3f2fd !important;
            border-right: 0 !important;
            border-radius: 10px 0 0 10px !important;
            background: rgba(255,255,255,0.95) !important;
            transition: all 0.3s ease;
        }

        .username-input-group.focused .select2-selection--single,
        .select2-container--default.select2-container--open .select2-selection--single {
            border-color: #2196f3 !important;
            box-shadow: 0 0 20px rgba(33,150,243,0.3);
            background: rgba(255,255,255,0.98) !important;
        }

        .select2-container--default .select2-selection--single .select2-selection__rendered {
            line-height: 51px !important;
            padding-left: 15px !important;
            padding-right: 42px !important;
            font-size: 16px !important;
            color: #333 !important;
        }

        .select2-container--default .select2-selection--single .select2-selection__placeholder {
            color: #7b8794 !important;
        }

        .select2-container--default .select2-selection--single .select2-selection__arrow {
            height: 53px !important;
            right: 10px !important;
        }

        .select2-container--open {
            z-index: 2050;
        }

        .select2-dropdown {
            border: 2px solid #2196f3 !important;
            border-radius: 10px !important;
            overflow: hidden;
            box-shadow: 0 12px 30px rgba(30, 60, 114, 0.2);
        }

        .select2-search--dropdown {
            padding: 10px !important;
            background: #f7f9fc;
        }

        .select2-container--default .select2-search--dropdown .select2-search__field {
            height: 42px;
            border: 1px solid #cfd8e3 !important;
            border-radius: 8px;
            padding: 8px 12px;
            outline: none;
        }

        .select2-container--default .select2-search--dropdown .select2-search__field:focus {
            border-color: #2196f3 !important;
            box-shadow: 0 0 0 3px rgba(33,150,243,0.15);
        }

        .select2-results__option {
            padding: 10px 14px !important;
        }

        .select2-container--default .select2-results__option--highlighted[aria-selected] {
            background: linear-gradient(45deg, #667eea, #764ba2) !important;
            color: #fff !important;
        }

        /* เมนูลอย */
        .floating-menu-btn {
            position: fixed;
            bottom: 30px;
            right: 30px;
            z-index: 1000;
            background: linear-gradient(45deg, #667eea, #764ba2);
            color: white;
            border: none;
            border-radius: 50%;
            width: 60px;
            height: 60px;
            font-size: 24px;
            cursor: pointer;
            box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
            transition: all 0.3s ease;
            animation: bounceIn 1s ease-out 2s both;
        }

        .floating-menu-btn:hover {
            transform: scale(1.1);
            box-shadow: 0 12px 35px rgba(102, 126, 234, 0.6);
        }

        @keyframes bounceIn {
            0% { transform: scale(0); opacity: 0; }
            50% { transform: scale(1.2); }
            100% { transform: scale(1); opacity: 1; }
        }

        /* PopUp Menu */
        .popup-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0,0,0,0.7);
            z-index: 1500;
            opacity: 0;
            visibility: hidden;
            transition: all 0.3s ease;
            backdrop-filter: blur(5px);
        }

        .popup-overlay.active {
            opacity: 1;
            visibility: visible;
        }

        .support-popup {
            position: fixed;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%) scale(0.8);
            width: 90%;
            max-width: 900px;
            max-height: 80vh;
            background: linear-gradient(135deg, rgba(255,255,255,0.95), rgba(255,255,255,0.9));
            border-radius: 20px;
            box-shadow: 0 25px 60px rgba(0,0,0,0.3);
            z-index: 1600;
            opacity: 0;
            visibility: hidden;
            transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
            backdrop-filter: blur(20px);
            overflow: hidden;
        }

        .support-popup.active {
            opacity: 1;
            visibility: visible;
            transform: translate(-50%, -50%) scale(1);
        }

        .popup-header {
            background: linear-gradient(45deg, #667eea, #764ba2);
            color: white;
            padding: 25px 30px;
            border-radius: 20px 20px 0 0;
            display: flex;
            justify-content: space-between;
            align-items: center;
            position: relative;
            overflow: hidden;
        }

        .popup-header::before {
            content: "";
            position: absolute;
            top: -50%;
            left: -50%;
            width: 200%;
            height: 200%;
            background: linear-gradient(45deg, transparent, rgba(255,255,255,0.1), transparent);
            animation: shine 4s infinite;
        }

        .popup-header h5 {
            margin: 0;
            font-size: 1.4rem;
            font-weight: bold;
            position: relative;
            z-index: 1;
        }

        .close-btn {
            background: rgba(255,255,255,0.2);
            border: none;
            color: white;
            width: 35px;
            height: 35px;
            border-radius: 50%;
            font-size: 20px;
            cursor: pointer;
            transition: all 0.3s ease;
            position: relative;
            z-index: 1;
        }

        .close-btn:hover {
            background: rgba(255,255,255,0.3);
            transform: rotate(90deg);
        }

        .popup-content {
            padding: 30px;
            max-height: 60vh;
            overflow-y: auto;
        }

        .menu-categories {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 25px;
        }

        .category {
            background: rgba(255,255,255,0.7);
            border-radius: 15px;
            padding: 20px;
            border: 1px solid rgba(102, 126, 234, 0.1);
            transition: all 0.3s ease;
            backdrop-filter: blur(10px);
        }

        .category:hover {
            transform: translateY(-5px);
            box-shadow: 0 15px 30px rgba(102, 126, 234, 0.2);
        }

        .category h6 {
            color: #667eea;
            font-weight: bold;
            margin-bottom: 15px;
            font-size: 1.1rem;
            border-bottom: 2px solid rgba(102, 126, 234, 0.2);
            padding-bottom: 10px;
        }

        .menu-links {
            display: flex;
            flex-direction: column;
            gap: 10px;
        }

        .menu-links a {
            display: flex;
            align-items: center;
            padding: 12px 15px;
            background: rgba(255,255,255,0.6);
            border-radius: 10px;
            text-decoration: none;
            color: #333;
            transition: all 0.3s ease;
            border: 1px solid transparent;
        }

        .menu-links a:hover {
            background: linear-gradient(45deg, #667eea, #764ba2);
            color: white;
            transform: translateX(5px);
            border-color: rgba(255,255,255,0.3);
            text-decoration: none;
        }

        .menu-links a i {
            margin-right: 12px;
            width: 20px;
            text-align: center;
            font-size: 16px;
        }

        /* Responsive */
        @media (max-width: 768px) {
            .support-popup {
                width: 95%;
                max-height: 85vh;
            }

            .menu-categories {
                grid-template-columns: 1fr;
                gap: 20px;
            }

            .popup-content {
                padding: 20px;
            }

            .floating-menu-btn {
                bottom: 20px;
                right: 20px;
                width: 50px;
                height: 50px;
                font-size: 20px;
            }
        }

        /* Custom Scrollbar */
        .popup-content::-webkit-scrollbar {
            width: 8px;
        }

        .popup-content::-webkit-scrollbar-track {
            background: rgba(102, 126, 234, 0.1);
            border-radius: 10px;
        }

        .popup-content::-webkit-scrollbar-thumb {
            background: linear-gradient(45deg, #667eea, #764ba2);
            border-radius: 10px;
        }
