:root {
    --ars-primary: #6366f1;
    --ars-secondary: #111827;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Inter, Cairo, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: #050816;
    color: #f8fafc;
}

html[dir="rtl"] body {
    font-family: Cairo, Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
textarea,
select {
    font: inherit;
}

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

.landing-shell {
    min-height: 100vh;
    background:
        radial-gradient(circle at top left, rgba(99, 102, 241, .28), transparent 32rem),
        radial-gradient(circle at top right, rgba(14, 165, 233, .18), transparent 28rem),
        #050816;
}

.glass-card {
    border: 1px solid rgba(255, 255, 255, .10);
    background: rgba(255, 255, 255, .06);
    box-shadow: 0 24px 80px rgba(0, 0, 0, .24);
    backdrop-filter: blur(16px);
}

.gradient-text {
    background: linear-gradient(135deg, #fff, #a5b4fc, #67e8f9);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.admin-shell {
    min-height: 100vh;
    background: #f3f4f6;
    color: #111827;
}

.admin-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    box-shadow: 0 16px 40px rgba(15, 23, 42, .06);
}

.form-input {
    width: 100%;
    border-radius: 12px;
    border: 1px solid #d1d5db;
    padding: 10px 12px;
    background: #fff;
    color: #111827;
}

.form-label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: #374151;
    margin-bottom: 6px;
}

.btn-primary,
.btn-secondary,
.btn-danger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    padding: 10px 16px;
    font-weight: 700;
    border: 0;
    cursor: pointer;
}

.btn-primary {
    background: #4f46e5;
    color: #fff;
}

.btn-secondary {
    background: #e5e7eb;
    color: #111827;
}

.btn-danger {
    background: #dc2626;
    color: #fff;
}

/* Auth / Login page */
.auth-page {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
    background:
        radial-gradient(circle at top left, rgba(99, 102, 241, .30), transparent 34rem),
        radial-gradient(circle at bottom right, rgba(14, 165, 233, .18), transparent 30rem),
        #050816;
    color: #ffffff;
}

.auth-page::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url("/template/assets/hero-bg-dark.png");
    background-size: cover;
    background-position: center;
    opacity: .28;
    pointer-events: none;
}

.auth-bg-glow {
    position: absolute;
    border-radius: 999px;
    filter: blur(70px);
    pointer-events: none;
}

.auth-bg-glow-one {
    top: 8rem;
    left: 8%;
    width: 18rem;
    height: 18rem;
    background: rgba(99, 102, 241, .28);
}

.auth-bg-glow-two {
    right: 6%;
    bottom: 8rem;
    width: 22rem;
    height: 22rem;
    background: rgba(34, 211, 238, .16);
}

.auth-header {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1180px;
    margin: 0 auto;
    padding: 28px 24px;
}

.auth-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 24px;
    font-weight: 900;
    color: #ffffff;
}

.auth-brand img {
    width: 42px;
    height: 42px;
}

.auth-back-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 18px;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 16px;
    background: rgba(255, 255, 255, .06);
    color: #ffffff;
    font-size: 14px;
    font-weight: 800;
    backdrop-filter: blur(14px);
    transition: .2s ease;
}

.auth-back-link:hover {
    background: rgba(255, 255, 255, .12);
    transform: translateY(-1px);
}

.auth-main {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 100px);
    padding: 24px;
}

.auth-card {
    position: relative;
    width: 100%;
    max-width: 480px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 34px;
    background: rgba(7, 11, 26, .78);
    box-shadow: 0 30px 100px rgba(0, 0, 0, .45);
    backdrop-filter: blur(22px);
    padding: 34px;
}

.auth-card-pattern {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, .08), transparent 28%),
        radial-gradient(circle at top right, rgba(99, 102, 241, .18), transparent 18rem);
    pointer-events: none;
}

.auth-logo-wrap,
.auth-heading,
.auth-form,
.auth-footer-note,
.auth-alert {
    position: relative;
    z-index: 1;
}

.auth-logo-wrap {
    display: flex;
    justify-content: center;
    margin-bottom: 22px;
}

.auth-logo-wrap img {
    width: 82px;
    height: 82px;
    border-radius: 24px;
    box-shadow: 0 24px 50px rgba(0, 0, 0, .30);
}

.auth-heading {
    text-align: center;
    margin-bottom: 26px;
}

.auth-eyebrow {
    display: inline-flex;
    margin-bottom: 12px;
    padding: 8px 12px;
    border: 1px solid rgba(129, 140, 248, .25);
    border-radius: 999px;
    background: rgba(99, 102, 241, .12);
    color: #c7d2fe;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.auth-heading h1 {
    margin: 0;
    font-size: clamp(34px, 5vw, 46px);
    line-height: 1.05;
    font-weight: 950;
    letter-spacing: -0.04em;
    background: linear-gradient(135deg, #ffffff, #c7d2fe, #67e8f9);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.auth-heading p {
    margin: 14px auto 0;
    max-width: 360px;
    color: #94a3b8;
    font-size: 15px;
    line-height: 1.7;
}

.auth-alert {
    margin-bottom: 18px;
    border: 1px solid rgba(248, 113, 113, .28);
    border-radius: 16px;
    background: rgba(248, 113, 113, .10);
    color: #fecaca;
    padding: 14px 16px;
    font-size: 14px;
    font-weight: 700;
}

.auth-form {
    display: grid;
    gap: 18px;
}

.auth-field {
    display: grid;
    gap: 8px;
}

.auth-field label {
    color: #e2e8f0;
    font-size: 14px;
    font-weight: 800;
}

.auth-field input {
    width: 100%;
    min-height: 54px;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 18px;
    background: rgba(255, 255, 255, .07);
    color: #ffffff;
    outline: none;
    padding: 0 16px;
    font-size: 15px;
    transition: .2s ease;
}

.auth-field input::placeholder {
    color: rgba(203, 213, 225, .45);
}

.auth-field input:focus {
    border-color: rgba(129, 140, 248, .72);
    background: rgba(255, 255, 255, .10);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, .14);
}

.auth-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    color: #94a3b8;
    font-size: 14px;
}

.auth-options a {
    color: #c7d2fe;
    font-weight: 800;
}

.auth-options a:hover {
    color: #ffffff;
}

.auth-checkbox {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    cursor: pointer;
    font-weight: 700;
}

.auth-checkbox input {
    width: 16px;
    height: 16px;
    accent-color: #6366f1;
}

.auth-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 56px;
    width: 100%;
    border: 0;
    border-radius: 18px;
    background: #ffffff;
    color: #0f172a;
    cursor: pointer;
    font-size: 15px;
    font-weight: 950;
    box-shadow: 0 20px 50px rgba(255, 255, 255, .10);
    transition: .2s ease;
}

.auth-submit:hover {
    background: #e0e7ff;
    transform: translateY(-1px);
}

.auth-footer-note {
    margin-top: 24px;
    text-align: center;
    color: #64748b;
    font-size: 13px;
    font-weight: 700;
}

@media (max-width: 640px) {
    .auth-header {
        padding: 20px 18px;
    }

    .auth-brand span {
        font-size: 20px;
    }

    .auth-back-link {
        min-height: 40px;
        padding: 0 14px;
    }

    .auth-main {
        align-items: flex-start;
        padding: 16px;
    }

    .auth-card {
        padding: 26px 20px;
        border-radius: 28px;
    }
}

/* Font hardening + modern decorative motion */
:root {
    --font-latin: "Inter", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --font-arabic: "Cairo", "Inter", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body { font-family: var(--font-latin); text-rendering: geometricPrecision; -webkit-font-smoothing: antialiased; }
html[dir="rtl"] body { font-family: var(--font-arabic); }
.font-black, .auth-heading h1 { font-weight: 900; }

.hero-orb,
.hero-visual,
.hero-grid-mark,
.service-card-visual,
.feature-card-visual {
    pointer-events: none;
    user-select: none;
}

.hero-orb {
    position: absolute;
    border-radius: 999px;
    filter: blur(28px);
    opacity: .72;
    animation: ars-float 9s ease-in-out infinite;
}

.hero-orb-one {
    left: 8%;
    top: 24%;
    width: 18rem;
    height: 18rem;
    background: radial-gradient(circle, rgba(34, 211, 238, .18), transparent 68%);
}

.hero-orb-two {
    right: 10%;
    top: 15%;
    width: 22rem;
    height: 22rem;
    background: radial-gradient(circle, rgba(99, 102, 241, .18), transparent 68%);
    animation-delay: -3s;
}

.hero-visual {
    position: absolute;
    color: rgba(125, 211, 252, .23);
    filter: drop-shadow(0 28px 70px rgba(34, 211, 238, .16));
    animation: ars-float 10s ease-in-out infinite;
}

.hero-visual svg { width: 100%; height: 100%; }

.hero-visual-left {
    left: 6%;
    top: 31%;
    width: clamp(9rem, 16vw, 18rem);
    transform: rotate(-14deg);
}

.hero-visual-right {
    right: 7%;
    top: 21%;
    width: clamp(12rem, 22vw, 26rem);
    color: rgba(167, 139, 250, .18);
    transform: rotate(11deg);
    animation-delay: -2.5s;
}

.hero-grid-mark {
    position: absolute;
    right: 17%;
    bottom: 12%;
    width: 18rem;
    height: 18rem;
    opacity: .12;
    background-image:
        linear-gradient(rgba(148, 163, 184, .28) 1px, transparent 1px),
        linear-gradient(90deg, rgba(148, 163, 184, .28) 1px, transparent 1px);
    background-size: 28px 28px;
    mask-image: radial-gradient(circle, #000 0 45%, transparent 72%);
}

.service-card-visual {
    position: absolute;
    right: -2.5rem;
    bottom: -3.5rem;
    width: 15rem;
    height: 15rem;
    color: rgba(125, 211, 252, .13);
    transform: rotate(-8deg);
    transition: .35s ease;
}

.service-card-visual svg,
.feature-card-visual svg { width: 100%; height: 100%; }

.service-card:hover .service-card-visual {
    color: rgba(129, 140, 248, .22);
    transform: translateY(-.5rem) rotate(-3deg) scale(1.04);
}

.feature-card-visual {
    position: absolute;
    right: -2rem;
    top: -2rem;
    width: 8.5rem;
    height: 8.5rem;
    color: rgba(167, 139, 250, .10);
    transition: .35s ease;
}

.hero-title {
    font-size: clamp(2.7rem, 6.2vw, 6.2rem);
    line-height: 1.05;
    letter-spacing: -0.04em;
}

html[dir="rtl"] .hero-title {
    font-size: clamp(2.4rem, 5.2vw, 5.2rem);
    line-height: 1.12;
    letter-spacing: -0.015em;
    max-width: 980px;
    margin-inline: auto;
}



@media (max-width: 768px) {
    .hero-title {
        font-size: clamp(2.2rem, 12vw, 4rem);
        line-height: 1.08;
    }

    html[dir="rtl"] .hero-title {
        font-size: clamp(2rem, 10vw, 3.5rem);
        line-height: 1.15;
    }
}

.feature-card:hover .feature-card-visual {
    color: rgba(34, 211, 238, .16);
    transform: rotate(8deg) scale(1.08);
}

@keyframes ars-float {
    0%, 100% { transform: translate3d(0, 0, 0) rotate(var(--r, 0deg)); }
    50% { transform: translate3d(0, -18px, 0) rotate(var(--r, 0deg)); }
}

@media (max-width: 1024px) {
    .hero-visual-left, .hero-visual-right { opacity: .45; }
}

@media (max-width: 760px) {
    .hero-visual, .hero-grid-mark { display: none; }
    .service-card-visual { width: 11rem; height: 11rem; opacity: .75; }
}
.hero-visual-left { --r: -14deg; }
.hero-visual-right { --r: 11deg; }
/* Arabic spacing for non-hero section titles only */
html[dir="rtl"] .section-title,
html[dir="rtl"] .feature-title,
html[dir="rtl"] .interface-title {
    line-height: 1.35 !important;
    letter-spacing: -0.01em;
}
