:root {
    --brand-900: #4a2613;
    --brand-800: #6b3219;
    --brand-700: #8b4421;
    --brand-500: #c97a38;
    --sand-100: #fff7ec;
    --sand-200: #f6e6d3;
    --white: #ffffff;
    --radius-xl: 24px;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.93);
    border-bottom: 1px solid rgba(201, 122, 56, 0.2);
    backdrop-filter: blur(10px);
}

.header-inner {
    min-height: 86px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.header-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex: 1 1 auto;
}

.header-menu-toggle {
    display: none;
    width: 46px;
    height: 46px;
    border: 1px solid rgba(201, 122, 56, 0.25);
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(255, 247, 236, 0.92), rgba(246, 230, 211, 0.8));
    color: var(--brand-700);
    box-shadow: 0 8px 20px rgba(139, 68, 33, 0.12);
}

.header-menu-toggle .material-icons {
    font-size: 1.9rem;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    color: var(--brand-700);
    text-decoration: none;
}

.logo img {
    height: 48px;
    width: 48px;
    object-fit: contain;
    border-radius: 14px;
    background: var(--sand-100);
    padding: 0.2rem;
    box-shadow: 0 8px 20px rgba(139, 68, 33, 0.18);
}

.logo-text {
    font-family: 'El Messiri', 'Cairo', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.logo-copy {
    display: grid;
    gap: 0.1rem;
}

.auth-header {
    background: rgba(255, 252, 248, 0.94);
}

.auth-header-inner {
    min-height: 74px;
}

.auth-logo {
    gap: 0.75rem;
}

.auth-header-note {
    font-size: 0.92rem;
    font-weight: 700;
    color: rgba(107, 50, 25, 0.7);
    line-height: 1.3;
}

.auth-home-link {
    white-space: nowrap;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.35rem;
    border-radius: 100px;
    background: linear-gradient(135deg, rgba(246, 230, 211, 0.7), rgba(255, 255, 255, 0.85));
}

.header-links {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    flex-wrap: wrap;
}

.main-nav a {
    color: var(--brand-700);
    text-decoration: none;
    font-weight: 800;
    font-size: 1.02rem;
    padding: 0.7rem 1.2rem;
    border-radius: 999px;
    transition: all 0.25s ease;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--white);
    background: linear-gradient(120deg, var(--brand-500), var(--brand-800));
    box-shadow: 0 10px 20px rgba(139, 68, 33, 0.3);
}


.header-icons {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.header-icons a {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #fff8f2;
    color: var(--brand-700);
    text-decoration: none;
    box-shadow: 0 2px 8px #0001;
    transition: box-shadow 0.2s, background 0.2s, color 0.2s, transform 0.18s;
}

.header-icons a:hover {
    box-shadow: 0 4px 16px #0002;
    background: #f3e9d7;
    color: var(--brand-800);
    transform: translateY(-2px) scale(1.07);
}

.header-icons .material-icons {
    font-size: 27px;
    color: var(--brand-700);
    transition: color 0.2s;
}

/* تخصيص لون واتساب فقط */
.header-icons a[title*='واتساب'] .material-icons {
    color: #25D366;
}
.header-icons a[title*='واتساب']:hover {
    background: #eafff2;
}
.header-icons a[title*='واتساب']:hover .material-icons {
    color: #128c4b;
}

/* أيقونات غير مفعلة */
.header-icons a[title*='العروض'],
.header-icons a[title*='اللغة'] {
    opacity: 0.6;
    cursor: not-allowed;
}

.site-footer {
    margin-top: 3.5rem;
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    background:
        radial-gradient(circle at 18% 25%, rgba(246, 230, 211, 0.22), transparent 45%),
        linear-gradient(120deg, var(--brand-700), var(--brand-900));
    color: var(--white);
}

.footer-inner {
    min-height: 158px;
    padding-top: 1.4rem;
    padding-bottom: 1.4rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.95rem;
}

.footer-logo {
    width: 56px;
    height: 56px;
    object-fit: contain;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    padding: 0.2rem;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.65rem 1.2rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.92);
    text-decoration: none;
    font-weight: 700;
}

.footer-links a:hover {
    color: #ffdcb8;
}

.footer-copy {
    font-size: 0.95rem;
    opacity: 0.95;
}

@media (max-width: 960px) {
    .header-inner {
        min-height: auto;
        padding-top: 0.8rem;
        padding-bottom: 0.8rem;
        flex-wrap: wrap;
        justify-content: space-between;
    }

    .header-menu-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .header-panel {
        order: 3;
        width: 100%;
        display: none;
        grid-template-columns: 1fr;
        gap: 0.9rem;
        padding-top: 0.4rem;
    }

    .header-panel.is-open {
        display: grid;
    }

    .main-nav {
        width: 100%;
        justify-content: stretch;
        border-radius: 18px;
        padding: 0.7rem;
    }

    .header-links {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        width: 100%;
        gap: 0.55rem;
    }

    .main-nav a {
        width: 100%;
        text-align: center;
        justify-content: center;
        padding: 0.7rem 0.95rem;
    }

    .header-icons {
        justify-content: center;
        flex-wrap: wrap;
    }

    .logo-text {
        font-size: 1.65rem;
    }

    .auth-header-inner {
        min-height: auto;
        justify-content: space-between;
        flex-wrap: nowrap;
    }
}

@media (max-width: 600px) {
    .main-nav {
        border-radius: 20px;
    }

    .header-links {
        grid-template-columns: 1fr;
    }

    .header-icons {
        gap: 0.55rem;
    }

    .header-icons a {
        width: 42px;
        height: 42px;
    }

    .auth-header-inner {
        gap: 0.75rem;
        align-items: center;
    }

    .auth-logo {
        min-width: 0;
        gap: 0.55rem;
    }

    .auth-logo img {
        width: 42px;
        height: 42px;
    }

    .auth-logo .logo-text {
        font-size: 1.35rem;
    }

    .auth-header-note {
        font-size: 0.82rem;
    }

    .auth-home-link {
        padding: 0.58rem 0.95rem;
        font-size: 0.92rem;
        flex: 0 0 auto;
    }

    .footer-inner {
        min-height: 140px;
    }

    .footer-copy {
        text-align: center;
        line-height: 1.8;
    }
}
