:root {
    color-scheme: light;
    --bg: #eef3f8;
    --panel: rgba(255, 255, 255, 0.76);
    --panel-strong: rgba(255, 255, 255, 0.92);
    --glass: rgba(255, 255, 255, 0.68);
    --glass-dark: rgba(12, 18, 28, 0.78);
    --text: #101828;
    --muted: #667085;
    --line: rgba(148, 163, 184, 0.32);
    --soft: rgba(248, 250, 252, 0.74);
    --dark: #172033;
    --danger: #b42318;
    --success: #087443;
    --warning: #b76e00;
    --accent: #2563eb;
    --accent-2: #0f766e;
    --accent-3: #e11d48;
    --sidebar: rgba(13, 20, 34, 0.92);
    --sidebar-soft: rgba(255, 255, 255, 0.09);
    --shadow: 0 24px 70px rgba(16, 24, 40, 0.12);
    --shadow-soft: 0 14px 36px rgba(16, 24, 40, 0.08);
    --radius: 14px;
    --radius-sm: 10px;
    --safe-top: env(safe-area-inset-top, 0px);
    --safe-right: env(safe-area-inset-right, 0px);
    --safe-bottom: env(safe-area-inset-bottom, 0px);
    --safe-left: env(safe-area-inset-left, 0px);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background:
        linear-gradient(135deg, rgba(37, 99, 235, 0.10), transparent 34%),
        linear-gradient(315deg, rgba(15, 118, 110, 0.10), transparent 42%),
        linear-gradient(180deg, #f8fbff 0%, var(--bg) 44%, #f7f8fb 100%);
    color: var(--text);
    font-family: Inter, Tahoma, Arial, sans-serif;
    line-height: 1.5;
    min-height: 100vh;
    min-height: 100dvh;
    text-rendering: optimizeLegibility;
}

html[dir="rtl"] body {
    font-family: Tahoma, Arial, sans-serif;
    text-align: right;
}

html[dir="rtl"] input,
html[dir="rtl"] textarea,
html[dir="rtl"] select {
    text-align: right;
}

html[dir="rtl"] input[type="email"],
html[dir="rtl"] input[type="url"],
html[dir="rtl"] input[type="number"],
html[dir="rtl"] input[type="datetime-local"],
html[dir="rtl"] input[type="date"],
html[dir="rtl"] code {
    direction: ltr;
    text-align: left;
}

.location-input-group {
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr);
    align-items: stretch;
}

.location-input-group .form-control {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

.location-picker-btn {
    min-height: 46px;
    display: grid;
    place-items: center;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    padding: 0;
}

.location-picker-btn svg {
    width: 20px;
    height: 20px;
}

html[dir="rtl"] .location-input-group .form-control {
    border-radius: 8px 0 0 8px;
}

html[dir="rtl"] .location-picker-btn {
    border-radius: 0 8px 8px 0;
}

.location-picker-search {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 8px;
    margin-bottom: 12px;
}

.location-picker-map {
    width: 100%;
    min-height: 360px;
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.28);
    border-radius: 12px;
    background: #eef2f7;
}

.location-picker-result {
    margin-top: 12px;
    min-height: 44px;
    padding: 10px 12px;
    border: 1px solid rgba(148, 163, 184, 0.28);
    border-radius: 12px;
    background: rgba(248, 250, 252, 0.86);
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
    overflow-wrap: anywhere;
}

#locationPickerModal {
    z-index: 1095;
}

.modal-backdrop.location-picker-backdrop {
    z-index: 1090;
}

.language-switcher {
    position: fixed;
    top: 1px;
    inset-inline-end: 30px;
    z-index: 1085;
    width: 38px;
    height: 38px;
    display: inline-grid;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: var(--dark);
    color: #ffffff;
    box-shadow: 0 12px 30px rgba(16, 24, 40, 0.12);
    backdrop-filter: blur(14px);
    font-size: 12px;
    font-weight: 900;
    line-height: 1;
    padding: 0;
}

.language-switcher:hover {
    background: #0f1728;
}

button,
input,
select,
textarea {
    font: inherit;
}

.shell {
    width: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    margin: 0;
    padding:
        max(24px, var(--safe-top))
        max(24px, var(--safe-right))
        max(24px, var(--safe-bottom))
        max(24px, var(--safe-left));
}

.app-stage-login,
.app-stage-contact,
.app-stage-upload,
.app-stage-review,
.app-stage-experience {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.app-card {
    border-radius: 14px;
}

.auth-card {
    max-width: 760px;
    width: min(100%, 760px);
}

.registration-wrap {
    width: 100%;
    max-width: 1120px;
}

.topline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 800;
}

.brand-mark {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: var(--dark);
    color: #ffffff;
}

.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 16px;
}

.step {
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--panel);
    color: var(--muted);
    font-weight: 700;
}

.step.is-active {
    background: var(--dark);
    color: #ffffff;
    border-color: var(--dark);
}

.panel {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: clamp(18px, 2vw, 32px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.05);
}

.grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.field {
    margin-bottom: 16px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 750;
}

input,
select,
textarea {
    width: 100%;
    min-height: 46px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
    padding: 11px 12px;
    color: var(--text);
}

input[type="checkbox"] {
    width: 20px;
    height: 20px;
    min-width: 20px;
    min-height: 20px;
    flex: 0 0 20px;
    padding: 0;
    margin-right: 8px;
    accent-color: var(--accent);
    cursor: pointer;
}

textarea {
    min-height: 150px;
    resize: vertical;
}

.hint {
    margin: 6px 0 0;
    color: var(--muted);
    font-size: 14px;
}

.actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 18px;
}



.btn-primary {
    background: var(--dark);
    color: #ffffff;
}

.btn-secondary {
    background: #ffffff;
    color: var(--dark);
}

.btn[disabled] {
    cursor: wait;
    opacity: 0.7;
}

.error-box {
    max-width: 1120px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 16px;
    padding: 14px;
    border: 1px solid #efb4bc;
    border-radius: 8px;
    background: #fff2f4;
    color: var(--danger);
}

.notice-box {
    width: min(100%, 1120px);
    margin: 0 auto 16px;
    padding: 14px;
    border: 1px solid #b7e4c7;
    border-radius: 8px;
    background: #f0fdf4;
    color: #14532d;
    font-weight: 700;
}

.upload-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.id-upload-card {
    min-width: 0;
}

.drop-zone {
    display: flex;
    align-items: stretch;
    justify-content: center;
    min-height: 220px;
    border: 1.5px dashed #9a9a9d;
    border-radius: 8px;
    background: #fafafa;
    text-align: center;
    padding: 12px;
    cursor: pointer;
    overflow: hidden;
}

.drop-zone.is-over {
    background: #eeeeee;
    border-color: var(--dark);
}

.drop-zone input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.upload-icon {
    width: 54px;
    height: 54px;
    margin: 0 auto 12px;
}

.drop-content {
    width: 100%;
    min-height: 196px;
    display: grid;
    place-items: center;
    border-radius: 6px;
}

.drop-copy {
    width: 100%;
    min-height: 196px;
    display: grid;
    place-items: center;
    align-content: center;
    text-align: center;
}

.preview-img {
    display: none;
    width: 100%;
    height: 210px;
    object-fit: contain;
    border-radius: 6px;
    background: #ffffff;
}

.drop-zone.has-preview .drop-copy {
    display: none;
}

.drop-zone.has-preview .preview-img {
    display: block;
}

.file-name {
    margin-top: 8px;
    color: var(--text);
    font-weight: 800;
}

.id-camera-frame {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #0f0f10;
    aspect-ratio: 16 / 10;
}

.id-camera-frame::after {
    content: "";
    position: absolute;
    inset: 8%;
    border: 2px solid rgba(255, 255, 255, 0.82);
    border-radius: 10px;
    box-shadow: 0 0 0 999px rgba(0, 0, 0, 0.22);
    pointer-events: none;
}

.id-camera-frame video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.review-card {
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 18px;
    background: #fbfbfb;
}

.check-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 12px;
    margin-bottom: 12px;
    background: #ffffff;
    cursor: pointer;
    transition: border-color 160ms ease, box-shadow 160ms ease, background-color 160ms ease, transform 160ms ease;
}

.check-row input[type="checkbox"] {
    width: 20px;
    height: 20px;
    min-height: 20px;
    margin-top: 3px;
}

.check-row > span {
    min-width: 0;
}

.check-row:hover,
.check-row.is-selected {
    border-color: rgba(37, 99, 235, 0.44);
    background: rgba(239, 246, 255, 0.72);
    box-shadow: 0 14px 30px rgba(37, 99, 235, 0.10);
}

.check-row.is-selected {
    transform: translateY(-1px);
}

.experience-input {
    display: none;
    margin-top: 10px;
}

.check-row.is-selected .experience-input {
    display: block;
}

.camera-card {
    margin-top: 18px;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 20px;
    background: #ffffff;
}

.camera-frame {
    margin-top: 16px;
    border-top: 1px solid var(--line);
    padding-top: 16px;
}

.camera-frame video {
    width: 100%;
    min-height: 220px;
    max-height: 300px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid var(--line);
    background: #111111;
}

.avatar-capture {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fafafa;
    padding: 18px;
    display: grid;
    place-items: center;
    gap: 10px;
    cursor: pointer;
    color: var(--text);
    text-align: center;
}

.avatar-capture:hover {
    border-color: var(--dark);
    background: #f3f3f1;
}

.avatar-capture.is-invalid-face {
    border-color: #dc3545;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.12);
}

.avatar-capture.is-valid-face {
    border-color: #198754;
    box-shadow: 0 0 0 3px rgba(25, 135, 84, 0.12);
}

.avatar-capture.is-invalid-face .avatar-frame {
    border-color: #dc3545;
}

.avatar-capture.is-valid-face .avatar-frame {
    border-color: #198754;
}

.avatar-frame {
    position: relative;
    width: 142px;
    height: 142px;
    border-radius: 50%;
    border: 2px solid var(--dark);
    background: #ffffff;
    display: grid;
    place-items: center;
    overflow: hidden;
}

.avatar-placeholder {
    width: 56px;
    height: 56px;
    color: #2f2f32;
}

.avatar-placeholder svg {
    width: 100%;
    height: 100%;
}

.avatar-title {
    font-weight: 850;
    font-size: 18px;
}

.camera-preview {
    display: none;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.camera-preview[src]:not([src=""]) {
    display: block;
}

.camera-preview[src]:not([src=""])+.avatar-placeholder {
    display: none;
}

.profile-photo {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid var(--line);
    margin-bottom: 12px;
}

.profile-photo-empty {
    display: grid;
    place-items: center;
    background: #0f0f10;
    color: #ffffff;
    font-weight: 900;
}

.dashboard-layout {
    display: grid;
    grid-template-columns: 292px minmax(0, 1fr);
    min-height: calc(100vh - 32px);
    min-height: calc(100dvh - 32px - var(--safe-top) - var(--safe-bottom));
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.sidebar {
    background: var(--sidebar);
    color: #ffffff;
    padding:
        max(24px, var(--safe-top))
        18px
        max(24px, var(--safe-bottom));
    border-right: 1px solid rgba(255, 255, 255, 0.08);
}

html[dir="rtl"] .sidebar {
    border-right: 0;
    border-left: 1px solid rgba(255, 255, 255, 0.08);
    
}


.drawer-backdrop,
.dashboard-menu-btn {
    display: none;
}

.dashboard-menu-btn {
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #ffffff;
    color: var(--text);
}

.dashboard-menu-btn svg {
    width: 22px;
    height: 22px;
}

.nav-item {
    width: 100%;
    margin-top: 10px;
    padding: 12px 14px;
    border-radius: 10px;
    background: transparent;
    color: rgba(255, 255, 255, 0.74);
    font-weight: 800;
    transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}


html[dir="rtl"] .nav-item{
    text-align: right !important;
}

.nav-item:hover {
    background: var(--sidebar-soft);
    color: #ffffff;
    transform: translateX(2px);
}

html[dir="rtl"] .nav-item:hover {
    transform: translateX(-2px);
}

.nav-item.is-active {
    background: #ffffff;
    color: #0f0f10;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.18);
}

.sidebar-logout {
    border-color: #dc3545;
    color: #dc3545;
}

.sidebar-logout:hover {
    background: #dc3545;
    border-color: #dc3545;
    color: #ffffff;
}

.dashboard-main {
    background: var(--bg);
    min-width: 0;
}

.dashboard-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: calc(18px + var(--safe-top)) 24px 18px;
    border-bottom: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(12px);
}

.dashboard-content {
    padding:
        clamp(18px, 2vw, 30px)
        clamp(18px, 2vw, 30px)
        calc(clamp(18px, 2vw, 30px) + var(--safe-bottom));
}

.dashboard-section {
    width: 100%;
}

.section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.admin-kpi-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 14px;
}

.admin-kpi-grid-overview {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-bottom: 16px;
}

.admin-kpi-card {
    min-height: 116px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #ffffff;
    padding: 16px;
    box-shadow: 0 10px 28px rgba(10, 12, 16, 0.05);
}

.admin-kpi-card span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 850;
    text-transform: uppercase;
}

.admin-kpi-card strong {
    color: var(--text);
    font-size: clamp(22px, 2.4vw, 32px);
    line-height: 1.1;
}

.admin-kpi-card-dark {
    background: #111111;
    color: #ffffff;
}

.admin-kpi-card-dark span,
.admin-kpi-card-dark strong {
    color: #ffffff;
}

.admin-insight-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 14px;
}

.admin-insight-card {
    display: grid;
    gap: 6px;
    min-height: 112px;
    padding: 14px;
    border: 1px solid rgba(148, 163, 184, 0.28);
    border-radius: 14px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(248, 250, 252, 0.86)),
        #ffffff;
    box-shadow: 0 12px 30px rgba(10, 12, 16, 0.05);
}

.admin-insight-card span,
.admin-overview-filter label > span {
    color: var(--muted);
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
}

.admin-insight-card strong {
    color: var(--text);
    font-size: 26px;
    line-height: 1;
}

.admin-insight-card small {
    color: var(--muted);
    font-weight: 750;
}

.admin-overview-filter {
    margin-bottom: 14px;
}

.admin-overview-filter .card-body {
    display: grid;
    grid-template-columns: minmax(180px, 1.2fr) repeat(3, minmax(150px, 1fr)) auto;
    gap: 12px;
    align-items: end;
}

.admin-overview-filter label {
    display: grid;
    gap: 6px;
    margin: 0;
}

.admin-overview-shell,
.admin-map-row {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(320px, 0.7fr);
    gap: 14px;
    margin-bottom: 14px;
    align-items: stretch;
}

.admin-map-row {
    grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.55fr);
}

.admin-panel-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 14px;
}

.admin-chart-grid,
.admin-two-column,
.admin-three-column {
    display: grid;
    gap: 14px;
}

.admin-chart-grid,
.admin-two-column {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.admin-three-column {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.admin-chart-grid > div {
    min-width: 0;
    padding: 14px;
    border: 1px solid rgba(148, 163, 184, 0.23);
    border-radius: 12px;
    background: rgba(248, 250, 252, 0.72);
}

.admin-chart-grid h4 {
    margin: 0 0 10px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.admin-attention-list {
    display: grid;
    gap: 10px;
}

.admin-attention-list div {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 3px 12px;
    align-items: center;
    padding: 12px;
    border: 1px solid rgba(148, 163, 184, 0.24);
    border-radius: 12px;
    background: #ffffff;
}

.admin-attention-list span {
    color: var(--muted);
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
}

.admin-attention-list strong {
    grid-row: span 2;
    color: var(--text);
    font-size: 24px;
    line-height: 1;
}

.admin-attention-list small {
    color: var(--muted);
    font-weight: 750;
}

.admin-chart-wrap {
    position: relative;
    height: 300px;
}

.admin-chart-wrap-compact {
    height: 230px;
}

.admin-map {
    width: 100%;
    min-height: 380px;
    border: 1px solid var(--line);
    border-radius: 14px;
    overflow: hidden;
    background: #f2f3f5;
}

.admin-map-fallback {
    height: 430px;
    display: grid;
    place-items: center;
    padding: 24px;
    color: var(--muted);
    text-align: center;
}

.admin-demand-list {
    display: grid;
    gap: 10px;
}

.admin-demand-list div {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 4px 10px;
    align-items: center;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fafafa;
}

.admin-demand-list span {
    font-weight: 850;
    overflow-wrap: anywhere;
}

.admin-demand-list strong {
    font-size: 13px;
}

.admin-demand-list small {
    grid-column: 1 / -1;
    color: var(--muted);
}

.admin-mini-list,
.admin-activity-list {
    display: grid;
    gap: 10px;
}

.admin-mini-list div,
.admin-activity-item {
    min-width: 0;
    padding: 12px;
    border: 1px solid rgba(148, 163, 184, 0.25);
    border-radius: 12px;
    background: rgba(248, 250, 252, 0.74);
}

.admin-mini-list span,
.admin-activity-item strong {
    display: block;
    color: var(--text);
    font-weight: 900;
    overflow-wrap: anywhere;
}

.admin-mini-list strong,
.admin-activity-item span {
    display: block;
    margin-top: 3px;
    color: var(--text);
    font-size: 13px;
    overflow-wrap: anywhere;
}

.admin-mini-list small,
.admin-activity-item small {
    display: block;
    margin-top: 3px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 750;
    overflow-wrap: anywhere;
}

.admin-mini-list-compact {
    max-height: 420px;
    overflow: auto;
    padding-right: 4px;
}

.admin-activity-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.admin-activity-item:hover {
    transform: translateY(-1px);
    border-color: rgba(37, 99, 235, 0.34);
    box-shadow: 0 14px 30px rgba(37, 99, 235, 0.1);
}

.admin-activity-meta {
    display: grid;
    justify-items: end;
    gap: 5px;
    min-width: 132px;
    text-align: right;
}

.admin-activity-meta strong {
    font-size: 13px;
}

.admin-progress {
    display: block;
    height: 7px;
    margin-top: 9px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.09);
}

.admin-progress i {
    display: block;
    height: 100%;
    min-width: 7px;
    border-radius: inherit;
    background: linear-gradient(90deg, #0f766e, #2563eb);
}

.admin-overview-accordion {
    display: grid;
    gap: 12px;
}

.admin-overview-accordion .accordion-item {
    overflow: hidden;
    border: 1px solid rgba(226, 228, 232, 0.9);
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 10px 28px rgba(10, 12, 16, 0.04);
}

.admin-overview-accordion .accordion-button {
    min-height: 58px;
    padding: 16px 18px;
    color: var(--text);
    font-weight: 900;
    background: #ffffff;
    box-shadow: none;
}

.admin-overview-accordion .accordion-button:not(.collapsed) {
    background: rgba(248, 250, 252, 0.94);
}

.admin-overview-accordion .card-body {
    padding: 18px;
}

.dashboard-card,
.membership-card-ui,
.empty-state {
    border-radius: 14px;
    border: 1px solid rgba(226, 228, 232, 0.9);
}

.empty-state {
    width: min(100%, 620px);
    margin-top: clamp(40px, 8vh, 120px);
    padding: clamp(24px, 4vw, 42px);
    background: #ffffff;
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}

.section-icon {
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: #111111;
    color: #ffffff;
    font-weight: 900;
}

.membership-card-ui {
    position: relative;
    width: min(100%, 760px);
    min-height: 420px;
    margin-top: clamp(28px, 7vh, 96px);
    padding: clamp(26px, 4vw, 42px);
    overflow: hidden;
    color: #ffffff;
    background: #050506;
    border: 1px solid #2d2f35;
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.26);
}

.membership-card-shine {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(120deg, rgba(255, 255, 255, 0.12), transparent 34%),
        repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 36px);
    opacity: 0.85;
    pointer-events: none;
}

.membership-card-top,
.membership-chip-row,
.membership-card-bottom {
    position: relative;
    z-index: 1;
}

.membership-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
}

.membership-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    text-transform: uppercase;
}

.membership-brand-mark {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.08);
    font-weight: 950;
}

.membership-brand span:not(.membership-brand-mark) {
    display: block;
    color: rgba(255, 255, 255, 0.62);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.membership-brand strong {
    display: block;
    color: #ffffff;
    font-size: clamp(18px, 2.4vw, 28px);
    line-height: 1.1;
}

.membership-status {
    border: 1px solid rgba(255, 255, 255, 0.34);
    border-radius: 999px;
    padding: 9px 14px;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    font-weight: 850;
    text-transform: uppercase;
    font-size: 12px;
}

.membership-status-no_request,
.membership-status-rejected {
    background: #dc3545;
    border-color: #dc3545;
    color: #ffffff;
}

.membership-status-pending {
    background: #ffc107;
    border-color: #ffc107;
    color: #050506;
}

.membership-status-approved,
.membership-status-completed {
    background: #198754;
    border-color: #198754;
    color: #ffffff;
}

.membership-chip-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin: clamp(46px, 7vw, 72px) 0 clamp(34px, 5vw, 56px);
}

.membership-chip {
    width: 76px;
    height: 56px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 5px;
    padding: 8px;
    border-radius: 12px;
    background: #d9d9d9;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.2);
}

.membership-chip span {
    border: 1px solid rgba(0, 0, 0, 0.24);
    border-radius: 5px;
}

.membership-number {
    font-size: clamp(18px, 3vw, 30px);
    font-weight: 850;
    letter-spacing: 0.08em;
}

.membership-card-bottom {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
}

.membership-card-bottom p,
.membership-meta span {
    margin: 0 0 6px;
    color: rgba(255, 255, 255, 0.58);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.membership-card-bottom h3 {
    margin: 0 0 18px;
    color: #ffffff;
    font-size: clamp(22px, 3vw, 34px);
    font-weight: 900;
}

.membership-meta strong {
    color: #ffffff;
    font-size: 16px;
}

.membership-avatar {
    width: 108px;
    height: 132px;
    border-radius: 16px;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.34);
    background: #ffffff;
}

.membership-avatar-empty {
    display: grid;
    place-items: center;
    background: #ffffff;
    color: #050506;
    font-weight: 900;
}

.membership-review-note {
    width: min(100%, 620px);
    padding: 14px 16px;
    border: 1px solid rgba(225, 29, 72, 0.24);
    border-radius: 14px;
    background: rgba(255, 241, 242, 0.84);
    color: #7f1d1d;
    text-align: left;
    box-shadow: var(--shadow-soft);
}

.membership-review-note strong {
    display: block;
    margin-bottom: 6px;
}

.drone-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.22) !important;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(248, 250, 252, 0.84)),
        #ffffff;
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.drone-card:hover {
    border-color: rgba(37, 99, 235, 0.34) !important;
    box-shadow: 0 22px 48px rgba(16, 24, 40, 0.13) !important;
    transform: translateY(-2px);
}

.drone-card-visual {
    position: relative;
    isolation: isolate;
    height: 230px;
    padding: 16px;
    overflow: hidden;
    background:
        radial-gradient(circle at 22% 22%, rgba(37, 99, 235, 0.38), transparent 26%),
        radial-gradient(circle at 78% 34%, rgba(15, 118, 110, 0.28), transparent 28%),
        linear-gradient(135deg, rgba(13, 20, 34, 0.98), rgba(23, 32, 51, 0.93) 48%, rgba(12, 74, 110, 0.88));
    border-bottom: 1px solid rgba(15, 23, 42, 0.12);
}

.drone-card-visual::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.055) 1px, transparent 1px);
    background-size: 28px 28px;
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.88), transparent 92%);
    pointer-events: none;
    z-index: -1;
}

.drone-card-visual::after {
    content: "";
    position: absolute;
    inset: 16px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 14px;
    pointer-events: none;
}

.drone-card-img {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    padding: 2px;
    background: rgba(255, 255, 255, 0.10);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 14px;
    filter: drop-shadow(0 22px 28px rgba(0, 0, 0, 0.28));
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.drone-card-empty {
    display: grid;
    place-items: center;
    align-content: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.82);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.drone-empty-mark {
    width: min(58%, 170px);
    aspect-ratio: 1;
    display: block;
    background: url("../imgs/drone-icon.png") center / contain no-repeat;
    opacity: 0.9;
    filter: drop-shadow(0 20px 28px rgba(0, 0, 0, 0.24));
}

.drone-card-visual-label,
.drone-card-id {
    position: absolute;
    z-index: 2;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    font-size: 11px;
    font-weight: 900;
    line-height: 1;
}

.drone-card-visual-label {
    top: 14px;
    left: 14px;
    padding: 8px 9px;
    border-radius: 999px;
    letter-spacing: 0.12em;
}

.drone-card-id {
    right: 14px;
    bottom: 14px;
    padding: 9px 10px;
    border-radius: 10px;
    color: #ffffff;
}

.drone-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 12px;
}

.drone-card-reg {
    color: var(--muted);
    font-size: 12px;
    font-weight: 850;
}

.drone-card-title {
    margin: 0;
    color: var(--text);
    font-size: 20px;
    font-weight: 900;
    line-height: 1.2;
}

.drone-card-subtitle {
    margin: 4px 0 14px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}

.drone-identity-strip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
    padding: 10px 12px;
    border: 1px solid rgba(37, 99, 235, 0.16);
    border-radius: 12px;
    background:
        linear-gradient(135deg, rgba(239, 246, 255, 0.96), rgba(240, 253, 250, 0.74)),
        #ffffff;
}

.drone-identity-strip span {
    color: var(--muted);
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
}

.drone-identity-strip strong {
    color: #1d4ed8;
    font-size: 13px;
    font-weight: 950;
}

.drone-action-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.incoming-transfer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 14px;
}

.incoming-transfer-card {
    overflow: hidden;
    border: 1px solid rgba(245, 158, 11, 0.38);
    border-radius: 14px;
    background: #ffffff;
    box-shadow: var(--shadow-soft);
}

.incoming-transfer-body {
    padding: 16px;
}

.transfer-confirm-actions {
    opacity: 1;
    transform: none;
}

.transfer-confirm-actions .btn {
    animation: transferDecisionPulse 1.8s ease-in-out infinite;
}

.incoming-transfer-card:hover .transfer-confirm-actions .btn,
.incoming-transfer-card:focus-within .transfer-confirm-actions .btn {
    animation-play-state: paused;
}

@keyframes transferDecisionPulse {
    0%,
    100% {
        opacity: 0.78;
        box-shadow: 0 0 0 0 rgba(23, 32, 51, 0.22);
    }

    50% {
        opacity: 1;
        box-shadow: 0 0 0 6px rgba(23, 32, 51, 0.08);
    }
}

.transfer-lookup-status {
    margin-top: 10px;
    min-height: 38px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #f8fafc;
    color: var(--muted);
    padding: 9px 11px;
    font-size: 13px;
    font-weight: 800;
}

.transfer-lookup-status.is-loading {
    border-color: rgba(37, 99, 235, 0.26);
    background: rgba(239, 246, 255, 0.82);
    color: #1d4ed8;
}

.transfer-lookup-status.is-valid {
    border-color: rgba(8, 116, 67, 0.28);
    background: #f0fdf4;
    color: var(--success);
}

.transfer-lookup-status.is-invalid {
    border-color: rgba(180, 35, 24, 0.24);
    background: #fff2f4;
    color: var(--danger);
}

.removed-drone-reason {
    border: 1px solid rgba(180, 35, 24, 0.20);
    border-radius: 12px;
    background: #fff7f7;
    padding: 12px;
}

.removed-drone-reason span {
    display: block;
    margin-bottom: 6px;
    color: var(--danger);
    font-size: 12px;
    font-weight: 850;
    text-transform: uppercase;
}

.drone-spec-grid,
.request-stat-grid,
.request-time-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.drone-spec-grid div,
.request-stat-grid div,
.request-time-row div {
    border: 1px solid rgba(148, 163, 184, 0.26);
    border-radius: 10px;
    background: rgba(248, 250, 252, 0.82);
    padding: 10px;
}

.drone-spec-grid span,
.request-stat-grid span,
.request-time-row span,
.request-route-box span,
.permit-grid span {
    display: block;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.drone-spec-grid strong,
.request-stat-grid strong,
.request-time-row strong,
.request-route-box strong,
.permit-grid strong {
    display: block;
    overflow-wrap: anywhere;
}

.request-card {
    overflow: hidden;
}

.admin-request-filter .form-label {
    color: var(--muted);
    font-size: 12px;
    font-weight: 850;
    text-transform: uppercase;
}

.admin-request-card {
    border-top: 4px solid #111111 !important;
}

.admin-request-actions {
    padding-top: 12px;
    border-top: 1px solid var(--line);
}

.admin-request-status-card {
    display: grid;
    gap: 8px;
    margin-top: 12px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #f8f9fa;
}

.admin-request-status-card span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 850;
    text-transform: uppercase;
}

.admin-request-status-card strong {
    font-size: 18px;
}

.admin-request-detail-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    padding: 12px;
    border: 1px solid rgba(148, 163, 184, 0.26);
    border-radius: 12px;
    background: rgba(248, 250, 252, 0.58);
}

.admin-request-detail-grid div {
    min-width: 0;
    padding: 10px;
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.68);
}

.admin-request-detail-grid span {
    display: block;
    color: var(--muted);
    font-size: 11px;
    font-weight: 850;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.admin-request-detail-grid strong {
    display: block;
    overflow-wrap: anywhere;
}

.admin-request-detail-wide {
    grid-column: 1 / -1;
}

.admin-membership-kpi-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.admin-membership-head {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
}

.admin-membership-summary {
    width: 100%;
    display: grid;
    gap: 14px;
    padding: 16px;
    border-radius: var(--radius);
    color: var(--text);
    text-align: left;
    cursor: pointer;
    transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.admin-membership-summary:hover,
.admin-membership-summary:focus-visible {
    transform: translateY(-2px);
    border-color: rgba(37, 99, 235, 0.42);
    box-shadow: 0 18px 42px rgba(37, 99, 235, 0.14);
    outline: 0;
}

.admin-membership-summary-top,
.admin-membership-detail-head {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
}

.admin-membership-summary-title {
    min-width: 0;
    display: grid;
    gap: 6px;
}

.admin-membership-summary-title strong {
    overflow-wrap: anywhere;
    font-size: 17px;
}

.admin-membership-summary-title small {
    color: var(--muted);
    font-weight: 800;
}

.admin-membership-summary-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.admin-membership-summary-grid span {
    min-width: 0;
    padding: 10px;
    border: 1px solid rgba(148, 163, 184, 0.24);
    border-radius: 10px;
    background: rgba(248, 250, 252, 0.66);
}

.admin-membership-summary-grid em {
    display: block;
    color: var(--muted);
    font-size: 11px;
    font-style: normal;
    font-weight: 850;
    text-transform: uppercase;
}

.admin-membership-summary-grid strong {
    display: block;
    overflow-wrap: anywhere;
    font-size: 13px;
}

.admin-membership-summary-action {
    color: var(--accent);
    font-size: 13px;
    font-weight: 900;
}

.admin-membership-photo {
    width: 92px;
    height: 112px;
    border: 1px solid var(--line);
    border-radius: 14px;
    object-fit: cover;
    background: #ffffff;
}

.admin-membership-photo-empty {
    display: grid;
    place-items: center;
    color: #ffffff;
    background: #172033;
    font-weight: 900;
}

.admin-membership-detail-photo {
    width: 92px;
    height: 112px;
    border: 1px solid var(--line);
    border-radius: 14px;
    object-fit: cover;
    background: #ffffff;
}

.request-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin: -4px 0 16px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--line);
}

.request-route-box {
    display: grid;
    gap: 10px;
    margin: 14px 0;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #ffffff;
}

.request-route-line {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    color: var(--text);
}

.request-route-line span {
    margin: 0;
    padding: 10px;
    border-radius: 10px;
    background: #f3f4f6;
    text-transform: none;
    font-size: 13px;
}

.request-route-line strong {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #111111;
    color: #ffffff;
    font-size: 11px;
    text-transform: uppercase;
}

.request-time-row {
    margin-bottom: 14px;
}

.invoice-box {
    height: 100%;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #ffffff;
    padding: 16px;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.55);
}

.request-stepper {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 18px;
}

.request-stepper span {
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #ffffff;
    color: var(--muted);
    padding: 12px;
    font-weight: 850;
    text-align: center;
}

.request-stepper span.is-active {
    background: #111111;
    border-color: #111111;
    color: #ffffff;
}

.payment-target-card {
    display: grid;
    gap: 8px;
    height: 100%;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #ffffff;
    padding: 16px;
    box-shadow: 0 8px 24px rgba(10, 12, 16, 0.04);
}

.payment-target-card span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 850;
    text-transform: uppercase;
}

.payment-target-card strong {
    font-size: 18px;
}

.payment-target-card code {
    display: block;
    overflow-wrap: anywhere;
    border-radius: 10px;
    background: #f5f5f5;
    color: #111111;
    padding: 10px;
}

.request-result {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 140px;
    gap: 16px;
    align-items: center;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fafafa;
}

.request-result > img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 8px;
}

.request-qr {
    width: 120px;
    height: 120px;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.permit-modal-content {
    background: #f5f6f8;
}

.permit-document {
    width: min(100%, 980px);
    margin: 0 auto;
    padding: clamp(20px, 3vw, 34px);
    border: 1px solid #111111;
    border-radius: 16px;
    background: #ffffff;
    color: #111111;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
}

.permit-document-public {
    margin: 0;
}

.permit-print-actions {
    width: min(100%, 980px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin: 0 0 14px;
    padding: 12px 14px;
    border: 1px solid rgba(148, 163, 184, 0.28);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.86);
    box-shadow: var(--shadow-soft);
}

.permit-print-actions strong,
.permit-print-actions span {
    display: block;
}

.permit-print-actions span {
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}

.permit-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    padding-bottom: 18px;
    border-bottom: 2px solid #111111;
}

.permit-header p {
    margin: 0 0 6px;
    color: #555555;
    font-size: 13px;
    font-weight: 850;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.permit-header h1 {
    margin: 0;
    font-size: clamp(24px, 4vw, 42px);
    font-weight: 950;
    letter-spacing: 0;
}

.permit-header img {
    width: 150px;
    height: 150px;
    border: 1px solid #111111;
    border-radius: 12px;
    padding: 8px;
    background: #ffffff;
}

.permit-number-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin: 18px 0;
    padding: 14px;
    border: 1px solid #111111;
    border-radius: 12px;
    background: #f6f6f6;
}

.permit-number-row span {
    color: #555555;
    font-weight: 850;
    text-transform: uppercase;
}

.permit-number-row strong {
    margin-right: auto;
    font-size: 20px;
    letter-spacing: 0.04em;
}

html[dir="rtl"] .permit-number-row strong {
    margin-right: 0;
    margin-left: auto;
}

.permit-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.permit-grid div {
    min-height: 76px;
    padding: 12px;
    border: 1px solid #d8dbe0;
    border-radius: 10px;
    background: #ffffff;
}

.permit-grid-wide {
    grid-column: span 3;
}

.permit-footer {
    margin-top: 18px;
    padding: 14px;
    border: 1px solid #111111;
    border-radius: 12px;
    background: #111111;
    color: #ffffff;
}

.verification-shell {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
    background: var(--bg);
}

.verification-card {
    width: min(100%, 680px);
    border-radius: 14px;
}

.verification-image {
    width: 100%;
    max-height: 440px;
    object-fit: contain;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: #ffffff;
}

.profile-card {
    position: relative;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.82);
}

.profile-cover {
    position: relative;
    min-height: 210px;
    background:
        linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px),
        radial-gradient(circle at 82% 18%, rgba(45, 212, 191, 0.34), transparent 28%),
        radial-gradient(circle at 22% 8%, rgba(96, 165, 250, 0.42), transparent 28%),
        linear-gradient(135deg, #101828 0%, #1d4ed8 55%, #0f766e 100%);
    background-size: 34px 34px, 34px 34px, auto, auto, auto;
}

.profile-cover::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 88px;
    background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.92));
}

.profile-body {
    position: relative;
    padding: 0 28px 28px;
}

.profile-hero {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
    margin-top: -74px;
}

.profile-identity {
    display: flex;
    align-items: flex-end;
    gap: 18px;
    min-width: 0;
}

.profile-photo-wrap {
    position: relative;
    flex: 0 0 auto;
}

.profile-card .profile-photo {
    width: 148px;
    height: 148px;
    margin: 0;
    border: 5px solid rgba(255, 255, 255, 0.96);
    border-radius: 24px;
    box-shadow: 0 20px 46px rgba(16, 24, 40, 0.22);
    background: #ffffff;
}

.profile-photo-wrap::after {
    content: "";
    position: absolute;
    right: 12px;
    bottom: 10px;
    width: 18px;
    height: 18px;
    border: 3px solid #ffffff;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 8px 18px rgba(16, 185, 129, 0.25);
}

html[dir="rtl"] .profile-photo-wrap::after {
    right: auto;
    left: 12px;
}

.profile-card .profile-photo-empty {
    display: grid;
    place-items: center;
    background:
        linear-gradient(135deg, rgba(15, 23, 42, 0.98), rgba(37, 99, 235, 0.88)),
        #172033;
    color: #ffffff;
    font-size: 38px;
    font-weight: 900;
    letter-spacing: 0.04em;
}

.profile-title {
    min-width: 0;
    padding-bottom: 8px;
}

.profile-kicker {
    display: inline-flex;
    margin-bottom: 6px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.10);
    color: #1d4ed8;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.profile-title h1 {
    margin: 0;
    color: var(--text);
    font-size: clamp(28px, 3vw, 42px);
    font-weight: 900;
    line-height: 1.05;
    overflow-wrap: anywhere;
}

.profile-title p {
    margin: 6px 0 12px;
    color: var(--muted);
    font-weight: 800;
    overflow-wrap: anywhere;
}

.profile-code-pill {
    width: fit-content;
    max-width: 100%;
    display: inline-grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
    padding: 7px 8px 7px 12px;
    border: 1px solid rgba(148, 163, 184, 0.28);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.84);
    box-shadow: 0 12px 28px rgba(16, 24, 40, 0.08);
}

.profile-code-pill span {
    color: var(--muted);
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    white-space: nowrap;
}

.profile-code-pill code {
    color: var(--text);
    font-weight: 900;
    overflow: hidden;
    text-overflow: ellipsis;
}

.profile-code-pill .btn {
    width: 34px;
    height: 34px;
    display: inline-grid;
    place-items: center;
    padding: 0;
    border-radius: 50%;
}

.profile-edit-btn {
    min-width: 136px;
    margin-bottom: 12px;
    border-radius: 999px;
    box-shadow: 0 16px 34px rgba(16, 24, 40, 0.16);
}

.pwa-install-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
    margin-bottom: 18px;
    padding: 16px;
    border: 1px solid rgba(15, 118, 110, 0.18);
    border-radius: var(--radius);
    background:
        linear-gradient(135deg, rgba(15, 118, 110, 0.10), rgba(37, 99, 235, 0.08)),
        rgba(255, 255, 255, 0.82);
    box-shadow: var(--shadow-soft);
}

.pwa-install-card span {
    display: block;
    color: var(--accent-2);
    font-size: 12px;
    font-weight: 950;
    margin-bottom: 4px;
}

.pwa-install-card h2 {
    margin: 0 0 5px;
    color: var(--text);
    font-size: 20px;
    font-weight: 950;
}

.pwa-install-card p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
    font-weight: 750;
    line-height: 1.7;
}

.pwa-install-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.pwa-install-actions .btn {
    min-height: 42px;
    border-radius: 999px;
    font-weight: 900;
    white-space: nowrap;
}

.pwa-install-status {
    grid-column: 1 / -1;
    padding-top: 2px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 850;
}

.pwa-install-help {
    display: grid;
    gap: 14px;
}

.pwa-install-help h3 {
    margin: 0;
    color: var(--text);
    font-size: 17px;
    font-weight: 950;
}

.pwa-install-help ol {
    margin: 0;
    padding-inline-start: 22px;
    color: var(--muted);
    font-weight: 800;
    line-height: 1.8;
}

.profile-overview {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin: 24px 0 18px;
}

.profile-overview div {
    min-width: 0;
    padding: 14px;
    border: 1px solid rgba(148, 163, 184, 0.24);
    border-radius: var(--radius-sm);
    background: rgba(248, 250, 252, 0.82);
}

.profile-overview span,
.profile-info-grid .data-tile span {
    display: block;
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
    margin-bottom: 5px;
}

.profile-overview strong,
.profile-info-grid .data-tile strong {
    display: block;
    color: var(--text);
    overflow-wrap: anywhere;
}

.profile-list,
.profile-info-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.profile-info-grid .data-tile {
    min-height: 92px;
    padding: 15px;
    border-radius: var(--radius-sm);
    transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.profile-info-grid .data-tile:hover {
    border-color: rgba(37, 99, 235, 0.28);
    box-shadow: 0 16px 34px rgba(37, 99, 235, 0.10);
    transform: translateY(-1px);
}

.profile-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 240px;
    gap: 16px;
}

.profile-edit-form {
    margin-top: 24px;
    padding: 18px;
    border: 1px solid rgba(148, 163, 184, 0.24);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.68);
}

.profile-code-change-box {
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #f8f9fa;
    padding: 14px;
}

.profile-code-change-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.profile-code-change-row span {
    display: block;
    color: var(--muted);
    font-size: 12px;
    font-weight: 850;
    text-transform: uppercase;
}

.profile-code-change-row strong {
    display: block;
    font-size: 24px;
    letter-spacing: 0.08em;
}

.login-credentials-card {
    display: grid;
    gap: 10px;
}

.login-credential-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    padding: 12px;
    border: 1px solid rgba(148, 163, 184, 0.28);
    border-radius: 12px;
    background: rgba(248, 250, 252, 0.86);
}

.login-credential-row span {
    display: block;
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.login-credential-row strong {
    display: block;
    margin-top: 3px;
    color: var(--text);
    font-size: 20px;
    font-weight: 900;
    letter-spacing: 0.06em;
    overflow-wrap: anywhere;
}

.copy-icon-btn {
    width: 38px;
    height: 38px;
    display: inline-grid;
    place-items: center;
    padding: 0;
}

.copy-icon-btn svg {
    width: 18px;
    height: 18px;
}

.data-tile {
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #ffffff;
    padding: 14px;
    box-shadow: 0 8px 24px rgba(10, 12, 16, 0.04);
}

.data-tile span {
    display: block;
    color: var(--muted);
    font-size: 13px;
    margin-bottom: 4px;
}

.data-tile strong {
    overflow-wrap: anywhere;
}

.qr-card {
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #ffffff;
    padding: 16px;
    text-align: center;
    box-shadow: 0 8px 24px rgba(10, 12, 16, 0.04);
}

.qr-card img {
    width: 180px;
    height: 180px;
    max-width: 100%;
    border: 1px solid var(--line);
}

/* Modern glass UI layer */
body.ui-glass::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(16, 24, 40, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(16, 24, 40, 0.035) 1px, transparent 1px);
    background-size: 44px 44px;
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.62), transparent 82%);
}

.shell {
    padding: clamp(14px, 2vw, 28px);
}

.app-card,
.dashboard-card,
.admin-kpi-card,
.data-tile,
.qr-card,
.payment-target-card,
.invoice-box,
.empty-state,
.review-card,
.camera-card,
.check-row,
.request-route-box,
.admin-request-status-card,
.admin-demand-list div,
.profile-code-change-box,
.login-credential-row,
.verification-card {
    background: var(--glass);
    border: 1px solid rgba(255, 255, 255, 0.66);
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(18px) saturate(135%);
    -webkit-backdrop-filter: blur(18px) saturate(135%);
}

.app-card,
.panel,
.dashboard-card,
.empty-state,
.verification-card {
    border-radius: var(--radius);
}

.panel {
    background: var(--glass);
    border-color: rgba(255, 255, 255, 0.66);
    box-shadow: var(--shadow-soft);
}

.auth-card {
    overflow: hidden;
}

.auth-card .card-body,
.panel {
    position: relative;
}

.auth-card .card-body::before,
.panel::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent), var(--accent-2), var(--accent-3));
}

.brand {
    color: var(--text);
}

.brand-mark,
.section-icon {
    border-radius: var(--radius-sm);
    background: linear-gradient(135deg, var(--dark), #243b63);
    box-shadow: 0 12px 26px rgba(23, 32, 51, 0.22);
}

.topline {
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, 0.58);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.58);
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.steps {
    padding: 6px;
    border: 1px solid rgba(255, 255, 255, 0.58);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.56);
    box-shadow: 0 10px 30px rgba(16, 24, 40, 0.06);
}

.step {
    min-height: 50px;
    display: flex;
    align-items: center;
    border-color: transparent;
    border-radius: var(--radius-sm);
    background: transparent;
}

.step.is-active {
    background: linear-gradient(135deg, var(--dark), #1d4ed8);
    border-color: rgba(255, 255, 255, 0.18);
    box-shadow: 0 14px 30px rgba(37, 99, 235, 0.18);
}

label,
.form-label {
    color: #344054;
    font-size: 13px;
}

input,
select,
textarea,
.form-control,
.form-select {
    border-color: rgba(148, 163, 184, 0.38);
    border-radius: var(--radius-sm);
    background-color: rgba(255, 255, 255, 0.78);
    color: var(--text);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82);
    transition: border-color 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

input:focus,
select:focus,
textarea:focus,
.form-control:focus,
.form-select:focus {
    border-color: rgba(37, 99, 235, 0.72);
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.9);
    outline: 0;
}

.form-check {
    min-height: 46px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border: 1px solid rgba(148, 163, 184, 0.30);
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.62);
    transition: border-color 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.form-check:hover,
.form-check:has(.form-check-input:checked) {
    border-color: rgba(37, 99, 235, 0.42);
    background: rgba(239, 246, 255, 0.72);
    box-shadow: 0 12px 26px rgba(37, 99, 235, 0.08);
}

.form-check-input {
    width: 20px;
    height: 20px;
    min-width: 20px;
    min-height: 20px;
    flex: 0 0 20px;
    float: none;
    margin: 0;
    border-radius: 6px;
    border-color: rgba(71, 84, 103, 0.34);
    cursor: pointer;
}

.form-check-input:checked {
    background-color: var(--accent);
    border-color: var(--accent);
}

.form-check-label {
    margin: 0;
    color: var(--text);
    font-weight: 800;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.table .form-check-input {
    display: inline-block;
    vertical-align: middle;
}

.btn {
    border-radius: var(--radius-sm);
    font-weight: 800;
    transition: transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease, border-color 160ms ease;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-dark,
.btn-primary {
    border-color: transparent;
    background: linear-gradient(135deg, var(--dark), #1d4ed8);
    color: #ffffff;
    box-shadow: 0 14px 28px rgba(37, 99, 235, 0.18);
}

.btn-dark:hover,
.btn-primary:hover {
    background: linear-gradient(135deg, #0f172a, #1e40af);
    color: #ffffff;
}

.btn-outline-dark,
.btn-secondary {
    border-color: rgba(23, 32, 51, 0.18);
    background: rgba(255, 255, 255, 0.74);
    color: var(--dark);
}

.btn-outline-dark:hover,
.btn-secondary:hover {
    border-color: rgba(37, 99, 235, 0.44);
    background: rgba(239, 246, 255, 0.9);
    color: #1d4ed8;
}

.btn-outline-danger,
.sidebar-logout {
    border-color: rgba(225, 29, 72, 0.36);
    color: #be123c;
}

.sidebar-logout:hover {
    background: #be123c;
    border-color: #be123c;
}

.error-box,
.notice-box {
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.error-box {
    border-color: rgba(225, 29, 72, 0.28);
    background: rgba(255, 241, 242, 0.86);
}

.notice-box {
    border-color: rgba(8, 116, 67, 0.24);
    background: rgba(236, 253, 245, 0.86);
}

.drop-zone,
.avatar-capture {
    border-color: rgba(148, 163, 184, 0.42);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.56);
    transition: border-color 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
}

.drop-zone:hover,
.drop-zone.is-over,
.avatar-capture:hover {
    border-color: rgba(37, 99, 235, 0.62);
    background: rgba(239, 246, 255, 0.76);
    box-shadow: 0 14px 30px rgba(37, 99, 235, 0.10);
}

.avatar-frame,
.profile-photo,
.preview-img,
.request-qr,
.verification-image {
    border-color: rgba(148, 163, 184, 0.36);
}

.dashboard-layout {
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.42);
    box-shadow: var(--shadow);
    border-color: rgba(255, 255, 255, 0.66);
}

.sidebar {
    background:
        linear-gradient(180deg, rgba(23, 32, 51, 0.96), rgba(15, 23, 42, 0.92)),
        var(--sidebar);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.sidebar .brand {
    color: #ffffff;
    margin-bottom: 18px;
}

.nav-item {
    min-height: 46px;
    border: 1px solid transparent !important;
    color: rgba(255, 255, 255, 0.76);
}

.nav-item:hover {
    border-color: rgba(255, 255, 255, 0.08) !important;
    background: rgba(255, 255, 255, 0.09);
}

.nav-item.is-active {
    background: rgba(255, 255, 255, 0.94);
    color: #172033;
}

.dashboard-main {
    background: rgba(248, 250, 252, 0.48);
    position: relative;
    overflow: hidden;
}

.dashboard-main::before , .registration-wrap::before {
    content: "";
    position: absolute;
    inset: auto clamp(18px, 5vw, 72px) clamp(24px, 6vw, 86px) auto;
    width: min(42vw, 520px);
    aspect-ratio: 1;
    background: url("../imgs/drone-icon.png") center / contain no-repeat;
    opacity: 0.035;
    pointer-events: none;
    z-index: 0;
}


html[dir="rtl"] .dashboard-main::before {
    inset-inline-right: auto;
    inset-inline-left: clamp(18px, 5vw, 72px);
}

.dashboard-topbar,
.dashboard-content {
    position: relative;
}

.dashboard-topbar {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(255, 255, 255, 0.76);
    border-bottom-color: rgba(148, 163, 184, 0.24);
    box-shadow: 0 12px 30px rgba(16, 24, 40, 0.05);
}

.dashboard-menu-btn {
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 10px 22px rgba(16, 24, 40, 0.08);
}

.section-head h1,
.section-head h2,
.section-head h3,
.dashboard-topbar strong {
    color: var(--text);
    letter-spacing: 0;
}

.dashboard-card .card-body,
.app-card .card-body {
    padding: clamp(18px, 2vw, 28px);
}

.admin-kpi-card {
    position: relative;
    overflow: hidden;
    min-height: 128px;
}

.admin-kpi-card::after {
    content: "";
    position: absolute;
    inset: auto 16px 14px 16px;
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    opacity: 0.8;
}

.admin-kpi-card:nth-child(3n + 2)::after {
    background: linear-gradient(90deg, var(--accent-2), #f59e0b);
}

.admin-kpi-card:nth-child(3n)::after {
    background: linear-gradient(90deg, var(--accent-3), var(--accent));
}

.admin-kpi-card-dark {
    background: linear-gradient(135deg, #111827, #1d4ed8);
}

.admin-map,
.admin-chart-wrap {
    border-radius: var(--radius);
}

.admin-map {
    border-color: rgba(148, 163, 184, 0.32);
}

.table {
    --bs-table-bg: transparent;
    --bs-table-striped-bg: rgba(248, 250, 252, 0.62);
    --bs-table-hover-bg: rgba(239, 246, 255, 0.66);
    color: var(--text);
}

.table thead th {
    color: #475467;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
    border-bottom-color: rgba(148, 163, 184, 0.32);
}

.table tbody td {
    border-color: rgba(148, 163, 184, 0.22);
}

.badge {
    border-radius: 999px;
    padding: 0.5em 0.72em;
    font-weight: 850;
}

.text-bg-success {
    background-color: rgba(8, 116, 67, 0.14) !important;
    color: #067647 !important;
}

.text-bg-danger {
    background-color: rgba(180, 35, 24, 0.13) !important;
    color: #b42318 !important;
}

.text-bg-warning {
    background-color: rgba(247, 144, 9, 0.18) !important;
    color: #93370d !important;
}

.text-bg-secondary {
    background-color: rgba(71, 84, 103, 0.12) !important;
    color: #344054 !important;
}

.data-tile,
.drone-spec-grid div,
.request-stat-grid div,
.request-time-row div,
.permit-grid div {
    background: rgba(255, 255, 255, 0.68);
    border-color: rgba(148, 163, 184, 0.28);
}

.drone-card,
.request-card,
.admin-request-card {
    border-radius: var(--radius);
}

.request-route-line span,
.payment-target-card code {
    background: rgba(248, 250, 252, 0.78);
}

.admin-request-card {
    border-top-color: var(--accent) !important;
}

.request-route-line strong,
.request-stepper span.is-active {
    background: linear-gradient(135deg, var(--dark), var(--accent));
}

.request-stepper span {
    min-height: 48px;
    display: grid;
    place-items: center;
    border-color: rgba(148, 163, 184, 0.28);
    background: rgba(255, 255, 255, 0.64);
}

.market-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
}

.market-toolbar {
    display: grid;
    grid-template-columns: auto minmax(220px, 1fr) minmax(150px, 220px) minmax(130px, 190px);
    align-items: end;
    gap: 16px;
    padding: 16px;
    border-radius: var(--radius);
}

.market-toolbar > div {
    display: grid;
    gap: 4px;
}

.market-toolbar span,
.market-search span,
.market-cart-count {
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.market-toolbar strong {
    font-size: 28px;
    line-height: 1;
}

.market-search {
    margin: 0;
}

.market-cart-button {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 1px solid rgba(37, 99, 235, 0.22);
    border-radius: var(--radius-sm);
    background: rgba(239, 246, 255, 0.88);
    color: #1d4ed8;
    padding: 10px 14px;
    font-weight: 900;
    box-shadow: 0 12px 26px rgba(37, 99, 235, 0.08);
}

.market-cart-button strong {
    min-width: 26px;
    height: 26px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: #1d4ed8;
    color: #ffffff;
    font-size: 12px;
}

.cart-glyph {
    position: relative;
    width: 22px;
    height: 18px;
    display: inline-block;
    border: 2px solid currentColor;
    border-top: 0;
    border-radius: 2px 2px 6px 6px;
}

.cart-glyph::before {
    content: "";
    position: absolute;
    inset: -7px auto auto -4px;
    width: 10px;
    height: 8px;
    border-top: 2px solid currentColor;
    border-left: 2px solid currentColor;
    transform: skewX(-18deg);
}

.cart-glyph::after {
    content: "";
    position: absolute;
    left: 2px;
    right: 2px;
    bottom: -7px;
    height: 4px;
    border-radius: 999px;
    box-shadow: 0 0 0 2px currentColor, 14px 0 0 0 currentColor;
}

.market-offcanvas {
    --bs-offcanvas-width: min(80vw, 980px);
    border-inline-start: 1px solid rgba(148, 163, 184, 0.28);
    background: rgba(248, 250, 252, 0.96);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.market-offcanvas .offcanvas-header {
    border-bottom: 1px solid rgba(148, 163, 184, 0.24);
}

.market-card,
.market-request-card {
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.24);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.72);
    box-shadow: var(--shadow-soft);
}

.market-card {
    display: flex;
    flex-direction: column;
}

.market-card-visual {
    position: relative;
    height: 210px;
    display: grid;
    place-items: center;
    padding: 24px;
    background:
        linear-gradient(135deg, rgba(15, 23, 42, 0.94), rgba(37, 99, 235, 0.74)),
        repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.07) 0 1px, transparent 1px 34px);
}

.market-card-visual img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 18px 28px rgba(0, 0, 0, 0.26));
}

.market-card-visual span {
    position: absolute;
    top: 12px;
    inset-inline-start: 12px;
    padding: 7px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.88);
    color: var(--dark);
    font-size: 12px;
    font-weight: 900;
}

.market-card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 18px;
}

.market-card-body > p {
    color: var(--muted);
    margin: 0;
}

.market-card-meta {
    display: grid;
    gap: 4px;
    padding: 12px;
    border: 1px solid rgba(148, 163, 184, 0.24);
    border-radius: var(--radius-sm);
    background: rgba(248, 250, 252, 0.72);
}

.market-card-meta span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.market-card-meta strong {
    color: var(--text);
    overflow-wrap: anywhere;
}

.market-cart-panel {
    padding: 16px;
    border: 1px solid rgba(148, 163, 184, 0.24);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.58);
    box-shadow: var(--shadow-soft);
}

.market-cart-count {
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.10);
    color: #1d4ed8;
}

.market-order-list {
    display: grid;
    gap: 12px;
}

.market-cart-empty {
    padding: 18px;
    border: 1px dashed rgba(148, 163, 184, 0.38);
    border-radius: var(--radius-sm);
    background: rgba(248, 250, 252, 0.66);
    text-align: center;
}

.market-order-card {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    gap: 14px;
    padding: 14px;
    border: 1px solid rgba(148, 163, 184, 0.24);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.76);
    box-shadow: var(--shadow-soft);
}

.market-order-card > img {
    width: 112px;
    height: 112px;
    object-fit: contain;
    padding: 12px;
    border: 1px solid rgba(148, 163, 184, 0.24);
    border-radius: var(--radius-sm);
    background:
        linear-gradient(135deg, rgba(15, 23, 42, 0.08), rgba(37, 99, 235, 0.08)),
        rgba(248, 250, 252, 0.8);
}

.market-order-main {
    display: grid;
    gap: 10px;
    min-width: 0;
}

.market-order-steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
}

.market-order-steps span {
    min-height: 32px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(148, 163, 184, 0.24);
    border-radius: 999px;
    background: rgba(248, 250, 252, 0.8);
    color: var(--muted);
    font-size: 12px;
    font-weight: 850;
}

.market-order-steps span.is-complete {
    border-color: rgba(8, 116, 67, 0.24);
    background: rgba(236, 253, 245, 0.9);
    color: #067647;
}

.market-order-steps[data-status="rejected"] span {
    border-color: rgba(225, 29, 72, 0.20);
    background: rgba(255, 241, 242, 0.9);
    color: #be123c;
}

.market-detail-head {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 18px;
    align-items: center;
}

.market-detail-head img {
    width: 100%;
    height: 170px;
    object-fit: contain;
    padding: 18px;
    border: 1px solid rgba(148, 163, 184, 0.24);
    border-radius: var(--radius);
    background: rgba(248, 250, 252, 0.78);
}

.market-spec-box {
    display: grid;
    gap: 10px;
    padding: 14px;
    border: 1px solid rgba(148, 163, 184, 0.24);
    border-radius: var(--radius-sm);
    background:
        linear-gradient(135deg, rgba(248, 250, 252, 0.94), rgba(255, 255, 255, 0.76)),
        #ffffff;
}

.market-spec-box > span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.market-spec-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.market-spec-list li {
    min-width: 0;
    max-width: 100%;
    padding: 8px 10px 8px 28px;
    border: 1px solid rgba(37, 99, 235, 0.14);
    border-radius: 999px;
    background: rgba(239, 246, 255, 0.78);
    color: var(--text);
    font-size: 13px;
    font-weight: 800;
    line-height: 1.35;
    overflow-wrap: anywhere;
    position: relative;
}

.market-spec-list li::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 11px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent);
    transform: translateY(-50%);
}

html[dir="rtl"] .market-spec-list li {
    padding: 8px 28px 8px 10px;
}

html[dir="rtl"] .market-spec-list li::before {
    right: 11px;
    left: auto;
}

.market-request-card {
    padding: 16px;
}

.market-admin-table {
    min-width: 1680px;
}

.market-admin-table textarea {
    min-height: 118px;
}

.admin-market-kpi-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.market-admin-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
    margin-bottom: 18px;
}

.market-admin-card {
    width: 100%;
    display: grid;
    grid-template-rows: 190px minmax(0, 1fr);
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.24);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.72);
    color: var(--text);
    padding: 0;
    text-align: start;
    box-shadow: var(--shadow-soft);
    transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.market-admin-card:hover,
.market-admin-card:focus-visible {
    border-color: rgba(37, 99, 235, 0.38);
    box-shadow: 0 18px 42px rgba(37, 99, 235, 0.12);
    transform: translateY(-2px);
}

.market-admin-card-img {
    display: grid;
    place-items: center;
    padding: 18px;
    background:
        linear-gradient(135deg, rgba(15, 23, 42, 0.94), rgba(37, 99, 235, 0.74)),
        repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.07) 0 1px, transparent 1px 34px);
}

.market-admin-card-img img {
    width: min(80%, 180px);
    height: 140px;
    object-fit: contain;
    filter: drop-shadow(0 18px 28px rgba(0, 0, 0, 0.26));
}

.market-admin-card-body {
    display: grid;
    gap: 14px;
    padding: 16px;
}

.market-admin-card-body strong {
    display: block;
    font-size: 17px;
}

.market-admin-card-body small {
    display: block;
    color: var(--muted);
    font-weight: 800;
    margin-top: 3px;
}

.market-admin-card-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.market-admin-card-stats span {
    display: grid;
    gap: 3px;
    padding: 9px;
    border-radius: var(--radius-sm);
    background: rgba(248, 250, 252, 0.76);
    color: var(--muted);
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
}

.market-admin-card-stats strong {
    color: var(--text);
    font-size: 13px;
    overflow-wrap: anywhere;
}

.market-editor-grid {
    display: grid;
    gap: 16px;
    margin-bottom: 16px;
}

.market-editor-card {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 16px;
    padding: 16px;
    border: 1px solid rgba(148, 163, 184, 0.24);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.72);
    box-shadow: var(--shadow-soft);
}

.market-editor-media {
    display: grid;
    align-content: start;
    gap: 12px;
}

.market-editor-media img {
    width: 100%;
    height: 180px;
    object-fit: contain;
    padding: 16px;
    border: 1px solid rgba(148, 163, 184, 0.24);
    border-radius: var(--radius-sm);
    background:
        linear-gradient(135deg, rgba(15, 23, 42, 0.08), rgba(37, 99, 235, 0.08)),
        rgba(248, 250, 252, 0.82);
}

.market-editor-fields {
    min-width: 0;
}

.market-textarea {
    min-height: 108px;
}

.market-stock-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.market-stock-row span {
    padding: 8px 10px;
    border-radius: 999px;
    background: rgba(248, 250, 252, 0.84);
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
}

.market-stock-row strong {
    color: var(--text);
}

.membership-section {
    position: relative;
}

.membership-section .empty-state {
    position: relative;
    overflow: hidden;
}

.membership-section .empty-state::after {
    content: "";
    position: absolute;
    inset: auto -24px -30px auto;
    width: 210px;
    aspect-ratio: 1;
    background: url("../imgs/drone-icon.png") center / contain no-repeat;
    opacity: 0.045;
    pointer-events: none;
}

html[dir="rtl"] .membership-section .empty-state::after {
    inset-inline-right: auto;
    inset-inline-left: -24px;
}

.membership-card-ui {
    isolation: isolate;
    border-color: rgba(255, 255, 255, 0.30);
    background:
        linear-gradient(135deg, rgba(6, 13, 30, 0.98), rgba(22, 63, 131, 0.94) 48%, rgba(4, 120, 117, 0.94));
    box-shadow: 0 34px 96px rgba(16, 24, 40, 0.34);
}

.membership-card-ui::before {
    content: "";
    position: absolute;
    inset: 10% -3% auto auto;
    width: min(42%, 300px);
    aspect-ratio: 1;
    background: url("../imgs/drone-icon.png") center / contain no-repeat;
    opacity: 0.16;
    filter: drop-shadow(0 18px 34px rgba(0, 0, 0, 0.18));
    pointer-events: none;
    z-index: 0;
}

html[dir="rtl"] .membership-card-ui::before {
    inset-inline-right: auto;
    inset-inline-left: -3%;
}

.membership-card-ui::after {
    content: "";
    position: absolute;
    inset: 18px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 12px;
    pointer-events: none;
    z-index: 0;
}

.membership-card-shine {
    background:
        linear-gradient(115deg, rgba(255, 255, 255, 0.18), transparent 31%),
        linear-gradient(90deg, rgba(255, 255, 255, 0.06), transparent 42%, rgba(255, 255, 255, 0.08)),
        repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.04) 0 1px, transparent 1px 38px),
        repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.025) 0 1px, transparent 1px 38px);
}

.membership-brand-mark {
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.06));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28), 0 14px 30px rgba(0, 0, 0, 0.18);
}

.membership-number {
    max-width: 62%;
    padding: 10px 14px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.08);
    text-align: right;
    overflow-wrap: anywhere;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

html[dir="rtl"] .membership-number {
    text-align: left;
}

.membership-photo-wrap {
    position: relative;
}

.membership-photo-wrap::after {
    content: "";
    position: absolute;
    inset: auto -10px -10px auto;

    width: 34px;
    height: 34px;
    border-radius: 10px;

   background:
    url('../imgs/drone-icon.png') center/18px 18px no-repeat,
    rgba(16, 185, 129, 0.92);
    background-repeat: no-repeat;
    background-position: center;
    background-size: 28px 28px;

    box-shadow: 0 10px 22px rgba(16, 185, 129, 0.24);
}

.membership-avatar {
    box-shadow: 0 18px 38px rgba(0, 0, 0, 0.24);
}

.membership-status-panel {
    width: min(100%, 520px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 12px 14px;
    border: 1px solid rgba(148, 163, 184, 0.24);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.68);
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.membership-status-panel > span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.membership-status-approved,
.membership-status-completed {
    background: #10b981;
    border-color: #10b981;
}

.membership-status-pending {
    background: #f59e0b;
    border-color: #f59e0b;
}

.membership-status-no_request,
.membership-status-rejected {
    background: #e11d48;
    border-color: #e11d48;
}

.modal-content {
    border: 1px solid rgba(255, 255, 255, 0.62);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.86);
    box-shadow: var(--shadow);
    backdrop-filter: blur(20px) saturate(135%);
    -webkit-backdrop-filter: blur(20px) saturate(135%);
}

.modal {
    z-index: 1060;
}

.modal-backdrop {
    z-index: 1050;
}

.modal-header,
.modal-footer {
    border-color: rgba(148, 163, 184, 0.24);
}

.modal-backdrop.show {
    opacity: 0.38;
}

body.modal-open .drawer-backdrop {
    opacity: 0;
    pointer-events: none;
}

.permit-document {
    border-color: rgba(23, 32, 51, 0.24);
    box-shadow: var(--shadow);
}

@media (max-width: 760px) {

    .topline,
    .section-head,
    .actions,
    .dashboard-topbar {
        align-items: stretch;
        flex-direction: column;
    }

    .steps,
    .grid,
    .upload-grid,
    .camera-frame,
    .profile-grid,
    .profile-list,
    .admin-kpi-grid,
    .admin-kpi-grid-overview,
    .admin-insight-grid,
    .admin-overview-filter .card-body,
    .admin-overview-shell,
    .admin-map-row,
    .admin-chart-grid,
    .admin-two-column,
    .admin-three-column,
    .admin-activity-item {
        grid-template-columns: 1fr;
    }

    .admin-panel-head {
        align-items: stretch;
        flex-direction: column;
    }

    .admin-activity-meta {
        justify-items: start;
        min-width: 0;
        text-align: left;
    }

    .admin-chart-wrap,
    .admin-map,
    .admin-map-fallback {
        height: 300px;
        min-height: 300px;
    }

    .request-result {
        grid-template-columns: 1fr;
    }

    .permit-print-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .profile-cover {
        min-height: 160px;
    }

    .profile-body {
        padding: 0 16px 20px;
    }

    .profile-hero,
    .profile-identity {
        align-items: center;
        flex-direction: column;
        text-align: center;
    }

    .profile-hero {
        margin-top: -58px;
    }

    .profile-card .profile-photo {
        width: 116px;
        height: 116px;
        border-radius: 22px;
    }

    .profile-card .profile-photo-empty {
        font-size: 30px;
    }

    .profile-title {
        padding-bottom: 0;
    }

    .profile-code-pill {
        width: 100%;
        grid-template-columns: minmax(0, 1fr) auto;
        border-radius: 16px;
        text-align: start;
    }

    .profile-code-pill span {
        grid-column: 1 / -1;
    }

    .profile-edit-btn {
        width: 100%;
        margin: 0;
    }

    .profile-overview {
        grid-template-columns: 1fr;
        margin-top: 18px;
    }

    .membership-card-top,
    .membership-card-bottom,
    .membership-chip-row {
        align-items: stretch;
        flex-direction: row;
    }

    .permit-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .membership-card-ui {
        width: min(100%, 420px);
        min-height: 250px;
        margin-top: 24px;
        padding: 18px;
        border-radius: 16px;
    }

    .membership-card-ui::before {
        width: 190px;
        opacity: 0.10;
    }

    .membership-card-ui::after {
        inset: 10px;
        border-radius: 12px;
    }

    .membership-brand {
        gap: 8px;
    }

    .membership-brand-mark {
        width: 36px;
        height: 36px;
        border-radius: 9px;
        font-size: 13px;
    }

    .membership-brand span:not(.membership-brand-mark) {
        font-size: 9px;
    }

    .membership-brand strong {
        font-size: 14px;
    }

    .membership-status {
        padding: 6px 9px;
        font-size: 9px;
        white-space: nowrap;
    }

    .membership-status-panel {
        width: min(100%, 420px);
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }

    .membership-chip-row {
        margin: 30px 0 24px;
        gap: 10px;
    }

    .membership-chip {
        width: 54px;
        height: 40px;
        gap: 3px;
        padding: 6px;
        border-radius: 9px;
        flex: 0 0 auto;
    }

    .membership-number {
        max-width: 50%;
        font-size: 16px;
        line-height: 1.3;
        text-align: right;
        word-break: break-word;
        padding: 8px 10px;
    }

    .membership-card-bottom {
        gap: 12px;
    }

    .membership-card-bottom p,
    .membership-meta span {
        font-size: 9px;
        margin-bottom: 3px;
    }

    .membership-card-bottom h3 {
        margin-bottom: 10px;
        font-size: 17px;
        line-height: 1.2;
    }

    .membership-meta strong {
        font-size: 12px;
    }

    .membership-avatar {
        width: 68px;
        height: 84px;
        border-radius: 11px;
    }

    .membership-number {
        word-break: break-word;
    }

    .drone-spec-grid,
    .drone-action-grid,
    .login-credential-row,
    .request-stat-grid,
    .request-time-row,
    .permit-grid,
    .market-toolbar,
    .market-order-card,
    .market-editor-card,
    .market-detail-head,
    .admin-membership-summary-grid,
    .admin-request-detail-grid {
        grid-template-columns: 1fr;
    }

    .market-offcanvas {
        --bs-offcanvas-width: min(100vw, 100%);
    }

    .market-order-card > img {
        width: 100%;
        height: 150px;
    }

    .market-order-steps {
        grid-template-columns: 1fr;
    }

    .market-admin-card-stats {
        grid-template-columns: 1fr;
    }

    .admin-request-detail-wide {
        grid-column: auto;
    }

    .admin-membership-summary-top,
    .admin-membership-detail-head {
        grid-template-columns: 72px minmax(0, 1fr);
    }

    .admin-membership-photo,
    .admin-membership-detail-photo {
        width: 72px;
        height: 88px;
        border-radius: 12px;
    }

    .request-route-line {
        grid-template-columns: 1fr;
    }

    .request-route-line strong {
        width: auto;
        border-radius: 10px;
    }

    .permit-grid-wide {
        grid-column: auto;
    }

    .dashboard-layout {
        display: block;
        min-height: calc(100vh - 24px);
        min-height: calc(100dvh - 24px - var(--safe-top) - var(--safe-bottom));
    }

    .dashboard-menu-btn {
        display: inline-flex;
    }

    .sidebar {
        position: fixed;
        inset: 0 auto 0 0;
        width: min(82vw, 320px);
        z-index: 1051;
        transform: translateX(-105%);
        transition: transform 180ms ease;
        box-shadow: 18px 0 40px rgba(0, 0, 0, 0.22);
    }

    html[dir="rtl"] .sidebar {
        inset: 0 0 0 auto;
        transform: translateX(105%);
        box-shadow: -18px 0 40px rgba(0, 0, 0, 0.22);
    }

    .sidebar.is-open {
        transform: translateX(0);
    }

    html[dir="rtl"] .sidebar.is-open {
        transform: translateX(0);
    }

    .drawer-backdrop {
        position: fixed;
        inset: 0;
        z-index: 1050;
        background: rgba(0, 0, 0, 0.42);
    }

    .drawer-backdrop.is-open {
        display: block;
    }

    .shell {
        padding:
            max(12px, var(--safe-top))
            max(12px, var(--safe-right))
            max(12px, var(--safe-bottom))
            max(12px, var(--safe-left));
    }

    .topline {
        padding: 12px;
    }

    .steps {
        gap: 6px;
        padding: 5px;
    }

    .step {
        min-height: 44px;
        padding: 10px;
    }

    .dashboard-layout {
        border-radius: 18px;
    }

    .drone-card-visual {
        height: 200px;
    }

    .transfer-confirm-actions {
        opacity: 1;
        transform: none;
    }

    .dashboard-topbar {
        position: relative;
        padding-top: calc(18px + var(--safe-top));
    }

    .pwa-install-card {
        grid-template-columns: 1fr;
    }

    .pwa-install-actions {
        justify-content: stretch;
    }

    .pwa-install-actions .btn {
        width: 100%;
    }

    .dashboard-card .card-body,
    .app-card .card-body {
        padding: 18px;
    }

    .table-responsive {
        border-radius: var(--radius);
    }
}

@media print {
    @page {
        size: A4 portrait;
        margin: 8mm;
    }

    html,
    body {
        width: 210mm;
        min-height: 297mm;
        margin: 0 !important;
        padding: 0 !important;
        background: #ffffff !important;
    }

    body * {
        visibility: hidden !important;
    }

    .modal-backdrop,
    .modal-header,
    .modal-footer,
    .permit-footer,
    .permit-print-actions,
    .language-switcher,
    .dashboard-layout,
    .verification-shell {
        background: transparent !important;
        box-shadow: none !important;
        display: none !important;
    }

    .modal.show,
    .modal.show .modal-dialog,
    .modal.show .modal-content,
    .modal.show .modal-body,
    .modal.show .permit-document,
    .modal.show .permit-document *,
    .permit-document-public,
    .permit-document-public * {
        visibility: visible !important;
    }

    .verification-shell {
        display: block !important;
        min-height: 0 !important;
        padding: 0 !important;
    }

    .modal.show {
        position: static !important;
        display: block !important;
        overflow: visible !important;
        padding: 0 !important;
    }

    .modal.show .modal-dialog {
        width: auto !important;
        max-width: none !important;
        margin: 0 !important;
        transform: none !important;
    }

    .modal.show .modal-content,
    .modal.show .modal-body {
        display: block !important;
        width: auto !important;
        min-height: 0 !important;
        padding: 0 !important;
        border: 0 !important;
        background: #ffffff !important;
        box-shadow: none !important;
        overflow: visible !important;
    }

    .modal.show .modal-header,
    .modal.show .modal-footer,
    .permit-footer {
        display: none !important;
    }

    .modal.show .permit-document,
    .permit-document-public {
        position: fixed !important;
        inset: 0 auto auto 0 !important;
        width: 194mm !important;
        max-width: 194mm !important;
        min-height: 0 !important;
        margin: 0 !important;
        padding: 7mm !important;
        border: 1px solid #111111 !important;
        border-radius: 0 !important;
        background: #ffffff !important;
        color: #111111 !important;
        box-shadow: none !important;
        page-break-inside: avoid !important;
        break-inside: avoid !important;
    }

    .permit-header {
        display: flex !important;
        flex-direction: row !important;
        align-items: flex-start !important;
        padding-bottom: 7mm !important;
        gap: 8mm !important;
    }

    .permit-header p {
        margin-bottom: 2mm !important;
        font-size: 9pt !important;
    }

    .permit-header h1 {
        font-size: 24pt !important;
        line-height: 1.1 !important;
    }

    .permit-header img {
        width: 28mm !important;
        height: 28mm !important;
        padding: 2mm !important;
        border-radius: 0 !important;
    }

    .permit-number-row {
        margin: 5mm 0 !important;
        padding: 4mm !important;
        border-radius: 0 !important;
        gap: 4mm !important;
    }

    .permit-number-row strong {
        font-size: 14pt !important;
    }

    .permit-grid {
        display: grid !important;
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        gap: 3mm !important;
    }

    .permit-grid div {
        min-height: 18mm !important;
        padding: 3mm !important;
        border-radius: 0 !important;
        page-break-inside: avoid !important;
        break-inside: avoid !important;
    }

    .permit-grid-wide {
        grid-column: span 3 !important;
    }

    .permit-grid span {
        font-size: 7.5pt !important;
        margin-bottom: 1mm !important;
    }

    .permit-grid strong {
        font-size: 9pt !important;
        line-height: 1.25 !important;
    }
}
