@media (prefers-color-scheme: dark) {
    body {
        background-color: #101114;
    }
}

html {
    scroll-padding-top: 100px;
}

body {
    overflow-x: hidden;
}

body {
    font-family: 'Manrope', sans-serif;
    scroll-behavior: smooth;
    margin: 0;
    padding: 0;
    color: #f5f2ea;
    background:
        radial-gradient(circle at top left, rgba(226, 179, 59, 0.14), transparent 28%),
        radial-gradient(circle at bottom right, rgba(226, 179, 59, 0.10), transparent 26%),
        linear-gradient(180deg, #131417 0%, #0d0e11 100%);
    background-color: #101114;
}

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

h1,
h2,
h3,
h4,
h5 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
}

.navbar {
    background: rgba(112, 24, 52, 0.96);
    padding: 14px 0;
    transition: top 0.3s, padding 0.3s;
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.18);
    backdrop-filter: blur(12px);
}

.navbar-brand {
    font-weight: 800;
    color: #f6effb !important;
    letter-spacing: 0.01em;
}

.brand-name {
    display: inline-flex;
    align-items: center;
}

.site-wordmark {
    display: inline-flex;
    align-items: center;
    gap: 0.28em;
    font-family: 'Outfit', sans-serif;
    font-size: 1.05em;
    font-weight: 400;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    line-height: 1;
    white-space: nowrap;
}

.site-wordmark-primary {
    color: #f8f3e8;
}

.site-wordmark-secondary {
    color: #18b8ff;
}

.navbar-brand img {
    height: var(--header-logo-height, 64px);
    width: auto;
    max-width: var(--header-logo-width, 180px);
    object-fit: contain;
    border: 0;
    box-shadow: none;
    border-radius: 0;
    background: transparent;
}

.nav-link {
    font-weight: 600;
    color: rgba(246, 239, 251, 0.9) !important;
    margin-left: 20px;
    position: relative;
}

.nav-link:hover {
    color: #ffffff !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 0;
    height: 2px;
    background: #f0c75f;
    transition: width 0.25s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-item-cta .nav-link::after {
    display: none;
}

.nav-link-cta {
    margin-left: 28px;
    padding: 11px 18px !important;
    border-radius: 999px;
    background: #f0c75f;
    color: #3a1220 !important;
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.16);
}

.nav-link-cta:hover {
    background: #ffffff;
    color: #3a1220 !important;
}

.navbar.sticky-hidden {
    top: -120px;
}

.navbar-toggler {
    border: 0;
    padding: 8px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.12);
}

.navbar-toggler:focus {
    box-shadow: none;
}

.navbar-toggler-icon {
    background-image: none;
    width: 24px;
    height: 24px;
    position: relative;
}

.navbar-toggler-icon::before,
.navbar-toggler-icon::after,
.navbar-toggler-icon {
    display: block;
}

.navbar-toggler-icon::before,
.navbar-toggler-icon::after {
    content: '';
    position: absolute;
    left: 2px;
    right: 2px;
    height: 2px;
    background: #f6effb;
    border-radius: 999px;
}

.navbar-toggler-icon::before {
    top: 6px;
    box-shadow: 0 6px 0 #f6effb;
}

.navbar-toggler-icon::after {
    bottom: 4px;
}

footer {
    background: #090a0c;
    color: #f5f2ea;
    text-align: center;
    margin-bottom: 0 !important;
    padding: 36px 0 120px;
}

.bottom-bar {
    position: fixed;
    bottom: 0;
    width: 100%;
    background: rgba(112, 24, 52, 0.96);
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 18px 0;
    z-index: 1000;
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.2);
}

.bottom-bar a {
    color: #f8f3e8;
    font-size: 22px;
    text-decoration: none;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.12);
}

.bottom-bar a:hover {
    color: #ffffff;
    background: rgba(240, 199, 95, 0.22);
}

.back-to-top {
    position: fixed;
    bottom: 90px;
    right: 20px;
    z-index: 999;
    width: 50px;
    height: 50px;
    background-color: #e2b33b;
    color: #101114;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.back-to-top:hover {
    background-color: #c69622;
    color: white;
}

.lang-switcher {
    position: relative;
    display: inline-flex;
}

.lang-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: rgba(17, 18, 21, 0.98);
    border-radius: 12px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.22);
    z-index: 1000;
    border: 1px solid rgba(255, 255, 255, 0.08);
    min-width: 86px;
    overflow: hidden;
}

.lang-dropdown a {
    display: block;
    padding: 8px 16px;
    color: #f8f3e8;
    text-decoration: none;
    font-weight: 500;
}

.lang-dropdown a:hover {
    background-color: rgba(255, 255, 255, 0.06);
}

.seo-hidden {
    position: absolute !important;
    left: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    white-space: nowrap !important;
}

.section-heading {
    max-width: 760px;
    margin: 0 auto 48px;
}

.section-heading h2 {
    font-size: clamp(2rem, 3vw, 3.4rem);
    margin-bottom: 14px;
    color: #f8f3e8;
}

.section-heading p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: rgba(245, 242, 234, 0.74);
    margin: 0;
}

.section-kicker {
    display: inline-block;
    padding: 8px 14px;
    margin-bottom: 18px;
    border-radius: 999px;
    background: rgba(226, 179, 59, 0.14);
    border: 1px solid rgba(226, 179, 59, 0.32);
    color: #e8be59;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.footer-content {
    max-width: 720px;
}

.footer-content strong {
    display: block;
    font-family: 'Outfit', sans-serif;
    font-size: 1.35rem;
    margin-bottom: 10px;
}

.footer-content strong .site-wordmark,
.footer-content small .site-wordmark {
    letter-spacing: 0.12em;
}

.footer-content small .site-wordmark {
    font-size: 0.98em;
}

.footer-content p {
    color: rgba(245, 242, 234, 0.72);
    margin-bottom: 12px;
}

.footer-meta {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 14px;
    color: rgba(245, 242, 234, 0.72);
    font-size: 0.95rem;
    font-weight: 600;
}

.footer-socials {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin: 10px 0 18px;
}

.footer-socials a {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #f8f3e8;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.footer-socials a:hover {
    transform: translateY(-2px);
    background: rgba(226, 179, 59, 0.18);
    color: #f3cb69;
}

.footer-language-switcher {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin: 0;
}

.footer-language-label {
    color: rgba(245, 242, 234, 0.66);
    font-size: 0.88rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.footer-lang-toggle {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.05);
    color: #f8f3e8;
    padding: 10px 14px;
    border-radius: 999px;
    font-weight: 700;
}

.footer-lang-toggle:hover {
    background: rgba(255, 255, 255, 0.08);
}

.footer-language-switcher .lang-dropdown {
    top: calc(100% + 10px);
}

.footer-tools {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
    margin: 20px 0 16px;
}

.footer-install-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    border-radius: 999px;
    text-decoration: none;
    background: #e2b33b;
    color: #111215;
    font-weight: 800;
    box-shadow: 0 14px 28px rgba(226, 179, 59, 0.18);
}

.footer-install-btn:hover {
    color: #111215;
    background: #f0c75f;
}

.footer-privacy-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.05);
    color: #f8f3e8;
    font-weight: 700;
}

.footer-privacy-btn:hover {
    background: rgba(255, 255, 255, 0.08);
}

.cookie-consent {
    position: fixed;
    left: 24px;
    right: 24px;
    bottom: 102px;
    z-index: 1200;
    display: flex;
    justify-content: center;
}

.cookie-consent-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1190;
    background: rgba(7, 8, 10, 0.52);
    backdrop-filter: blur(8px) saturate(0.88);
    -webkit-backdrop-filter: blur(8px) saturate(0.88);
}

.cookie-consent-panel {
    width: min(980px, 100%);
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    padding: 22px 24px;
    border-radius: 28px;
    background: rgba(13, 14, 17, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 24px 55px rgba(0, 0, 0, 0.34);
    backdrop-filter: blur(16px);
}

.cookie-consent-copy h3,
.cookie-preferences-header h3 {
    font-family: 'Outfit', sans-serif;
    margin: 0 0 8px;
    color: #f8f3e8;
}

.cookie-consent-copy p,
.cookie-preferences-intro,
.cookie-option p {
    color: rgba(245, 242, 234, 0.74);
    margin: 0;
    line-height: 1.75;
}

.cookie-consent-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.cookie-preferences {
    position: fixed;
    inset: 0;
    z-index: 1250;
}

.cookie-preferences-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.54);
    backdrop-filter: blur(6px);
}

.cookie-preferences-panel {
    position: relative;
    width: min(720px, calc(100% - 28px));
    margin: 8vh auto 0;
    padding: 24px;
    border-radius: 28px;
    background: #111215;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.34);
}

.cookie-preferences-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 14px;
}

.cookie-close-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
}

.cookie-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 18px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.cookie-option strong {
    display: block;
    margin-bottom: 6px;
    color: #f8f3e8;
}

.cookie-switch {
    position: relative;
    width: 58px;
    height: 34px;
    flex: 0 0 auto;
}

.cookie-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.cookie-switch span {
    position: absolute;
    inset: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    transition: background 0.2s ease;
}

.cookie-switch span::before {
    content: '';
    position: absolute;
    top: 4px;
    left: 4px;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #fff;
    transition: transform 0.2s ease;
}

.cookie-switch input:checked + span {
    background: #e2b33b;
}

.cookie-switch input:checked + span::before {
    transform: translateX(24px);
}

[data-reveal] {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-reveal].is-visible {
    opacity: 1;
    transform: translateY(0);
}

body.cookie-consent-open {
    overflow: hidden;
}

@media (min-width: 992px) {
    .cookie-consent {
        left: 24px;
        right: 24px;
        bottom: 24px;
        justify-content: center;
    }

    .cookie-consent-backdrop {
        background: rgba(7, 8, 10, 0.12);
        backdrop-filter: blur(1.5px) saturate(0.98);
        -webkit-backdrop-filter: blur(1.5px) saturate(0.98);
    }

    .cookie-consent-panel {
        width: min(980px, 100%);
        padding: 18px 22px;
        border-radius: 20px;
        background: rgba(13, 14, 17, 0.88);
        box-shadow: 0 14px 30px rgba(0, 0, 0, 0.18);
    }

    .cookie-consent-copy h3 {
        font-size: 1.08rem;
    }

    .cookie-consent-copy p {
        font-size: 0.92rem;
    }
}

@media (max-width: 768px) {
    body.cookie-consent-open {
        overflow-x: hidden;
        overflow-y: auto;
    }

    html {
        scroll-padding-top: 88px;
    }

    body.page-home {
        padding-bottom: calc(94px + env(safe-area-inset-bottom, 0px));
    }

    .navbar {
        padding: 10px 0;
    }

    .navbar-brand img {
        max-height: var(--header-logo-height-mobile, 52px);
        max-width: var(--header-logo-width-mobile, 140px);
    }

    .navbar-brand {
        font-size: 1rem;
        max-width: calc(100% - 72px);
        display: inline-flex;
        align-items: center;
        gap: 10px;
    }

    .site-wordmark {
        font-size: 0.92em;
        letter-spacing: 0.08em;
        gap: 0.22em;
    }

    .navbar-collapse {
        margin-top: 14px;
        padding: 16px;
        border-radius: 20px;
        background: rgba(81, 18, 38, 0.98);
        border: 1px solid rgba(255, 255, 255, 0.08);
        box-shadow: 0 18px 34px rgba(0, 0, 0, 0.24);
        backdrop-filter: blur(12px);
    }

    .navbar-nav {
        gap: 8px;
    }

    .navbar .nav-link {
        margin-left: 0;
        margin-top: 0;
        padding: 10px 12px;
        border-radius: 12px;
        color: rgba(246, 239, 251, 0.94) !important;
    }

    .navbar .nav-link:hover {
        background: rgba(255, 255, 255, 0.08);
        color: #ffffff !important;
    }

    .nav-link-cta {
        margin-left: 0;
        display: inline-flex;
        justify-content: center;
        width: 100%;
        margin-top: 8px;
    }

    .section-heading {
        margin-bottom: 32px;
    }

    .footer-language-switcher {
        flex-direction: column;
        gap: 10px;
    }

    .footer-tools {
        flex-direction: column;
    }

    .cookie-consent {
        left: 14px;
        right: 14px;
        bottom: calc(88px + env(safe-area-inset-bottom, 0px));
    }

    .cookie-consent-panel,
    .cookie-preferences-panel {
        padding: 20px;
    }

    .cookie-consent-panel,
    .cookie-option {
        flex-direction: column;
        align-items: stretch;
    }

    .cookie-option {
        gap: 14px;
    }

    .cookie-consent-actions {
        width: 100%;
    }

    .cookie-consent-actions .btn {
        width: 100%;
    }

    .bottom-bar a {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }

    .bottom-bar {
        padding: 14px 0 calc(14px + env(safe-area-inset-bottom, 0px));
    }

    .back-to-top {
        bottom: calc(92px + env(safe-area-inset-bottom, 0px));
        right: 14px;
        width: 46px;
        height: 46px;
    }
}
