*, *::before, *::after {
    box-sizing: border-box;
    font-family: inherit;
}

html {
    font-family: var(--ej-font-ui);
    background: #16150F;
    color: #F5F2EA;
    scroll-behavior: smooth;
    scroll-padding-top: 112px;
}

body {
    margin: 0;
    padding: 0;
    background: #16150F;
    color: #F5F2EA;
    font-family: var(--ej-font-ui);
    -webkit-font-smoothing: antialiased;
}

/* Page top padding to account for fixed floating header */
.ej-landing-page,
.ej-page {
    padding-top: 96px;
}

@media (max-width: 1023px) {
    body {
        padding-bottom: calc(92px + env(safe-area-inset-bottom));
    }
    .ej-landing-page,
    .ej-page {
        padding-top: calc(84px + env(safe-area-inset-top));
    }
}

a {
    color: #F5F2EA;
    text-decoration: none;
    transition: color 0.2s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.2s ease;
}

a:hover {
    color: #E5531E;
}

::selection {
    background: #E5531E;
    color: #16150F;
}

input, textarea, select, button, option, optgroup, input::file-selector-button {
    font-family: inherit;
    font-size: inherit;
    color: inherit;
}
input::placeholder, textarea::placeholder { font-family: inherit; }
.ej-inline-icon { display: inline-block; width: 1em; height: 1em; flex: none; vertical-align: -.125em; }
.ej-arrow-next:dir(rtl), .ej-arrow-back { transform: scaleX(-1); }
.ej-arrow-back:dir(rtl) { transform: none; }

/* Every interactive control retains a visible keyboard focus indicator. */
:focus-visible { outline: 3px solid #F0C060; outline-offset: 4px; }
h1:focus, main:focus { outline: none; }
img { max-width: 100%; }
/* Arabic-Indic digits resolve separators as RTL even in an LTR isolate.
   These explicit numeric values preserve their authored date/range/fraction order. */
.ej-localized-number { direction: ltr; unicode-bidi: isolate-override; }
[hidden] { display: none !important; }
.ej-dialog-open { overflow: hidden; }
.ej-skip-link {
    position: fixed;
    inset-inline-start: 16px;
    top: -100px;
    z-index: 100;
    padding: 14px 20px;
    color: var(--ej-ink);
    background: var(--ej-cream);
    border-radius: 12px;
}
.ej-skip-link:focus { top: 12px; }
.ej-form-notice { padding: 14px; border-inline-start: 3px solid var(--ej-orange); line-height: 1.8; }
.ej-form-success { border-inline-start-color: #5DB07E; }
.ej-form-fields { display: flex; flex-direction: column; gap: 18px; margin: 0; padding: 0; border: 0; min-inline-size: 0; }
.ej-form-fields:disabled { opacity: .8; }
.ej-honeypot { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
button:disabled { cursor: not-allowed; }
html[lang="ar"] :is(h1,h2,h3,h4,p,span,div,button,a,label) { letter-spacing: normal; }
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Animations */
@keyframes ejfloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes ejorbit {
    to { transform: rotate(360deg); }
}

@keyframes ejmqL {
    to { transform: translateX(-50%); }
}

@keyframes ejmqR {
    from { transform: translateX(-50%); }
    to { transform: translateX(0); }
}

@keyframes ejpulse {
    0% { box-shadow: 0 0 0 0 rgba(229, 83, 30, 0.6); }
    100% { box-shadow: 0 0 0 14px rgba(229, 83, 30, 0); }
}

@keyframes ejspin {
    to { transform: rotate(360deg); }
}

@keyframes ejshimmer {
    0% { background-position: 100% 0; }
    100% { background-position: -100% 0; }
}

.ej-float {
    animation: ejfloat 5s ease-in-out infinite;
}

.ej-pulse {
    animation: ejpulse 2s cubic-bezier(0.24, 0, 0.38, 1) infinite;
}

/* Base button and card utilities */
.ej-card {
    background: #1F1E17;
    border: 1px solid rgba(245, 242, 234, 0.08);
    border-radius: 24px;
    padding: 32px;
    transition: all 0.3s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.ej-card:hover {
    border-color: rgba(229, 83, 30, 0.55);
    transform: translateY(-4px);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.4);
}

.ej-nav-link {
    color: #B9B2A3;
    font-family: var(--ej-font-ui);
    font-weight: 500;
    font-size: 15px;
    transition: color 0.2s ease;
}

.ej-nav-link:hover {
    color: #F5F2EA;
}

.ej-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.06em;
}

.ej-btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 999px;
    background: #E5531E;
    color: #16150F !important;
    font-family: var(--ej-font-ui);
    font-weight: 700;
    font-size: 15.5px;
    text-decoration: none;
    box-shadow: 0 6px 20px rgba(229, 83, 30, 0.35);
    transition: all 0.25s cubic-bezier(0.2, 0.7, 0.2, 1);
    cursor: pointer;
}

.ej-btn-primary:hover {
    background: #F5F2EA;
    color: #16150F !important;
    transform: translateY(-2px);
    box-shadow: 0 10px 26px rgba(245, 242, 234, 0.25);
}

.ej-btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 999px;
    background: rgba(245, 242, 234, 0.04);
    border: 1.5px solid rgba(245, 242, 234, 0.28);
    color: #F5F2EA !important;
    font-family: var(--ej-font-ui);
    font-weight: 600;
    font-size: 15.5px;
    text-decoration: none;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.25s cubic-bezier(0.2, 0.7, 0.2, 1);
    cursor: pointer;
}

.ej-btn-outline:hover {
    border-color: #E5531E;
    color: #E5531E !important;
    background: rgba(229, 83, 30, 0.1);
    transform: translateY(-2px);
}
