@font-face {
    font-family: "Droid Sans Arabic";
    src: url("/fonts/DroidSansArabic.ttf") format("truetype");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

:root {
    --gs-ink: #0f172a;
    --gs-slate: #1e293b;
    --gs-muted: #64748b;
    --gs-line: rgba(15, 23, 42, 0.08);
    --gs-blue: #c0392b;
    --gs-blue-dark: #922b21;
    --gs-surface: #f8fafc;
    --gs-card: #ffffff;
    --gs-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Droid Sans Arabic", sans-serif;
    color: var(--gs-ink);
    background: var(--gs-surface);
}

button,
input,
select,
textarea,
.swal2-popup,
.dataTables_wrapper {
    font-family: "Droid Sans Arabic", sans-serif;
}

a,
button,
summary,
.play-store,
.view-switch a,
.admin-sidebar a {
    cursor: pointer;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--gs-blue);
    outline-offset: 3px;
}

.view-switch {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.16);
    gap: 0.15rem;
}

.view-switch a {
    color: inherit;
    text-decoration: none;
    border-radius: 999px;
    padding: 0.45rem 0.9rem;
    font-size: 0.92rem;
    transition: background-color 200ms ease, color 200ms ease;
}

.view-switch a.is-active,
.view-switch a[aria-current="page"] {
    background: #fff;
    color: var(--gs-ink);
}

.view-switch a:hover {
    background: rgba(255, 255, 255, 0.2);
}

.view-switch a.is-active:hover,
.view-switch a[aria-current="page"]:hover {
    background: #fff;
}

.landing {
    background: #fff;
}

.landing-header {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.9rem 6vw;
    background: rgba(15, 23, 42, 0.92);
    color: #fff;
    backdrop-filter: blur(12px);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    color: inherit;
    text-decoration: none;
    font-size: 1.15rem;
}

.brand-logo {
    display: block;
    height: 58px;
    width: auto;
    background: #fff;
    border-radius: 14px;
    padding: 4px 8px;
    object-fit: contain;
}

.side-brand .brand-logo {
    width: 100%;
    height: 78px;
}

.login-card .brand-logo {
    height: 96px;
    margin-inline: auto;
}

.landing-nav {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.landing-nav a {
    color: #e2e8f0;
    text-decoration: none;
}

.landing-nav a:hover {
    color: #fff;
}

.hero {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 3rem;
    align-items: center;
    padding: 4.5rem 6vw 3.5rem;
    background:
        radial-gradient(circle at 80% 20%, rgba(192, 57, 43, 0.38), transparent 28%),
        linear-gradient(160deg, #0f172a 0%, #1e293b 70%);
    color: #fff;
}

.eyebrow {
    display: inline-block;
    margin-bottom: 1rem;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: #fecaca;
    font-size: 0.92rem;
}

.hero h1 {
    margin: 0 0 1rem;
    font-size: clamp(2rem, 4vw, 3.4rem);
    line-height: 1.45;
    font-weight: 400;
}

.hero p,
.section-intro,
.feature p,
.step p,
.quote p,
.cta p {
    line-height: 1.9;
}

.hero .lead {
    max-width: 38rem;
    margin: 0 0 1.5rem;
    color: #cbd5e1;
    font-size: 1.08rem;
}

.play-store {
    display: inline-flex;
    align-items: center;
    gap: 0.85rem;
    min-height: 4.4rem;
    padding: 0.7rem 1.15rem 0.7rem 1.3rem;
    border-radius: 1rem;
    background: #000;
    color: #fff;
    text-decoration: none;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.28);
    transition: transform 200ms ease, background-color 200ms ease;
}

.play-store:hover {
    background: #111827;
    transform: translateY(-2px);
    color: #fff;
}

.play-store small {
    display: block;
    color: #cbd5e1;
    font-size: 0.82rem;
}

.play-store strong {
    display: block;
    font-size: 1.25rem;
    font-weight: 400;
}

.hero-visual {
    position: relative;
}

.hero-visual input {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.scene-stage {
    position: relative;
    min-height: 420px;
    border-radius: 1.4rem;
    overflow: hidden;
    background: #0b1220;
    box-shadow: var(--gs-shadow);
}

.scene {
    display: none;
    position: relative;
    margin: 0;
}

.scene img {
    display: block;
    width: 100%;
    height: 420px;
    object-fit: cover;
}

.scene figcaption {
    position: absolute;
    inset-inline: 1rem;
    bottom: 1rem;
    margin: 0;
    padding: 0.7rem 0.95rem;
    border-radius: 0.9rem;
    background: rgba(15, 23, 42, 0.78);
    color: #fff;
}

#scene-city:checked ~ .scene-stage .scene-city,
#scene-phone:checked ~ .scene-stage .scene-phone,
#scene-driver:checked ~ .scene-stage .scene-driver {
    display: block;
}

.scene-tabs {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.85rem;
}

.scene-tabs label {
    flex: 1;
    text-align: center;
    padding: 0.65rem 0.4rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: #e2e8f0;
    cursor: pointer;
    transition: background-color 200ms ease, transform 200ms ease;
}

.scene-tabs label:hover {
    transform: translateY(-1px);
}

#scene-city:checked ~ .scene-tabs label[for="scene-city"],
#scene-phone:checked ~ .scene-tabs label[for="scene-phone"],
#scene-driver:checked ~ .scene-tabs label[for="scene-driver"] {
    background: #c0392b;
    color: #fff;
}

.step {
    overflow: hidden;
}

.step img {
    display: block;
    width: calc(100% + 2.5rem);
    max-width: none;
    height: 168px;
    margin: -1.25rem -1.25rem 0.9rem;
    object-fit: cover;
    transition: transform 280ms ease;
}

.step:hover img {
    transform: scale(1.04);
}

.map-panel {
    position: relative;
    height: 220px;
    border-radius: 1.1rem;
    overflow: hidden;
    background:
        linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
        #10182b;
    background-size: 28px 28px;
}

.route {
    position: absolute;
    inset: 18% 12% auto 16%;
    height: 3px;
    background: linear-gradient(90deg, #f5b7b1, #c0392b);
    transform: rotate(-18deg);
    transform-origin: right center;
}

.route-dot {
    position: absolute;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 0 6px rgba(192, 57, 43, 0.35);
}

.route-dot.start { top: 28%; right: 18%; }
.route-dot.end { bottom: 26%; left: 22%; background: #c0392b; }

.trip-meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.8rem;
    margin-top: 1rem;
}

.trip-meta div,
.quote,
.feature,
.step,
.stat {
    background: var(--gs-card);
    border: 1px solid var(--gs-line);
    border-radius: 1rem;
}

.trip-meta div {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.08);
    padding: 0.8rem 0.9rem;
}

.trip-meta span,
.muted {
    color: var(--gs-muted);
    font-size: 0.85rem;
}

.hero .trip-meta span {
    color: #cbd5e1;
}

.trip-meta strong {
    display: block;
    margin-top: 0.25rem;
    font-weight: 400;
}

.section {
    padding: 4.5rem 6vw;
    scroll-margin-top: 5.5rem;
}

.section h2,
.cta h2 {
    margin: 0 0 0.6rem;
    font-size: clamp(1.7rem, 3vw, 2.3rem);
    font-weight: 400;
    line-height: 1.5;
}

.section-intro {
    max-width: 40rem;
    margin: 0 0 2rem;
    color: var(--gs-muted);
}

.grid-4,
.grid-3 {
    display: grid;
    gap: 1rem;
}

.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

.feature,
.step,
.quote {
    padding: 1.25rem;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    transition: transform 200ms ease, box-shadow 200ms ease;
}

.feature:hover,
.quote:hover {
    transform: translateY(-3px);
    box-shadow: var(--gs-shadow);
}

.icon {
    width: 2.6rem;
    height: 2.6rem;
    display: grid;
    place-items: center;
    border-radius: 0.8rem;
    background: #fdecea;
    color: var(--gs-blue);
    margin-bottom: 0.9rem;
}

.feature h3,
.step h3,
.quote h3 {
    margin: 0 0 0.45rem;
    font-size: 1.15rem;
    font-weight: 400;
}

.feature p,
.step p,
.quote p {
    margin: 0;
    color: #334155;
}

.steps {
    background: var(--gs-surface);
}

.step-no {
    color: var(--gs-blue);
    font-size: 0.9rem;
}

.quote footer {
    margin-top: 1rem;
    color: var(--gs-muted);
}

.cta {
    margin: 0 6vw 4rem;
    padding: 2.5rem;
    border-radius: 1.5rem;
    background: var(--gs-ink);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.cta p { color: #cbd5e1; margin: 0; }

.landing-footer {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.4rem 6vw 2rem;
    color: var(--gs-muted);
}

.landing .view-switch {
    background: rgba(255, 255, 255, 0.08);
}

.landing-footer .view-switch {
    background: var(--gs-ink);
    color: #fff;
}

.landing-footer .view-switch a {
    color: #e2e8f0;
}

.admin-app {
    background: #f1f5f9;
    color: var(--gs-ink);
}

.admin-app .btn-primary {
    --bs-btn-bg: #c0392b;
    --bs-btn-border-color: #c0392b;
    --bs-btn-hover-bg: #922b21;
    --bs-btn-hover-border-color: #922b21;
    --bs-btn-active-bg: #7b241c;
    --bs-btn-active-border-color: #7b241c;
    --bs-btn-disabled-bg: #c0392b;
    --bs-btn-disabled-border-color: #c0392b;
}

.admin-app .btn-outline-primary {
    --bs-btn-color: #c0392b;
    --bs-btn-border-color: #c0392b;
    --bs-btn-hover-bg: #c0392b;
    --bs-btn-hover-border-color: #c0392b;
    --bs-btn-hover-color: #fff;
    --bs-btn-active-bg: #922b21;
    --bs-btn-active-border-color: #922b21;
    --bs-btn-active-color: #fff;
}

.admin-shell {
    display: flex;
    min-height: 100vh;
}

.admin-sidebar {
    position: sticky;
    top: 0;
    flex: 0 0 240px;
    width: 240px;
    height: 100vh;
    overflow: auto;
    background-color: #1e293b !important;
    color: #f8fafc !important;
}

.admin-sidebar .offcanvas-body,
.admin-sidebar {
    display: flex;
    flex-direction: column;
}

.side-brand {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 1.2rem 1.1rem;
    color: #fff;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.admin-nav {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    padding: 1rem;
    flex: 1;
    overflow: auto;
}

.admin-nav__link {
    display: block;
    color: #f8fafc !important;
    text-decoration: none;
    border-radius: 0.75rem;
    padding: 0.7rem 0.9rem;
    background: rgba(255, 255, 255, 0.08);
    border-inline-start: 3px solid transparent;
    transition: background-color 200ms ease, color 200ms ease;
}

.admin-nav__link--root {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.admin-nav__link:hover,
.admin-nav__link.active {
    background: #c0392b !important;
    color: #fff !important;
}

.admin-nav__link.active {
    border-inline-start-color: #fecaca;
}

.admin-nav__group {
    border-radius: 0.85rem;
    background: rgba(15, 23, 42, 0.28);
    border: 1px solid rgba(255, 255, 255, 0.06);
    overflow: hidden;
}

.admin-nav__summary {
    list-style: none;
    cursor: pointer;
    user-select: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.75rem 0.9rem;
    color: #f8fafc;
    font-weight: 600;
    transition: background-color 200ms ease;
}

.admin-nav__summary::-webkit-details-marker {
    display: none;
}

.admin-nav__summary::marker {
    content: "";
}

.admin-nav__summary:hover,
.admin-nav__summary.is-active {
    background: rgba(255, 255, 255, 0.06);
}

.admin-nav__chevron {
    width: 0.55rem;
    height: 0.55rem;
    border-inline-end: 2px solid #cbd5e1;
    border-bottom: 2px solid #cbd5e1;
    transform: rotate(45deg);
    transition: transform 180ms ease;
    flex: 0 0 auto;
    margin-top: -0.15rem;
}

.admin-nav__group[open] > .admin-nav__summary .admin-nav__chevron {
    transform: rotate(-135deg);
    margin-top: 0.15rem;
}

.admin-nav__submenu {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 0 0.55rem 0.65rem;
}

.admin-nav__submenu .admin-nav__link {
    padding: 0.58rem 0.8rem;
    font-size: 0.92rem;
    background: rgba(255, 255, 255, 0.05);
}

.admin-nav__submenu .admin-nav__link:hover,
.admin-nav__submenu .admin-nav__link.active {
    background: #c0392b !important;
}

.side-foot {
    margin-top: auto;
    padding: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.side-user {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.7rem 0.75rem;
    border-radius: 0.85rem;
    background: rgba(255, 255, 255, 0.06);
}

.side-user__avatar,
.admin-user-menu__avatar {
    width: 2.35rem;
    height: 2.35rem;
    border-radius: 0.75rem;
    display: grid;
    place-items: center;
    background: #c0392b;
    color: #fff;
    font-weight: 700;
    flex: 0 0 auto;
}

.side-user__meta {
    min-width: 0;
    display: grid;
    gap: 0.15rem;
}

.side-user__meta strong {
    color: #fff;
    font-size: 0.92rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.side-user__meta span {
    color: #cbd5e1;
    font-size: 0.78rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.admin-main {
    flex: 1;
    min-width: 0;
}

.admin-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: #fff;
    border-bottom: 1px solid var(--gs-line);
}

.admin-top h1 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 400;
}

.admin-top__actions {
    margin-inline-start: auto;
}

.admin-user-menu {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    border: 1px solid var(--gs-line);
    background: #fff;
    border-radius: 999px;
    padding: 0.3rem 0.75rem 0.3rem 0.35rem;
    color: var(--gs-ink);
}

.admin-user-menu::after {
    margin-inline-start: 0.15rem;
}

.admin-user-menu__text {
    display: grid;
    text-align: start;
    line-height: 1.15;
}

.admin-user-menu__text strong {
    font-size: 0.9rem;
    font-weight: 600;
}

.admin-user-menu__text small {
    color: var(--gs-muted);
    font-size: 0.75rem;
}

.admin-user-dropdown {
    min-width: 220px;
    border-radius: 0.85rem;
    border-color: var(--gs-line);
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.1);
    padding: 0.4rem;
}

.admin-user-dropdown .dropdown-item {
    border-radius: 0.55rem;
    padding: 0.55rem 0.75rem;
}

.admin-user-dropdown .dropdown-item.text-danger {
    color: #c0392b !important;
}

@media (max-width: 768px) {
    .admin-user-menu__text {
        display: none;
    }

    .admin-user-menu {
        padding: 0.3rem;
        border-radius: 0.8rem;
    }
}

.admin-top .view-switch {
    background: #e2e8f0;
    border-color: transparent;
    color: var(--gs-slate);
}

.admin-top .view-switch a:hover {
    background: #cbd5e1;
}

.admin-content {
    padding: 1.25rem;
}

.stat-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 1rem;
}

.stat {
    padding: 1.1rem 1.15rem;
}

.stat span {
    color: var(--gs-muted);
    font-size: 0.9rem;
}

.stat strong {
    display: block;
    margin-top: 0.35rem;
    font-size: 1.8rem;
    font-weight: 400;
}

.stat em {
    font-style: normal;
    color: #b45309;
    font-size: 0.88rem;
}

/* ——— Professional dashboard ——— */
.dash-hero {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: flex-end;
    padding: 1.25rem 1.4rem;
    border-radius: 1.15rem;
    background:
        radial-gradient(circle at 100% 0%, rgba(192, 57, 43, 0.18), transparent 42%),
        linear-gradient(135deg, #1e293b 0%, #0f172a 55%, #7b241c 140%);
    color: #fff;
    overflow: hidden;
    position: relative;
}

.dash-hero::after {
    content: "";
    position: absolute;
    inset: auto -10% -40% auto;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: rgba(192, 57, 43, 0.22);
    filter: blur(2px);
    animation: dash-orb 8s ease-in-out infinite alternate;
}

.dash-hero__eyebrow {
    margin: 0 0 0.35rem;
    opacity: 0.8;
    font-size: 0.85rem;
}

.dash-hero__title {
    margin: 0;
    font-size: 1.45rem;
    font-weight: 600;
}

.dash-hero__lead {
    margin: 0.4rem 0 0;
    opacity: 0.85;
    max-width: 36rem;
}

.dash-hero__meta {
    position: relative;
    z-index: 1;
    opacity: 0.85;
    font-size: 0.9rem;
    white-space: nowrap;
}

.dash-stats {
    grid-template-columns: repeat(3, 1fr);
}

.stat-card {
    position: relative;
    overflow: hidden;
    padding: 1.15rem 1.2rem;
    border-radius: 1.1rem;
    border: 1px solid var(--gs-line);
    background: #fff;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.05);
    transform: translateY(12px);
    opacity: 0;
    animation: dash-card-in 0.55s ease forwards;
    animation-delay: var(--delay, 0ms);
    transition: transform 220ms ease, box-shadow 220ms ease;
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.1);
}

.stat-card::before {
    content: "";
    position: absolute;
    inset-inline-start: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--tone, #c0392b);
}

.stat-card::after {
    content: "";
    position: absolute;
    inset: auto -20% -45% auto;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: var(--tone-soft, rgba(192, 57, 43, 0.1));
    pointer-events: none;
}

.stat-card__top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    position: relative;
    z-index: 1;
}

.stat-card span {
    color: var(--gs-muted);
    font-size: 0.92rem;
}

.stat-card__icon {
    width: 2.1rem;
    height: 2.1rem;
    border-radius: 0.7rem;
    background: var(--tone-soft, rgba(192, 57, 43, 0.12));
    position: relative;
}

.stat-card__icon::before {
    content: "";
    position: absolute;
    inset: 0.55rem;
    border-radius: 0.3rem;
    background: var(--tone, #c0392b);
    opacity: 0.9;
}

.stat-card strong {
    display: block;
    margin-top: 0.55rem;
    font-size: 2rem;
    font-weight: 600;
    color: var(--gs-ink);
    position: relative;
    z-index: 1;
    letter-spacing: 0.02em;
}

.stat-card em {
    display: block;
    margin-top: 0.35rem;
    font-style: normal;
    font-size: 0.84rem;
    color: var(--gs-muted);
    position: relative;
    z-index: 1;
}

.stat-card em a {
    color: var(--tone, #c0392b);
    text-decoration: none;
    font-weight: 600;
}

.stat-card.tone-brand { --tone: #c0392b; --tone-soft: rgba(192, 57, 43, 0.12); }
.stat-card.tone-slate { --tone: #1e293b; --tone-soft: rgba(30, 41, 59, 0.12); }
.stat-card.tone-warm { --tone: #b45309; --tone-soft: rgba(180, 83, 9, 0.12); }
.stat-card.tone-ink { --tone: #7b241c; --tone-soft: rgba(123, 36, 28, 0.12); }
.stat-card.tone-alert { --tone: #c0392b; --tone-soft: rgba(192, 57, 43, 0.16); }
.stat-card.tone-pending { --tone: #92400e; --tone-soft: rgba(146, 64, 14, 0.12); }

.chart-card {
    background: #fff;
    border: 1px solid var(--gs-line);
    border-radius: 1.1rem;
    padding: 0.85rem 1rem 1rem;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.04);
    height: 100%;
}

.chart-card__hint {
    color: var(--gs-muted);
    font-size: 0.85rem;
    margin-top: 0.2rem;
}

.chart-wrap {
    position: relative;
    height: 280px;
}

.chart-wrap--donut {
    height: 260px;
}

@keyframes dash-card-in {
    from {
        opacity: 0;
        transform: translateY(14px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes dash-orb {
    from { transform: translate3d(0, 0, 0) scale(1); }
    to { transform: translate3d(-18px, -12px, 0) scale(1.08); }
}

@media (max-width: 1100px) {
    .dash-stats { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .dash-hero {
        flex-direction: column;
        align-items: flex-start;
    }

    .dash-stats { grid-template-columns: 1fr; }

    .chart-wrap,
    .chart-wrap--donut { height: 240px; }
}

.table-card,
.detail-card {
    background: #fff;
    border: 1px solid var(--gs-line);
    border-radius: 1rem;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.table-card { padding: 0.4rem 0.9rem 0.9rem; }
.detail-card { padding: 1.25rem; }

.toolbar {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    align-items: center;
    margin-bottom: 0.8rem;
}

.dataTables_wrapper .dataTables_filter,
.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_info,
.dataTables_wrapper .dataTables_paginate {
    text-align: right;
}

.dataTables_wrapper .dataTables_filter input,
.dataTables_wrapper .dataTables_length select {
    margin-inline-start: 0.5rem;
    border: 1px solid #cbd5e1;
    border-radius: 0.6rem;
    padding: 0.35rem 0.6rem;
}

table.dataTable thead th {
    text-align: right;
}

.ltr {
    direction: ltr;
    unicode-bidi: isolate;
    display: inline-block;
}

.gs-swal {
    font-family: "Droid Sans Arabic", sans-serif;
    direction: rtl;
}

.swal2-title,
.swal2-html-container {
    text-align: right;
}

.swal2-actions {
    gap: 0.75rem;
}

@media (max-width: 1024px) {
    .hero,
    .grid-4,
    .stat-grid { grid-template-columns: 1fr 1fr; }
    .grid-3 { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .landing-header,
    .hero,
    .cta,
    .landing-footer {
        flex-direction: column;
        align-items: stretch;
    }

    .hero,
    .grid-4,
    .stat-grid { grid-template-columns: 1fr; }

    .landing-nav { flex-wrap: wrap; }
    .cta { margin-inline: 1rem; }
    .section,
    .hero,
    .landing-header,
    .landing-footer { padding-inline: 1rem; }
}

.login-page {
    min-height: 100vh;
    background:
        radial-gradient(circle at 15% 20%, rgba(192, 57, 43, 0.38), transparent 26%),
        linear-gradient(160deg, #0f172a 0%, #1e293b 72%);
    color: #fff;
}

.login-main {
    display: grid;
    place-items: center;
    padding: 2.5rem 1rem 3rem;
}

.login-card {
    width: min(100%, 28rem);
    background: #fff;
    color: var(--gs-ink);
    border-radius: 1.25rem;
    padding: 1.6rem 1.4rem 1.4rem;
    box-shadow: 0 24px 50px rgba(0, 0, 0, 0.28);
}

.login-card h1 {
    margin: 0.8rem 0 0.4rem;
    font-size: 1.7rem;
    font-weight: 400;
    line-height: 1.5;
}

.login-card .lead {
    margin: 0 0 1.2rem;
    color: var(--gs-muted);
    line-height: 1.8;
}

.login-card label {
    display: block;
    margin-bottom: 0.35rem;
}

.login-card input[type="email"],
.login-card input[type="password"] {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #cbd5e1;
    border-radius: 0.75rem;
    padding: 0.75rem 0.85rem;
    font: inherit;
    color: var(--gs-ink);
    background: #fff;
}

.login-field {
    margin-bottom: 1rem;
}

.login-error {
    margin: 0.4rem 0 0;
    color: #b91c1c;
    font-size: 0.92rem;
}

.login-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin: 0.3rem 0 1rem;
}

.login-row label {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin: 0;
}

.login-card a {
    color: var(--gs-blue);
}

.login-submit {
    width: 100%;
    border: 0;
    border-radius: 0.85rem;
    padding: 0.85rem 1rem;
    background: var(--gs-blue);
    color: #fff;
    font: inherit;
    transition: background-color 200ms ease;
}

.login-submit:hover {
    background: var(--gs-blue-dark);
}

.login-status {
    margin: 0 0 1rem;
    padding: 0.7rem 0.8rem;
    border-radius: 0.75rem;
    background: #ecfdf5;
    color: #166534;
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }

    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
    }
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.nav-toggle {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.nav-burger {
    display: none;
    border: 1px solid rgba(255, 255, 255, 0.22);
    color: #fff;
    background: transparent;
    border-radius: 0.75rem;
    padding: 0.45rem 0.85rem;
    font: inherit;
    cursor: pointer;
}

.landing-nav a.is-active {
    color: #fff;
    text-decoration: underline;
    text-underline-offset: 0.35rem;
    text-decoration-color: #c0392b;
}

.landing-nav a.nav-cta {
    background: var(--gs-blue);
    color: #fff;
    border-radius: 0.8rem;
    padding: 0.55rem 0.9rem;
}

.landing-nav a.nav-cta:hover {
    background: var(--gs-blue-dark);
    color: #fff;
}

.scene-note {
    margin: 0 0 0.65rem;
    color: #fecaca;
    font-size: 0.9rem;
}

.download-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.download-pending {
    margin: 0;
    max-width: 28rem;
    padding: 0.9rem 1rem;
    border: 1px dashed rgba(255, 255, 255, 0.4);
    border-radius: 1rem;
    color: #e2e8f0;
    line-height: 1.8;
}

.split-section {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 2rem;
    align-items: center;
}

.split-photo {
    width: 100%;
    max-height: 420px;
    object-fit: cover;
    border-radius: 1.2rem;
}

.page-hero {
    padding: 3.2rem 6vw 0;
}

.page-hero h1 {
    margin: 0 0 0.6rem;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 400;
    line-height: 1.45;
}

.page-hero .eyebrow {
    background: #fdecea;
    color: var(--gs-blue);
}

.page-hero .eyebrow a {
    color: inherit;
    text-decoration: none;
}

.article {
    padding-bottom: 4rem;
}

.article-cover {
    display: block;
    width: 100%;
    max-height: 440px;
    object-fit: cover;
    border-radius: 1.2rem;
    margin: 0 0 1.4rem;
}

.prose {
    max-width: 46rem;
}

.prose p,
.feature p {
    line-height: 1.95;
}

.media-card img {
    display: block;
    width: 100%;
    height: 190px;
    object-fit: cover;
    border-radius: 0.85rem;
    margin: 0 0 0.9rem;
}

.feature h2,
.media-card h2 {
    margin: 0 0 0.45rem;
    font-size: 1.2rem;
    font-weight: 400;
}

.text-link {
    color: var(--gs-blue);
    text-decoration: none;
}

.text-link:hover {
    text-decoration: underline;
}

.media-card .text-link,
.section-more {
    display: inline-block;
    margin-top: 0.85rem;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    padding-top: 2rem;
}

.about-grid .split-photo {
    grid-column: 1 / -1;
    max-height: 360px;
}

.filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.4rem;
}

.filters a {
    color: var(--gs-ink);
    text-decoration: none;
    border: 1px solid var(--gs-line);
    border-radius: 999px;
    padding: 0.4rem 0.85rem;
    background: #fff;
}

.filters a.is-active {
    background: var(--gs-blue);
    border-color: var(--gs-blue);
    color: #fff;
}

.pager {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    align-items: center;
    margin-top: 1.5rem;
}

.pager a {
    color: var(--gs-blue);
    text-decoration: none;
}

.pager .is-disabled {
    color: var(--gs-muted);
}

.site-footer {
    background: #0f172a;
    color: #cbd5e1;
    padding: 3rem 6vw 1.4rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 1.5rem 2rem;
}

.site-footer h2 {
    margin: 0 0 0.75rem;
    color: #fff;
    font-size: 1.05rem;
    font-weight: 400;
}

.site-footer a {
    display: block;
    color: #e2e8f0;
    text-decoration: none;
    margin-bottom: 0.4rem;
}

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

.site-footer p {
    margin: 0.85rem 0 0;
    line-height: 1.85;
}

.site-footer .brand {
    color: #fff;
}

.site-footer .play-store {
    background: #fff;
    color: #0f172a;
}

.site-footer .play-store small {
    color: #64748b;
}

.site-footer .play-store strong {
    color: #0f172a;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: center;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-bottom nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem 1rem;
}

.footer-bottom a {
    display: inline;
    margin: 0;
}

.nav-label {
    margin: 1rem 0.15rem 0.15rem;
    color: #94a3b8;
    font-size: 0.78rem;
}

.admin-thumb {
    display: block;
    width: 160px;
    height: 100px;
    object-fit: cover;
    border-radius: 0.7rem;
    margin-top: 0.7rem;
}

.profile-head {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
}

.profile-avatar {
    flex: 0 0 112px;
    width: 112px;
    height: 112px;
    border-radius: 1rem;
    overflow: hidden;
    background: #fdecea;
    color: #c0392b;
    border: 1px solid rgba(192, 57, 43, 0.18);
    display: grid;
    place-items: center;
    font-size: 2rem;
}

.profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.profile-meta {
    flex: 1;
    min-width: 0;
}

.status-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.status-tabs a {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.45rem 0.8rem;
    border-radius: 999px;
    border: 1px solid var(--gs-line);
    background: #fff;
    color: inherit;
    text-decoration: none;
    font-size: 0.9rem;
}

.status-tabs a span {
    min-width: 1.4rem;
    text-align: center;
    border-radius: 999px;
    background: #f1f5f9;
    padding: 0.05rem 0.4rem;
    font-size: 0.78rem;
}

.status-tabs a.is-active {
    border-color: #c0392b;
    color: #c0392b;
    background: #fdecea;
}

.status-tabs a.is-active span {
    background: #c0392b;
    color: #fff;
}

.review-checklist {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0.55rem;
}

.review-checklist li {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.55rem 0.7rem;
    border-radius: 0.7rem;
    border: 1px solid var(--gs-line);
    background: #f8fafc;
}

.review-checklist li.is-ok {
    background: #f0fdf4;
    border-color: #bbf7d0;
}

.review-checklist li.is-missing {
    background: #fff7ed;
    border-color: #fed7aa;
}

.review-checklist .check-mark {
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 999px;
    display: grid;
    place-items: center;
    font-size: 0.8rem;
    font-weight: 700;
    flex: 0 0 auto;
}

.review-checklist li.is-ok .check-mark {
    background: #16a34a;
    color: #fff;
}

.review-checklist li.is-missing .check-mark {
    background: #ea580c;
    color: #fff;
}

.doc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1rem;
}

.doc-card {
    background: #fff;
    border: 1px solid var(--gs-line);
    border-radius: 1rem;
    padding: 0.9rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    min-height: 100%;
}

.doc-card header h3 {
    font-size: 1rem;
    margin: 0 0 0.45rem;
}

.doc-card.is-empty {
    background: #f8fafc;
}

.doc-preview {
    display: block;
    border-radius: 0.75rem;
    overflow: hidden;
    border: 1px solid var(--gs-line);
    background: #0f172a08;
}

.doc-preview img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.doc-file {
    display: grid;
    gap: 0.25rem;
    padding: 0.85rem;
    border-radius: 0.75rem;
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
}

.vehicle-thumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.vehicle-thumbs figure {
    margin: 0;
}

.vehicle-thumbs figcaption {
    font-size: 0.78rem;
    color: #64748b;
    margin-top: 0.25rem;
}

@media (max-width: 768px) {
    .profile-head {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .profile-meta .col-sm-3,
    .profile-meta .col-sm-9 {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 1024px) {
    .footer-grid,
    .about-grid,
    .split-section {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .landing-header {
        flex-flow: row wrap;
        align-items: center;
    }

    .landing-header .brand-logo {
        height: 46px;
    }

    .nav-burger {
        display: inline-flex;
        flex: 0 0 auto;
        margin-inline-start: auto;
    }

    .landing-nav {
        display: none;
        position: static;
        flex: 1 0 100%;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.85rem;
        padding: 0.85rem 0 0.2rem;
        background: transparent;
        box-shadow: none;
    }

    .nav-toggle:checked ~ .landing-nav {
        display: flex;
    }

    .footer-grid,
    .about-grid,
    .split-section,
    .footer-bottom {
        grid-template-columns: 1fr;
        flex-direction: column;
        align-items: flex-start;
    }

    .page-hero,
    .site-footer {
        padding-inline: 1rem;
    }
}

/* ——— Unified app loader ——— */
html.gs-loader-open,
html.gs-loader-open body {
    overflow: hidden;
}

.gs-loader {
    position: fixed;
    inset: 0;
    z-index: 20000;
    display: grid;
    place-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.18s ease, visibility 0.18s ease;
}

.gs-loader.is-visible {
    opacity: 1;
    visibility: visible;
}

.gs-loader__backdrop {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at top, rgba(192, 57, 43, 0.18), transparent 42%),
        rgba(15, 23, 42, 0.48);
    backdrop-filter: blur(3px);
}

.gs-loader__panel {
    position: relative;
    z-index: 1;
    min-width: min(280px, calc(100vw - 2rem));
    padding: 1.4rem 1.5rem 1.15rem;
    border-radius: 1.15rem;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.7);
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.22);
    text-align: center;
}

.gs-loader__ring {
    --gs-loader-size: 52px;
    width: var(--gs-loader-size);
    height: var(--gs-loader-size);
    margin: 0 auto 0.9rem;
    position: relative;
}

.gs-loader__ring span {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 3px solid transparent;
    border-top-color: #c0392b;
    animation: gs-loader-spin 0.9s linear infinite;
}

.gs-loader__ring span:nth-child(2) {
    inset: 6px;
    border-top-color: #922b21;
    animation-duration: 1.15s;
    animation-direction: reverse;
}

.gs-loader__ring span:nth-child(3) {
    inset: 12px;
    border-top-color: #f5b7b1;
    animation-duration: 0.75s;
}

.gs-loader__text {
    margin: 0 0 0.75rem;
    color: var(--gs-ink);
    font-size: 0.98rem;
    font-weight: 600;
}

.gs-loader__brand {
    width: 36px;
    height: 36px;
    object-fit: contain;
    opacity: 0.9;
}

.gs-btn-spinner {
    width: 0.95rem;
    height: 0.95rem;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    display: inline-block;
    vertical-align: -0.15em;
    margin-inline-end: 0.4rem;
    animation: gs-loader-spin 0.7s linear infinite;
}

button.is-loading,
.btn.is-loading,
.login-submit.is-loading {
    pointer-events: none;
    opacity: 0.88;
}

form.is-submitting {
    pointer-events: none;
}

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

@media (prefers-reduced-motion: reduce) {
    .gs-loader__ring span,
    .gs-btn-spinner {
        animation-duration: 1.6s;
    }
}
