:root {
    --bg: #f6f2e8;
    --surface: #ffffff;
    --surface-soft: #fbf8f2;
    --ink: #18344f;
    --ink-soft: #4b6278;
    --line: #d8e0e8;
    --accent: #a46f28;
    --accent-deep: #7e521b;
    --accent-soft: #f2e0c6;
    --success: #1d7f5f;
    --danger: #bd4336;
    --warning: #9c6a09;
    --shadow: 0 20px 60px rgba(24, 52, 79, 0.10);
    --radius: 22px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: 'Cairo', 'Segoe UI', Tahoma, Arial, sans-serif;
    line-height: 1.75;
    background:
        radial-gradient(circle at top left, rgba(164, 111, 40, 0.12), transparent 28%),
        linear-gradient(180deg, #f8f4ed 0%, #eef3f7 100%);
    color: var(--ink);
}

a { color: var(--accent-deep); text-decoration: none; }
a:hover { text-decoration: underline; }

.site-shell {
    max-width: 1240px;
    margin: 0 auto;
    padding: 24px;
}

.topbar,
.admin-ribbon,
.panel,
.hero-card,
.metric,
.table-wrap,
.empty-state,
.timeline,
.document-grid,
.search-result,
.auth-card,
.import-card,
.wizard-card {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(216, 224, 232, 0.85);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 18px 22px;
    margin-bottom: 18px;
}

.brand-link {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    color: var(--ink);
    text-decoration: none;
}

.brand-link small {
    display: block;
    color: var(--ink-soft);
    margin-top: 4px;
}

.brand-mark {
    width: 62px;
    height: 62px;
    border-radius: 18px;
    display: grid;
    place-items: center;
    color: #fff;
    font-size: 1.35rem;
    font-weight: 700;
    background: linear-gradient(135deg, #b88134, #7f5622);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.2);
}

.topbar-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.topbar-nav a {
    padding: 10px 14px;
    border-radius: 999px;
    background: var(--surface-soft);
    border: 1px solid var(--line);
    color: var(--ink);
    text-decoration: none;
}

.topbar-nav a:hover {
    background: #fff;
    transform: translateY(-1px);
}

.admin-ribbon {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 16px 22px;
    margin-bottom: 18px;
}

.page-frame {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.hero-card {
    padding: 32px;
    position: relative;
    overflow: hidden;
}

.hero-card::after {
    content: 'جاهز';
    position: absolute;
    inset: auto -80px -80px auto;
    width: 240px;
    height: 240px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(164,111,40,.15), transparent 70%);
}

.hero-card h1,
.hero-card h2,
.panel h2,
.panel h3,
.search-result h2,
.auth-card h1,
.import-card h1,
.wizard-card h1 {
    margin: 0 0 12px;
}

.hero-grid,
.grid-2,
.grid-3,
.form-grid,
.metrics-grid,
.search-summary {
    display: grid;
    gap: 16px;
}

.hero-grid,
.grid-2,
.form-grid,
.search-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3, .metrics-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.panel,
.table-wrap,
.empty-state,
.auth-card,
.import-card,
.wizard-card,
.search-result,
.timeline,
.document-grid {
    padding: 24px;
}

.metric {
    padding: 20px;
    min-height: 140px;
}

.metric .value {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    margin: 12px 0 8px;
}

.metric .label,
.muted,
.helper,
.timeline time,
.file-meta,
.status-note {
    color: var(--ink-soft);
}

.badge,
.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--accent-deep);
    font-weight: 700;
    font-size: .95rem;
}

.status-pill.success { background: rgba(29, 127, 95, .14); color: var(--success); }
.status-pill.danger { background: rgba(189, 67, 54, .14); color: var(--danger); }
.status-pill.warning { background: rgba(156, 106, 9, .15); color: var(--warning); }

.button,
button,
input[type="submit"] {
    appearance: none;
    border: 0;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--accent), var(--accent-deep));
    color: #fff;
    cursor: pointer;
    font: inherit;
    padding: 13px 18px;
    transition: .2s ease;
    text-align: center;
}

.button:hover,
button:hover,
input[type="submit"]:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(126, 82, 27, .2);
    text-decoration: none;
}

.button.secondary,
button.secondary {
    background: #fff;
    color: var(--ink);
    border: 1px solid var(--line);
}

.button.success,
button.success {
    background: linear-gradient(135deg, #24926e, #17664d);
}

.button.danger,
button.danger {
    background: linear-gradient(135deg, #cb5345, #96382e);
}

.inline-actions,
.search-actions,
.filters,
.form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.field label {
    font-weight: 700;
}

input[type="text"],
input[type="number"],
input[type="date"],
input[type="password"],
input[type="file"],
select,
textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 13px 14px;
    font: inherit;
    color: var(--ink);
    background: #fff;
}

textarea { min-height: 130px; resize: vertical; }
input:focus, select:focus, textarea:focus {
    outline: 2px solid rgba(164, 111, 40, .18);
    border-color: rgba(164, 111, 40, .55);
}

.check-list,
.doc-list,
.summary-list,
.detail-list,
.timeline-list {
    display: grid;
    gap: 12px;
    padding: 0;
    list-style: none;
    margin: 0;
}

.check-list li,
.doc-list li,
.summary-list li,
.timeline-item,
.document-card,
.detail-list li {
    background: var(--surface-soft);
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 16px;
}

.flash {
    padding: 16px 18px;
    border-radius: 18px;
    font-weight: 700;
}

.flash-success { background: rgba(29, 127, 95, .12); color: var(--success); }
.flash-error { background: rgba(189, 67, 54, .12); color: var(--danger); }
.flash-warning { background: rgba(156, 106, 9, .12); color: var(--warning); }

.table-wrap { overflow: auto; }
.table {
    width: 100%;
    border-collapse: collapse;
    min-width: 900px;
}

.table th,
.table td {
    padding: 14px 12px;
    border-bottom: 1px solid #e9eef3;
    text-align: right;
    vertical-align: top;
}

.table th {
    color: var(--ink-soft);
    font-weight: 700;
    background: #f8fafc;
    position: sticky;
    top: 0;
}

.table tr:hover td {
    background: rgba(247, 249, 252, .8);
}

.auth-wrap {
    min-height: calc(100vh - 180px);
    display: grid;
    place-items: center;
}

.auth-card { max-width: 520px; width: 100%; }

.empty-state,
.search-result,
.import-card,
.wizard-card {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.search-result .meta-grid,
.detail-grid,
.document-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.detail-box {
    background: var(--surface-soft);
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 18px;
}

.document-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.document-card h4,
.detail-box h3 { margin-top: 0; }
.file-link { word-break: break-all; }

.timeline-list { margin-top: 12px; }
.timeline-item { position: relative; }

.wizard-steps {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.step-pill {
    padding: 10px 14px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: var(--surface-soft);
    font-weight: 700;
}

.step-pill.is-active {
    background: var(--accent-soft);
    color: var(--accent-deep);
    border-color: rgba(164, 111, 40, .35);
}

.wizard-step {
    display: none;
    flex-direction: column;
    gap: 18px;
}

.wizard-step.is-active { display: flex; }

.map-picker {
    min-height: 260px;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid var(--line);
}

.note-box {
    padding: 16px;
    border-radius: 18px;
    background: rgba(164, 111, 40, .08);
    border: 1px dashed rgba(164, 111, 40, .35);
}

.hidden { display: none !important; }

@media print {
    .topbar, .admin-ribbon, .filters, .form-actions, .inline-actions, .search-actions, .no-print { display: none !important; }
    body { background: #fff; }
    .site-shell, .page-frame { padding: 0; margin: 0; }
    .panel, .table-wrap, .search-result, .timeline, .document-grid { box-shadow: none; border-color: #ddd; }
}

@media (max-width: 900px) {
    .site-shell { padding: 14px; }
    .topbar, .admin-ribbon, .hero-grid, .grid-2, .grid-3, .metrics-grid, .form-grid, .search-summary, .search-result .meta-grid, .detail-grid, .document-grid {
        grid-template-columns: 1fr;
        display: grid;
    }
    .topbar, .admin-ribbon { display: flex; flex-direction: column; align-items: stretch; }
    .table { min-width: 720px; }
}

.topbar--landing {
    margin-bottom: 20px;
    background: rgba(255, 255, 255, 0.7);
    border-color: rgba(255, 255, 255, 0.55);
}

.landing-finance {
    background:
        radial-gradient(circle at 12% 16%, rgba(164, 111, 40, 0.18), transparent 22%),
        radial-gradient(circle at 87% 12%, rgba(24, 52, 79, 0.14), transparent 19%),
        linear-gradient(180deg, #f7f2ea 0%, #eef3f7 52%, #f7fafc 100%);
}

.landing-glass-shell {
    padding: 6px 0 16px;
}

.landing-glass-shell__frame,
.result-focus {
    background: rgba(255, 255, 255, 0.36);
    backdrop-filter: blur(22px);
    border: 1px solid rgba(255, 255, 255, 0.48);
    box-shadow:
        0 28px 80px rgba(24, 52, 79, 0.14),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.landing-glass-shell__frame {
    position: relative;
    overflow: hidden;
    border-radius: 34px;
    padding: 34px;
}

.landing-glass-shell__frame::before,
.landing-glass-shell__frame::after {
    content: '';
    position: absolute;
    border-radius: 999px;
    pointer-events: none;
}

.landing-glass-shell__frame::before {
    width: 280px;
    height: 280px;
    top: -120px;
    left: -90px;
    background: radial-gradient(circle, rgba(164, 111, 40, 0.18), transparent 72%);
}

.landing-glass-shell__frame::after {
    width: 320px;
    height: 320px;
    bottom: -160px;
    right: -120px;
    background: radial-gradient(circle, rgba(24, 52, 79, 0.14), transparent 72%);
}

.landing-glass-shell__intro,
.landing-glass-grid {
    position: relative;
    z-index: 1;
}

.landing-glass-shell__intro {
    display: grid;
    gap: 10px;
    margin-bottom: 24px;
    max-width: 860px;
}

.landing-glass-shell__intro h1 {
    margin: 0;
    font-size: clamp(2rem, 4.1vw, 3.2rem);
    line-height: 1.24;
}

.landing-glass-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.06fr) minmax(380px, 0.94fr);
    gap: 26px;
}

.engraved-terms-card {
    min-height: 100%;
}

.engraved-terms-card__inner {
    position: relative;
    height: 100%;
    padding: 28px;
    border-radius: 30px;
    background:
        linear-gradient(180deg, rgba(255,255,255,0.98), rgba(251,248,242,0.96)),
        repeating-linear-gradient(135deg, rgba(164,111,40,0.035) 0 12px, rgba(255,255,255,0.18) 12px 24px);
    border: 1px solid rgba(219, 227, 235, 0.95);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.92),
        inset 0 -10px 24px rgba(24, 52, 79, 0.04),
        0 18px 34px rgba(24, 52, 79, 0.08);
    display: grid;
    gap: 16px;
}

.engraved-terms-card__inner::before,
.engraved-terms-card__inner::after {
    content: '';
    position: absolute;
    inset: 16px;
    border-radius: 22px;
    border: 1px solid rgba(164, 111, 40, 0.08);
    pointer-events: none;
}

.engraved-terms-card__inner::after {
    inset: 26px;
    border-style: dashed;
    opacity: 0.65;
}

.engraved-terms-card h2 {
    margin: 0;
    font-size: 1.9rem;
    line-height: 1.4;
}

.terms-list--engraved {
    gap: 12px;
}

.terms-list--engraved li {
    background: rgba(255,255,255,0.82);
    border-color: rgba(215, 224, 233, 0.92);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.72);
}

.landing-actions-column {
    display: grid;
    gap: 18px;
    align-content: start;
}

.depth-action-card {
    position: relative;
    perspective: 1400px;
}

.depth-action-card__layer,
.depth-action-card__content {
    border-radius: 28px;
}

.depth-action-card__layer {
    position: absolute;
    inset: 14px 14px -14px 14px;
    background: linear-gradient(180deg, rgba(24, 52, 79, 0.12), rgba(24, 52, 79, 0.02));
    filter: blur(0.2px);
    transform: translateY(12px) scale(0.97);
}

.depth-action-card__content {
    position: relative;
    z-index: 1;
    padding: 26px;
    display: grid;
    gap: 16px;
    background: linear-gradient(180deg, rgba(255,255,255,0.97), rgba(247,249,252,0.94));
    border: 1px solid rgba(220, 228, 236, 0.94);
    box-shadow:
        0 24px 42px rgba(24, 52, 79, 0.08),
        inset 0 1px 0 rgba(255,255,255,0.82);
    transform: translateZ(0) rotateX(0.6deg) rotateY(-1.4deg);
}

.depth-action-card--primary .depth-action-card__content {
    border-top: 5px solid rgba(36, 146, 110, 0.88);
}

.depth-action-card--secondary .depth-action-card__content {
    border-top: 5px solid rgba(164, 111, 40, 0.88);
}

.depth-action-card__content h2 {
    margin: 0;
    font-size: 1.58rem;
    line-height: 1.45;
}

.choice-list--compact {
    gap: 10px;
}

.choice-list--compact li {
    padding: 12px 14px;
    border-radius: 16px;
    background: rgba(250, 247, 241, 0.82);
}

.choice-search-form {
    display: grid;
    gap: 12px;
}

.search-live-shell {
    display: grid;
    gap: 14px;
}

.result-focus {
    border-radius: 28px;
    padding: 24px;
    display: grid;
    gap: 18px;
}

@media (max-width: 980px) {
    .landing-glass-shell__frame {
        padding: 22px;
        border-radius: 28px;
    }

    .landing-glass-grid,
    .result-focus__grid {
        grid-template-columns: 1fr;
    }

    .depth-action-card__content {
        transform: none;
    }
}
.nav-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 24px;
    margin-inline-start: 8px;
    padding: 0 7px;
    border-radius: 999px;
    background: rgba(189, 67, 54, 0.14);
    color: #a43327;
    font-size: 0.82rem;
    font-weight: 700;
}

.timeline-item form {
    margin: 0;
}
/* Dashboard landing redesign */
.landing-finance--dashboard {
    background:
        radial-gradient(circle at top left, rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0) 28%),
        linear-gradient(180deg, #efede9 0%, #ebe8e3 100%);
}

.landing-finance--dashboard .topbar--landing {
    display: none;
}

.landing-finance--dashboard .site-shell {
    max-width: 1480px;
    padding: 24px;
}

.landing-finance--dashboard .page-frame {
    gap: 0;
}

.dashboard-landing,
.dashboard-landing * {
    min-width: 0;
}

.dashboard-landing {
    direction: ltr;
}

.dashboard-landing h1,
.dashboard-landing h2,
.dashboard-landing h3,
.dashboard-landing strong,
.dashboard-toolbar__cta,
.dashboard-panel__select,
.dashboard-sidebar__nav a,
.dashboard-action-card__metric,
.dashboard-doc-badge span,
.dashboard-doc-badge small {
    font-family: 'Cairo', 'Segoe UI', Tahoma, Arial, sans-serif;
}

.dashboard-landing__shell {
    position: relative;
    display: grid;
    grid-template-columns: 98px minmax(0, 1fr);
    gap: 24px;
    padding: 24px;
    min-height: calc(100vh - 48px);
    border-radius: 38px;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(28px);
    box-shadow:
        0 36px 80px rgba(45, 48, 56, 0.10),
        0 8px 24px rgba(45, 48, 56, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.dashboard-sidebar,
.dashboard-workspace,
.dashboard-main,
.dashboard-rightbar,
.dashboard-panel,
.dashboard-side-card,
.dashboard-action-card,
.dashboard-beneficiary-note,
.dashboard-result-placeholder,
.result-focus,
.dashboard-comment-item,
.dashboard-doc-badge,
.dashboard-toolbar__title,
.dashboard-side-card__header,
.dashboard-comment-item__body,
.result-focus__head > div:first-child,
.dashboard-panel__header > div:first-child {
    direction: rtl;
}

.dashboard-sidebar {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 14px 12px;
    border-radius: 28px;
    background: linear-gradient(180deg, #fbfbfb 0%, #f4f4f4 100%);
    border: 1px solid rgba(230, 230, 230, 0.95);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.94),
        0 16px 34px rgba(45, 48, 56, 0.06);
}

.dashboard-sidebar__brand {
    display: grid;
    place-items: center;
    margin-bottom: 18px;
}

.dashboard-sidebar__logo {
    position: relative;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background:
        linear-gradient(180deg, #5d6067, #2d3138),
        radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.25), transparent 55%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.25),
        0 8px 18px rgba(32, 36, 44, 0.18);
}

.dashboard-sidebar__logo::before,
.dashboard-sidebar__logo::after {
    content: '';
    position: absolute;
    inset: 8px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.38);
}

.dashboard-sidebar__logo::after {
    inset: 0;
    border-radius: 50%;
    border: 0;
    background:
        linear-gradient(90deg, transparent calc(50% - 0.5px), rgba(255, 255, 255, 0.36) calc(50% - 0.5px), rgba(255, 255, 255, 0.36) calc(50% + 0.5px), transparent calc(50% + 0.5px)),
        linear-gradient(0deg, transparent calc(50% - 0.5px), rgba(255, 255, 255, 0.36) calc(50% - 0.5px), rgba(255, 255, 255, 0.36) calc(50% + 0.5px), transparent calc(50% + 0.5px));
    opacity: 0.8;
}

.dashboard-sidebar__nav {
    display: grid;
    gap: 10px;
}

.dashboard-sidebar__nav a {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 16px;
    color: #7c7f86;
    font-size: 0.92rem;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.dashboard-sidebar__nav a::before {
    content: '';
    width: 18px;
    height: 18px;
    border-radius: 7px;
    flex: 0 0 18px;
    background: linear-gradient(180deg, #f8f8f8, #e8e8e8);
    border: 1px solid rgba(210, 210, 210, 0.92);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.94);
}

.dashboard-sidebar__nav a:hover {
    transform: translateY(-1px);
}

.dashboard-sidebar__nav a.is-active {
    background: #ffffff;
    color: #131518;
    box-shadow: 0 12px 24px rgba(38, 42, 49, 0.08);
}

.dashboard-sidebar__nav a.is-active::before {
    background: linear-gradient(180deg, #3a3d44, #202227);
    border-color: rgba(32, 34, 39, 0.92);
}

.dashboard-sidebar__footer {
    display: none;
}

.dashboard-workspace {
    display: grid;
    gap: 24px;
}

.dashboard-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.dashboard-toolbar__title {
    text-align: right;
}

.dashboard-toolbar__title h1 {
    margin: 0;
    font-size: clamp(1.85rem, 2.8vw, 2.35rem);
    font-weight: 800;
    color: #131518;
}

.dashboard-toolbar__title p {
    margin: 6px 0 0;
    color: #8b8e95;
    font-size: 1rem;
}

.dashboard-toolbar__actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.dashboard-toolbar__search {
    display: flex;
    align-items: center;
    gap: 10px;
    width: min(350px, 34vw);
    height: 52px;
    padding: 0 14px;
    background: rgba(248, 248, 248, 0.9);
    border: 1px solid rgba(233, 233, 233, 0.96);
    border-radius: 18px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.94);
}

.dashboard-toolbar__search-icon {
    position: relative;
    width: 16px;
    height: 16px;
    flex: 0 0 16px;
}

.dashboard-toolbar__search-icon::before,
.dashboard-toolbar__search-icon::after {
    content: '';
    position: absolute;
}

.dashboard-toolbar__search-icon::before {
    inset: 0;
    border-radius: 50%;
    border: 2px solid #979aa1;
}

.dashboard-toolbar__search-icon::after {
    width: 7px;
    height: 2px;
    right: -2px;
    bottom: 0;
    transform: rotate(45deg);
    transform-origin: center;
    background: #979aa1;
    border-radius: 999px;
}

.dashboard-toolbar__search input {
    border: 0;
    padding: 0;
    background: transparent;
    color: #9a9ea5;
    pointer-events: none;
}

.dashboard-toolbar__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 118px;
    height: 52px;
    padding: 0 22px;
    border-radius: 18px;
    background: linear-gradient(180deg, #2e3138, #181a1f);
    color: #ffffff;
    box-shadow:
        0 14px 24px rgba(23, 25, 29, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
    text-decoration: none;
}

.dashboard-toolbar__cta:hover {
    color: #ffffff;
    text-decoration: none;
}

.dashboard-toolbar__icon,
.dashboard-toolbar__avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid rgba(232, 232, 232, 0.96);
    background: rgba(255, 255, 255, 0.96);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.94),
        0 10px 20px rgba(38, 42, 49, 0.06);
}

.dashboard-toolbar__icon {
    position: relative;
    padding: 0;
}

.dashboard-toolbar__icon::before {
    content: '';
    position: absolute;
    inset: 15px;
    border: 2px solid #767a82;
    border-radius: 50%;
}

.dashboard-toolbar__icon:last-of-type::before {
    inset: 14px 13px 16px 13px;
    border-radius: 7px;
}

.dashboard-toolbar__avatar {
    display: grid;
    place-items: center;
    font-weight: 800;
    color: #17191d;
    background:
        radial-gradient(circle at 32% 28%, rgba(255, 255, 255, 0.55), transparent 32%),
        linear-gradient(180deg, #fafafa, #f0f0f0);
}

.dashboard-content-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.46fr) 340px;
    gap: 24px;
    align-items: start;
}

.dashboard-main,
.dashboard-rightbar {
    display: grid;
    gap: 24px;
}

.dashboard-panel,
.dashboard-side-card {
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(234, 234, 234, 0.96);
    border-radius: 30px;
    box-shadow:
        0 18px 36px rgba(38, 42, 49, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.dashboard-panel {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 22px 24px;
}

.dashboard-panel--result {
    min-height: 365px;
}

.dashboard-panel__header,
.result-focus__head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 14px;
}

.dashboard-panel__header > div:first-child,
.result-focus__head > div:first-child {
    text-align: right;
}

.section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    color: #8b8f96;
    font-size: 0.83rem;
    font-weight: 700;
}

.section-kicker::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: linear-gradient(180deg, #2f3339, #181a1f);
}

.dashboard-panel__header h2,
.result-focus__head h2 {
    margin: 0;
    color: #17191d;
    font-size: 1.55rem;
    line-height: 1.35;
}

.dashboard-panel__select {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    border-radius: 16px;
    background: #ffffff;
    border: 1px solid rgba(233, 233, 233, 0.95);
    color: #70747c;
    font-size: 0.9rem;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.dashboard-action-row {
    display: grid;
    grid-template-columns: 1.08fr 0.92fr;
    gap: 18px;
}

.dashboard-action-card {
    position: relative;
    perspective: 1400px;
}

.dashboard-action-card::after {
    content: '';
    position: absolute;
    inset: 16px 16px -10px;
    border-radius: 28px;
    background: linear-gradient(180deg, rgba(44, 48, 56, 0.10), rgba(44, 48, 56, 0.02));
    filter: blur(0.2px);
    transform: translateY(12px) scale(0.97);
}

.dashboard-action-card__face {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 14px;
    height: 100%;
    padding: 22px;
    border-radius: 26px;
    border: 1px solid rgba(233, 233, 233, 0.96);
    background:
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.72), transparent 36%),
        linear-gradient(180deg, #ffffff 0%, #f7f7f7 100%);
    box-shadow:
        0 18px 32px rgba(38, 42, 49, 0.07),
        inset 0 1px 0 rgba(255, 255, 255, 0.92);
    transform: translateY(-4px) rotateX(0.7deg) rotateY(-1.2deg);
}

.dashboard-action-card--primary .dashboard-action-card__face {
    border-top: 5px solid rgba(63, 190, 109, 0.86);
    background:
        radial-gradient(circle at 85% 18%, rgba(99, 226, 131, 0.14), transparent 32%),
        linear-gradient(180deg, #ffffff 0%, #f7faf7 100%);
}

.dashboard-action-card--secondary .dashboard-action-card__face {
    border-top: 5px solid rgba(164, 111, 40, 0.88);
    background:
        radial-gradient(circle at 85% 18%, rgba(209, 169, 116, 0.14), transparent 32%),
        linear-gradient(180deg, #ffffff 0%, #fbf8f3 100%);
}

.dashboard-action-card__eyebrow {
    color: #8d9097;
    font-size: 0.82rem;
    font-weight: 700;
}

.dashboard-action-card__metric {
    color: #17191d;
    font-size: 2.25rem;
    line-height: 1.08;
    font-weight: 800;
}

.dashboard-action-card p,
.dashboard-result-placeholder p,
.dashboard-comment-item p,
.dashboard-side-list li,
.choice-list--dashboard li,
.result-followup,
.search-status-note {
    color: #666b73;
}

.choice-search-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.choice-search-form .field {
    gap: 6px;
}

.choice-search-form .field label {
    color: #595f68;
    font-size: 0.88rem;
    font-weight: 700;
}

.choice-search-form input {
    height: 54px;
    border-radius: 16px;
    border-color: rgba(232, 235, 239, 0.96);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.choice-search-form .form-actions {
    grid-column: 1 / -1;
    margin-top: 2px;
}

.choice-search-form .button {
    width: 100%;
}

.choice-list--dashboard {
    display: grid;
    gap: 10px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.choice-list--dashboard li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(234, 234, 234, 0.96);
}

.choice-list--dashboard li::before {
    content: '';
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex: 0 0 10px;
    background: linear-gradient(180deg, #2d3138, #181a1f);
}

.dashboard-beneficiary-note {
    padding: 18px 20px;
    border-radius: 22px;
    background: linear-gradient(180deg, #ffffff 0%, #fafafa 100%);
    border: 1px solid rgba(234, 234, 234, 0.96);
}

.dashboard-beneficiary-note h3 {
    margin: 0 0 8px;
    color: #181a1f;
    font-size: 1.08rem;
}

.dashboard-beneficiary-note p {
    margin: 0;
}

.dashboard-docs-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.dashboard-doc-badge {
    display: grid;
    justify-items: center;
    align-content: center;
    gap: 4px;
    width: 84px;
    min-height: 88px;
    padding: 10px 8px;
    border-radius: 999px;
    border: 1px solid rgba(234, 234, 234, 0.96);
    background: linear-gradient(180deg, #ffffff 0%, #f7f7f7 100%);
    box-shadow:
        0 12px 22px rgba(38, 42, 49, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.94);
    text-align: center;
}

.dashboard-doc-badge span {
    color: #181a1f;
    font-size: 0.92rem;
    font-weight: 700;
}

.dashboard-doc-badge small {
    color: #8c9097;
    font-size: 0.76rem;
}

.dashboard-doc-badge--ghost {
    background: linear-gradient(180deg, #23262d 0%, #17191e 100%);
}

.dashboard-doc-badge--ghost span,
.dashboard-doc-badge--ghost small {
    color: #ffffff;
}

.search-live-shell {
    display: grid;
    gap: 16px;
}

.result-focus {
    padding: 22px;
    border-radius: 24px;
    background: #ffffff;
    border: 1px solid rgba(234, 234, 234, 0.96);
    box-shadow: 0 16px 30px rgba(38, 42, 49, 0.05);
}

.result-focus__head {
    margin-bottom: 18px;
}

.result-focus__grid {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.result-focus--empty {
    border-style: dashed;
}

.search-status-note {
    margin: 0;
    line-height: 1.8;
}

.result-followup {
    margin-top: 8px;
    padding: 16px 18px;
    border-radius: 18px;
    border: 1px solid transparent;
    line-height: 1.85;
}

.result-followup p {
    margin: 0;
}

.result-followup--continue {
    background: rgba(63, 190, 109, 0.08);
    border-color: rgba(63, 190, 109, 0.16);
}

.result-followup--info {
    background: rgba(164, 111, 40, 0.08);
    border-color: rgba(164, 111, 40, 0.16);
}

.result-focus .form-actions {
    margin-top: 12px;
}

.dashboard-result-placeholder {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 24px;
    margin-top: auto;
    min-height: 250px;
    padding: 28px 26px;
    overflow: hidden;
    border-radius: 28px;
    border: 1px solid rgba(234, 234, 234, 0.96);
    background: linear-gradient(180deg, #ffffff 0%, #f7f7f7 100%);
}

.dashboard-result-placeholder::before {
    content: '';
    position: absolute;
    inset: auto -40px -100px auto;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(99, 226, 131, 0.18), transparent 70%);
}

.dashboard-result-placeholder__copy {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 10px;
    max-width: 360px;
}

.dashboard-result-placeholder__eyebrow {
    color: #91959c;
    font-size: 0.84rem;
    font-weight: 700;
}

.dashboard-result-placeholder__value {
    color: rgba(23, 25, 29, 0.22);
    font-size: clamp(2.4rem, 4vw, 3.8rem);
    line-height: 1;
    font-weight: 800;
    font-family: 'Cairo', 'Segoe UI', Tahoma, Arial, sans-serif;
}

.dashboard-result-placeholder p {
    margin: 0;
}

.dashboard-bars-preview {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: flex-end;
    gap: 14px;
    height: 178px;
    flex: 1;
    justify-content: flex-end;
}

.dashboard-bars-preview span {
    width: 38px;
    border-radius: 12px 12px 0 0;
    background: linear-gradient(180deg, rgba(216, 216, 216, 0.9), rgba(232, 232, 232, 0.5));
}

.dashboard-bars-preview span:nth-child(1) { height: 72px; }
.dashboard-bars-preview span:nth-child(2) { height: 112px; }
.dashboard-bars-preview span:nth-child(3) { height: 90px; }
.dashboard-bars-preview span:nth-child(4) { height: 148px; }
.dashboard-bars-preview span:nth-child(5) { height: 86px; }
.dashboard-bars-preview span:nth-child(6) { height: 126px; }

.dashboard-bars-preview span.is-accent {
    position: relative;
    background: linear-gradient(180deg, #63e283 0%, #3cbc6d 100%);
    box-shadow: 0 16px 28px rgba(60, 188, 109, 0.25);
}

 'جاهز';
    position: absolute;
    top: -36px;
    left: 50%;
    transform: translateX(-50%);
    padding: 6px 10px;
    border-radius: 12px;
    background: #2b2f35;
    color: #ffffff;
    font-size: 0.74rem;
    font-weight: 700;
    white-space: nowrap;
}

.dashboard-rightbar {
    display: grid;
    gap: 24px;
}

.dashboard-side-card {
    padding: 22px;
}

.dashboard-side-card--engraved {
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(249, 247, 243, 0.96)),
        repeating-linear-gradient(135deg, rgba(164, 111, 40, 0.035) 0 12px, rgba(255, 255, 255, 0.15) 12px 24px);
    box-shadow:
        0 18px 36px rgba(38, 42, 49, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.95),
        inset 0 -12px 20px rgba(38, 42, 49, 0.03);
}

.dashboard-side-card--engraved::before,
.dashboard-side-card--engraved::after {
    content: '';
    position: absolute;
    inset: 16px;
    border-radius: 22px;
    border: 1px solid rgba(164, 111, 40, 0.08);
    pointer-events: none;
}

.dashboard-side-card--engraved::after {
    inset: 28px;
    border-style: dashed;
    opacity: 0.65;
}

.dashboard-side-card__header h3 {
    margin: 0 0 14px;
    color: #181a1f;
    font-size: 1.32rem;
}

.dashboard-side-list {
    display: grid;
    gap: 12px;
    margin: 0;
    padding: 0 22px 0 0;
}

.dashboard-side-list li {
    padding: 14px 16px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.84);
    border: 1px solid rgba(232, 232, 232, 0.92);
    line-height: 1.85;
}

.dashboard-comment-list {
    display: grid;
    gap: 14px;
}

.dashboard-comment-item {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 12px;
    align-items: start;
    padding: 14px;
    border-radius: 20px;
    border: 1px solid rgba(232, 232, 232, 0.92);
    background: linear-gradient(180deg, #ffffff 0%, #fafafa 100%);
}

.dashboard-comment-item__avatar {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    border-radius: 16px;
    color: #ffffff;
    font-weight: 800;
    background: linear-gradient(180deg, #9fc264, #6f973a);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.dashboard-comment-item:last-child .dashboard-comment-item__avatar {
    background: linear-gradient(180deg, #8f89ff, #544fd1);
}

.dashboard-comment-item__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.dashboard-comment-item__top strong {
    color: #17191d;
    font-size: 0.98rem;
}

.dashboard-comment-item__top span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(83, 194, 124, 0.10);
    color: #27925c;
    font-size: 0.78rem;
    font-weight: 700;
}

.dashboard-comment-item p {
    margin: 8px 0 0;
    font-size: 0.92rem;
    line-height: 1.78;
}

@media (max-width: 1260px) {
    .dashboard-content-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-rightbar {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 1024px) {
    .landing-finance--dashboard .site-shell {
        padding: 16px;
    }

    .dashboard-landing__shell {
        grid-template-columns: 1fr;
        min-height: auto;
        padding: 18px;
    }

    .dashboard-sidebar {
        gap: 18px;
    }

    .dashboard-sidebar__nav {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    }

    .dashboard-toolbar,
    .dashboard-panel__header,
    .result-focus__head,
    .dashboard-toolbar__actions,
    .dashboard-action-row,
    .result-focus__grid,
    .choice-search-form,
    .dashboard-rightbar {
        grid-template-columns: 1fr;
        display: grid;
    }

    .dashboard-toolbar__search {
        width: 100%;
    }
}

@media (max-width: 720px) {
    .landing-finance--dashboard .site-shell {
        padding: 12px;
    }

    .dashboard-landing__shell,
    .dashboard-panel,
    .dashboard-side-card {
        border-radius: 24px;
    }

    .dashboard-panel,
    .dashboard-side-card,
    .result-focus {
        padding: 18px;
    }

    .dashboard-toolbar__actions {
        display: flex;
        flex-wrap: wrap;
        justify-content: flex-end;
    }

    .dashboard-toolbar__icon,
    .dashboard-toolbar__avatar {
        width: 44px;
        height: 44px;
    }

    .dashboard-docs-strip {
        justify-content: center;
    }

    .dashboard-doc-badge {
        width: 78px;
        min-height: 82px;
    }

    .dashboard-result-placeholder {
        flex-direction: column;
        align-items: stretch;
    }

    .dashboard-bars-preview {
        justify-content: space-between;
        width: 100%;
    }

    .dashboard-bars-preview span {
        width: calc((100% - 70px) / 6);
    }
}
/* Fit-screen overrides */
.landing-finance--dashboard {
    overflow-x: hidden;
}

.landing-finance--dashboard .site-shell {
    max-width: 1380px;
    padding: 14px;
}

.dashboard-landing__shell {
    width: 100%;
    grid-template-columns: 84px minmax(0, 1fr);
    gap: 18px;
    padding: 18px;
    min-height: calc(100vh - 28px);
}

.dashboard-workspace,
.dashboard-main,
.dashboard-rightbar {
    gap: 18px;
}

.dashboard-toolbar {
    gap: 14px;
}

.dashboard-toolbar__title h1 {
    font-size: clamp(1.55rem, 2.35vw, 2.05rem);
}

.dashboard-toolbar__title p {
    font-size: 0.94rem;
}

.dashboard-toolbar__search {
    width: min(300px, 29vw);
    height: 46px;
}

.dashboard-toolbar__cta {
    min-width: 102px;
    height: 46px;
    padding: 0 18px;
}

.dashboard-toolbar__icon,
.dashboard-toolbar__avatar {
    width: 42px;
    height: 42px;
}

.dashboard-content-grid {
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 18px;
}

.dashboard-panel,
.dashboard-side-card {
    padding: 18px;
    border-radius: 24px;
}

.dashboard-panel {
    gap: 16px;
}

.dashboard-panel--result {
    min-height: 320px;
}

.dashboard-panel__header,
.result-focus__head {
    gap: 10px;
}

.dashboard-panel__header h2,
.result-focus__head h2 {
    font-size: 1.42rem;
}

.dashboard-panel__select {
    padding: 10px 14px;
    font-size: 0.84rem;
}

.dashboard-action-row {
    grid-template-columns: minmax(0, 1.08fr) minmax(255px, 0.92fr);
    gap: 14px;
}

.dashboard-action-card__face {
    padding: 18px;
    gap: 12px;
}

.dashboard-action-card__metric {
    font-size: 1.85rem;
}

.dashboard-action-card p,
.dashboard-beneficiary-note p,
.dashboard-comment-item p,
.dashboard-side-list li,
.choice-list--dashboard li {
    font-size: 0.92rem;
    line-height: 1.72;
}

.choice-search-form {
    gap: 10px;
}

.choice-search-form input {
    height: 50px;
}

.dashboard-beneficiary-note {
    padding: 14px 16px;
}

.dashboard-docs-strip {
    gap: 10px;
}

.dashboard-doc-badge {
    width: 76px;
    min-height: 80px;
    padding: 9px 8px;
}

.dashboard-doc-badge span {
    font-size: 0.86rem;
}

.dashboard-doc-badge small {
    font-size: 0.72rem;
}

.result-focus {
    padding: 18px;
    border-radius: 22px;
}

.result-focus__grid {
    gap: 12px;
}

.detail-box,
.detail-list li {
    border-radius: 16px;
}

.dashboard-result-placeholder {
    min-height: 220px;
    padding: 22px;
    border-radius: 24px;
}

.dashboard-result-placeholder__value {
    font-size: clamp(2rem, 3.2vw, 3.2rem);
}

.dashboard-bars-preview {
    height: 142px;
    gap: 12px;
}

.dashboard-bars-preview span {
    width: 32px;
}

.dashboard-side-card__header h3 {
    font-size: 1.2rem;
}

.dashboard-side-list {
    gap: 10px;
}

.dashboard-side-list li {
    padding: 12px 14px;
    border-radius: 16px;
}

.dashboard-comment-list {
    gap: 12px;
}

.dashboard-comment-item {
    padding: 12px;
    border-radius: 18px;
}

.dashboard-comment-item__avatar {
    width: 46px;
    height: 46px;
    border-radius: 14px;
}

@media (max-width: 1380px) {
    .landing-finance--dashboard .site-shell {
        max-width: 1240px;
        padding: 12px;
    }

    .dashboard-landing__shell {
        grid-template-columns: 80px minmax(0, 1fr);
        gap: 16px;
        padding: 16px;
    }

    .dashboard-content-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-rightbar {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .dashboard-action-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 1160px) {
    .dashboard-toolbar {
        display: grid;
        grid-template-columns: 1fr;
    }

    .dashboard-toolbar__actions {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto auto auto auto;
        align-items: center;
    }

    .dashboard-toolbar__search {
        width: 100%;
    }
}
/* Remove detached left rail on landing */
.dashboard-sidebar {
    display: none;
}

.dashboard-landing__shell {
    grid-template-columns: 1fr;
}

@media (max-width: 1380px) {
    .dashboard-landing__shell {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 1024px) {
    .dashboard-sidebar {
        display: none;
    }

    .dashboard-landing__shell {
        grid-template-columns: 1fr;
    }
}
/* Live search and direct result cards */
.dashboard-toolbar__actions {
    justify-content: flex-start;
}

.dashboard-toolbar__search-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    border-radius: 999px;
    background: linear-gradient(180deg, #22262d 0%, #17191d 100%);
    color: #ffffff;
    box-shadow: 0 12px 24px rgba(23, 25, 29, 0.16);
    font-weight: 700;
    font-family: 'Cairo', 'Segoe UI', Tahoma, Arial, sans-serif;
}

.dashboard-toolbar__search-badge-icon {
    position: relative;
    width: 15px;
    height: 15px;
    flex: 0 0 15px;
}

.dashboard-toolbar__search-badge-icon::before,
.dashboard-toolbar__search-badge-icon::after {
    content: '';
    position: absolute;
}

.dashboard-toolbar__search-badge-icon::before {
    inset: 0;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.92);
}

.dashboard-toolbar__search-badge-icon::after {
    width: 7px;
    height: 2px;
    left: 10px;
    bottom: 0;
    transform: rotate(45deg);
    background: rgba(255, 255, 255, 0.92);
    border-radius: 999px;
}

.dashboard-action-row--balanced {
    grid-template-columns: minmax(0, 1fr) minmax(280px, 0.88fr);
}

.choice-search-form--single {
    grid-template-columns: 1fr;
    gap: 14px;
}

.live-search-input {
    position: relative;
    display: flex;
    align-items: center;
}

.live-search-input__icon {
    position: absolute;
    inset-inline-start: 16px;
    width: 16px;
    height: 16px;
    pointer-events: none;
}

.live-search-input__icon::before,
.live-search-input__icon::after {
    content: '';
    position: absolute;
}

.live-search-input__icon::before {
    inset: 0;
    border-radius: 50%;
    border: 2px solid #9aa0a8;
}

.live-search-input__icon::after {
    width: 7px;
    height: 2px;
    left: 11px;
    bottom: 0;
    transform: rotate(45deg);
    background: #9aa0a8;
    border-radius: 999px;
}

.live-search-input input {
    padding-inline-start: 44px;
}

.choice-search-inline-note {
    margin: 0;
    color: #707680;
    font-size: 0.9rem;
    line-height: 1.8;
}

.dashboard-stat-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.dashboard-stat-card {
    display: grid;
    gap: 8px;
    padding: 16px;
    border-radius: 18px;
    border: 1px solid rgba(232, 235, 239, 0.96);
    background: linear-gradient(180deg, #ffffff 0%, #fafafa 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.dashboard-stat-card__label {
    color: #7f8590;
    font-size: 0.84rem;
    font-weight: 700;
}

.dashboard-stat-card__value {
    color: #15181c;
    font-size: 1.32rem;
    line-height: 1.3;
    font-weight: 800;
    font-family: 'Cairo', 'Segoe UI', Tahoma, Arial, sans-serif;
}

.dashboard-stat-card__hint {
    color: #8f949c;
    font-size: 0.8rem;
}

.dashboard-stat-grid--placeholder {
    margin-top: 6px;
}

.dashboard-stat-grid--result {
    margin-bottom: 16px;
}

.dashboard-result-placeholder {
    display: grid;
    align-items: start;
}

.dashboard-result-placeholder__copy {
    max-width: none;
}

@media (max-width: 1160px) {
    .dashboard-stat-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .dashboard-stat-grid {
        grid-template-columns: 1fr;
    }
}
/* Cairo + glass header + dual live search */
body {
    font-family: 'Cairo', 'Segoe UI', Tahoma, Arial, sans-serif;
}

.dashboard-toolbar--glass {
    position: relative;
    padding: 18px 20px;
    border-radius: 28px;
    background: linear-gradient(180deg, rgba(255,255,255,0.72), rgba(255,255,255,0.54));
    border: 1px solid rgba(255,255,255,0.82);
    backdrop-filter: blur(24px);
    box-shadow:
        0 22px 42px rgba(30, 33, 39, 0.08),
        inset 0 1px 0 rgba(255,255,255,0.92);
}

.dashboard-toolbar__main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.dashboard-toolbar__utilities {
    display: flex;
    align-items: center;
    gap: 12px;
}

.dashboard-toolbar__search-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 46px;
    padding: 0 18px;
    border-radius: 999px;
    background: linear-gradient(180deg, #1f2329, #13161a);
    color: #ffffff;
    box-shadow: 0 14px 24px rgba(19, 22, 26, 0.18);
    font-family: 'Cairo', 'Segoe UI', Tahoma, Arial, sans-serif;
}

.dashboard-toolbar__search-badge-icon {
    position: relative;
    width: 15px;
    height: 15px;
    flex: 0 0 15px;
}

.dashboard-toolbar__search-badge-icon::before,
.dashboard-toolbar__search-badge-icon::after {
    content: '';
    position: absolute;
}

.dashboard-toolbar__search-badge-icon::before {
    inset: 0;
    border: 2px solid rgba(255,255,255,0.92);
    border-radius: 50%;
}

.dashboard-toolbar__search-badge-icon::after {
    width: 7px;
    height: 2px;
    left: 10px;
    bottom: 0;
    transform: rotate(45deg);
    background: rgba(255,255,255,0.92);
    border-radius: 999px;
}

.dashboard-toolbar__glass-icon {
    position: relative;
    width: 46px;
    height: 46px;
    border: 1px solid rgba(255,255,255,0.86);
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(255,255,255,0.8), rgba(244,246,249,0.76));
    box-shadow:
        0 10px 18px rgba(32, 36, 42, 0.06),
        inset 0 1px 0 rgba(255,255,255,0.94);
}

.dashboard-toolbar__glass-icon::before,
.dashboard-toolbar__glass-icon::after {
    content: '';
    position: absolute;
}

.dashboard-toolbar__glass-icon--bell::before {
    inset: 12px 13px 16px;
    border: 2px solid #68707a;
    border-bottom: 0;
    border-radius: 10px 10px 4px 4px;
}

.dashboard-toolbar__glass-icon--bell::after {
    width: 10px;
    height: 2px;
    left: 18px;
    bottom: 12px;
    background: #68707a;
    border-radius: 999px;
}

.dashboard-toolbar__glass-icon--menu::before {
    inset: 13px 12px auto 12px;
    height: 2px;
    background: #68707a;
    box-shadow: 0 7px 0 #68707a, 0 14px 0 #68707a;
    border-radius: 999px;
}

.dashboard-toolbar__glass-icon--spark::before {
    inset: 12px;
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(83, 194, 124, 0.22), rgba(83, 194, 124, 0.06));
}

.dashboard-toolbar__glass-icon--spark::after {
    width: 18px;
    height: 18px;
    left: 14px;
    top: 14px;
    border-radius: 50%;
    border: 2px solid #34a565;
}

.dashboard-toolbar__menus {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}

.dashboard-toolbar__menu {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-radius: 18px;
    color: #34404d;
    background: rgba(255,255,255,0.62);
    border: 1px solid rgba(255,255,255,0.86);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.92);
    text-decoration: none;
    font-weight: 700;
}

.dashboard-toolbar__menu:hover {
    text-decoration: none;
    transform: translateY(-1px);
}

.dashboard-toolbar__menu.is-active {
    background: linear-gradient(180deg, rgba(36, 146, 110, 0.16), rgba(36, 146, 110, 0.08));
    color: #156c4f;
    border-color: rgba(36, 146, 110, 0.22);
}

.dashboard-toolbar__menu-icon {
    position: relative;
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
}

.dashboard-toolbar__menu-icon::before,
.dashboard-toolbar__menu-icon::after {
    content: '';
    position: absolute;
}

.dashboard-toolbar__menu-icon--search::before {
    inset: 1px;
    border: 2px solid currentColor;
    border-radius: 50%;
}

.dashboard-toolbar__menu-icon--search::after {
    width: 7px;
    height: 2px;
    left: 12px;
    bottom: 1px;
    transform: rotate(45deg);
    background: currentColor;
    border-radius: 999px;
}

.dashboard-toolbar__menu-icon--plus::before,
.dashboard-toolbar__menu-icon--plus::after {
    left: 8px;
    top: 2px;
    width: 2px;
    height: 14px;
    background: currentColor;
    border-radius: 999px;
}

.dashboard-toolbar__menu-icon--plus::after {
    left: 2px;
    top: 8px;
    width: 14px;
    height: 2px;
}

.dashboard-toolbar__menu-icon--shield::before {
    inset: 1px 2px 3px;
    border: 2px solid currentColor;
    border-radius: 8px 8px 10px 10px;
}

.dashboard-toolbar__menu-icon--doc::before {
    inset: 1px 2px;
    border: 2px solid currentColor;
    border-radius: 5px;
}

.dashboard-toolbar__menu-icon--doc::after {
    width: 8px;
    height: 2px;
    left: 5px;
    top: 6px;
    background: currentColor;
    box-shadow: 0 5px 0 currentColor;
    border-radius: 999px;
}

.choice-search-form--double {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.choice-search-form--double .choice-search-inline-note {
    grid-column: 1 / -1;
}

.live-search-input__icon--id::before {
    inset: auto;
    width: 14px;
    height: 14px;
    top: 1px;
    left: 1px;
    border-radius: 4px;
    border: 2px solid #9aa0a8;
}

.live-search-input__icon--id::after {
    width: 10px;
    height: 2px;
    left: 3px;
    top: 12px;
    transform: none;
    background: #9aa0a8;
    box-shadow: 0 -5px 0 #9aa0a8;
}

.dashboard-stat-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.dashboard-stat-card__value {
    font-family: 'Cairo', 'Segoe UI', Tahoma, Arial, sans-serif;
}

@media (max-width: 1260px) {
    .dashboard-toolbar__main {
        display: grid;
        grid-template-columns: 1fr;
    }

    .dashboard-toolbar__utilities {
        justify-content: flex-start;
        flex-wrap: wrap;
    }

    .dashboard-stat-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 860px) {
    .choice-search-form--double {
        grid-template-columns: 1fr;
    }

    .dashboard-toolbar__menus {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .dashboard-stat-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 560px) {
    .dashboard-toolbar__menus,
    .dashboard-stat-grid {
        grid-template-columns: 1fr;
    }
}
/* Full Cairo override */
html,
body,
button,
input,
select,
textarea,
.dashboard-landing,
.dashboard-landing * {
    font-family: 'Cairo', 'Segoe UI', Tahoma, Arial, sans-serif !important;
}

.dashboard-toolbar--glass {
    padding: 20px 22px;
}

.dashboard-toolbar__main--between {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
}

.dashboard-toolbar__title--association {
    text-align: right;
}

.dashboard-live-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: flex-start;
}

.dashboard-live-meta__card {
    min-width: 170px;
    padding: 12px 16px;
    border-radius: 20px;
    background: linear-gradient(180deg, rgba(255,255,255,0.72), rgba(245,247,250,0.66));
    border: 1px solid rgba(255,255,255,0.82);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.94);
}

.dashboard-live-meta__card--clock {
    background: linear-gradient(180deg, rgba(28,33,39,0.95), rgba(20,23,27,0.92));
    color: #ffffff;
}

.dashboard-live-meta__label {
    display: block;
    font-size: 0.8rem;
    color: #7f8792;
    margin-bottom: 6px;
}

.dashboard-live-meta__card--clock .dashboard-live-meta__label {
    color: rgba(255,255,255,0.72);
}

.dashboard-live-meta__value {
    display: block;
    font-size: 1.18rem;
    line-height: 1.4;
    font-weight: 800;
}

.dashboard-live-meta__value--date {
    font-size: 0.98rem;
}

.form-actions--full {
    width: 100%;
}

.form-actions--full .button {
    width: 100%;
}

.dashboard-analytics-board {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.dashboard-bar-card {
    display: grid;
    gap: 10px;
    padding: 16px;
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(255,255,255,0.96), rgba(248,249,251,0.92));
    border: 1px solid rgba(233,236,240,0.96);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.94);
}

.dashboard-bar-card__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.dashboard-bar-card__label {
    color: #737b86;
    font-size: 0.84rem;
    font-weight: 700;
}

.dashboard-bar-card__value {
    color: #17191d;
    font-size: 1rem;
    font-weight: 800;
}

.dashboard-bar-card__track {
    position: relative;
    height: 12px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(223, 228, 234, 0.8);
}

.dashboard-bar-card__fill {
    position: absolute;
    inset: 0 auto 0 0;
    border-radius: 999px;
    background: linear-gradient(90deg, #1e2228, #30353d);
    box-shadow: 0 8px 18px rgba(30, 34, 40, 0.18);
}

.dashboard-bar-card__hint {
    color: #8a9098;
    font-size: 0.78rem;
}

.dashboard-bar-card--success .dashboard-bar-card__fill {
    background: linear-gradient(90deg, #27b06a, #66dc8f);
}

.dashboard-bar-card--warning .dashboard-bar-card__fill {
    background: linear-gradient(90deg, #c49335, #e6c76f);
}

.dashboard-bar-card--neutral .dashboard-bar-card__fill {
    background: linear-gradient(90deg, #6d7380, #b0b7c3);
}

.dashboard-bar-card--finance .dashboard-bar-card__fill {
    background: linear-gradient(90deg, #1992c8, #5dd5ff);
}

.dashboard-toolbar__utilities {
    display: none;
}

.dashboard-result-placeholder {
    display: grid;
    gap: 18px;
    align-items: start;
}

.dashboard-result-placeholder--empty {
    min-height: 320px;
    place-items: center;
    padding: 28px;
    background:
        radial-gradient(circle at 18% 18%, rgba(44, 157, 112, 0.10), transparent 28%),
        radial-gradient(circle at 84% 84%, rgba(192, 143, 58, 0.12), transparent 24%),
        linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(248, 246, 242, 0.92));
}

.dashboard-result-placeholder__copy {
    max-width: none;
}

.dashboard-result-empty {
    width: min(100%, 780px);
    display: grid;
    gap: 18px;
    justify-items: center;
    text-align: center;
    padding: 34px 28px;
    border-radius: 28px;
    border: 1px solid rgba(202, 208, 214, 0.75);
    background: rgba(255, 255, 255, 0.74);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82), 0 22px 60px rgba(15, 23, 42, 0.08);
    backdrop-filter: blur(16px);
}

.dashboard-result-empty__icon {
    position: relative;
    width: 72px;
    height: 72px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 22px;
    background: linear-gradient(145deg, rgba(28, 33, 41, 0.96), rgba(73, 81, 94, 0.88));
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.18);
}

.dashboard-result-empty__icon::before {
    content: '';
    width: 24px;
    height: 24px;
    border: 3px solid rgba(255, 255, 255, 0.96);
    border-radius: 50%;
    transform: translate(-5px, -5px);
}

.dashboard-result-empty__icon::after {
    content: '';
    position: absolute;
    width: 14px;
    height: 3px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.96);
    transform: translate(14px, 14px) rotate(45deg);
    transform-origin: center;
}

.dashboard-result-placeholder--empty .dashboard-result-placeholder__copy {
    display: grid;
    gap: 12px;
}

.dashboard-result-placeholder--empty .dashboard-result-placeholder__eyebrow {
    display: inline-flex;
    justify-self: center;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(44, 157, 112, 0.10);
    color: #2f7f5e;
}

.dashboard-result-placeholder--empty .dashboard-result-placeholder__value {
    color: #181c22;
    font-size: clamp(1.5rem, 2.2vw, 2.25rem);
    line-height: 1.5;
}

.dashboard-result-placeholder--empty p {
    max-width: 620px;
    font-size: 1rem;
    line-height: 1.9;
}

@media (max-width: 1100px) {
    .dashboard-toolbar__main--between {
        display: grid;
        grid-template-columns: 1fr;
    }

    .dashboard-live-meta {
        justify-content: stretch;
    }

    .dashboard-live-meta__card {
        min-width: 0;
        flex: 1 1 220px;
    }
}

@media (max-width: 720px) {
    .dashboard-live-meta,
    .dashboard-analytics-board {
        grid-template-columns: 1fr;
        display: grid;
    }
}
@media (max-width: 720px) {
    .dashboard-result-placeholder--empty {
        min-height: 260px;
        padding: 18px;
    }

    .dashboard-result-empty {
        padding: 24px 18px;
        border-radius: 22px;
    }

    .dashboard-result-empty__icon {
        width: 62px;
        height: 62px;
        border-radius: 18px;
    }
}