:root {
    --primary: #38bdf8;
    --primary-dark: #0284c7;
    --bg-dark: #0a0e17;
    --bg-card: rgba(15, 23, 42, 0.8);
    --glass: rgba(255, 255, 255, 0.03);
    --border-glow: rgba(56, 189, 248, 0.3);
    --text-primary: #f0f9ff;
    --text-secondary: #94a3b8;
    --success: #10b981;
    --danger: #ef4444;
    --discord: #5865F2;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Cairo', sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
    line-height: 1.6;
}

body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(ellipse at 20% 50%, rgba(56, 189, 248, 0.08) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 20%, rgba(2, 132, 199, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 80%, rgba(56, 189, 248, 0.05) 0%, transparent 40%);
    pointer-events: none;
    z-index: 0;
}

.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.particle {
    position: absolute;
    border-radius: 50%;
    background: var(--primary);
    opacity: 0.3;
    animation: float 20s infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0) translateX(0); }
    25% { transform: translateY(-30px) translateX(20px); }
    50% { transform: translateY(-60px) translateX(-10px); }
    75% { transform: translateY(-30px) translateX(-30px); }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

.top-bar {
    background: rgba(0, 0, 0, 0.5);
    border-bottom: 1px solid rgba(56, 189, 248, 0.2);
    padding: 8px 0;
    font-size: 0.85rem;
    position: relative;
    z-index: 100;
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-icon {
    color: var(--text-secondary);
    transition: 0.3s;
}

.social-icon:hover {
    color: var(--primary);
    transform: scale(1.2);
}

.site-header {
    background: rgba(10, 14, 23, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(56, 189, 248, 0.2);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo {
    text-decoration: none;
}

.logo-text {
    font-size: 1.8rem;
    font-weight: 900;
    background: linear-gradient(135deg, #f0f9ff, #7dd3fc, #38bdf8);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    letter-spacing: 1px;
}

.nav-links {
    display: flex;
    gap: 25px;
    align-items: center;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s;
    position: relative;
    padding: 8px 0;
}

.nav-link:hover {
    color: var(--text-primary);
    text-shadow: 0 0 20px var(--primary);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s;
    box-shadow: 0 0 10px var(--primary);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link.active {
    color: var(--primary);
}

.nav-link.active::after {
    width: 100%;
}

.hamburger {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-primary);
}

.hero {
    padding: 80px 0 60px;
}

.hero-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 40px;
}

.hero-content {
    flex: 1 1 500px;
    text-align: center;
}

.hero-badge {
    display: inline-block;
    background: rgba(56, 189, 248, 0.15);
    border: 1px solid rgba(56, 189, 248, 0.4);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 20px;
    letter-spacing: 0.5px;
}

.hero-title {
    font-size: 4rem;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 20px;
    text-shadow: 0 0 40px rgba(56, 189, 248, 0.5);
}

.hero-title span {
    background: linear-gradient(135deg, #7dd3fc, #38bdf8, #0284c7);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-desc {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 40px;
    justify-content: center;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    color: white;
    border: none;
    padding: 16px 35px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.4s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 0 30px rgba(56, 189, 248, 0.4);
    letter-spacing: 0.5px;
}

.btn-primary:hover {
    box-shadow: 0 0 50px rgba(56, 189, 248, 0.7);
    transform: translateY(-3px);
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 1px solid var(--primary);
    padding: 16px 35px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.4s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-outline:hover {
    background: rgba(56, 189, 248, 0.1);
    box-shadow: 0 0 30px rgba(56, 189, 248, 0.3);
}

.btn-discord {
    background: var(--discord);
    color: white;
    border: none;
    padding: 16px 35px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.4s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 0 30px rgba(88, 101, 242, 0.5);
    letter-spacing: 0.5px;
}

.btn-discord:hover {
    box-shadow: 0 0 50px rgba(88, 101, 242, 0.8);
    transform: translateY(-3px);
    background: #4752C4;
}

.hero-stats {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    justify-content: center;
}

.stat {
    text-align: center;
}

.stat span {
    font-size: 2rem;
    font-weight: 900;
    color: var(--primary);
    display: block;
}

.stat p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.section {
    padding: 60px 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 900;
    text-align: center;
    margin-bottom: 40px;
    color: var(--text-primary);
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    margin: 15px auto 0;
    border-radius: 10px;
}

.features-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    justify-content: center;
}

.feature-card {
    background: var(--glass);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(56, 189, 248, 0.2);
    border-radius: 20px;
    padding: 30px 25px;
    flex: 1 1 200px;
    text-align: center;
    transition: all 0.4s;
}

.feature-card:hover {
    border-color: var(--primary);
    box-shadow: 0 0 30px rgba(56, 189, 248, 0.3);
    transform: translateY(-5px);
}

.feature-card i {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 15px;
    filter: drop-shadow(0 0 10px var(--primary));
}

.feature-card h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.team-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 25px;
}

.team-card {
    background: var(--glass);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(56, 189, 248, 0.2);
    border-radius: 20px;
    padding: 30px 20px;
    text-align: center;
    width: 230px;
    transition: all 0.4s;
    cursor: pointer;
}

.team-card:hover {
    border-color: var(--primary);
    box-shadow: 0 0 40px rgba(56, 189, 248, 0.4);
    transform: translateY(-10px);
    background: rgba(56, 189, 248, 0.1);
}

.team-card img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
    border: 3px solid var(--primary);
    box-shadow: 0 0 25px rgba(56, 189, 248, 0.5);
}

.team-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
}

.team-card p {
    color: var(--primary);
    font-size: 0.9rem;
    font-weight: 600;
}

.cta-section {
    padding: 60px 0;
    text-align: center;
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.1), rgba(2, 132, 199, 0.05));
    border-radius: 20px;
    margin: 40px auto;
    max-width: 800px;
}

.cta-content h2 {
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 10px;
}

.cta-content p {
    color: var(--text-secondary);
    margin-bottom: 30px;
}

.page-header {
    padding: 50px 0 30px;
    text-align: center;
}

.page-header h1 {
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 10px;
    color: var(--text-primary);
    text-shadow: 0 0 30px rgba(56, 189, 248, 0.5);
}

.page-header p {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.rules-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    justify-content: center;
}

.rule-card {
    background: var(--glass);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(56, 189, 248, 0.2);
    border-radius: 20px;
    padding: 30px 25px;
    flex: 1 1 220px;
    transition: all 0.4s;
}

.rule-card:hover {
    border-color: var(--primary);
    box-shadow: 0 0 30px rgba(56, 189, 248, 0.3);
    transform: translateY(-5px);
}

.rule-card i {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 15px;
    filter: drop-shadow(0 0 10px var(--primary));
}

.rule-card h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    font-weight: 700;
}

.rule-card ul {
    list-style: none;
}

.rule-card li {
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.rule-card li::before {
    content: "◆";
    color: var(--primary);
    margin-left: 8px;
    font-size: 0.7rem;
}

.jobs-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    justify-content: center;
}

.job-card {
    background: var(--glass);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(56, 189, 248, 0.2);
    border-radius: 20px;
    padding: 35px 25px;
    text-align: center;
    width: 280px;
    cursor: pointer;
    transition: all 0.4s;
    text-decoration: none;
    color: var(--text-primary);
    position: relative;
    overflow: hidden;
}

.job-card:hover {
    border-color: var(--primary);
    box-shadow: 0 0 40px rgba(56, 189, 248, 0.4);
    transform: translateY(-10px);
}

.job-card i {
    font-size: 3.5rem;
    color: var(--primary);
    margin-bottom: 20px;
    filter: drop-shadow(0 0 15px var(--primary));
}

.job-card h3 {
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 10px;
}

.job-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 15px;
}

.job-status {
    display: inline-block;
    background: rgba(16, 185, 129, 0.2);
    color: var(--success);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.apply-form-container {
    max-width: 650px;
    margin: 0 auto;
    background: var(--glass);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(56, 189, 248, 0.2);
    border-radius: 25px;
    padding: 30px;
}

.form-group {
    margin: 15px 0;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border-radius: 12px;
    border: 1px solid rgba(56, 189, 248, 0.2);
    background: rgba(10, 14, 23, 0.8);
    color: white;
    font-family: 'Cairo', sans-serif;
    resize: vertical;
    outline: none;
    transition: 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 15px rgba(56, 189, 248, 0.3);
}

.submit-btn {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    color: white;
    border: none;
    padding: 14px 30px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.4s;
    width: 100%;
    margin-top: 20px;
    letter-spacing: 1px;
}

.submit-btn:hover {
    box-shadow: 0 0 40px rgba(56, 189, 248, 0.6);
    transform: scale(1.02);
}

.form-message {
    margin-top: 20px;
    padding: 15px;
    border-radius: 10px;
    font-weight: 600;
    text-align: center;
}

.form-message.success {
    background: rgba(16, 185, 129, 0.2);
    color: var(--success);
    border: 1px solid var(--success);
}

.form-message.error {
    background: rgba(239, 68, 68, 0.2);
    color: var(--danger);
    border: 1px solid var(--danger);
}

.already-submitted-banner {
    text-align: center;
    padding: 40px 20px;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid var(--success);
    border-radius: 20px;
    margin: 20px 0;
}

.already-submitted-banner i {
    font-size: 3.5rem;
    color: var(--success);
    margin-bottom: 15px;
}

.already-submitted-banner h3 {
    font-size: 1.8rem;
    color: white;
    margin-bottom: 10px;
}

.already-submitted-banner p {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.admin-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 20px;
    flex-wrap: wrap;
}

.approve-btn, .reject-btn {
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    letter-spacing: 0.5px;
}

.approve-btn {
    background: linear-gradient(135deg, #059669, #10b981);
    color: white;
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.4);
}

.reject-btn {
    background: linear-gradient(135deg, #dc2626, #ef4444);
    color: white;
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.4);
}

.approve-btn:hover, .reject-btn:hover {
    transform: scale(1.05);
    filter: brightness(1.2);
}

.hidden {
    display: none !important;
}

footer {
    background: rgba(10, 14, 23, 0.9);
    border-top: 1px solid rgba(56, 189, 248, 0.2);
    padding: 30px 20px;
    margin-top: 60px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--primary);
}

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: 0.3s;
}

.footer-links a:hover {
    color: var(--primary);
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    padding: 20px;
}

.modal {
    background: #0f172a;
    border: 1px solid rgba(56, 189, 248, 0.4);
    border-radius: 25px;
    padding: 30px;
    width: 100%;
    max-width: 600px;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 0 60px rgba(56, 189, 248, 0.4);
    animation: modalIn 0.3s ease;
}

@keyframes modalIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.modal-header h3 {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary);
}

.close-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 2rem;
    cursor: pointer;
    transition: 0.3s;
}

.close-btn:hover {
    color: white;
    transform: rotate(90deg);
}

.modal-body p {
    margin-bottom: 20px;
    color: var(--text-secondary);
}

.exam-question {
    margin-bottom: 15px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
}

.exam-question label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.exam-question select, 
.exam-question input, 
.exam-question textarea {
    width: 100%;
    padding: 12px 15px;
    border-radius: 10px;
    border: 1px solid rgba(56, 189, 248, 0.2);
    background: rgba(10, 14, 23, 0.8);
    color: white;
    font-family: 'Cairo', sans-serif;
    outline: none;
    resize: vertical;
    transition: 0.3s;
}

.exam-question select:focus, 
.exam-question input:focus, 
.exam-question textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 15px rgba(56, 189, 248, 0.3);
}

.exam-question input::placeholder, 
.exam-question textarea::placeholder {
    color: #64748b;
}

/* ==================== المودال المخصص للإشعارات والتحذيرات ==================== */
.custom-notice-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(5, 10, 20, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 99999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.custom-notice-overlay.active {
    opacity: 1;
}

.custom-notice-box {
    background: linear-gradient(145deg, rgba(15, 23, 42, 0.95), rgba(10, 14, 23, 0.98));
    border: 1px solid rgba(56, 189, 248, 0.4);
    border-radius: 24px;
    padding: 35px 30px;
    max-width: 440px;
    width: 90%;
    text-align: center;
    box-shadow: 0 0 50px rgba(56, 189, 248, 0.25), inset 0 0 20px rgba(56, 189, 248, 0.05);
    transform: scale(0.85);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.custom-notice-overlay.active .custom-notice-box {
    transform: scale(1);
}

.custom-notice-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
}

.custom-notice-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    background: rgba(56, 189, 248, 0.1);
    border: 1px solid rgba(56, 189, 248, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 30px rgba(56, 189, 248, 0.2);
}

.custom-notice-icon i {
    font-size: 2.2rem;
    color: var(--primary);
    filter: drop-shadow(0 0 8px var(--primary));
}

.custom-notice-box h3 {
    font-size: 1.6rem;
    font-weight: 800;
    color: #f0f9ff;
    margin-bottom: 12px;
    letter-spacing: 0.5px;
}

.custom-notice-box p {
    font-size: 1.05rem;
    color: #94a3b8;
    line-height: 1.7;
    margin-bottom: 28px;
    font-weight: 500;
}

.custom-notice-btn {
    background: linear-gradient(135deg, #0284c7, #38bdf8);
    color: white;
    border: none;
    padding: 12px 40px;
    border-radius: 30px;
    font-size: 1.05rem;
    font-weight: 700;
    font-family: 'Cairo', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 0 20px rgba(56, 189, 248, 0.4);
    outline: none;
}

.custom-notice-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(56, 189, 248, 0.7);
    background: linear-gradient(135deg, #0369a1, #0284c7);
}

.custom-notice-btn:active {
    transform: translateY(0);
}

/* ==================== حالات التقديم (متاح / مغلق) ==================== */
.job-status {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 700;
    background: rgba(16, 185, 129, 0.15);
    color: var(--success);
    border: 1px solid var(--success);
    margin-top: 15px;
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.2);
    transition: all 0.3s ease;
}

.job-status.closed {
    background: rgba(239, 68, 68, 0.15);
    color: var(--danger);
    border: 1px solid var(--danger);
    box-shadow: 0 0 15px rgba(239, 68, 68, 0.2);
}

.job-card.closed {
    opacity: 0.75;
    border-color: rgba(239, 68, 68, 0.3);
}

.job-card.closed:hover {
    transform: none;
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.2);
}

.job-closed-banner {
    text-align: center;
    padding: 50px 25px;
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.4);
    border-radius: 24px;
    margin: 20px 0;
    box-shadow: 0 0 30px rgba(239, 68, 68, 0.15);
}

.job-closed-banner i {
    font-size: 3.8rem;
    color: var(--danger);
    margin-bottom: 20px;
    filter: drop-shadow(0 0 10px rgba(239, 68, 68, 0.5));
}

.job-closed-banner h3 {
    font-size: 2rem;
    color: #f0f9ff;
    margin-bottom: 12px;
    font-weight: 800;
}

.job-closed-banner p {
    color: var(--text-secondary);
    font-size: 1.15rem;
}

@media (max-width: 768px) {
    .hero-title { font-size: 2.5rem; }
    .nav-links { display: none; }
    .hamburger { display: block; }
    .team-card { width: 180px; }
    .footer-content { flex-direction: column; text-align: center; }
}