@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;600;700;800&family=Poppins:wght@300;400;500;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', 'Cairo', sans-serif;
    background: #080c14 url('bg.jpg') no-repeat center top / cover fixed;
    color: #e2e8f0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 40px;
    background: rgba(10, 15, 26, 0.85);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(212, 160, 23, 0.2);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo-text {
    font-size: 22px;
    font-weight: 800;
    color: #fff;
    letter-spacing: 1px;
}

.logo-text span {
    color: #e2a210;
}

.nav-links {
    display: flex;
    gap: 20px;
}

.nav-links a {
    color: #cbd5e1;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 5px 10px;
    border-bottom: 2px solid transparent;
}

.nav-links a:hover, .nav-links a.active {
    color: #f59e0b;
    border-bottom-color: #f59e0b;
}

.lang-switcher button {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(245, 158, 11, 0.4);
    color: #fff;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: 0.3s;
}

.lang-switcher button:hover {
    background: rgba(245, 158, 11, 0.2);
    border-color: #f59e0b;
}

/* Main Container */
.main-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    padding: 60px 50px 40px 50px;
    min-height: 480px;
}

/* Download CTA */
.download-cta-box {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.btn-download-main {
    display: flex;
    align-items: center;
    gap: 15px;
    background: linear-gradient(135deg, #15803d, #166534);
    color: #fff;
    text-decoration: none;
    padding: 16px 32px;
    border-radius: 8px;
    border: 1px solid #22c55e;
    box-shadow: 0 0 20px rgba(34, 197, 94, 0.3);
    transition: 0.3s;
}

.btn-download-main:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 30px rgba(34, 197, 94, 0.6);
}

.btn-download-main i {
    font-size: 32px;
}

.btn-title {
    display: block;
    font-size: 20px;
    font-weight: 700;
}

.btn-sub {
    font-size: 12px;
    opacity: 0.8;
}

.version-badges {
    display: flex;
    gap: 10px;
}

.badge {
    background: rgba(15, 23, 42, 0.8);
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Glass Card & Form */
.glass-card {
    background: rgba(11, 19, 36, 0.82);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(245, 158, 11, 0.25);
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.login-card {
    width: 380px;
}

.card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    color: #f59e0b;
}

.input-group {
    position: relative;
    margin-bottom: 15px;
}

.input-group i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #64748b;
}

html[dir="rtl"] .input-group i {
    left: auto;
    right: 12px;
}

.input-group input {
    width: 100%;
    padding: 12px 12px 12px 38px;
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid #334155;
    border-radius: 6px;
    color: #fff;
    outline: none;
    transition: 0.3s;
}

html[dir="rtl"] .input-group input {
    padding: 12px 38px 12px 12px;
}

.input-group input:focus {
    border-color: #f59e0b;
}

.toggle-pwd {
    left: auto !important;
    right: 12px !important;
    cursor: pointer;
}

html[dir="rtl"] .toggle-pwd {
    right: auto !important;
    left: 12px !important;
}

.form-options {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    margin-bottom: 20px;
}

.forgot-link {
    color: #3b82f6;
    text-decoration: none;
}

.btn-submit {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    border: none;
    color: white;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
}

.btn-submit:hover {
    filter: brightness(1.1);
}

.register-prompt {
    margin-top: 20px;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 15px;
}

.register-prompt p {
    font-size: 12px;
    color: #94a3b8;
    margin-bottom: 10px;
}

.btn-register-outline {
    display: inline-block;
    width: 100%;
    padding: 10px;
    border: 1px solid #f59e0b;
    background: transparent;
    color: #f59e0b;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
}

.btn-register-outline:hover {
    background: rgba(245, 158, 11, 0.15);
}

/* Bottom Grid */
.bottom-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px;
    padding: 0 50px 40px 50px;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.section-title h3 {
    font-size: 16px;
    color: #fff;
    flex-grow: 1;
}

.view-all {
    font-size: 12px;
    color: #3b82f6;
    text-decoration: none;
}

.news-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.news-date {
    background: rgba(255, 255, 255, 0.05);
    padding: 5px 10px;
    border-radius: 4px;
    text-align: center;
    line-height: 1.1;
}

.news-date .month {
    font-size: 10px;
    color: #94a3b8;
}

.news-date .day {
    font-size: 14px;
    font-weight: 700;
    color: #f59e0b;
}

.news-info h4 {
    font-size: 13px;
    color: #e2e8f0;
}

.news-info p {
    font-size: 11px;
    color: #64748b;
}

.features-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 15px;
    text-align: center;
}

.gold-icon {
    font-size: 24px;
    color: #f59e0b;
    margin-bottom: 8px;
}

.feature-item h4 {
    font-size: 12px;
    color: #fff;
}

.feature-item p {
    font-size: 10px;
    color: #64748b;
}

.dl-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.dl-details {
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-dl-small {
    background: #2563eb;
    color: white;
    text-decoration: none;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 12px;
}

.install-guide {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    padding-top: 10px;
    font-size: 11px;
    color: #94a3b8;
}

.install-guide ol {
    margin-left: 15px;
}

/* Footer */
.footer {
    margin-top: auto;
    background: rgba(5, 8, 15, 0.95);
    padding: 20px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: #64748b;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-links a {
    color: #94a3b8;
    text-decoration: none;
    margin: 0 5px;
}

.social-links a {
    color: #cbd5e1;
    margin-left: 12px;
    font-size: 16px;
}

@media (max-width: 900px) {
    .main-container, .bottom-grid {
        flex-direction: column;
        grid-template-columns: 1fr;
        padding: 20px;
    }
    .login-card {
        width: 100%;
        margin-top: 20px;
    }
}