:root {
    --brand-navy: #0b2d5c;
    --brand-blue: #1988d8;
    --brand-cyan: #42d9f4;
    --brand-green: #38d67a;
    --brand-orange: #ff8a00;
    --brand-purple: #c93bff;
    --brand-gold: #ff8a00;
    --brand-gold-dark: #c05f00;
    --text-main: #0f172a;
    --text-muted: #5f6b7a;
    --bg-light: #f8fbff;
    --bg-soft: #eef5ff;
    --border: #e5edf7;
    --white: #ffffff;
    --danger: #9B2C2C;
    --success: #166534;
    --radius: 12px;
    --radius-lg: 18px;
    --radius-xl: 24px;
    --shadow-sm: 0 8px 24px rgba(11, 45, 92, 0.06);
    --shadow-md: 0 16px 40px rgba(11, 45, 92, 0.10);
    --shadow-lg: 0 22px 50px rgba(11, 45, 92, 0.14);
    --step-anim: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
    font-family: 'IBM Plex Sans Arabic', sans-serif;
    background: var(--bg-light);
    color: var(--text-main);
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea, table, th, td, label, a, span, p, div, strong, small, h1, h2, h3, h4, h5 {
    font-family: 'IBM Plex Sans Arabic', sans-serif;
}
body.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background:
        radial-gradient(circle at 8% 18%, rgba(201, 59, 255, 0.16), transparent 18%),
        radial-gradient(circle at 82% 12%, rgba(255, 138, 0, 0.15), transparent 20%),
        radial-gradient(circle at 85% 70%, rgba(56, 214, 122, 0.18), transparent 20%),
        radial-gradient(circle at 14% 80%, rgba(66, 217, 244, 0.14), transparent 20%),
        linear-gradient(135deg, #081f44 0%, #0b2d5c 32%, #1676cc 100%);
}
.auth-card {
    width: min(520px, 100%);
    background: rgba(255,255,255,.98);
    border: 1px solid rgba(255,255,255,.45);
    border-radius: 24px;
    box-shadow: var(--shadow-lg);
    padding: 32px;
}
.auth-brand { display:flex; align-items:center; gap:14px; margin-bottom:22px; }
.auth-brand img { width:68px; height:68px; object-fit:contain; background:#fff; border:1px solid var(--border); border-radius:18px; padding:8px; }
.auth-brand h1 { margin:0; color:var(--brand-navy); font-size:1.55rem; font-weight:600; }
.auth-brand p { margin:6px 0 0; color:var(--text-muted); }
.dashboard { display: grid; grid-template-columns: 330px 1fr; min-height: 100vh; background: var(--white); }
.side-info {
    background: var(--brand-navy);
    color: var(--white);
    padding: 42px 30px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: sticky;
    top: 0;
    min-height: 100vh;
    overflow-y: auto;
}
.side-info h1, .brand-title {
    font-weight: 600;
    font-size: 1.6rem;
    border-right: 4px solid var(--brand-gold);
    padding-right: 14px;
    margin: 0 0 10px;
    line-height: 1.4;
}
.brand-subtitle, .side-info .intro-copy {
    opacity: 0.82;
    font-size: 0.92rem;
    line-height: 1.9;
}
.track-list {
    list-style: none;
    margin: 34px 0 0;
    padding: 0;
}
.track-item {
    position: relative;
    padding: 0 30px 32px 0;
    border-right: 2px solid rgba(255,255,255,0.11);
    transition: 0.3s;
    color: rgba(255,255,255,0.52);
    font-size: 0.95rem;
    line-height: 1.8;
}
.track-item.active {
    color: var(--brand-gold);
    border-right-color: var(--brand-gold);
    font-weight: 600;
}
.track-item::after {
    content: '';
    position: absolute;
    top: 0.15rem;
    right: -7px;
    width: 12px;
    height: 12px;
    background: var(--brand-navy);
    border: 2px solid currentColor;
    border-radius: 50%;
}
.side-footer { font-size: 0.78rem; opacity: 0.58; line-height: 1.9; }
.main-form {
    padding: 44px 6.5%;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    position: relative;
    background: linear-gradient(180deg, #fff 0%, #fbfcfe 100%);
}
.main-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 28px;
    flex-wrap: wrap;
}
.brand-inline { display: flex; align-items: center; gap: 14px; }
.brand-inline img, .logo-thumb {
    width: 64px;
    height: 64px;
    object-fit: contain;
    border-radius: 16px;
    background: #fff;
    border: 1px solid var(--border);
    padding: 8px;
}
.brand-inline h2 { margin: 0; color: var(--brand-navy); font-size: 1.35rem; line-height: 1.35; }
.brand-inline p { margin: 4px 0 0; color: var(--text-muted); font-size: 0.92rem; }
.badge-soft {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 999px;
    border: 1px solid rgba(25,136,216,.22);
    background: rgba(25,136,216,.08);
    color: var(--brand-blue);
    font-weight: 600;
    font-size: 0.92rem;
}
.badge-soft::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--brand-green); }
.form-section { display: none; max-width: 1080px; animation: slideIn var(--step-anim); }
.form-section.active { display: block; }
@keyframes slideIn { from { opacity: 0; transform: translateX(-18px); } to { opacity: 1; transform: translateX(0); } }
.section-head { margin-bottom: 26px; }
.section-head h2 { font-size: 1.85rem; color: var(--brand-navy); margin: 0 0 8px; line-height: 1.4; font-weight: 600; }
.section-head p { color: var(--text-muted); font-size: 0.95rem; line-height: 1.9; margin: 0; }
.grid-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 18px; }
.grid-3-fields { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 18px; }
.full-width { grid-column: span 2; }
.full-width-3 { grid-column: span 3; }
.field { margin-bottom: 4px; }
.field label { display: block; font-weight: 600; margin-bottom: 8px; font-size: 0.88rem; color: #4A5568; }
.input-ctrl, .input, .select, .textarea {
    width: 100%;
    padding: 14px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    font-size: 0.96rem;
    transition: all 0.2s;
    background: var(--bg-light);
    font-family: inherit;
    color: var(--text-main);
}
.textarea { min-height: 120px; resize: vertical; }
.input-ctrl:focus, .input:focus, .select:focus, .textarea:focus {
    outline: none;
    border-color: var(--brand-blue);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(25, 136, 216, 0.12);
}
.action-bar {
    margin-top: 28px;
    padding: 24px 0 0;
    display: flex;
    gap: 15px;
    border-top: 1px solid var(--border);
    flex-wrap: wrap;
}
.btn {
    padding: 14px 24px;
    border-radius: var(--radius);
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
    border: none;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.btn-primary { background: linear-gradient(135deg, var(--brand-navy), var(--brand-blue)); color: #fff; }
.btn-primary:hover { background: linear-gradient(135deg, #081f44, var(--brand-blue)); transform: translateY(-2px); box-shadow: 0 8px 18px rgba(25,136,216,.22); }
.btn-ghost, .btn-light { background: transparent; color: var(--text-muted); border: 1px solid var(--border); }
.btn-ghost:hover, .btn-light:hover { background: #f1f5f9; }
.btn-danger { background: var(--danger); color: #fff; }
.btn-success { background: var(--success); color: #fff; }
.btn-warning { background: linear-gradient(135deg, var(--brand-orange), var(--brand-purple)); color: #fff; }
.btn-warning:hover { background: linear-gradient(135deg, #e47b00, #b52ee8); transform: translateY(-2px); box-shadow: 0 8px 18px rgba(255,138,0,.22); }
.alert { padding: 14px 18px; border-radius: var(--radius); margin-bottom: 18px; font-weight: 600; line-height: 1.8; }
.alert-success { background: #EDFDF3; color: #166534; }
.alert-error { background: #FEF2F2; color: #991B1B; }
.alert-info { background: #EFF6FF; color: #1E40AF; }
.card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 22px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 18px;
}
.section-title { margin: 0 0 12px; color: var(--brand-navy); font-size: 1.18rem; }
.muted { color: var(--text-muted); line-height: 1.8; }
.muted-light { color: rgba(255,255,255,.78); line-height: 1.8; }
.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.kpi, .kpi-card, .mini-card { background: var(--bg-light); border: 1px solid var(--border); border-radius: 16px; padding: 18px; }
.kpi .label, .kpi-label { color: var(--text-muted); font-size: 0.86rem; }
.kpi .value, .kpi-value { font-size: 1.7rem; font-weight: 600; color: var(--brand-navy); margin-top: 6px; }
.table-wrap { overflow: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 12px; border-bottom: 1px solid var(--border); text-align: right; vertical-align: top; font-size: 0.93rem; }
th { background: var(--bg-light); color: var(--brand-navy); font-weight: 600; }
.sidebar-nav { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 10px; }
.sidebar-nav a {
    display: block;
    padding: 12px 16px;
    border-radius: 16px;
    background: rgba(255,255,255,0.06);
    color: rgba(255,255,255,0.92);
    transition: 0.2s;
    font-size: 0.98rem;
    font-weight: 600;
}
.sidebar-nav a.active, .sidebar-nav a:hover { background: rgba(25,136,216,.18); color: #fff; }
.required-star { color: var(--danger); }
.name-grid { display:grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 10px; }
.site-footer-clean {
    display:flex; align-items:center; justify-content:space-between; gap:12px; flex-wrap:wrap;
    padding: 20px 28px; border-top:1px solid var(--border); color:var(--text-muted); font-size:.9rem; background:#fff;
}
.registration-dev-credit {
    color: var(--text-muted);
    font-weight: 600;
    font-size: .86rem;
    opacity: .82;
    white-space: nowrap;
    transition: color .2s ease, opacity .2s ease;
}
.registration-dev-credit:hover {
    color: var(--brand-blue);
    opacity: 1;
}
.auth-dev-credit {
    position: fixed;
    left: 50%;
    bottom: max(10px, env(safe-area-inset-bottom));
    z-index: 20;
    transform: translateX(-50%);
    color: rgba(255,255,255,.72);
}
.auth-dev-credit:hover { color: #fff; }
.hero-panel {
    background:
        radial-gradient(circle at 14% 18%, rgba(201, 59, 255, 0.16), transparent 24%),
        radial-gradient(circle at 84% 15%, rgba(255, 138, 0, 0.16), transparent 26%),
        linear-gradient(135deg, #081f44 0%, #0b2d5c 52%, #1988d8 100%);
    color:#fff; border-radius: 28px; padding: 30px; box-shadow: var(--shadow-md); margin-bottom: 26px;
}
.hero-panel h1 { margin:0 0 10px; font-size:2rem; font-weight:600; }
.hero-panel p { margin:0; max-width:820px; line-height:2; color:rgba(255,255,255,.86); }
.list-clean { margin:0; padding-right:18px; }
.list-clean li { margin-bottom:8px; }

body.theme-alarqm {
    --brand-navy: #0b2d5c;
    --brand-blue: #1988d8;
    --brand-cyan: #42d9f4;
    --brand-green: #38d67a;
    --brand-orange: #ff8a00;
    --brand-purple: #c93bff;
    --brand-gold: #ff8a00;
    --brand-gold-dark: #c05f00;
    --text-main: #0f172a;
    --text-muted: #5f6b7a;
    --bg-light: #f8fbff;
    --bg-soft: #eef5ff;
    --border: #e5edf7;
    --shadow-sm: 0 8px 24px rgba(11, 45, 92, 0.06);
    --shadow-md: 0 16px 40px rgba(11, 45, 92, 0.10);
    --shadow-lg: 0 24px 60px rgba(11, 45, 92, 0.14);
}

body.theme-alarqm.auth-page {
    background:
        radial-gradient(circle at 8% 18%, rgba(201, 59, 255, 0.16), transparent 18%),
        radial-gradient(circle at 82% 12%, rgba(255, 138, 0, 0.15), transparent 20%),
        radial-gradient(circle at 85% 70%, rgba(56, 214, 122, 0.18), transparent 20%),
        radial-gradient(circle at 14% 80%, rgba(66, 217, 244, 0.14), transparent 20%),
        linear-gradient(135deg, #081f44 0%, #0b2d5c 32%, #1676cc 100%);
}

body.theme-alarqm .auth-card,
body.theme-alarqm .auth-form-card,
body.theme-alarqm .card {
    border-color: rgba(25, 136, 216, .14);
    box-shadow: var(--shadow-sm);
}

body.theme-alarqm .auth-showcase {
    background:
        linear-gradient(180deg, rgba(8, 31, 68, .96), rgba(11, 45, 92, .92)),
        var(--brand-navy);
}

body.theme-alarqm .auth-showcase::after {
    background: radial-gradient(circle, rgba(66, 217, 244, .76) 0%, rgba(66, 217, 244, 0) 68%);
}

body.theme-alarqm .auth-logo-wrap,
body.theme-alarqm .auth-brand img,
body.theme-alarqm .brand-inline img,
body.theme-alarqm .logo-thumb {
    border-color: rgba(25, 136, 216, .24);
    box-shadow: 0 10px 28px rgba(11, 45, 92, .12);
}

body.theme-alarqm .auth-panel {
    background: linear-gradient(180deg, #f8fbff 0%, #edf4ff 100%);
}

body.theme-alarqm .auth-panel-head .mini,
body.theme-alarqm .badge-soft {
    color: var(--brand-navy);
    background: rgba(25, 136, 216, .10);
    border-color: rgba(25, 136, 216, .24);
}

body.theme-alarqm .auth-panel-head h2,
body.theme-alarqm .brand-inline h2,
body.theme-alarqm .section-head h2,
body.theme-alarqm .section-title,
body.theme-alarqm th {
    color: var(--brand-navy);
}

body.theme-alarqm .side-info {
    background:
        linear-gradient(180deg, rgba(8, 31, 68, .98) 0%, rgba(11, 45, 92, .96) 66%, rgba(25, 136, 216, .92) 100%);
}

body.theme-alarqm .side-info h1,
body.theme-alarqm .brand-title {
    border-right-color: var(--brand-gold);
}

body.theme-alarqm .track-item.active {
    color: #42d9f4;
    border-right-color: #42d9f4;
}

body.theme-alarqm .track-item::after {
    background: #0b2d5c;
}

body.theme-alarqm .main-form {
    background: linear-gradient(180deg, #ffffff 0%, #f5f8ff 100%);
}

body.theme-alarqm .hero-panel {
    background:
        radial-gradient(circle at 14% 18%, rgba(201, 59, 255, 0.16), transparent 24%),
        radial-gradient(circle at 84% 15%, rgba(255, 138, 0, 0.16), transparent 26%),
        linear-gradient(135deg, #081f44 0%, #0b2d5c 52%, #1988d8 100%);
    box-shadow: var(--shadow-md);
}

body.theme-alarqm .input-ctrl,
body.theme-alarqm .input,
body.theme-alarqm .select,
body.theme-alarqm .textarea {
    background: #f8fbff;
    border-color: #d6e2f5;
}

body.theme-alarqm .input-ctrl:focus,
body.theme-alarqm .input:focus,
body.theme-alarqm .select:focus,
body.theme-alarqm .textarea:focus {
    border-color: #1988d8;
    box-shadow: 0 0 0 4px rgba(25, 136, 216, .12);
}

body.theme-alarqm .btn-primary {
    background: linear-gradient(135deg, #0b2d5c, #1988d8);
    color: #fff;
}

body.theme-alarqm .btn-primary:hover {
    background: linear-gradient(135deg, #081f44, #1988d8);
    box-shadow: 0 8px 18px rgba(25, 136, 216, .22);
}

body.theme-alarqm .btn-warning,
body.theme-alarqm .sidebar-nav a.active,
body.theme-alarqm .sidebar-nav a:hover {
    background: linear-gradient(135deg, #ff8a00, #c93bff);
    color: #fff;
}

body.theme-alarqm .settings-tab-btn.is-active {
    background: #0b2d5c;
    border-color: #0b2d5c;
}

body.theme-alarqm .settings-tab-btn:hover {
    border-color: #1988d8;
    background: #eef6ff;
}
.inline-actions { display:flex; gap:10px; flex-wrap:wrap; }
.phone-code-box {
    display:flex; align-items:center; justify-content:center; min-height:80px;
    font-size:2rem; font-weight:700; letter-spacing: 8px; color:var(--brand-navy);
    background: rgba(25,136,216,.10); border:1px dashed rgba(25,136,216,.42); border-radius:18px;
}
.stat-inline { display:flex; align-items:center; justify-content:space-between; gap:10px; }
.empty-box { text-align:center; color:var(--text-muted); padding:36px 16px; }
.admin-user-card { margin-top:22px; background:rgba(255,255,255,.06); border-color:rgba(255,255,255,.12); box-shadow:none; color:#fff; }
.admin-main { padding-top: 34px; }
.small { font-size:.86rem; }
.form-note { color: var(--text-muted); font-size: .88rem; line-height: 1.8; margin-top: 8px; }
@media (max-width: 1100px) {
    .dashboard { grid-template-columns: 1fr; }
    .side-info { position: relative; min-height: auto; }
    .grid-4, .grid-3, .grid-2, .grid-fields, .grid-3-fields { grid-template-columns: 1fr; }
    .full-width, .full-width-3 { grid-column: span 1; }
}
@media (max-width: 720px) {
    .main-form { padding: 28px 20px; }
    .name-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .hero-panel { padding: 22px; }
    .hero-panel h1 { font-size: 1.65rem; }
}


.admin-bar-page {
    padding-top: 88px !important;
}

.admin-mini-bar {
    position: sticky;
    top: 0;
    z-index: 1200;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 24px;
    background: rgba(11, 45, 92, 0.96);
    border-bottom: 1px solid rgba(66, 217, 244, 0.26);
    box-shadow: 0 12px 28px rgba(11, 45, 92, 0.18);
    backdrop-filter: blur(10px);
}

.admin-mini-bar__brand {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #fff;
}

.admin-mini-bar__brand img {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    object-fit: contain;
    background: rgba(255,255,255,0.08);
    padding: 6px;
}

.admin-mini-bar__brand strong,
.admin-mini-bar__brand span {
    display: block;
}

.admin-mini-bar__brand span {
    font-size: .85rem;
    color: rgba(255,255,255,.72);
}

.admin-mini-bar__nav {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.admin-mini-bar__nav a {
    color: rgba(255,255,255,.82);
    text-decoration: none;
    padding: 10px 14px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,.12);
    transition: .2s ease;
    font-weight: 600;
}

.admin-mini-bar__nav a:hover,
.admin-mini-bar__nav a.active {
    color: #fff;
    background: linear-gradient(135deg, #1988d8, #42d9f4);
    border-color: transparent;
}

@media (max-width: 900px) {
    .admin-mini-bar {
        flex-direction: column;
        align-items: stretch;
    }

    .admin-mini-bar__nav {
        width: 100%;
    }
}

.input-error {
    border-color: var(--danger) !important;
    box-shadow: 0 0 0 4px rgba(155, 44, 44, 0.08) !important;
    background: #fff !important;
}

select.input-ctrl {
    appearance: none;
    background-image: linear-gradient(45deg, transparent 50%, #475569 50%), linear-gradient(135deg, #475569 50%, transparent 50%);
    background-position: calc(14px) calc(50% - 3px), calc(8px) calc(50% - 3px);
    background-size: 6px 6px, 6px 6px;
    background-repeat: no-repeat;
    padding-left: 34px;
}

.review-value {
    font-size: 1.05rem !important;
    line-height: 1.8;
}

.map-card__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}

.map-status {
    background: rgba(25,136,216,.08);
    color: var(--brand-blue);
    border: 1px dashed rgba(25,136,216,.35);
    border-radius: 16px;
    padding: 14px 16px;
    line-height: 1.9;
    font-weight: 500;
}

.checkbox-card {
    padding: 18px 20px;
}

.check-line {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: var(--brand-navy);
    font-weight: 600;
    line-height: 1.9;
    cursor: pointer;
}

.check-line input {
    width: 18px;
    height: 18px;
    margin-top: 4px;
    accent-color: var(--brand-navy);
}

body.modal-open {
    overflow: hidden;
}

.overlay-modal {
    position: fixed;
    inset: 0;
    background: rgba(11, 45, 92, 0.58);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    z-index: 4000;
}

.overlay-modal.is-open {
    display: flex;
}

.overlay-panel {
    width: min(920px, 100%);
    max-height: min(88vh, 900px);
    background: #fff;
    border-radius: 28px;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(11,45,92,.08);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.overlay-header,
.overlay-footer {
    padding: 18px 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    border-bottom: 1px solid var(--border);
}

.overlay-footer {
    border-bottom: none;
    border-top: 1px solid var(--border);
}

.overlay-header h3 {
    margin: 0;
    color: var(--brand-navy);
    font-size: 1.22rem;
}

.overlay-close {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: #fff;
    color: var(--text-main);
    font-size: 1.4rem;
    cursor: pointer;
}

.overlay-body {
    padding: 22px;
    overflow: auto;
}

.terms-scroll {
    color: var(--text-main);
    line-height: 2;
}

.terms-scroll h4 {
    margin: 0 0 8px;
    color: var(--brand-navy);
    font-size: 1.02rem;
}

.terms-scroll p {
    margin: 0 0 18px;
    color: #475569;
}

.terms-rich-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 14px 0 18px;
    font-size: 0.93rem;
}

.terms-rich-content th,
.terms-rich-content td {
    border: 1px solid var(--border);
    padding: 10px 12px;
    vertical-align: top;
}

.terms-rich-content thead th {
    background: var(--brand-navy);
    color: #fff;
}

.terms-rich-content .table-secondary {
    background: #f6f8fb;
}

.terms-rich-content ol,
.terms-rich-content ul {
    margin: 0 0 18px;
    padding-right: 22px;
}

.terms-rich-content q {
    display: block;
    font-weight: 600;
    color: var(--brand-navy);
}

.map-panel {
    width: min(1080px, 100%);
}

.map-search {
    width: 100%;
    margin-bottom: 14px;
    padding: 14px 16px;
    border-radius: 14px;
    border: 1.5px solid var(--border);
    font-size: 0.95rem;
    font-family: inherit;
}

.map-search:focus {
    outline: none;
    border-color: var(--brand-blue);
    box-shadow: 0 0 0 4px rgba(25, 136, 216, 0.12);
}

.map-canvas {
    width: 100%;
    height: 480px;
    border-radius: 24px;
    border: 1px solid var(--border);
    overflow: hidden;
    background: linear-gradient(180deg, #eef3f8 0%, #dde7f2 100%);
}

.map-meta {
    margin-top: 14px;
    color: var(--text-muted);
    line-height: 1.8;
}

#ContentPlaceHolder1_PageData_ucZawga_PersonDataControl1_ucBirthDate_pickCalGer {
    cursor: pointer;
    background-color: #eef6ff;
}

@media (max-width: 720px) {
    .overlay-modal {
        padding: 12px;
    }

    .overlay-panel {
        border-radius: 20px;
    }

    .map-canvas {
        height: 360px;
    }
}


.pac-container {
    z-index: 5005 !important;
    font-family: 'IBM Plex Sans Arabic', sans-serif !important;
    border-radius: 14px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-md);
}

.review-value {
    font-size: 1rem !important;
    line-height: 1.8;
}

@media (max-width: 1100px) {
    .side-info {
        padding: 18px 18px 16px;
        position: sticky;
        top: 0;
        z-index: 30;
        min-height: auto;
        gap: 14px;
    }

    .track-list {
        display: flex;
        gap: 10px;
        overflow-x: auto;
        padding-bottom: 2px;
        margin-top: 18px;
        scrollbar-width: thin;
    }

    .track-item {
        border-right: none;
        padding: 10px 14px;
        white-space: nowrap;
        border-radius: 999px;
        background: rgba(255,255,255,.08);
        color: rgba(255,255,255,.72);
        margin: 0;
    }

    .track-item.active {
        background: rgba(25,136,216,.18);
    }

    .track-item::after {
        display: none;
    }

    .sidebar-nav {
        display: flex;
        gap: 10px;
        overflow-x: auto;
        margin-top: 18px;
        padding-bottom: 4px;
    }

    .sidebar-nav li {
        flex: 0 0 auto;
    }

    .sidebar-nav a {
        white-space: nowrap;
    }

    .side-footer {
        display: none;
    }
}

@media (max-width: 720px) {
    body.auth-page {
        padding: 14px;
        align-items: stretch;
    }

    .auth-card {
        padding: 18px;
        border-radius: 20px;
        align-self: center;
    }

    .auth-brand {
        align-items: flex-start;
        gap: 12px;
    }

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

    .auth-brand h1 {
        font-size: 1.25rem;
    }

    .action-bar,
    .inline-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .action-bar .btn,
    .inline-actions .btn,
    .inline-actions a.btn {
        width: 100%;
    }

    .main-topbar {
        align-items: stretch;
    }

    .brand-inline {
        align-items: flex-start;
    }

    .badge-soft {
        justify-content: center;
        width: 100%;
    }

    .table-wrap {
        margin-inline: -10px;
        padding-inline: 10px;
    }

    th, td {
        font-size: 0.86rem;
        padding: 10px 8px;
    }

    .overlay-header,
    .overlay-footer,
    .overlay-body {
        padding: 14px;
    }

    .map-search {
        font-size: 16px;
    }

    .phone-code-box {
        letter-spacing: 4px;
        font-size: 1.5rem;
    }

    .site-footer-clean {
        padding: 16px 18px;
        text-align: center;
        justify-content: center;
    }
}


@media print {
    .no-print,
    .side-info,
    .site-footer-clean,
    .admin-mini-bar,
    .overlay-modal {
        display: none !important;
    }

    .dashboard,
    .admin-shell {
        display: block !important;
        min-height: auto !important;
    }

    .main-form,
    .admin-main {
        padding: 0 !important;
        overflow: visible !important;
        background: #fff !important;
    }

    .card,
    .mini-card,
    .kpi,
    .kpi-card {
        box-shadow: none !important;
        break-inside: avoid;
    }
}

.auth-shell {
    width: min(1080px, 100%);
    display: grid;
    grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
    gap: 22px;
    align-items: stretch;
}
.auth-visual {
    background:
        radial-gradient(circle at 15% 18%, rgba(201, 59, 255, .16), transparent 24%),
        radial-gradient(circle at 86% 14%, rgba(255, 138, 0, .16), transparent 26%),
        linear-gradient(180deg, rgba(8,31,68,.98), rgba(11,45,92,.94) 64%, rgba(25,136,216,.78));
    color: #fff;
    border-radius: 28px;
    padding: 28px;
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 560px;
    position: relative;
    overflow: hidden;
}
.auth-visual__badge {
    display:inline-flex;align-items:center;gap:8px;padding:8px 14px;border-radius:999px;background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.12);width:max-content;font-weight:600;font-size:.9rem;
}
.auth-visual h1 { margin:22px 0 10px; font-size:2rem; line-height:1.4; }
.auth-visual p { margin:0; color:rgba(255,255,255,.82); line-height:2; }
.auth-raqeem-widget {
    --auth-raqeem-angle: 0deg;
    position: absolute;
    inset-inline-start: 18px;
    bottom: 64px;
    z-index: 2;
    width: 170px;
    height: 170px;
    display: grid;
    place-items: center;
    border: 0;
    padding: 0;
    background: transparent;
    cursor: pointer;
    pointer-events: none;
    filter: drop-shadow(0 18px 24px rgba(4, 18, 40, .24));
}

@property --auth-raqeem-angle {
    syntax: '<angle>';
    initial-value: 0deg;
    inherits: false;
}

.auth-raqeem-core,
.auth-raqeem-face {
    position: absolute;
    inset: 0;
    display: block;
}

.auth-raqeem-face {
    background-image: var(--auth-raqeem-avatar);
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center bottom;
}

.auth-raqeem-name {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    min-width: 118px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: .18rem .55rem .22rem;
    border-radius: 999px;
    color: #fff;
    font-size: .64rem;
    font-weight: 900;
    line-height: 1.25;
    white-space: nowrap;
    border: 1.5px solid transparent;
    background:
        linear-gradient(rgba(11, 45, 92, .76), rgba(11, 45, 92, .76)) padding-box,
        conic-gradient(
            from var(--auth-raqeem-angle),
            rgba(255,255,255,.14) 0%,
            rgba(255,255,255,.96) 16%,
            rgba(174,183,196,.95) 31%,
            rgba(235,240,247,.98) 48%,
            rgba(141,151,166,.86) 62%,
            rgba(255,255,255,.94) 78%,
            rgba(255,255,255,.14) 100%
        ) border-box;
    box-shadow:
        0 8px 20px rgba(3,16,38,.24),
        0 0 16px rgba(226,232,240,.34);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    animation: auth-raqeem-border-spin 4s linear infinite;
}

.auth-raqeem-widget {
    pointer-events: auto;
}

.auth-raqeem-widget:hover {
    transform: translateY(-3px) scale(1.03);
}

.auth-raqeem-chat[hidden] {
    display: none !important;
}

.auth-raqeem-chat {
    position: fixed;
    inset: 0;
    z-index: 2200;
    display: grid;
    place-items: center;
    padding: 20px;
}

.auth-raqeem-chat__backdrop {
    position: absolute;
    inset: 0;
    border: 0;
    background: rgba(3, 16, 38, .54);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.auth-raqeem-chat__panel {
    position: relative;
    width: min(420px, 100%);
    max-height: min(660px, calc(100vh - 40px));
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 26px;
    background: #fff;
    border: 1px solid rgba(255,255,255,.5);
    box-shadow: 0 28px 70px rgba(3,16,38,.32);
}

.auth-raqeem-chat__head {
    padding: 18px;
    color: #fff;
    background:
        radial-gradient(circle at 18% 18%, rgba(66,217,244,.18), transparent 28%),
        linear-gradient(135deg, #081f44, #0b2d5c 58%, #1988d8);
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
}

.auth-raqeem-chat__identity {
    display: flex;
    align-items: center;
    gap: 12px;
}

.auth-raqeem-chat__avatar {
    width: 62px;
    height: 62px;
    flex: 0 0 auto;
    border-radius: 50%;
    background: rgba(255,255,255,.12) url('../img/alarqm-icon.png') center/contain no-repeat;
    border: 1px solid rgba(255,255,255,.22);
}

.auth-raqeem-chat__head h2 {
    margin: 0;
    color: #fff;
    font-size: 1.12rem;
    font-weight: 800;
}

.auth-raqeem-chat__head p {
    margin: 4px 0 0;
    color: rgba(255,255,255,.78);
    line-height: 1.7;
    font-size: .82rem;
}

.auth-raqeem-chat__close {
    width: 34px;
    height: 34px;
    border: 1px solid rgba(255,255,255,.2);
    border-radius: 12px;
    color: #fff;
    background: rgba(255,255,255,.08);
    font-size: 1.35rem;
    line-height: 1;
    cursor: pointer;
}

.auth-raqeem-chat__thread {
    min-height: 280px;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: linear-gradient(180deg, #f8fbff, #fff);
}

.auth-raqeem-message {
    width: fit-content;
    max-width: 88%;
    padding: 11px 13px;
    border-radius: 18px;
    border: 1px solid var(--border);
    background: #fff;
    box-shadow: 0 8px 20px rgba(11,45,92,.06);
}

.auth-raqeem-message strong {
    display: block;
    margin-bottom: 4px;
    color: var(--brand-navy);
    font-size: .8rem;
}

.auth-raqeem-message p {
    margin: 0;
    color: var(--text-main);
    line-height: 1.8;
    font-size: .9rem;
}

.auth-raqeem-message--user {
    align-self: flex-end;
    background: linear-gradient(135deg, var(--brand-navy), var(--brand-blue));
    border-color: transparent;
}

.auth-raqeem-message--user strong,
.auth-raqeem-message--user p {
    color: #fff;
}

.auth-raqeem-chat__form {
    display: flex;
    gap: 10px;
    padding: 14px;
    border-top: 1px solid var(--border);
    background: #fff;
}

.auth-raqeem-chat__form input {
    flex: 1;
    min-width: 0;
    height: 46px;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 0 14px;
    color: var(--text-main);
    background: var(--bg-light);
    font-size: .92rem;
}

.auth-raqeem-chat__form input:focus {
    outline: none;
    border-color: var(--brand-blue);
    box-shadow: 0 0 0 4px rgba(25,136,216,.12);
    background: #fff;
}

.auth-raqeem-chat__form button {
    height: 46px;
    border: 0;
    border-radius: 16px;
    padding: 0 18px;
    color: #fff;
    font-weight: 800;
    background: linear-gradient(135deg, var(--brand-navy), var(--brand-blue));
    cursor: pointer;
}

.auth-raqeem-chat__form.is-busy button {
    opacity: .72;
    cursor: progress;
}

.auth-raqeem-chat__status {
    min-height: 20px;
    margin: -4px 16px 12px;
    color: var(--text-muted);
    font-size: .78rem;
}

@keyframes auth-raqeem-border-spin {
    to { --auth-raqeem-angle: 360deg; }
}
.auth-visual__list { margin:26px 0 0; padding-right:18px; color:rgba(255,255,255,.86); line-height:2; }
.auth-visual__footer { margin-top:auto; padding-top:20px; display:flex; justify-content:space-between; gap:12px; flex-wrap:wrap; color:rgba(255,255,255,.78); font-size:.92rem; }
.auth-visual-logo-white { filter: brightness(0) invert(1); opacity: .96; }
.auth-card--app { width:100%; max-width:none; display:flex; flex-direction:column; justify-content:center; }
.auth-brand--compact h2 { margin:0; color:var(--brand-navy); font-size:1.7rem; }
.auth-brand--compact p { margin:6px 0 0; }
.map-search-row { display:flex; gap:10px; align-items:center; margin-bottom:14px; }
.map-search-row .map-search { margin-bottom:0; flex:1; }
.map-search-btn { white-space:nowrap; min-width:92px; }
.table-compact th, .table-compact td { font-size:.88rem; padding:12px 10px; }
.action-pills { display:flex; gap:8px; flex-wrap:wrap; }
.action-pill { width:36px; height:36px; border-radius:12px; display:inline-flex; align-items:center; justify-content:center; border:1px solid var(--border); background:#fff; color:var(--brand-navy); font-size:1rem; }
.action-pill:hover { background:rgba(25,136,216,.08); }
.legacy-right-rail { position:fixed; top:118px; right:14px; z-index:1100; display:flex; flex-direction:column; gap:10px; }
.legacy-right-rail a { width:52px; height:52px; border-radius:18px; display:flex; align-items:center; justify-content:center; background:rgba(11,45,92,.96); color:#fff; box-shadow:0 12px 24px rgba(11,45,92,.18); border:1px solid rgba(66,217,244,.24); font-weight:700; }
.legacy-right-rail a.active, .legacy-right-rail a:hover { background:linear-gradient(135deg,#1988d8,#42d9f4); color:#fff; }
@media (max-width: 900px) {
    .auth-shell { grid-template-columns: 1fr; }
    .auth-visual { min-height: auto; padding: 22px; }
    .auth-raqeem-widget {
        width: 128px;
        height: 128px;
        bottom: 48px;
        inset-inline-start: 14px;
    }
    .auth-raqeem-name {
        min-width: 104px;
        font-size: .58rem;
    }
}
@media (max-width: 720px) {
    .auth-shell { gap: 14px; }
    .auth-visual { order:2; border-radius:22px; }
    .auth-card--app { order:1; }
    .auth-visual h1 { font-size:1.35rem; }
    .auth-visual__list { font-size:.92rem; }
    .map-search-row { flex-direction:column; }
    .map-search-btn { width:100%; }
    .legacy-right-rail { position:static; flex-direction:row; overflow:auto; padding:0 10px 10px; }
    .auth-raqeem-chat {
        align-items: end;
        padding: 10px;
    }
    .auth-raqeem-chat__panel {
        max-height: calc(100vh - 20px);
        border-radius: 24px;
    }
    .auth-raqeem-chat__thread {
        min-height: 240px;
    }
}


.identity-notice-card {
    margin-top: 12px;
    padding: 14px 16px;
    border: 1px solid rgba(25,136,216,.22);
    background: linear-gradient(180deg, rgba(25,136,216,.08), rgba(11,45,92,.02));
    border-radius: 16px;
}
.identity-notice-title {
    font-weight: 700;
    color: var(--brand-navy);
    margin-bottom: 6px;
}
.identity-notice-copy {
    color: var(--text-muted);
    line-height: 1.9;
    font-size: .92rem;
}
.identity-status-box { min-height: 0; }
.identity-status-box.is-visible { min-height: 90px; }
.identity-status {
    border-radius: 16px;
    padding: 14px 16px;
    line-height: 1.9;
    border: 1px solid transparent;
    font-size: .92rem;
}
.identity-status strong { color: inherit; }
.identity-status.found { background: #EFF6FF; border-color: #BFDBFE; color: #1D4ED8; }
.identity-status.fresh { background: #EDFDF3; border-color: #BBF7D0; color: #166534; }
.identity-status.pending { background: #FFF7ED; border-color: #FED7AA; color: #9A3412; }
.identity-status.error { background: #FEF2F2; border-color: #FECACA; color: #991B1B; }


/* polish v10 */
.auth-app-pill { display:inline-flex;align-items:center;justify-content:center;padding:8px 12px;border-radius:999px;background:rgba(25,136,216,.08);color:var(--brand-navy);font-weight:700;font-size:.82rem;margin-left:auto; }
.auth-visual__mobile-logo { display:none; }
.thankyou-page { min-height:100vh; display:flex; flex-direction:column; justify-content:flex-start; }
.thankyou-shell { width:min(860px,100%); margin:36px auto 22px; padding-inline:14px; }
.thankyou-card { width:100%; }
.thankyou-reference-note { margin:.75rem 0 0; color:#0b2d5c; font-size:.92rem; font-weight:700; line-height:1.8; }
.thankyou-final-note { display:flex; align-items:flex-start; gap:.45rem; margin-top:18px; margin-bottom:0; background:#fffaf0; border-color:#f1d28a; color:#6f4c12; line-height:1.9; font-weight:700; }
.thankyou-final-note strong { color:#9a6611; white-space:nowrap; }
.thankyou-page .site-footer-clean { margin-top:auto; width:100%; }
@media (max-width: 720px) {
  body.auth-page { padding:0; }
  .auth-shell--gate { width:100%; max-width:430px; min-height:100vh; margin:0 auto; display:flex; flex-direction:column; gap:0; }
  .auth-shell--gate .auth-visual { display:none; }
  .auth-shell--gate .auth-card--app { min-height:100vh; border-radius:0; box-shadow:none; border:none; padding:18px 16px 24px; background:linear-gradient(180deg, rgba(255,255,255,.98), rgba(255,255,255,.96)); }
  .auth-shell--gate .auth-brand { margin-bottom:18px; }
  .auth-shell--gate .auth-brand--compact { position:relative; padding:18px; border-radius:24px; background:linear-gradient(135deg,#ffffff,#f8fbff); border:1px solid rgba(25,136,216,.12); box-shadow:0 10px 34px rgba(11,45,92,.08); flex-direction:column; align-items:flex-start; }
  .auth-shell--gate .auth-brand img { width:64px; height:64px; }
  .auth-shell--gate .auth-brand--compact h2 { font-size:1.55rem; }
  .auth-shell--gate .card { border-radius:24px; padding:18px; }
  .auth-shell--gate .btn-primary { min-height:52px; border-radius:16px; }
  .auth-shell--gate .input-ctrl { min-height:52px; border-radius:16px; font-size:16px; }
  .auth-shell--gate .site-footer-clean { justify-content:center; text-align:center; }
  .thankyou-shell { margin:18px auto 14px; padding-inline:10px; }
  .thankyou-card { border-radius:22px; }
}

/* Al-Arqam selectable UI theme: keep layout, replace visual identity. */
body.theme-alarqm .auth-shell {
    border-color: rgba(25, 136, 216, .18);
    box-shadow: 0 28px 80px rgba(11, 45, 92, .22);
}

body.theme-alarqm .auth-visual,
body.theme-alarqm .auth-showcase {
    background:
        radial-gradient(circle at 15% 18%, rgba(201, 59, 255, .16), transparent 24%),
        radial-gradient(circle at 86% 14%, rgba(255, 138, 0, .16), transparent 26%),
        linear-gradient(180deg, rgba(8, 31, 68, .98), rgba(11, 45, 92, .94) 64%, rgba(25, 136, 216, .78));
}

body.theme-alarqm .auth-visual__badge,
body.theme-alarqm .auth-badge {
    background: rgba(25, 136, 216, .14);
    border-color: rgba(66, 217, 244, .26);
    color: #fff;
}

body.theme-alarqm .auth-app-pill,
body.theme-alarqm .auth-shell--gate .auth-brand--compact {
    background: linear-gradient(135deg, #ffffff, #f5f8ff);
    border-color: rgba(25, 136, 216, .18);
}

body.theme-alarqm .auth-app-pill,
body.theme-alarqm .auth-brand--compact h2,
body.theme-alarqm .auth-helper a {
    color: #0b2d5c;
}

body.theme-alarqm .auth-shell--gate .auth-card--app {
    background: linear-gradient(180deg, #ffffff, #f6f9ff);
}

body.theme-alarqm .identity-notice-card {
    border-color: rgba(25, 136, 216, .24);
    background: linear-gradient(180deg, rgba(25, 136, 216, .10), rgba(11, 45, 92, .03));
}

body.theme-alarqm .identity-status.found {
    background: #edf4ff;
    border-color: #c8d9ff;
    color: #0b2d5c;
}

body.theme-alarqm .legacy-right-rail a {
    background: rgba(11, 45, 92, .96);
    border-color: rgba(66, 217, 244, .24);
    box-shadow: 0 12px 24px rgba(11, 45, 92, .18);
}

body.theme-alarqm .legacy-right-rail a.active,
body.theme-alarqm .legacy-right-rail a:hover {
    background: linear-gradient(135deg, #1988d8, #42d9f4);
    color: #fff;
}

body.theme-alarqm .site-footer-clean {
    border-top-color: rgba(25, 136, 216, .14);
}

body.theme-alarqm .alert-success {
    background: #edfdf3;
    border-color: #bdeccf;
    color: #166534;
}

body.theme-alarqm .alert-error {
    background: #fff1f2;
    border-color: #fecdd3;
    color: #9f1239;
}
