/* --- صفحة البداية (Entry Page Styles) --- */
.entry-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 5000;
    background-color: #000;
    display: none;
    flex-direction: column;
    overflow: hidden;
    transition: none;
    font-family: 'Tajawal', sans-serif;
    background: var(--entry-bg-color, var(--primary-bg, #000));
}

.entry-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.entry-bg img,
.entry-bg video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 1;
    /* ظهور فوري */
    filter: none;
    /* إلغاء التغبيش */
    transition: none;
    /* إلغاء أي تأثيرات دخولية */
}

.entry-bg.loaded img,
.entry-bg.loaded video {
    opacity: 1;
    filter: none;
}

.entry-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 20px;
    color: var(--entry-text-color, white);
}

.entry-top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.entry-rating-btn {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--entry-text-color, white);
    padding: 10px 18px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.entry-logo {
    height: 45px;
    max-width: 150px;
    object-fit: contain;
    filter: drop-shadow(0 0 10px rgba(0, 0, 0, 0.3));
}

.entry-website-title {
    font-size: 1.2rem;
    font-weight: 800;
    letter-spacing: 1px;
    opacity: 0.9;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.entry-center {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 15px;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
}

.btn-lang-entry {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    font-family: 'Vazirmatn', sans-serif;
    /* الخط العربي المميز لصفحة البداية */
}

.btn-lang-entry:active {
    transform: scale(0.95);
}

.entry-langs-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* تصميم الزر البريميوم (فخم) */
.btn-lang-premium {
    width: 100%;
    height: 70px;
    border-radius: 20px;
    font-size: 1.5rem;
    background: var(--entry-btn-bg, linear-gradient(135deg, var(--accent-color, #1B4332) 0%, #2D6A4F 100%));
    color: var(--entry-btn-text, white);
    border: none;
}

.btn-lang-premium.secondary {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--entry-btn-text, white);
}

.layout-double {
    gap: 20px;
}

.layout-single .btn-lang-premium {
    height: 80px;
    font-size: 1.8rem;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

.btn-lang-large {
    width: 100%;
    height: 65px;
    border-radius: 20px;
    font-size: 1.4rem;
    background: var(--entry-btn-bg, linear-gradient(135deg, var(--accent-color, #1B4332) 0%, #2D6A4F 100%));
    color: var(--entry-btn-text, white);
    border: none;
}

.entry-langs-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    width: 100%;
}

.btn-lang-small {
    height: 55px;
    border-radius: 18px;
    font-size: 1.1rem;
}

.entry-bottom {
    margin-top: auto;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding-bottom: 50px;
    /* مسافة للفوتر */
}

.entry-store-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.entry-store-name {
    font-size: 1.4rem;
    font-weight: 800;
}

.entry-store-address {
    font-size: 0.85rem;
    opacity: 0.8;
}

.entry-social-links {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.social-icon-btn {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: var(--entry-social-icon-bg, rgba(255, 255, 255, 0.1));
    color: var(--entry-social-icon-color, white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    text-decoration: none;
    transition: background 0.3s;
}

.entry-footer {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 44px;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
}

.entry-overlay.hidden {
    display: none !important;
}