/* =========================================
   ULTRA LUXURY ROYAL
   GOLD + PURPLE + MIDNIGHT BLACK
   ========================================= */

:root {
    --lux-black: #080710;
    --lux-bg: #0b0a18;
    --lux-card: #151226;
    --lux-gold: #ffd166;
    --lux-gold-light: #fff0b3;
    --lux-purple: #a855f7;
    --lux-violet: #6d28d9;
    --lux-blue: #60a5fa;
    --lux-white: #fffaf0;
    --lux-muted: #d1cde2;
}

/* الخلفية الرئيسية */
html,
body {
    margin: 0 !important;
    padding: 0 !important;
    width: 100%;
    max-width: 100%;
    background: var(--lux-black) !important;
    color: var(--lux-white);
    font-family: Cairo, sans-serif;
}

/* خلفية ملكية متعددة التدرجات */
#login_wrap {
    position: relative;
    isolation: isolate;
    width: 100% !important;
    max-width: 100% !important;
    min-height: 100vh;
    margin: 0 auto !important;
    padding: 24px 12px 40px !important;
    box-sizing: border-box;
    direction: rtl;
    overflow-x: clip;

    background:
        radial-gradient(
            ellipse at 50% 0%,
            rgba(168, 85, 247, .20),
            transparent 43%
        ),
        radial-gradient(
            ellipse at 100% 65%,
            rgba(255, 209, 102, .09),
            transparent 38%
        ),
        linear-gradient(
            145deg,
            #080710 0%,
            #151027 48%,
            #090b19 100%
        ) !important;
}

/* البطاقة الرئيسية */
#login_all {
    position: relative;
    z-index: 2;
    width: 100% !important;
    max-width: 460px !important;
    min-width: 0 !important;
    margin: 0 auto 25px !important;
    padding: 26px 18px !important;
    box-sizing: border-box;
    border-radius: 24px;

    background: linear-gradient(
        145deg,
        rgba(31, 24, 53, .97),
        rgba(13, 12, 29, .98)
    ) !important;

    border: 1px solid rgba(255, 209, 102, .38);

    box-shadow:
        0 0 0 1px rgba(168, 85, 247, .08),
        0 12px 35px rgba(0, 0, 0, .35),
        0 0 30px rgba(168, 85, 247, .10);
}

/* الخط الذهبي العلوي */
#login_all::before {
    content: "";
    position: absolute;
    top: 0;
    left: 8%;
    width: 84%;
    height: 2px;
    border-radius: 50%;
    background: linear-gradient(
        90deg,
        transparent,
        var(--lux-gold),
        var(--lux-purple),
        var(--lux-gold),
        transparent
    );
    box-shadow: 0 0 14px rgba(255, 209, 102, .45);
}

/* ضبط اللوجو */
.hero_logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100% !important;
    max-width: 155px !important;
    height: 125px !important;
    margin: 0 auto 16px !important;
}

.logo_ring {
    width: 100px !important;
    height: 100px !important;
    border: 2px solid transparent;

    background:
        linear-gradient(#151226, #151226) padding-box,
        linear-gradient(
            135deg,
            var(--lux-gold),
            var(--lux-purple),
            var(--lux-gold-light)
        ) border-box;

    box-shadow: 0 0 18px rgba(255, 209, 102, .15);
    animation: none !important;
}

#login_logo {
    display: block;
    width: auto !important;
    max-width: 125px !important;
    max-height: 112px !important;
    height: auto !important;
    margin: 0 auto !important;
    object-fit: contain;
    animation: none !important;

    filter: drop-shadow(
        0 0 10px rgba(168, 85, 247, .28)
    ) !important;
}

/* العنوان */
.login_text {
    text-align: center;
    margin: 0 0 24px;
}

.login_text .text_xlarge {
    font-size: clamp(26px, 5vw, 36px) !important;
    font-weight: 900;
    line-height: 1.7 !important;

    background: linear-gradient(
        100deg,
        #fff0b3,
        #ffd166,
        #ffffff,
        #d8b4fe
    ) !important;

    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
}

.login_text .text_med {
    color: var(--lux-muted) !important;
    font-size: 15px !important;
    line-height: 2 !important;
}

/* أزرار الدخول */
.login_actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.intro_login_btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;

    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    min-height: 56px;

    margin: 0 !important;
    padding: 12px 16px !important;
    box-sizing: border-box;

    color: #fff !important;
    font-family: inherit;
    font-size: 17px !important;
    font-weight: 800;

    border-radius: 14px;
    cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease;
}

.primary_btn {
    background: linear-gradient(
        110deg,
        #6d28d9,
        #9333ea,
        #7c3aed,
        #4f46e5
    ) !important;

    border: 1px solid rgba(216, 180, 254, .45);

    box-shadow:
        0 5px 18px rgba(109, 40, 217, .30),
        inset 0 1px 0 rgba(255, 255, 255, .14);
}

.secondary_btn {
    background: linear-gradient(
        135deg,
        #242039,
        #151226
    ) !important;

    border: 1px solid rgba(255, 209, 102, .35);
    color: var(--lux-white) !important;
}

.intro_login_btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(168, 85, 247, .22);
}

.intro_login_btn b {
    left: 15px;
}

/* أزرار واتساب ونسخ الرابط */
.quick_buttons {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 16px;
}

.quick_btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;

    min-width: 0;
    width: 100%;
    min-height: 48px;
    padding: 10px 8px;
    box-sizing: border-box;

    color: white !important;
    text-decoration: none !important;
    font-size: 14px !important;
    font-weight: 800;
    border-radius: 12px;
    transition: transform .2s ease;
}

.quick_btn b {
    display: none;
}

.whatsapp_btn {
    background: linear-gradient(
        135deg,
        #15803d,
        #22c55e
    ) !important;

    box-shadow: 0 4px 14px rgba(34, 197, 94, .15);
}

.copy_btn {
    background: linear-gradient(
        135deg,
        #7c3aed,
        #4f46e5
    ) !important;

    box-shadow: 0 4px 14px rgba(124, 58, 237, .20);
}

.quick_btn:hover {
    transform: translateY(-2px);
}

/* بطاقات المعلومات */
.info_grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    width: 100%;
    max-width: 920px;
    margin: 22px auto;
}

.info_card {
    display: flex;
    align-items: flex-start;
    gap: 11px;

    min-width: 0;
    width: 100%;
    padding: 18px 14px;
    box-sizing: border-box;

    background: linear-gradient(
        145deg,
        rgba(31, 24, 53, .94),
        rgba(15, 13, 31, .98)
    ) !important;

    border: 1px solid rgba(168, 85, 247, .25);
    border-radius: 18px;

    box-shadow: 0 8px 22px rgba(0, 0, 0, .16);
    transition: border-color .2s ease;
}

.info_card:hover {
    border-color: rgba(255, 209, 102, .45);
}

.info_icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;

    width: 42px;
    height: 42px;
    border-radius: 12px;

    color: var(--lux-gold) !important;
    background: rgba(255, 209, 102, .09) !important;
    border: 1px solid rgba(255, 209, 102, .20);
}

.support_card {
    border-color: rgba(96, 165, 250, .25);
}

.support_card .info_icon {
    color: #93c5fd !important;
    background: rgba(96, 165, 250, .09) !important;
    border-color: rgba(96, 165, 250, .22);
}

.policy_card {
    border-color: rgba(232, 121, 249, .25);
}

.policy_card .info_icon {
    color: #f0abfc !important;
    background: rgba(232, 121, 249, .09) !important;
    border-color: rgba(232, 121, 249, .22);
}

.info_content {
    flex: 1;
    min-width: 0;
}

.info_content h3 {
    color: var(--lux-gold) !important;
    font-size: 18px;
    line-height: 1.7;
    margin: 0 0 8px;
}

.support_card .info_content h3 {
    color: #93c5fd !important;
}

.policy_card .info_content h3 {
    color: #f0abfc !important;
}

.info_content p {
    color: var(--lux-muted) !important;
    font-size: 14px;
    line-height: 1.9;
    overflow-wrap: anywhere;
}

.info_line {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin-top: 9px;
    font-size: 13px;
    overflow-wrap: anywhere;
}

.info_line a {
    color: #c4b5fd !important;
    text-decoration: underline;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.info_line a:hover {
    color: var(--lux-gold) !important;
}

/* بطاقة الرابط الرسمي */
.official_box {
    position: relative;
    z-index: 2;

    width: 100% !important;
    max-width: 920px !important;

    margin: 22px auto !important;
    padding: 23px 17px !important;
    box-sizing: border-box;

    text-align: center;

    background: linear-gradient(
        145deg,
        #1b1730,
        #101020
    ) !important;

    border: 1px solid rgba(255, 209, 102, .32);
    border-radius: 20px;

    box-shadow: 0 10px 28px rgba(0, 0, 0, .25);
}

.official_icon {
    color: var(--lux-gold) !important;
    background: rgba(255, 209, 102, .09) !important;
    border-color: rgba(255, 209, 102, .25) !important;
}

.official_text h2 {
    font-size: clamp(21px, 4vw, 28px);
    line-height: 1.8;

    background: none !important;
    color: var(--lux-gold-light) !important;
    -webkit-text-fill-color: var(--lux-gold-light) !important;
}

.official_text p {
    color: var(--lux-muted) !important;
    line-height: 1.9;
    overflow-wrap: anywhere;
}

.official_url {
    max-width: 100%;
    box-sizing: border-box;

    color: #93c5fd !important;
    background: rgba(96, 165, 250, .07) !important;
    border: 1px solid rgba(96, 165, 250, .2) !important;
    overflow-wrap: anywhere;
}

.official_buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.official_btn {
    min-width: 0;
    max-width: 100%;
    min-height: 48px;
    padding: 12px 15px;
    box-sizing: border-box;
    border-radius: 12px;
}

/* الخصوصية واللغة */
.privacy_area {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;

    margin-top: 20px;
    padding-top: 17px;
    border-top: 1px solid rgba(255, 255, 255, .10);
}

.privacy_link {
    color: #eee8ff !important;
}

.privacy_link i {
    color: var(--lux-gold) !important;
}

#intro_lang img {
    width: 42px !important;
    height: auto;
    border-radius: 6px !important;
    box-shadow: none !important;
}

/* الفوتر */
.neon_footer {
    width: 100%;
    max-width: 920px;
    margin: 22px auto 0;
    padding: 15px 10px;
    box-sizing: border-box;

    color: #d1cde2 !important;
    text-align: center;
    line-height: 2;
}

.neon_footer strong {
    color: var(--lux-gold) !important;
}

.neon_footer span {
    color: #c4b5fd !important;
}

/* منع الصور والنصوص من تجاوز الشاشة */
#login_wrap *,
#login_all *,
.info_grid *,
.official_box * {
    box-sizing: border-box;
}

#login_wrap img {
    max-width: 100%;
}

/* استجابة الموبايل */
@media (max-width: 700px) {
    #login_wrap {
        padding: 18px 11px 30px !important;
    }

    #login_all {
        max-width: 460px !important;
        padding: 23px 15px !important;
        border-radius: 21px;
    }

    .hero_logo {
        max-width: 140px !important;
        height: 115px !important;
    }

    .logo_ring {
        width: 90px !important;
        height: 90px !important;
    }

    #login_logo {
        max-width: 112px !important;
        max-height: 105px !important;
    }

    .login_text .text_xlarge {
        font-size: 27px !important;
    }

    .login_text .text_med {
        font-size: 14px !important;
    }

    .intro_login_btn {
        min-height: 53px;
        font-size: 16px !important;
    }

    .info_grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 13px;
    }

    .info_card {
        padding: 18px 14px;
    }

    .official_buttons {
        flex-direction: column;
    }

    .official_btn {
        width: 100%;
    }
}

/* الهواتف الصغيرة */
@media (max-width: 360px) {
    #login_wrap {
        padding-right: 8px !important;
        padding-left: 8px !important;
    }

    #login_all {
        padding: 19px 11px !important;
    }

    .quick_buttons {
        grid-template-columns: minmax(0, 1fr);
    }

    .info_card {
        gap: 9px;
    }
}

/* احترام إعداد تقليل الحركة */
@media (prefers-reduced-motion: reduce) {
    #login_wrap *,
    #login_wrap *::before,
    #login_wrap *::after {
        animation: none !important;
        transition: none !important;
    }
}