* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

body {
    font-family: var(--font-ar);
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--white);
    -webkit-overflow-scrolling: touch;
}

body.lang-en {
    font-family: var(--font-en);
}

a {
    color: inherit;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: 1200px;
    margin-inline: auto;
    padding-inline: 20px;
}

.skip-link {
    position: absolute;
    inset-inline-start: -999px;
    top: 0;
    background: var(--primary-color);
    color: var(--white);
    padding: 0.75rem 1.25rem;
    z-index: 2000;
}

.skip-link:focus {
    inset-inline-start: 0;
}

button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
a:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

.btn {
    display: inline-block;
    border: none;
    border-radius: var(--border-radius);
    padding: 0.65rem 1.25rem;
    cursor: pointer;
    font-weight: 600;
    font-family: inherit;
    text-decoration: none;
    transition: var(--transition);
}

.btn-primary {
    background: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--primary-light);
}

.btn-secondary {
    background: var(--secondary-color);
    color: var(--text-dark);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: var(--accent-color);
}

.btn-danger {
    background: #c0392b;
    color: var(--white);
}

.btn-danger:hover {
    background: #a93226;
}

.btn-small {
    padding: 0.35rem 0.75rem;
    font-size: 0.85rem;
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.05rem;
}

.empty-state {
    color: var(--text-light);
    text-align: center;
    padding: 2rem 0;
}

.notification {
    position: fixed;
    top: 90px;
    inset-inline-end: 20px;
    background: var(--text-dark);
    color: var(--white);
    padding: 0.9rem 1.25rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-hover);
    z-index: 2000;
    display: flex;
    gap: 1rem;
    align-items: center;
    max-width: 320px;
}

.notification-success {
    background: #1e8449;
}

.notification-error {
    background: #c0392b;
}

.notification-close {
    background: none;
    border: none;
    color: inherit;
    font-size: 1.1rem;
    cursor: pointer;
    line-height: 1;
}

.honeypot-field {
    position: absolute;
    inset-inline-start: -9999px;
    top: -9999px;
    opacity: 0;
    height: 0;
    overflow: hidden;
}
