/* ==========================================================================
   ملف التنسيق الأساسي: style.css
   التصميم: واجهة تطبيق الفلك الكاملة مع القائمة الجانبية المطابقة للصورة
   ========================================================================== */

/* 1. المتغيرات وإعادة الضبط العامة */
:root {
    --gold-glow: rgba(229, 193, 88, 0.45);
    --gold-bright: #ffe89e;
    --gold-title: #ffe69a;
    --gold-border: rgba(230, 197, 108, 0.45);
    --gold-subtle: rgba(230, 197, 108, 0.2);
    --text-pure: #ffffff;
    --text-silver: #d9d3eb;
    --font-heading: 'Cairo', sans-serif;
    --font-body: 'Tajawal', sans-serif;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

html, body {
    width: 100%;
    min-height: 100vh;
    background-color: #06040d;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    font-family: var(--font-body);
    color: var(--text-pure);
    overflow-x: hidden;
}

/* 2. شاشة الهاتف الرئيسية مع الخلفية الأصلية */
.app-screen {
    width: 100%;
    max-width: 420px;
    min-height: 100vh;
    position: relative;
    padding: 18px 20px 28px 20px;
    display: flex;
    flex-direction: column;
    background-image: url('background.png');
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    box-shadow: 0 0 60px rgba(0, 0, 0, 0.95);
}

/* 3. شريط التنقل العلوي */
.top-bar {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 10;
}

.btn-language {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: rgba(14, 10, 30, 0.45);
    border: 1px solid var(--gold-border);
    padding: 6px 14px;
    border-radius: 20px;
    color: var(--text-silver);
    font-family: var(--font-body);
    font-size: 13.5px;
    cursor: pointer;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: all 0.25s ease;
}

.btn-language:hover {
    border-color: #ffe69a;
    color: #ffffff;
    box-shadow: 0 0 10px var(--gold-glow);
}

.icon-globe, .icon-arrow {
    stroke: currentColor;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 6px;
    user-select: none;
}

.brand-name {
    font-family: var(--font-heading);
    font-size: 26px;
    font-weight: 800;
    background: linear-gradient(180deg, #ffffff 10%, #ffe9a0 60%, #cca03a 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 2px 6px rgba(204, 160, 58, 0.5));
}

.brand-crescent svg {
    filter: drop-shadow(0 0 6px rgba(229, 193, 88, 0.6));
}

.btn-hamburger {
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 26px;
    height: 18px;
    padding: 0;
}

.btn-hamburger .line {
    width: 100%;
    height: 2.2px;
    background-color: #ffe69a;
    border-radius: 2px;
    box-shadow: 0 0 5px rgba(230, 197, 108, 0.6);
}

/* 4. مساحة المشهد الفلكي الأصلي للخلفية */
.visual-scene-space {
    width: 100%;
    height: 235px;
    pointer-events: none;
}

/* 5. منطقة العناوين الرئيسية */
.hero-headlines {
    text-align: center;
    margin-top: 5px;
    z-index: 5;
}

.headline-title {
    font-family: var(--font-heading);
    font-size: 32px;
    font-weight: 900;
    line-height: 1.25;
    background: linear-gradient(180deg, #ffffff 10%, #fff2be 45%, #e8be5a 80%, #b8861e 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 3px 10px rgba(0, 0, 0, 0.9)) drop-shadow(0 0 16px rgba(232, 190, 90, 0.45));
    margin-bottom: 6px;
    letter-spacing: 0.2px;
}

.headline-sub {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    font-family: var(--font-body);
    font-size: 13.5px;
    font-weight: 500;
    color: var(--text-silver);
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
}

.headline-sub .bullet {
    color: #e5c158;
    font-size: 11px;
}

.headline-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
}

.divider-line {
    width: 65px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold-border), transparent);
}

.divider-star {
    color: var(--gold-bright);
    font-size: 12px;
    text-shadow: 0 0 8px #e5c158;
}

/* 6. زر ابدأ الآن مع التوهج واللمعان */
.cta-container {
    width: 100%;
    display: flex;
    justify-content: center;
    margin: 18px 0 20px 0;
    z-index: 5;
}

.btn-start-now {
    position: relative;
    background: linear-gradient(135deg, #fff2c6 0%, #e8bd63 45%, #ffd98a 100%);
    border: 1px solid #fffdf2;
    border-radius: 30px;
    padding: 11px 44px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    overflow: hidden;
    font-family: var(--font-heading);
    font-size: 17px;
    font-weight: 800;
    color: #1a0f2e;
    animation: startPulseGlow 3s infinite ease-in-out;
    transition: transform 0.2s ease;
}

.btn-start-now:active {
    transform: scale(0.97);
}

.btn-ornament-star {
    font-size: 12px;
    color: #271442;
}

.btn-text {
    letter-spacing: 0.3px;
}

.btn-shimmer {
    position: absolute;
    top: 0;
    left: -120%;
    width: 70%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.7), transparent);
    transform: skewX(-25deg);
    animation: shimmerSlide 3.8s infinite ease-in-out;
    pointer-events: none;
}

@keyframes startPulseGlow {
    0% {
        box-shadow: 0 0 16px rgba(232, 189, 99, 0.5), 0 0 30px rgba(204, 160, 58, 0.3);
    }
    50% {
        box-shadow: 0 0 28px rgba(255, 240, 180, 0.85), 0 0 55px rgba(232, 189, 99, 0.65), 0 0 80px rgba(204, 160, 58, 0.35);
    }
    100% {
        box-shadow: 0 0 16px rgba(232, 189, 99, 0.5), 0 0 30px rgba(204, 160, 58, 0.3);
    }
}

@keyframes shimmerSlide {
    0% { left: -120%; }
    35%, 100% { left: 160%; }
}

/* 7. واجهات العرض السفلية الثلاث */
.display-panels-group {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 13px;
    z-index: 5;
}

.display-panel {
    position: relative;
    width: 100%;
    height: 70px;
    background: rgba(14, 10, 32, 0.5);
    border: 1px solid var(--gold-border);
    outline: 1px solid var(--gold-subtle);
    outline-offset: -3px;
    border-radius: 14px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    overflow: hidden;
    user-select: none;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.45);
}

.panel-scenic-nebula {
    position: absolute;
    top: 0;
    left: 0;
    width: 45%;
    height: 100%;
    pointer-events: none;
    opacity: 0.85;
}

.nebula-1 { background: radial-gradient(circle at 10% 50%, rgba(138, 75, 217, 0.45) 0%, transparent 75%); }
.nebula-2 { background: radial-gradient(circle at 10% 50%, rgba(100, 50, 180, 0.45) 0%, transparent 75%); }
.nebula-3 { background: radial-gradient(circle at 10% 50%, rgba(46, 92, 218, 0.45) 0%, transparent 75%); }

.panel-body {
    position: relative;
    width: 100%;
    height: 100%;
    padding: 0 16px;
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    justify-content: space-between;
    z-index: 2;
}

.panel-text {
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 700;
    color: #ffffff;
    flex-grow: 1;
    text-align: center;
    letter-spacing: 0.2px;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.8);
}

.panel-emblem {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
}

.panel-emblem svg {
    filter: drop-shadow(0 0 6px rgba(230, 197, 108, 0.55));
}

/* ==========================================================================
   8. القائمة الجانبية وتفاصيلها المطابقة للصورة (Sidebar Drawer)
   ========================================================================== */

/* طبقة التعتيم الخلفية */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(4, 2, 12, 0.7);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, visibility 0.35s ease;
    z-index: 998;
}

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

/* الحاوية الجانبية للقائمة (تنزلق من اليمين) */
.side-menu {
    position: fixed;
    top: 0;
    right: 0;
    width: 295px;
    height: 100vh;
    background: linear-gradient(180deg, #100b28 0%, #080516 100%);
    border-left: 1px solid var(--gold-border);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.9);
    padding: 20px 18px 24px 18px;
    display: flex;
    flex-direction: column;
    z-index: 999;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    overflow-y: auto;
}

.side-menu.active {
    transform: translateX(0);
}

/* رأس القائمة والشعار */
.side-menu-header {
    display: flex;
    flex-direction: column;
    gap: 8px;
    border-bottom: 1px solid rgba(230, 197, 108, 0.2);
    padding-bottom: 16px;
}

.close-menu-btn {
    background: transparent;
    border: none;
    color: var(--gold-title);
    cursor: pointer;
    align-self: flex-start;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-menu-btn:hover {
    color: #ffffff;
}

.menu-brand-header {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
}

.menu-brand-text {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.menu-brand-name {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 800;
    color: var(--gold-title);
    text-shadow: 0 0 10px rgba(230, 197, 108, 0.4);
}

.menu-admin-email {
    font-size: 11px;
    color: var(--text-silver);
    direction: ltr;
}

/* قائمة الروابط */
.side-menu-content {
    flex-grow: 1;
    margin-top: 14px;
}

.side-nav-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.side-nav-item {
    width: 100%;
}

.side-nav-link {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 14px;
    padding: 8px 10px;
    border-radius: 12px;
    text-decoration: none;
    color: #ffffff;
    background: transparent;
    border: none;
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.side-nav-link:hover {
    background: rgba(230, 197, 108, 0.12);
    color: var(--gold-title);
}

.nav-link-text {
    letter-spacing: 0.2px;
}

.nav-link-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold-title);
}

.btn-menu-lang {
    width: 100%;
}

/* تذييل الدعم الفني وزر تيليغرام */
.menu-support-footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding-top: 14px;
    border-top: 1px solid rgba(230, 197, 108, 0.2);
    margin-top: auto;
}

.support-title {
    font-size: 13.5px;
    color: var(--text-silver);
    font-weight: 500;
}

.btn-telegram-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #3c2a68;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 4px 18px rgba(60, 42, 104, 0.6);
    transition: transform 0.2s ease, background 0.2s ease;
}

.btn-telegram-icon:hover {
    transform: scale(1.06);
    background: #4a3480;
}