:root {
    --wasseni-primary: #f5365c;
    --wasseni-primary-deep: #d92047;
    --wasseni-primary-soft: rgba(245, 54, 92, 0.12);
    --wasseni-ink: #14151a;
    --wasseni-muted: #6b7280;
    --wasseni-surface: rgba(255, 255, 255, 0.92);
}

* {
    box-sizing: border-box;
}

html[lang="ar"] body {
    font-family: "Tahoma", "Arial", sans-serif;
}

body {
    min-height: 100vh;
    margin: 0;
    font-family: "Open Sans", "Segoe UI", sans-serif;
    background:
        radial-gradient(circle at top left, rgba(245, 54, 92, 0.18), transparent 34%),
        radial-gradient(circle at bottom right, rgba(106, 159, 255, 0.14), transparent 30%),
        linear-gradient(135deg, #fff7f8 0%, #ffffff 58%, #f4f8ff 100%);
    color: var(--wasseni-ink);
}

.page-shell {
    min-height: 100vh;
    padding: 32px 20px 56px;
}

.page-inner {
    width: 100%;
    margin: 0 auto;
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.topbar-brand {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.topbar-brand .brand-logo {
    width: min(100%, 12rem);
    display: block;
}

.topbar-brand .brand-logo img {
    width: 100%;
    height: auto;
    display: block;
    filter: drop-shadow(0 14px 26px rgba(20, 21, 26, 0.08));
}

.language-switcher {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.76);
    border: 1px solid rgba(20, 21, 26, 0.08);
    box-shadow: 0 18px 34px rgba(20, 21, 26, 0.08);
}

.language-button {
    border: 0;
    background: transparent;
    color: var(--wasseni-muted);
    border-radius: 999px;
    padding: 10px 16px;
    font: inherit;
    font-size: 0.92rem;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.language-button.is-active {
    background: #ffffff;
    color: var(--wasseni-primary-deep);
    box-shadow: 0 10px 20px rgba(20, 21, 26, 0.08);
}

.language-button:hover {
    transform: translateY(-1px);
}

[data-lang-target] {
    transition: opacity 180ms ease;
}

@media (max-width: 991.98px) {
    .page-shell {
        padding: 24px 16px 40px;
    }

    .topbar {
        flex-direction: column;
        align-items: stretch;
    }

    .topbar-brand {
        justify-content: center;
    }
}

@media (max-width: 640px) {
    .language-switcher {
        width: 100%;
        justify-content: center;
    }

    .language-button {
        flex: 1 1 0;
        text-align: center;
    }

    .topbar-brand .brand-logo {
        width: min(100%, 10rem);
    }
}
