body.promo-active {
    direction: ltr;
    background: #f5f7fb;
    color: #14233b;
    font-family: Tajawal, Cairo, sans-serif;
}

html[dir="rtl"] body.promo-active {
    direction: rtl;
}

body.promo-active #loginView {
    font-family: Tajawal, Cairo, sans-serif;
}

#loginView h1,
#loginView h2,
#loginView h3,
#loginView .promo-btn,
#loginView .promo-lang,
#loginView .promo-kicker,
#loginView .promo-pill {
    font-family: Cairo, Tajawal, sans-serif;
}

.promo-wrap {
    width: min(1120px, calc(100% - 40px));
    margin: 0 auto;
}

.promo-header {
    position: sticky;
    top: 0;
    z-index: 40;
    display: flex;
    align-items: center;
    gap: 18px;
    min-height: 78px;
    padding: 10px 22px;
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid rgba(20, 35, 59, 0.08);
    backdrop-filter: blur(14px);
}

.promo-header.is-scrolled {
    box-shadow: 0 10px 28px rgba(20, 35, 59, 0.08);
}

.promo-brand img,
.promo-logo-lg,
#loginView .login-brand img {
    display: block;
    width: auto;
    background: #fff;
}

.promo-brand img {
    height: 52px;
}

.promo-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-inline-start: auto;
}

.promo-nav a {
    padding: 8px 12px;
    border-radius: 999px;
    color: #3e5270;
    font-weight: 700;
}

.promo-nav a:hover {
    color: #10233f;
    background: rgba(18, 49, 92, 0.06);
}

.promo-header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.promo-lang,
.promo-menu {
    border: 1px solid rgba(16, 35, 63, 0.16);
    background: #fff;
    color: #10233f;
    cursor: pointer;
}

.promo-lang {
    min-width: 46px;
    height: 40px;
    border-radius: 999px;
    font-weight: 800;
}

.promo-menu {
    display: none;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    font-size: 1.05rem;
}

.promo-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 20px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease;
}

.promo-btn:hover {
    transform: translateY(-2px);
}

.promo-btn-solid {
    background: #12315c;
    color: #fff;
}

.promo-btn-line {
    border-color: rgba(18, 49, 92, 0.22);
    color: #12315c;
    background: #fff;
}

.promo-hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 540px);
    align-items: center;
    text-align: start;
    gap: 40px;
    padding: 56px 6vw 64px;
    overflow: hidden;
    color: #fff;
    background: #071020;
}

.promo-slides,
.promo-slide {
    position: absolute;
    inset: 0;
}

.promo-slides {
    z-index: 0;
}

.promo-slide {
    background-position: center;
    background-size: cover;
    opacity: 0;
    transition: opacity 1.2s ease;
}

.promo-slide.is-on {
    opacity: 1;
}

.promo-slide::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(7, 16, 32, 0.62), rgba(7, 16, 32, 0.28));
}

html[dir="rtl"] .promo-slide::after {
    background: linear-gradient(to left, rgba(7, 16, 32, 0.62), rgba(7, 16, 32, 0.28));
}

.promo-hero-copy,
.promo-stage {
    position: relative;
    z-index: 1;
}

.promo-hero-copy {
    width: min(640px, 100%);
    max-width: 100%;
    min-width: 0;
}

.promo-kicker {
    margin-bottom: 8px;
    color: #e8c98a;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.promo-hero h1 {
    font-size: clamp(2.6rem, 5vw, 4.2rem);
    line-height: 1.05;
    color: #fff;
}

.promo-lead,
.promo-note,
.promo-footer p,
.promo-feature-panel p {
    color: #5c708c;
}

.promo-hero .promo-lead {
    max-width: 36em;
    margin: 14px 0 22px;
    color: rgba(255, 255, 255, 0.92);
    font-size: 1.08rem;
}

.promo-hero-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 10px;
}

.promo-hero .promo-btn-line {
    border-color: rgba(255, 255, 255, 0.75);
    color: #fff;
    background: transparent;
}

.promo-stage {
    position: relative;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    min-height: 0;
    display: grid;
    place-items: center;
}

.promo-orbit {
    position: absolute;
    width: min(420px, 92%);
    aspect-ratio: 1;
    border: 1px solid rgba(232, 201, 138, 0.55);
    border-radius: 50%;
    animation: promo-spin 22s linear infinite;
}

.promo-orbit span {
    position: absolute;
    top: -5px;
    left: 50%;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #c9973f;
}

.promo-board {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, 0.55);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.62);
    backdrop-filter: blur(6px);
    box-shadow: 0 10px 28px rgba(7, 16, 32, 0.16);
}

.promo-board-scroll {
    overflow-x: auto;
    max-width: 100%;
}

.promo-board-top {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
    font-size: 0.92rem;
}

.promo-board-top span {
    color: #5d7190;
}

.promo-board-scroll {
    overflow-x: auto;
}

.promo-grid {
    width: 100%;
    border-collapse: separate;
    border-spacing: 4px;
    font-size: 0.82rem;
}

#loginView .promo-grid thead {
    background: transparent;
    color: #5d7190;
}

#loginView .promo-grid th,
#loginView .promo-grid td {
    padding: 0;
    text-align: center;
    border: 0;
}

#loginView .promo-grid tbody tr,
#loginView .promo-grid tbody tr:hover {
    border: 0;
    background: transparent;
}

.promo-person {
    text-align: start;
    white-space: nowrap;
}

.promo-person small {
    display: block;
    color: #5d7190;
    font-weight: 500;
}

.promo-grid .duty {
    display: inline-grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    font-weight: 800;
}

.promo-grid .duty.is-dim {
    opacity: 0.22;
}

.promo-codes {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.promo-code {
    border: 0;
    border-radius: 999px;
    padding: 7px 12px;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
}

.promo-code.is-on {
    outline: 2px solid #12315c;
    outline-offset: 2px;
}

.promo-section {
    padding: 64px 0;
}

.promo-section-alt {
    background: #fff;
}

#about {
    position: relative;
    overflow: hidden;
    color: #fff;
    background:
        linear-gradient(rgba(7, 16, 32, 0.72), rgba(7, 16, 32, 0.72)),
        url('/images/about-night.jpg') center / cover no-repeat;
}

.promo-radar {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    transition: transform 0.35s ease-out;
}

.promo-radar-spin {
    position: absolute;
    top: 50%;
    left: 50%;
    width: min(820px, 130%);
    aspect-ratio: 1;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    background:
        conic-gradient(from 0deg, transparent 0 72%, rgba(232, 201, 138, 0.34) 86%, transparent 100%),
        radial-gradient(circle, transparent 34%, rgba(232, 201, 138, 0.28) 35%, transparent 36%),
        radial-gradient(circle, transparent 52%, rgba(232, 201, 138, 0.2) 53%, transparent 54%),
        radial-gradient(circle, transparent 70%, rgba(232, 201, 138, 0.16) 71%, transparent 72%),
        radial-gradient(circle, transparent 88%, rgba(232, 201, 138, 0.12) 89%, transparent 90%);
    animation: promo-radar 28s linear infinite;
}

@keyframes promo-radar {
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

#about .promo-wrap {
    position: relative;
    z-index: 1;
}

#about h2,
#about h3 {
    color: #fff;
}

#about .promo-about p,
#about .promo-note,
#about .promo-about-points span,
#about .promo-steps span {
    color: rgba(255, 255, 255, 0.9);
}

.promo-section h2 {
    margin-top: 8px;
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    color: #10233f;
}

.promo-note {
    max-width: 46em;
    margin: 8px 0 22px;
}

.promo-pill {
    display: inline-flex;
    margin: 0;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(18, 49, 92, 0.08);
    color: #12315c;
    font-size: 0.82rem;
    font-weight: 800;
}

.promo-feature-tabs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(148px, 1fr));
    gap: 12px;
}

.promo-feature-tab {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    min-height: 124px;
    padding: 18px 16px;
    border: 1px solid rgba(18, 49, 92, 0.1);
    border-radius: 18px;
    background: #fff;
    color: #243754;
    font: inherit;
    font-weight: 700;
    text-align: start;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.promo-feature-tab i {
    color: #c9973f;
    font-size: 2.2rem;
}

.promo-feature-tab:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 24px rgba(16, 35, 63, 0.08);
}

.promo-feature-tab.is-on {
    background: #12315c;
    color: #fff;
    border-color: #12315c;
    transform: translateY(-3px);
}

.promo-feature-tab.is-on i {
    color: #e8c98a;
}

.promo-feature-panel {
    display: flex;
    align-items: flex-start;
    gap: 22px;
    margin-top: 16px;
    padding: 28px;
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 14px 34px rgba(16, 35, 63, 0.06);
    animation: promo-panel 0.35s ease;
}

.promo-feature-panel > i {
    font-size: 3rem;
    color: #c9973f;
}

.promo-feature-panel h3 {
    margin-bottom: 8px;
    font-size: 1.45rem;
}

.promo-about {
    display: grid;
    grid-template-columns: 1.3fr 0.8fr;
    gap: 28px;
    align-items: start;
}

.promo-about-points {
    display: grid;
    gap: 12px;
    list-style: none;
}

.promo-about-points li {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
    min-height: 132px;
    padding: 22px 18px;
    border: 1px solid rgba(232, 201, 138, 0.45);
    border-radius: 22px;
    background: rgba(8, 18, 36, 0.55);
    backdrop-filter: blur(8px);
}

.promo-about-points i {
    color: #e8c98a;
    font-size: 2.2rem;
}

.promo-path {
    margin-top: 40px;
}

.promo-path h3 {
    font-size: 1.6rem;
    color: #fff;
}

.promo-steps {
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.promo-steps::before {
    content: "";
    position: absolute;
    top: 38px;
    inset-inline: 8%;
    height: 1px;
    background: linear-gradient(90deg, transparent, #e8c98a, transparent);
}

.promo-steps li {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-height: 168px;
    padding: 20px 16px;
    border: 1px solid rgba(232, 201, 138, 0.45);
    border-radius: 20px;
    background: rgba(8, 18, 36, 0.55);
    backdrop-filter: blur(8px);
}

.promo-steps i {
    color: #e8c98a;
    font-size: 1.8rem;
}

.promo-steps strong {
    color: #fff;
    font-size: 1.05rem;
}

.promo-steps span {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
}

.promo-footer {
    padding-top: 36px;
    background: #10233f;
    color: #fff;
}

.promo-footer-grid {
    display: grid;
    grid-template-columns: 1.3fr 1.1fr 0.9fr;
    gap: 24px;
    padding-bottom: 24px;
}

.promo-logo-lg {
    height: 64px;
    margin-bottom: 10px;
    border-radius: 12px;
}

.promo-footer h3 {
    margin-bottom: 10px;
    font-size: 1rem;
}

.promo-footer a,
.promo-footer p {
    display: block;
    margin-bottom: 8px;
    color: rgba(255, 255, 255, 0.82);
}

.promo-footer a:hover {
    color: #fff;
}

.promo-footer-bottom {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.78);
}

.promo-footer-bottom a {
    display: inline;
    margin: 0;
    color: #fff;
}

#loginView .login-brand img {
    height: auto;
    width: min(100%, 280px);
}

#loginView .btn-primary {
    background: #12315c;
    box-shadow: none;
}

#loginView .signin-layer {
    background:
        linear-gradient(rgba(7, 16, 32, 0.72), rgba(7, 16, 32, 0.78)),
        url('/images/about-night.jpg') center / cover no-repeat;
}

#loginView .login-card {
    border: 1px solid rgba(232, 201, 138, 0.55);
    border-radius: 28px;
    box-shadow: 0 24px 60px rgba(7, 16, 32, 0.28);
}

#home,
#features,
#about,
#contact,
#board {
    scroll-margin-top: 92px;
}

@keyframes promo-spin {
    to { transform: rotate(360deg); }
}

@media (max-width: 980px) {
    .promo-hero,
    .promo-about,
    .promo-footer-grid {
        grid-template-columns: 1fr;
    }

    .promo-hero {
        text-align: center;
        padding: 40px 16px 48px;
    }

    .promo-hero .promo-lead {
        margin-inline: auto;
    }

    .promo-hero-actions {
        justify-content: center;
    }
}

@media (max-width: 800px) {
    .promo-header {
        position: sticky;
    }

    .promo-menu {
        display: grid;
        place-items: center;
        margin-inline-start: auto;
    }

    .promo-nav {
        display: none;
        position: absolute;
        inset-inline: 0;
        top: 100%;
        flex-direction: column;
        align-items: stretch;
        margin: 0;
        padding: 12px;
        background: #fff;
        box-shadow: 0 16px 30px rgba(16, 35, 63, 0.12);
    }

    .promo-nav.open {
        display: flex;
    }

    .promo-header-actions .promo-btn {
        display: none;
    }

    .promo-brand img {
        height: 42px;
    }

    .promo-hero {
        padding: 36px 16px 40px;
    }

    .promo-hero h1 {
        font-size: 2.2rem;
    }

    .promo-steps {
        grid-template-columns: 1fr;
    }

    .promo-steps::before {
        display: none;
    }

    .promo-footer a {
        overflow-wrap: anywhere;
    }

    .promo-footer-bottom {
        flex-wrap: wrap;
        padding-inline: 16px;
    }
}

@keyframes promo-panel {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .promo-orbit,
    .promo-btn,
    .promo-feature-panel {
        animation: none;
        transition: none;
    }

    .promo-slide {
        transition: none;
    }

    .promo-radar {
        transition: none;
    }

    .promo-radar-spin {
        animation: none;
    }

    .promo-feature-tab:hover,
    .promo-feature-tab.is-on {
        transform: none;
    }
}

.legal-page {
    box-sizing: border-box;
    min-height: 100vh;
    margin: 0;
    padding: 24px 16px 48px;
    background:
        linear-gradient(180deg, rgba(7, 16, 32, 0.35), rgba(7, 16, 32, 0.45)),
        url('/images/tower.jpg') center / cover no-repeat fixed;
    color: #10233f;
    font-family: Tajawal, Cairo, sans-serif;
}

.legal-page *,
.legal-page *::before,
.legal-page *::after {
    box-sizing: border-box;
}

.legal-card {
    position: relative;
    width: min(860px, 100%);
    margin: 0 auto;
    padding: 28px 22px 36px;
    border: 1px solid rgba(255, 255, 255, 0.55);
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.78);
    backdrop-filter: blur(10px);
}

.legal-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.7);
    color: #12315c;
    font-weight: 700;
}

.legal-card h1 {
    margin: 0 0 12px;
    font-family: Cairo, Tajawal, sans-serif;
    font-size: clamp(1.6rem, 4vw, 2.1rem);
    color: #0e7c86;
}

.legal-card h2 {
    margin: 22px 0 8px;
    font-family: Cairo, Tajawal, sans-serif;
    color: #128a96;
    font-size: 1.25rem;
}

.legal-card h3 {
    margin: 14px 0 6px;
    color: #1497a3;
    font-size: 1.02rem;
}

.legal-card p,
.legal-card li {
    color: #243754;
    line-height: 1.7;
    overflow-wrap: anywhere;
}

.legal-card ul {
    margin: 0;
    padding-inline-start: 1.2rem;
}

.legal-lang {
    position: absolute;
    top: 18px;
    inset-inline-end: 18px;
    border: 1px solid rgba(16, 35, 63, 0.16);
    background: #fff;
    border-radius: 999px;
    min-width: 46px;
    height: 36px;
    font-weight: 800;
    cursor: pointer;
}

html[dir="rtl"] .legal-back i {
    transform: scaleX(-1);
}
