/* style.css */

/* ===== أساسي ===== */
* {
    box-sizing: border-box; /* مهم لتجنب مشاكل عرض الإدخال والزر */
}

  body {
    margin: 0;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    background: #6b4839 !important;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

header {
    padding: 9px 168px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #6b4839;
}

header .logo img {
    max-height: 55px;
}

header nav a {
    color: #000000;
    margin: 0 21px;
    text-decoration: none;
    font-weight: 500;
    font-size: 23px;
}

header nav a:hover {
    text-decoration: underline;
}

main {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

/* ===== مودال الفحص ===== */
.modal {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    color: #000;
    width: 87%;
    max-width: 570px;
    padding: 10px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    text-align: center;
    z-index: 9999;
    font-weight: 700;
    height: auto;
    min-height: unset;
}

#loading {
    display: none;
    margin: 20px auto;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #ffa600;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

#loading-text {
    display: none;
    text-align: center;
    margin-top: 10px;
    font-size: 16px;
    font-weight: bold;
    color: #fff;
}

.close {
    position: absolute;
    top: 11px;
    right: 24px;
    font-size: 40px;
    border: none;
    background: transparent;
    color: #c0abab;
    cursor: pointer;
    font-weight: 500;
}

.close:hover {
    color: #000;
}

/* ===== الصور والنصوص ===== */
.device-img {
    max-width: 160px;
    margin: 15px auto;
    display: block;
    filter: drop-shadow(3px 3px 3px #dcdede);
}

.model-title {
    color: #595959;
    font-size: 30px;
    font-weight: 600;
    margin-bottom: 18px;
    background: #ffffff;
}

.detail-line {
    margin: 1px 0;
    font-size: 18px;
    font-weight: 300;
    color: #595959;
    word-wrap: break-word;
}

.color-badge {
    padding: 4px 12px;
    border-radius: 15px;
    display: unset;
    color: #ffffff;
    margin-left: 4px;
    font-size: 13px;
    font-weight: 700;
    text-align: center;
}

/* ===== الفوتر ===== */
footer {
    background-color: #113160;
    color: #c9d1d9;
}

footer a {
    color: #c9d1d9;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

.footer-n {
    margin-top: 0px;
    font-size: 15px;
    color: #595959;
    font-weight: 200;
}

.footer-n strong {
    display: block;
    font-size: 18px;
    margin-bottom: 0px;
    font-weight: 600;
}

.footer-n hr {
    margin: 10px auto;
    width: 100%;
    border: none;
    height: 1px;
    background-color: #8f8b8b;
}

/* ===== أزرار تسجيل الدخول ===== */
.custom-login-btn {
    font-size: 15px;
    padding: 8px 14px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.nav3 {
    font-size: 20px !important;
    color: #000;
}

/* ===== صندوق فحص IMEI ===== */
.imei-container {
    background: #113160;
    padding: 40px;
    border-radius: 20px;
    max-width: 600px;
    width: 100%;
    text-align: center;
    color: #fff;
    box-shadow: 0px 0px 25px rgb(252 157 54) !important;
}

.imei-container h1 {
    font-size: 22px;
    margin-bottom: 20px;
    color: #f2f7f8;
    font-weight: 600;
}

.imei-box {
    display: flex;
    align-items: center;
    background: #ffffff;
    border-radius: 50px;
    padding: 8px 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    width: 95%;
}

.imei-box input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 16px;
    padding: 12px 18px;
    border-radius: 50px;
    background: transparent;
    color: #333;
    text-align: center;
}

.check-btn {
    background: #2563eb;
    color: #fff;
    font-size: 16px;
    padding: 12px 22px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-weight: bold;
    white-space: nowrap;
    transition: 0.3s;
}

.check-btn:hover {
    background: #1e4fc6;
}

/* ===== ميديا كويريز ===== */
@media (max-width: 768px) {
    .modal {
        width: 95%;
        max-width: none;
        padding: 20px;
    }

    .model-title {
        font-size: 18px;
    }

    .detail-line {
        font-size: 16px;
    }

    .device-img {
        max-width: 120px;
    }

    .color-badge {
        padding: 3px 10px;
        font-size: 12px;
    }

    .imei-container {
        padding: 25px;
        border-radius: 20px;
        max-width: 600px;
        width: 100%;
    }

    .imei-box {
        flex-direction: column;
        align-items: stretch;
        border-radius: 20px;
        padding: 15px;
    }

    .imei-box input {
        width: 100%;
        font-size: 15px;
        margin-bottom: 10px;
        border: 1px solid #ccc;
        border-radius: 10px;
        background: #fafafa;
    }

    .check-btn {
        width: 100%;
        border-radius: 10px;
        font-size: 14px;
        padding: 12px 22px;
        font-weight: 600;
    }

    .custom-login-btn {
        font-size: 14px;
        padding: 7px 12px;
    }
}

@media (max-width: 480px) {
    .modal {
        width: 98%;
        padding: 15px;
    }

    .model-title {
        font-size: 18px;
    }

    .detail-line {
        font-size: 14px;
    }

    .device-img {
        max-width: 100px;
    }

    .color-badge {
        padding: 2px 8px;
        font-size: 11px;
    }

    .custom-login-btn {
        font-size: 13px;
        padding: 6px 10px;
    }
}


.ad-left, .ad-right {
    position: fixed;
    top: 126px; /* النزول قليلًا عن الأعلى */
    width: 235px; /* عرض أكبر */
    height: 400px; /* ارتفاع أكبر */
    z-index: 999;
}

.ad-left { left: 5px; }  /* اقرب قليلًا للجانب */
.ad-right { right: 5px; } /* اقرب قليلًا للجانب */

@media (max-width: 992px) {
    .ad-left, .ad-right { display: none; } /* إخفاء على الأجهزة الصغيرة */
}

