:root {
    --hs-primary: #00236f;
    --hs-primary-container: #1e3a8a;
    --hs-primary-fixed: #dce1ff;
    --hs-on-primary: #ffffff;
    --hs-on-primary-fixed: #00164e;
    --hs-on-primary-fixed-variant: #264191;
    --hs-on-primary-container: #90a8ff;
    --hs-secondary: #006c4a;
    --hs-secondary-container: #82f5c1;
    --hs-on-secondary: #ffffff;
    --hs-on-secondary-container: #00714e;
    --hs-tertiary: #442100;
    --hs-tertiary-container: #653400;
    --hs-tertiary-fixed: #ffdcc3;
    --hs-tertiary-fixed-dim: #ffb77d;
    --hs-on-tertiary-fixed: #2f1500;
    --hs-on-tertiary-container: #fc922b;
    --hs-error: #ba1a1a;
    --hs-error-container: #ffdad6;
    --hs-on-error: #ffffff;
    --hs-on-error-container: #93000a;
    --hs-background: #f8f9fa;
    --hs-surface: #f8f9fa;
    --hs-surface-low: #f3f4f5;
    --hs-surface-container: #edeeef;
    --hs-surface-high: #e7e8e9;
    --hs-surface-highest: #e1e3e4;
    --hs-surface-lowest: #ffffff;
    --hs-on-surface: #191c1d;
    --hs-on-surface-variant: #444651;
    --hs-outline: #757682;
    --hs-outline-variant: #c5c5d3;
    --hs-shadow: 0 4px 20px rgba(30, 58, 138, 0.05);
    --hs-radius: 12px;
    --hs-radius-lg: 16px;
    --hs-sidebar: 280px;
    --hs-touch: 48px;
    --hs-pad-m: 20px;
    --hs-pad-d: 40px;
}

*, *::before, *::after { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    min-height: 100%;
}

body.hs-body {
    font-family: "Vazirmatn FD", Vazirmatn, Tahoma, sans-serif;
    background: var(--hs-background);
    color: var(--hs-on-surface);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.hs-body a { color: inherit; text-decoration: none; }

.material-symbols-outlined {
    font-variation-settings: "FILL" 0, "wght" 400, "GRAD" 0, "opsz" 24;
    font-size: 22px;
    line-height: 1;
    user-select: none;
}

.hs-hidden, .visually-hidden {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Layout */
.hs-shell { display: flex; min-height: 100vh; }

.hs-sidebar {
    display: none;
    flex-direction: column;
    width: var(--hs-sidebar);
    position: fixed;
    right: 0;
    top: 0;
    bottom: 0;
    background: var(--hs-surface-low);
    border-left: 1px solid var(--hs-outline-variant);
    padding: 32px 0 16px;
    z-index: 40;
}

.hs-main {
    flex: 1;
    min-width: 0;
    padding-bottom: 88px;
}

.hs-topbar {
    position: sticky;
    top: 0;
    z-index: 30;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: var(--hs-touch);
    padding: 8px var(--hs-pad-m);
    background: rgba(248, 249, 250, 0.82);
    backdrop-filter: blur(12px);
}

.hs-topbar h1 {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: var(--hs-primary);
    line-height: 1.3;
}

.hs-topbar-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.hs-icon-btn {
    width: 40px;
    height: 40px;
    border: 0;
    background: transparent;
    color: var(--hs-on-surface-variant);
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.hs-icon-btn:hover { background: var(--hs-surface-high); }

.hs-avatar {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    background: var(--hs-primary-fixed);
    color: var(--hs-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 13px;
}

.hs-canvas {
    max-width: 1280px;
    margin: 0 auto;
    padding: 16px var(--hs-pad-m) 32px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

@media (min-width: 768px) {
    .hs-sidebar { display: flex; }
    .hs-main { margin-right: var(--hs-sidebar); padding-bottom: 32px; }
    .hs-topbar { padding: 8px var(--hs-pad-d); }
    .hs-topbar h1 { font-size: 24px; }
    .hs-canvas { padding: 24px var(--hs-pad-d) 48px; gap: 32px; }
    .hs-bottom-nav,
    .hs-more-sheet,
    .hs-more-sheet.is-open { display: none !important; }
}

/* Sidebar */
.hs-brand {
    padding: 0 24px 24px;
    text-align: center;
}

.hs-brand-mark {
    width: 72px;
    height: 72px;
    margin: 0 auto 12px;
    border-radius: 18px;
    background: var(--hs-primary-container);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 18px;
    box-shadow: 0 10px 24px rgba(0, 35, 111, 0.18);
}

.hs-brand h2 {
    margin: 0 0 4px;
    font-size: 18px;
    font-weight: 700;
    color: var(--hs-primary);
}

.hs-brand p {
    margin: 0;
    font-size: 13px;
    color: var(--hs-on-surface-variant);
}

.hs-chip {
    display: inline-flex;
    align-items: center;
    margin-top: 8px;
    padding: 4px 12px;
    border-radius: 999px;
    background: var(--hs-primary-fixed);
    color: var(--hs-on-primary-fixed-variant);
    font-size: 12px;
    font-weight: 500;
}

.hs-nav {
    flex: 1;
    overflow-y: auto;
    padding: 0 8px;
}

.hs-nav a {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 16px;
    border-radius: 10px;
    color: var(--hs-on-surface-variant);
    font-size: 15px;
    margin-bottom: 4px;
}

.hs-nav a:hover { background: var(--hs-surface-high); }

.hs-nav a.is-active {
    color: var(--hs-primary);
    font-weight: 700;
    background: var(--hs-primary-fixed);
    border-right: 4px solid var(--hs-primary);
    border-radius: 10px 0 0 10px;
}

.hs-nav-sep {
    height: 1px;
    background: var(--hs-outline-variant);
    margin: 12px 16px;
}

.hs-nav-footer { padding: 8px; }

/* Bottom nav */
.hs-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 50;
    display: flex;
    justify-content: space-around;
    align-items: center;
    background: var(--hs-surface-lowest);
    box-shadow: 0 -4px 20px rgba(30, 58, 138, 0.05);
    padding: 8px 6px calc(8px + env(safe-area-inset-bottom));
    border-radius: 16px 16px 0 0;
}

.hs-bottom-nav a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    color: var(--hs-on-surface-variant);
    font-size: 11px;
    font-weight: 500;
    padding: 4px 10px;
    border-radius: 999px;
    min-width: 56px;
}

.hs-bottom-nav a.is-active {
    background: var(--hs-secondary-container);
    color: var(--hs-on-secondary-container);
}

/* Cards */
.hs-card {
    background: var(--hs-surface-lowest);
    border: 1px solid rgba(197, 197, 211, 0.35);
    border-radius: var(--hs-radius);
    box-shadow: var(--hs-shadow);
}

.hs-card-pad { padding: 20px; }
@media (min-width: 768px) { .hs-card-pad { padding: 28px; } }

.hs-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

.hs-card-head h2,
.hs-card-head h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: var(--hs-primary);
}

.hs-muted { color: var(--hs-on-surface-variant); font-size: 14px; }
.hs-muted-sm { color: var(--hs-on-surface-variant); font-size: 12px; }
.hs-strong { font-weight: 700; color: var(--hs-on-surface); }

.hs-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    align-items: center;
}

.hs-between {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.hs-stack { display: flex; flex-direction: column; gap: 12px; }
.hs-stack-lg { display: flex; flex-direction: column; gap: 20px; }

/* Grids */
.hs-grid {
    display: grid;
    gap: 16px;
}

.hs-grid-2 { grid-template-columns: 1fr; }
.hs-grid-3 { grid-template-columns: 1fr; }
.hs-grid-4 { grid-template-columns: 1fr; }
.hs-grid-aside { grid-template-columns: 1fr; }

@media (min-width: 640px) {
    .hs-grid-2 { grid-template-columns: repeat(2, 1fr); }
    .hs-grid-3 { grid-template-columns: repeat(2, 1fr); }
    .hs-grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
    .hs-grid-3 { grid-template-columns: repeat(3, 1fr); }
    .hs-grid-4 { grid-template-columns: repeat(4, 1fr); }
    .hs-grid-aside { grid-template-columns: 2fr 1fr; }
}

/* KPI */
.hs-kpi {
    background: var(--hs-surface-lowest);
    border: 1px solid rgba(197, 197, 211, 0.35);
    border-radius: var(--hs-radius);
    box-shadow: var(--hs-shadow);
    padding: 22px;
}

.hs-kpi-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.hs-kpi-icon.is-error { background: var(--hs-error-container); color: var(--hs-on-error-container); }
.hs-kpi-icon.is-warn { background: var(--hs-tertiary-fixed); color: var(--hs-on-tertiary-fixed); }
.hs-kpi-icon.is-ok { background: var(--hs-secondary-container); color: var(--hs-on-secondary-container); }
.hs-kpi-icon.is-info { background: var(--hs-primary-fixed); color: var(--hs-primary); }

.hs-kpi .hs-amount {
    margin: 12px 0 0;
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.2;
}

.hs-kpi.is-primary {
    background: var(--hs-primary);
    color: #fff;
    border-color: var(--hs-primary-container);
    position: relative;
    overflow: hidden;
}

.hs-kpi.is-primary .hs-muted,
.hs-kpi.is-primary .hs-muted-sm { color: var(--hs-primary-fixed); }
.hs-kpi.is-primary .hs-amount { color: #fff; }

/* Buttons */
.hs-btn,
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 8px 18px;
    border-radius: 10px;
    border: 1px solid transparent;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none !important;
    background: var(--hs-surface-lowest);
    color: var(--hs-on-surface);
    transition: transform 0.15s ease, background 0.15s ease;
}

.hs-btn:hover, .btn:hover { transform: translateY(-1px); }
.hs-btn:disabled, .btn:disabled { opacity: 0.7; cursor: not-allowed; transform: none; pointer-events: none; }

.hs-btn.is-loading {
    pointer-events: none;
    opacity: 0.9;
}

.hs-btn-spinner {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-top-color: #fff;
    border-radius: 50%;
    animation: hs-spin 0.7s linear infinite;
    display: inline-block;
}

.hs-btn-primary,
.btn-primary {
    background: var(--hs-primary);
    color: #fff !important;
    box-shadow: 0 8px 18px rgba(0, 35, 111, 0.18);
}

.hs-btn-primary:hover, .btn-primary:hover { background: var(--hs-primary-container); }

.hs-btn-secondary,
.btn-secondary,
.btn-light {
    background: #fff;
    border-color: var(--hs-outline-variant);
    color: var(--hs-on-surface) !important;
}

.hs-btn-ghost { background: transparent; color: var(--hs-primary); }
.hs-btn-success, .btn-success { background: var(--hs-secondary); color: #fff !important; }
.hs-btn-danger, .btn-danger { background: var(--hs-error); color: #fff !important; }
.hs-btn-warn, .btn-warning { background: var(--hs-tertiary-fixed); color: var(--hs-on-tertiary-fixed) !important; }
.hs-btn-info, .btn-info { background: var(--hs-primary-fixed); color: var(--hs-primary) !important; }
.hs-btn-block { width: 100%; min-height: var(--hs-touch); font-size: 16px; }
.hs-btn-sm, .btn-sm { min-height: 36px; padding: 6px 12px; font-size: 13px; }
.hs-actions { display: flex; flex-wrap: wrap; gap: 8px; }

/* Forms */
.hs-field { display: flex; flex-direction: column; gap: 6px; }

.hs-label,
.form-label {
    font-size: 13px;
    font-weight: 500;
    color: var(--hs-on-surface-variant);
}

.hs-input,
.hs-select,
.form-control,
.form-select,
textarea.form-control,
input.form-control,
select.form-select {
    width: 100%;
    min-height: var(--hs-touch);
    padding: 10px 14px;
    border: 1px solid var(--hs-outline-variant);
    border-radius: 10px;
    background: var(--hs-surface-lowest);
    color: var(--hs-on-surface);
    font-family: inherit;
    font-size: 16px;
    outline: none;
}

textarea.hs-input,
textarea.form-control { min-height: 96px; resize: vertical; }

.hs-input:focus,
.form-control:focus,
.form-select:focus,
.hs-select:focus {
    border-color: var(--hs-primary);
    box-shadow: 0 0 0 3px rgba(0, 35, 111, 0.12);
}

.field-validation-error,
.text-danger,
.validation-summary-errors {
    color: var(--hs-error);
    font-size: 12px;
}

.input-validation-error {
    border-color: var(--hs-error) !important;
}

.hs-check {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
}

.hs-check input { width: 18px; height: 18px; accent-color: var(--hs-primary); }

.hs-form-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: 1fr;
}

@media (min-width: 768px) {
    .hs-form-grid { grid-template-columns: repeat(2, 1fr); }
    .hs-span-2 { grid-column: span 2; }
}

/* Badges */
.hs-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 500;
    background: var(--hs-surface-high);
    color: var(--hs-on-surface-variant);
}

.hs-badge-ok { background: var(--hs-secondary-container); color: var(--hs-on-secondary-container); }
.hs-badge-warn { background: var(--hs-tertiary-fixed); color: var(--hs-on-tertiary-fixed); }
.hs-badge-err { background: var(--hs-error-container); color: var(--hs-on-error-container); }
.hs-badge-info { background: var(--hs-primary-fixed); color: var(--hs-on-primary-fixed-variant); }

/* Lists / tables */
.hs-table-wrap { overflow-x: auto; }

.hs-table {
    width: 100%;
    border-collapse: collapse;
    text-align: right;
}

.hs-table th {
    padding: 0 8px 12px;
    font-size: 13px;
    font-weight: 500;
    color: var(--hs-on-surface-variant);
    border-bottom: 1px solid rgba(197, 197, 211, 0.35);
}

.hs-table td {
    padding: 16px 8px;
    font-size: 14px;
    border-bottom: 1px solid rgba(197, 197, 211, 0.2);
    vertical-align: middle;
}

.hs-table tr:hover td { background: var(--hs-surface-low); }

/* Empty / alert */
.hs-empty {
    text-align: center;
    padding: 36px 20px;
    background: var(--hs-surface-lowest);
    border-radius: var(--hs-radius);
    border: 1px dashed var(--hs-outline-variant);
}

.hs-empty h3 { margin: 0 0 8px; color: var(--hs-primary); font-size: 18px; }
.hs-empty p { margin: 0 0 16px; color: var(--hs-on-surface-variant); }

.hs-alert {
    padding: 16px 18px;
    border-radius: 12px;
    background: var(--hs-primary-fixed);
    color: var(--hs-on-primary-fixed);
}

.hs-alert-warn { background: var(--hs-tertiary-fixed); color: var(--hs-on-tertiary-fixed); }
.hs-alert-err { background: var(--hs-error-container); color: var(--hs-on-error-container); }
.hs-alert-ok { background: var(--hs-secondary-container); color: var(--hs-on-secondary-container); }

/* Link tiles */
.hs-tile {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 18px;
    border-radius: 14px;
    background: var(--hs-surface-lowest);
    border: 1px solid rgba(197, 197, 211, 0.35);
    box-shadow: var(--hs-shadow);
    min-height: 120px;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.hs-tile:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(30, 58, 138, 0.08);
}

.hs-tile span.material-symbols-outlined {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--hs-primary-fixed);
    color: var(--hs-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.hs-tile strong { font-size: 15px; color: var(--hs-on-surface); }
.hs-tile small { color: var(--hs-on-surface-variant); font-size: 12px; }

.hs-building-card {
    display: block;
    background: var(--hs-surface-lowest);
    border: 1px solid rgba(197, 197, 211, 0.35);
    border-radius: 16px;
    box-shadow: var(--hs-shadow);
    overflow: hidden;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.hs-building-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(30, 58, 138, 0.08);
}

.hs-building-card .hs-cover {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 72px;
    padding: 16px 16px 16px 12px;
    background: linear-gradient(135deg, var(--hs-primary) 0%, var(--hs-primary-container) 100%);
    position: relative;
    overflow: hidden;
}

.hs-building-card .hs-cover::before,
.hs-building-card .hs-cover::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    background: rgba(255, 255, 255, 0.08);
}

.hs-building-card .hs-cover::before {
    width: 140px;
    height: 140px;
    top: -72px;
    left: -28px;
}

.hs-building-card .hs-cover::after {
    width: 72px;
    height: 72px;
    bottom: -36px;
    left: 56px;
}

.hs-building-card .hs-cover-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.16);
    color: var(--hs-on-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    z-index: 1;
}

.hs-building-card .hs-cover h3 {
    margin: 0;
    flex: 1;
    min-width: 0;
    font-size: 16px;
    font-weight: 700;
    color: var(--hs-on-primary);
    line-height: 1.4;
    z-index: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hs-building-card .hs-cover-arrow {
    color: rgba(255, 255, 255, 0.72);
    flex-shrink: 0;
    z-index: 1;
    transition: transform 0.15s ease;
}

.hs-building-card:hover .hs-cover-arrow {
    transform: translateX(-3px);
}

.hs-building-card .hs-body { padding: 16px 18px 18px; }

/* Auth */
.hs-auth-body {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 20px;
    position: relative;
    overflow: hidden;
}

.hs-auth-blob {
    position: fixed;
    border-radius: 999px;
    filter: blur(60px);
    pointer-events: none;
    z-index: 0;
}

.hs-auth-blob-a {
    top: -10%;
    right: -10%;
    width: 420px;
    height: 420px;
    background: rgba(0, 35, 111, 0.06);
}

.hs-auth-blob-b {
    bottom: -10%;
    left: -10%;
    width: 360px;
    height: 360px;
    background: rgba(130, 245, 193, 0.16);
}

.hs-auth-wrap {
    width: 100%;
    max-width: 480px;
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.hs-auth-hero {
    display: none;
}

@media (min-width: 1100px) {
    .hs-auth-body {
        justify-content: flex-start;
        padding: 40px 8vw 40px 0;
    }
    .hs-auth-wrap {
        margin-left: 42%;
        margin-right: auto;
    }
    .hs-auth-hero {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        position: fixed;
        left: 0;
        top: 0;
        bottom: 0;
        width: 40%;
        background: var(--hs-surface-low);
        border-left: 1px solid var(--hs-outline-variant);
        padding: 48px;
        z-index: 1;
    }
}

.hs-logo-box {
    width: 72px;
    height: 72px;
    border-radius: 18px;
    background: var(--hs-primary-container);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 16px;
    margin: 0 auto 12px;
    box-shadow: 0 12px 24px rgba(0, 35, 111, 0.2);
}

.hs-narrow,
.hs-narrow-lg,
.hs-narrow-sm {
    --hs-narrow-max: 720px;
    width: min(100%, var(--hs-narrow-max));
    max-width: var(--hs-narrow-max);
    margin-inline: auto;
    align-self: center;
}

.hs-narrow { --hs-narrow-max: 720px; }
.hs-narrow-lg { --hs-narrow-max: 860px; }
.hs-narrow-sm { --hs-narrow-max: 640px; }

.hs-otp {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 10px;
    direction: ltr;
    unicode-bidi: isolate;
}

.hs-otp input {
    width: 52px;
    height: 64px;
    text-align: center;
    font-size: 24px;
    font-weight: 700;
    border-radius: 12px;
    border: 1px solid var(--hs-outline-variant);
    background: var(--hs-surface-lowest);
}

.hs-otp input:focus {
    border-color: var(--hs-primary);
    box-shadow: 0 0 0 3px rgba(0, 35, 111, 0.12);
    outline: none;
}

/* Bootstrap modal restyle — always centered in the viewport */
body.modal-open { overflow: hidden; }
.modal { display: none; }
.modal.fade { transition: opacity 0.15s linear; }
.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(25, 28, 29, 0.45);
    z-index: 1040;
}
.modal-backdrop.fade { opacity: 1; }
.modal {
    position: fixed;
    inset: 0;
    z-index: 1055;
    overflow: auto;
    padding: 16px;
}
.modal:not(.show) { display: none !important; }
.modal.show,
.modal.fade.show {
    display: grid !important;
    place-items: center;
}
.modal-dialog {
    position: relative;
    width: min(560px, 100%);
    max-width: 100%;
    margin: 0 auto;
    z-index: 1056;
    pointer-events: auto;
    transform: none !important;
}
.modal-dialog-centered {
    display: block;
    min-height: 0;
    align-items: stretch;
}
.modal-dialog-centered::before { display: none !important; content: none; }
.modal-xl { width: min(900px, 100%); max-width: 100%; }
.modal-lg { width: min(720px, 100%); max-width: 100%; }
.modal-sm { width: min(400px, 100%); max-width: 100%; }
.modal-content {
    background: var(--hs-surface-lowest);
    border-radius: 16px;
    border: 1px solid var(--hs-outline-variant);
    box-shadow: 0 20px 50px rgba(0, 35, 111, 0.16);
}
.modal-header, .modal-body, .modal-footer { padding: 18px 22px; }
.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--hs-outline-variant);
}
.modal-title { margin: 0; font-size: 18px; color: var(--hs-primary); font-weight: 700; }
.btn-close {
    width: 36px;
    height: 36px;
    border: 0;
    background: var(--hs-surface-high);
    border-radius: 999px;
    cursor: pointer;
    font-size: 18px;
}
.btn-close::before { content: "×"; color: var(--hs-on-surface-variant); }

.spinner-border {
    display: inline-block;
    width: 2rem;
    height: 2rem;
    border: 0.25em solid var(--hs-primary);
    border-right-color: transparent;
    border-radius: 50%;
    animation: hs-spin 0.7s linear infinite;
}

@keyframes hs-spin { to { transform: rotate(360deg); } }

.line-clamp-2 {
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.hs-progress {
    width: 100%;
    height: 8px;
    background: var(--hs-surface-high);
    border-radius: 999px;
    overflow: hidden;
}

.hs-progress > span {
    display: block;
    height: 100%;
    background: var(--hs-secondary);
}

.hs-more-sheet {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 60;
}

.hs-more-sheet.is-open { display: block; }

.hs-more-sheet .hs-more-bg {
    position: absolute;
    inset: 0;
    background: rgba(25, 28, 29, 0.4);
}

.hs-more-sheet .hs-more-panel {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    max-height: calc(100vh - 56px);
    max-height: min(85dvh, calc(100dvh - 56px));
    background: var(--hs-surface-lowest);
    border-radius: 20px 20px 0 0;
    padding: 8px 16px calc(16px + env(safe-area-inset-bottom));
    box-shadow: 0 -8px 28px rgba(25, 28, 29, 0.12);
}

.hs-more-header {
    flex-shrink: 0;
    padding: 0 0 4px;
}

.hs-more-handle {
    display: block;
    width: 40px;
    height: 4px;
    margin: 4px auto 8px;
    border-radius: 999px;
    background: var(--hs-outline-variant);
}

.hs-more-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    min-height: 40px;
}

.hs-more-header-row .hs-strong {
    margin: 0 8px;
}

.hs-more-close-btn {
    flex-shrink: 0;
}

.hs-more-list {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    min-height: 0;
}

.hs-more-sheet .hs-more-list a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 8px;
    color: var(--hs-on-surface);
    border-bottom: 1px solid var(--hs-surface-high);
}

.hs-more-sheet .hs-more-list a:last-child {
    border-bottom: 0;
}

body.hs-more-open {
    overflow: hidden;
}

.swal2-confirm { background: var(--hs-primary) !important; }
.swal2-title, .swal2-html-container { font-family: "Vazirmatn FD", Vazirmatn, Tahoma, sans-serif !important; }

.jdp-container { font-family: "Vazirmatn FD", Vazirmatn, Tahoma, sans-serif !important; z-index: 2000 !important; }

.hs-card.is-unread {
    border-right: 3px solid var(--hs-primary);
}

.hs-parking-map {
    display: grid;
    gap: 10px;
}

.hs-parking-slot {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 12px;
    border-radius: 14px;
    background: var(--hs-surface-lowest);
    border: 1px solid var(--hs-outline-variant);
    min-height: 120px;
}

.hs-parking-slot.is-mine {
    border-color: var(--hs-secondary);
    background: var(--hs-secondary-container);
}

.hs-parking-slot.is-guest {
    border-style: dashed;
}

.hs-parking-slot.is-assigned {
    background: var(--hs-primary-fixed);
}

.hs-timeline {
    list-style: none;
    margin: 0;
    padding: 0;
    position: relative;
}

.hs-timeline::before {
    content: "";
    position: absolute;
    top: 8px;
    bottom: 8px;
    right: 7px;
    width: 2px;
    background: var(--hs-surface-high);
}

.hs-timeline-item {
    position: relative;
    padding: 0 28px 20px 0;
}

.hs-timeline-item:last-child { padding-bottom: 0; }

.hs-timeline-dot {
    position: absolute;
    top: 6px;
    right: 2px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--hs-primary);
    box-shadow: 0 0 0 4px var(--hs-surface-lowest);
}

.hs-tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.hs-tab {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 6px 14px;
    border-radius: 999px;
    background: var(--hs-surface-lowest);
    color: var(--hs-on-surface-variant);
    border: 1px solid var(--hs-outline-variant);
    font-size: 13px;
    text-decoration: none;
}

.hs-tab.is-active {
    background: var(--hs-primary);
    color: #fff;
    border-color: var(--hs-primary);
}

.hs-poll-bar {
    height: 8px;
    background: var(--hs-surface-high);
    border-radius: 999px;
    overflow: hidden;
}

.hs-poll-bar > span {
    display: block;
    height: 100%;
    background: var(--hs-primary);
}

.hs-file {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 160px;
    padding: 24px 16px;
    border: 1.5px dashed var(--hs-outline-variant);
    border-radius: 14px;
    background: var(--hs-surface-lowest);
    text-align: center;
    cursor: pointer;
    color: var(--hs-on-surface);
}

.hs-file input[type="file"] {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.hs-file .material-symbols-outlined {
    font-size: 36px;
    color: var(--hs-primary);
}

.hs-file strong { font-size: 15px; }
.hs-file small { color: var(--hs-on-surface-variant); font-size: 12px; }

