/* أساسيات */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
body {
    font-family: "Cairo", sans-serif;
    line-height: 1.7;
    color: #333;
    background: #fafafa;
}
a {
    text-decoration: none;
    color: inherit;
}
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ألوان العلامة */
:root {
    --brand: #7b5d8c;
    --brand-dark: #6a4e76;
    --brand-mid: #8c6c9f;
    --brand-soft: #b89bc4;
    --line: #e5e7eb;
    --muted: #6b7280;
    --card: #fff;
}

/* Header (مطابق للهوم) */
.header {
    background: linear-gradient(135deg, #8c6c9f 0%, #7b5d8c 100%);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 1000;
}
.nav .nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}
.nav-brand h1 {
    color: #fff;
    font-size: 1.8rem;
    font-weight: 700;
    transition: all 0.3s ease;
}
.nav-brand h1:hover {
    color: #b89bc4;
    transform: scale(1.05);
}
.nav-links {
    display: flex;
    gap: 2rem;
}
.nav-links a {
    color: #fff;
    font-weight: 500;
    position: relative;
}
.nav-links a::after {
    content: "";
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #b89bc4;
    transition: width 0.3s;
}
.nav-links a:hover {
    color: #b89bc4;
}
.nav-links a:hover::after {
    width: 100%;
}
.nav-actions {
    display: flex;
    gap: 1rem;
}
.btn-primary {
    background: linear-gradient(135deg, #6a4e76 0%, #8c6c9f 100%);
    color: #fff;
    border: 0;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    font-weight: 700;
    cursor: pointer;
}
.btn-secondary {
    background: transparent;
    color: #fff;
    border: 2px solid #fff;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    font-weight: 700;
    cursor: pointer;
}
.mobile-menu-btn {
    display: none;
    background: none;
    border: 0;
}

/* Footer (موحّد لكل الصفحات) */
.footer {
    background: linear-gradient(135deg, #6a4e76 0%, #8c6c9f 100%);
    color: #fff;
    padding: 60px 0 20px;
    margin-top: 30px;
}
.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}
.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
    color: #b89bc4;
}
.footer-section ul {
    list-style: none;
}
.footer-section ul li {
    margin-bottom: 0.5rem;
}
.footer-section a {
    color: #fff;
    opacity: 0.95;
}
.footer-section a:hover {
    opacity: 1;
}
.app-links {
    margin-top: 1rem;
}
.app-link {
    display: inline-block;
    margin-top: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
}
.app-link:hover {
    background: rgba(255, 255, 255, 0.2);
}
.app-download-footer {
    text-align: center;
}
.qr-footer img {
    width: 80px;
    height: 80px;
    border-radius: 5px;
    margin-top: 1rem;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 2rem;
}
.footer-social {
    text-align: center;
    margin-bottom: 2rem;
}
.social-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
}
.social-links a {
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    transition: background 0.3s;
}
.social-links a:hover {
    background: rgba(255, 255, 255, 0.2);
}

.footer-countries {
    margin-bottom: 2rem;
}
.footer-countries h4 {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 1.5rem;
}
.countries-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}
.country-section h5 {
    color: #b89bc4;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}
.country-section ul {
    font-size: 0.9rem;
}
.country-section ul li {
    margin-bottom: 0.35rem;
}

.copyright {
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links,
    .nav-actions {
        display: none;
    }
    .mobile-menu-btn {
        display: flex;
        flex-direction: column;
    }
}
