  @import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;500;600;700;800&display=swap');

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: 'Cairo', sans-serif;
            background: url('../images/fivem5.jpg') center/cover no-repeat fixed;
            min-height: 100vh;
            overflow-x: hidden;
            position: relative;
        }

        body::before {
            content: '';
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: linear-gradient(135deg, rgba(0, 20, 40, 0.9) 0%, rgba(0, 40, 80, 0.85) 50%, rgba(20, 20, 40, 0.9) 100%);
            backdrop-filter: blur(2px);
            z-index: -1;
        }

        body::after {
            content: '';
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: linear-gradient(45deg, transparent 30%, rgba(0, 150, 255, 0.08) 50%, transparent 70%);
            animation: shimmer 10s ease-in-out infinite;
            z-index: -1;
        }

        @keyframes shimmer {
            0%, 100% { transform: translateX(-100%); }
            50% { transform: translateX(100%); }
        }

        @keyframes glow {
            0%, 100% { box-shadow: 0 0 20px rgba(0, 150, 255, 0.3); }
            50% { box-shadow: 0 0 40px rgba(0, 150, 255, 0.6), 0 0 60px rgba(0, 150, 255, 0.3); }
        }

        @keyframes slideDown {
            from { opacity: 0; transform: translateY(-30px); }
            to { opacity: 1; transform: translateY(0); }
        }

        .container {
            max-width: 950px;
            margin: 0 auto;
            padding: 20px;
            min-height: 100vh;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .form-wrapper {
            background: rgba(15, 25, 40, 0.95);
            backdrop-filter: blur(20px);
            border-radius: 25px;
            border: 1px solid rgba(0, 150, 255, 0.2);
            box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.1);
            padding: 45px;
            width: 100%;
            position: relative;
            overflow: hidden;
            animation: slideDown 0.8s ease-out;
        }

        .form-wrapper::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 4px;
            background: linear-gradient(90deg, #0096ff, #00d4ff, #0096ff);
            background-size: 200% 100%;
            animation: gradient 3s ease infinite;
        }

        .form-wrapper::after {
            content: '';
            position: absolute;
            top: -50%;
            left: -50%;
            width: 200%;
            height: 200%;
            background: conic-gradient(from 0deg, transparent, rgba(0, 150, 255, 0.1), transparent);
            animation: rotate 20s linear infinite;
            z-index: -1;
        }

        @keyframes gradient {
            0%, 100% { background-position: 0% 50%; }
            50% { background-position: 100% 50%; }
        }

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

        .header {
            text-align: center;
            margin-bottom: 40px;
            position: relative;
        }

        .logo {
            width: 110px;
            height: 110px;
            background: linear-gradient(135deg, #0096ff, #00d4ff);
            border-radius: 25px;
            margin: 0 auto 25px;
            display: flex;
            align-items: center;
            justify-content: center;
            box-shadow: 0 20px 40px rgba(0, 150, 255, 0.4);
            position: relative;
            overflow: hidden;
            animation: glow 3s ease-in-out infinite;
            border: 2px solid rgba(255, 255, 255, 0.2);
        }
         .logo::before {
            content: '';
            position: absolute;
            width: 120px;
            height: 80px;
            background: url(../images/logo.png) center/contain no-repeat;
            /* إذا كنت تريد النص بدلاً من الصورة، استخدم هذا:
            content: '5M';
            font-size: 36px;
            font-weight: 800;
            color: white;
            text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
            */
        }




        .logo::after {
            content: '';
            position: absolute;
            top: -50%;
            left: -50%;
            width: 200%;
            height: 200%;
            background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
            animation: shimmer 3s ease-in-out infinite;
        }

        .title {
            font-size: 32px;
            font-weight: 700;
            background: linear-gradient(135deg, #ffffff, #0096ff);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            margin-bottom: 10px;
            text-shadow: 0 2px 10px rgba(0, 150, 255, 0.3);
        }

        .subtitle {
            font-size: 18px;
            color: rgba(255, 255, 255, 0.7);
            font-weight: 400;
        }

        .banner {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0, 0, 0, 0.95);
            backdrop-filter: blur(10px);
            z-index: 1000;
            display: none;
            align-items: center;
            justify-content: center;
            animation: fadeIn 0.5s ease-out;
        }

        .banner-content-wrapper {
            background: rgba(20, 30, 45, 0.98);
            backdrop-filter: blur(20px);
            padding: 50px;
            border-radius: 25px;
            text-align: center;
            max-width: 500px;
            margin: 20px;
            box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
            border: 1px solid rgba(0, 150, 255, 0.3);
            position: relative;
            overflow: hidden;
        }

        .banner-content-wrapper::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 4px;
            background: linear-gradient(90deg, #0096ff, #00d4ff);
            border-radius: 25px 25px 0 0;
        }

        @keyframes fadeIn {
            from { opacity: 0; transform: scale(0.9); }
            to { opacity: 1; transform: scale(1); }
        }

        .banner-discord .banner-content-wrapper {
            background: rgba(20, 30, 50, 0.98);
            border-color: rgba(0, 150, 255, 0.4);
        }

        .banner-server .banner-content-wrapper {
            background: rgba(30, 25, 20, 0.98);
            border-color: rgba(255, 200, 0, 0.4);
        }

        .banner-icon {
            font-size: 52px;
            margin-bottom: 25px;
            filter: drop-shadow(0 5px 15px rgba(0, 150, 255, 0.4));
        }

        .banner-content {
            margin-bottom: 35px;
        }

        .banner-title {
            font-weight: 700;
            margin-bottom: 15px;
            font-size: 26px;
            color: white;
        }

        .banner-text {
            font-size: 17px;
            color: rgba(255, 255, 255, 0.8);
            line-height: 1.6;
        }

        .banner-button {
            background: linear-gradient(135deg, #0096ff, #00d4ff);
            border: none;
            padding: 18px 35px;
            border-radius: 15px;
            color: white;
            cursor: pointer;
            font-weight: 600;
            font-size: 17px;
            transition: all 0.3s ease;
            font-family: 'Cairo', sans-serif;
            box-shadow: 0 10px 25px rgba(0, 150, 255, 0.4);
            border: 1px solid rgba(255, 255, 255, 0.2);
        }

        .banner-server .banner-button {
            background: linear-gradient(135deg, #ffb000, #ff8c00);
            box-shadow: 0 10px 25px rgba(255, 140, 0, 0.4);
        }

        .banner-button:hover {
            transform: translateY(-3px);
            box-shadow: 0 15px 35px rgba(0, 150, 255, 0.6);
        }

        .banner-server .banner-button:hover {
            box-shadow: 0 15px 35px rgba(255, 140, 0, 0.6);
        }

        .form-group {
            margin-bottom: 28px;
        }

        .form-label {
            display: block;
            margin-bottom: 10px;
            font-weight: 600;
            color: rgba(255, 255, 255, 0.9);
            font-size: 15px;
        }

        .form-input {
            width: 100%;
            padding: 18px 22px;
            border: 2px solid rgba(255, 255, 255, 0.15);
            border-radius: 15px;
            font-size: 16px;
            transition: all 0.3s ease;
            background: rgba(255, 255, 255, 0.08);
            backdrop-filter: blur(10px);
            font-family: 'Cairo', sans-serif;
            color: white;
        }

        .form-input::placeholder {
            color: rgba(255, 255, 255, 0.5);
        }

        .form-input:focus {
            outline: none;
            border-color: #0096ff;
            box-shadow: 0 0 0 3px rgba(0, 150, 255, 0.2), 0 8px 25px rgba(0, 150, 255, 0.15);
            transform: translateY(-2px);
            background: rgba(255, 255, 255, 0.12);
        }

        .form-input:disabled {
            background: rgba(255, 255, 255, 0.05);
            color: rgba(255, 255, 255, 0.4);
            cursor: not-allowed;
            border-color: rgba(255, 255, 255, 0.1);
        }

        .form-textarea {
            min-height: 130px;
            resize: vertical;
        }

        .form-row {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 22px;
        }

        .submit-button {
            width: 100%;
            padding: 22px;
            background: linear-gradient(135deg, #0096ff, #00d4ff);
            border: none;
            border-radius: 15px;
            color: white;
            font-size: 18px;
            font-weight: 700;
            cursor: pointer;
            transition: all 0.3s ease;
            font-family: 'Cairo', sans-serif;
            margin-top: 25px;
            box-shadow: 0 15px 30px rgba(0, 150, 255, 0.4);
            border: 1px solid rgba(255, 255, 255, 0.2);
            position: relative;
            overflow: hidden;
        }

        .submit-button::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: left 0.5s;
        }
        .banner-success .banner-content-wrapper {
            background: rgba(20, 40, 30, 0.98);
            border-color: hwb(155 0% 0% / 0.4);
        }

        .banner-success .banner-button {
            background: linear-gradient(135deg, #00ff88, #00cc66);
            box-shadow: 0 10px 25px rgba(0, 255, 136, 0.4);
        }

        .banner-success .banner-button:hover {
            box-shadow: 0 15px 35px rgba(0, 255, 136, 0.6);
        }
        .submit-button:hover:not(:disabled)::before {
            left: 100%;
        }

        .submit-button:hover:not(:disabled) {
            transform: translateY(-3px);
            box-shadow: 0 20px 40px rgba(0, 150, 255, 0.6);
        }

        .submit-button:disabled {
            background: rgba(255, 255, 255, 0.1);
            cursor: not-allowed;
            transform: none;
            box-shadow: none;
            color: rgba(255, 255, 255, 0.4);
        }

       .discord-status {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 18px 22px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    margin-bottom: 25px;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.user-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: 3px solid rgba(0, 150, 255, 0.5);
    display: none;
    object-fit: cover;
    box-shadow: 0 4px 15px rgba(0, 150, 255, 0.3);
    transition: all 0.3s ease;
}

.user-avatar.connected {
    display: block;
    border-color: #0096ff;
    box-shadow: 0 0 20px rgba(0, 150, 255, 0.6);
}

.status-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.user-name {
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
    font-size: 16px;
}

.connection-status {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
}

.status-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    position: relative;
    flex-shrink: 0;
}

        .status-dot {
            width: 14px;
            height: 14px;
            border-radius: 50%;
            background: rgba(255, 255, 255, 0.3);
            position: relative;
        }

        .status-connected {
            background: #0096ff;
            box-shadow: 0 0 15px rgba(0, 150, 255, 0.6);
        }

        .status-connected::before {
            content: '';
            position: absolute;
            top: -3px;
            left: -3px;
            right: -3px;
            bottom: -3px;
            border: 2px solid rgba(0, 150, 255, 0.4);
            border-radius: 50%;
            animation: pulse 2s infinite;
        }

        @keyframes pulse {
            0% { transform: scale(1); opacity: 1; }
            100% { transform: scale(1.5); opacity: 0; }
        }

        #status-text {
            color: rgba(255, 255, 255, 0.9);
            font-weight: 500;
        }

        @media (max-width: 768px) {
            .form-wrapper {
                padding: 30px 25px;
                margin: 15px;
            }

            .form-row {
                grid-template-columns: 1fr;
                gap: 20px;
            }

            .title {
                font-size: 28px;
            }

            .banner-content-wrapper {
                padding: 35px 25px;
            }
        }

        /* تحسينات إضافية */
        .form-group {
            position: relative;
        }

        .form-group:hover .form-input:not(:focus) {
            border-color: rgba(0, 150, 255, 0.3);
        }

        .form-input:valid {
            border-color: rgba(0, 255, 150, 0.4);
        }

        /* تأثير للنصوص */
        h1, h2, h3 {
            text-rendering: optimizeLegibility;
        }

        /* تحسين الاسكرول بار */
        ::-webkit-scrollbar {
            width: 8px;
        }

        ::-webkit-scrollbar-track {
            background: rgba(255, 255, 255, 0.1);
        }

        ::-webkit-scrollbar-thumb {
            background: rgba(0, 150, 255, 0.5);
            border-radius: 4px;
        }

        ::-webkit-scrollbar-thumb:hover {
            background: rgba(0, 150, 255, 0.7);
        }
