@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;500;600;700;800;900&display=swap');

:root {
    --sidebar: #17212d;
    --sidebar-border: #2d3c4d;
    --green: #49bd98;
    --green-dark: #2ca57e;
    --blue: #2458a8;
    --blue-soft: #eaf1fb;
    --orange: #f59e0b;
    --gold: #d8a43a;
    --red: #ef4444;
    --ink: #1d2530;
    --muted: #7c8aa0;
    --line: #e7ebf0;
    --bg: #f8f9fb;
    --panel: #ffffff;
    --soft: #f3f5f8;
    --shadow: 0 10px 26px rgba(28, 37, 48, .08);
    --sidebar-width: 256px;
}

* { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: 'Cairo', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--ink);
    background: var(--bg);
}

button, input, select, textarea {
    font: inherit;
}

button {
    cursor: pointer;
}

a {
    color: inherit;
}

.portal-body {
    min-height: 100vh;
}

.dj-sidebar {
    position: fixed;
    inset-block: 0;
    inset-inline-start: 0;
    width: var(--sidebar-width);
    background: var(--sidebar);
    color: #d8e0ea;
    display: flex;
    flex-direction: column;
    z-index: 40;
    border-inline-end: 1px solid var(--sidebar-border);
}

.dj-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 28px 24px;
    text-decoration: none;
    border-bottom: 1px solid var(--sidebar-border);
}

.dj-brand img {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    flex: 0 0 auto;
}

.dj-brand strong {
    display: block;
    color: #fff;
    font-size: 26px;
    line-height: 1.05;
    font-weight: 900;
}

.dj-brand small {
    display: block;
    margin-top: 4px;
    color: #98a6b6;
    font-size: 13px;
    font-weight: 600;
}

.dj-nav {
    padding: 24px 16px;
    display: grid;
    gap: 12px;
}

.dj-nav-link {
    min-height: 52px;
    padding: 0 16px;
    border-radius: 12px;
    display: grid;
    grid-template-columns: 22px 1fr 16px;
    align-items: center;
    gap: 12px;
    color: #aeb8c6;
    text-decoration: none;
    font-weight: 800;
    transition: background .18s ease, color .18s ease, box-shadow .18s ease;
}

.dj-nav-link svg {
    width: 21px;
    height: 21px;
}

.dj-nav-link .nav-arrow {
    width: 16px;
    height: 16px;
    opacity: 0;
}

.dj-nav-link:hover {
    color: #fff;
    background: rgba(255,255,255,.07);
}

.dj-nav-link.is-active {
    background: var(--green);
    color: #fff;
    box-shadow: 0 12px 26px rgba(73, 189, 152, .28);
}

.dj-nav-link.is-active .nav-arrow {
    opacity: 1;
}

.dj-logout {
    margin-top: auto;
    padding: 20px 18px 28px;
    border-top: 1px solid var(--sidebar-border);
}

.dj-logout button {
    width: 100%;
    border: 0;
    background: transparent;
    color: #9eaabb;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-weight: 800;
    padding: 12px;
}

.dj-logout svg {
    width: 22px;
    height: 22px;
}

.dj-main {
    min-height: 100vh;
    margin-inline-start: var(--sidebar-width);
    padding: 54px 56px;
}

.page-heading {
    min-height: 86px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 36px;
}

.page-heading h1 {
    margin: 0;
    font-size: clamp(34px, 4vw, 46px);
    line-height: 1.15;
    font-weight: 900;
    color: #1b2430;
}

.page-heading p {
    margin: 8px 0 0;
    color: #76869e;
    font-size: 18px;
    font-weight: 700;
}

.primary-action {
    border: 0;
    background: var(--blue);
    color: #fff;
    border-radius: 10px;
    min-height: 50px;
    padding: 0 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-weight: 900;
    box-shadow: 0 7px 16px rgba(36, 88, 168, .22);
    white-space: nowrap;
}

.primary-action svg {
    width: 20px;
    height: 20px;
}

.alert {
    padding: 14px 18px;
    border-radius: 10px;
    margin-bottom: 18px;
    font-weight: 800;
}

.alert.success {
    color: #087855;
    background: #e8fbf4;
    border: 1px solid #c7f3e3;
}

.alert.danger {
    color: #b42318;
    background: #fff1f0;
    border: 1px solid #ffd5d1;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
    margin-bottom: 30px;
}

.stat-card,
.panel,
.data-table,
.record-card,
.empty-state {
    background: var(--panel);
    border: 1px solid #eef1f5;
    box-shadow: 0 2px 8px rgba(29, 37, 48, .03);
    border-radius: 12px;
}

.stat-card {
    min-height: 154px;
    padding: 24px;
    display: grid;
    grid-template-columns: 56px 1fr;
    align-items: center;
    gap: 18px;
}

.stat-icon {
    width: 56px;
    height: 56px;
    border-radius: 13px;
    display: grid;
    place-items: center;
}

.stat-icon svg {
    width: 27px;
    height: 27px;
}

.stat-icon.green { background: #e8f7f2; color: #228f70; }
.stat-icon.red { background: #fff0f0; color: #de3c3c; }
.stat-icon.blue { background: var(--blue-soft); color: var(--blue); }
.stat-icon.gray { background: #f1f4f8; color: #607089; }

.stat-card span {
    color: #7b8aa1;
    font-size: 15px;
    font-weight: 800;
}

.stat-card strong {
    display: block;
    margin-top: 8px;
    color: #161f2b;
    font-size: 34px;
    line-height: 1.05;
    font-weight: 900;
}

.stat-card small {
    display: block;
    margin-top: 8px;
    color: #7b8aa1;
    font-size: 13px;
    font-weight: 700;
}

.dashboard-layout {
    display: grid;
    grid-template-columns: minmax(320px, .85fr) minmax(520px, 1.3fr);
    gap: 26px;
    align-items: start;
}

.panel {
    padding: 26px;
}

.panel-title {
    margin: 0 0 20px;
    font-size: 22px;
    font-weight: 900;
}

.activity-list {
    display: grid;
    gap: 18px;
}

.activity-item {
    display: grid;
    grid-template-columns: 48px 1fr auto;
    gap: 14px;
    align-items: center;
}

.activity-item .mini-icon {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: #f3f6fb;
    color: var(--blue);
}

.activity-item strong {
    display: block;
    font-size: 16px;
}

.activity-item span {
    display: block;
    color: #7b8aa1;
    font-size: 13px;
    font-weight: 700;
}

.chart-wrap {
    min-height: 330px;
    display: flex;
    flex-direction: column;
    justify-content: end;
}

.bars {
    height: 290px;
    display: grid;
    grid-template-columns: repeat(3, minmax(70px, 1fr));
    gap: 30px;
    align-items: end;
    border-inline-start: 2px solid #8b8f97;
    border-bottom: 2px solid #8b8f97;
    padding: 0 26px 0 22px;
    background-image: linear-gradient(to bottom, transparent 24%, #e5eaf0 25%, transparent 26%, transparent 49%, #e5eaf0 50%, transparent 51%, transparent 74%, #e5eaf0 75%, transparent 76%);
}

.bar-group {
    height: 100%;
    display: flex;
    align-items: end;
    justify-content: center;
    gap: 9px;
}

.bar {
    width: 34px;
    min-height: 6px;
    border-radius: 6px 6px 0 0;
}

.bar.tva { background: #2f75da; }
.bar.tap { background: #40ae8b; }
.bar.ibs { background: #f59e0b; }

.chart-labels,
.chart-legend {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    padding: 10px 28px 0;
    color: #697789;
    font-weight: 800;
    text-align: center;
}

.chart-legend {
    display: flex;
    justify-content: center;
    gap: 18px;
    padding-top: 18px;
}

.chart-legend span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-weight: 900;
}

.legend-dot {
    width: 18px;
    height: 12px;
    border-radius: 3px;
    display: inline-block;
}

.legend-dot.tva { background: #2f75da; }
.legend-dot.tap { background: #40ae8b; }
.legend-dot.ibs { background: #f59e0b; }

.table-shell {
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    overflow: hidden;
}

.data-table th,
.data-table td {
    padding: 18px 22px;
    border-bottom: 1px solid var(--line);
    text-align: start;
    white-space: nowrap;
}

.data-table th {
    color: #75859b;
    background: #fbfcfe;
    font-size: 14px;
    font-weight: 900;
}

.data-table td {
    font-size: 16px;
    font-weight: 700;
}

.data-table tr:last-child td {
    border-bottom: 0;
}

.money {
    font-weight: 900;
    color: #1b2430;
}

.muted {
    color: #7b8aa1;
}

.pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    padding: 2px 13px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 900;
    background: #eef2f6;
    color: #6b788a;
}

.pill.green { color: #1f9b77; background: #e7f8f1; }
.pill.blue { color: #2458a8; background: #edf4ff; }
.pill.orange { color: #e18112; background: #fff3de; }
.pill.red { color: #e23d3d; background: #fff0f0; }

.icon-actions {
    display: inline-flex;
    gap: 14px;
    align-items: center;
}

.icon-btn {
    width: 32px;
    height: 32px;
    border: 0;
    background: transparent;
    color: #1f2937;
    display: inline-grid;
    place-items: center;
    border-radius: 8px;
}

.icon-btn:hover {
    background: #f1f5f9;
}

.icon-btn.danger {
    color: var(--red);
}

.icon-btn svg {
    width: 20px;
    height: 20px;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(280px, 1fr));
    gap: 22px;
}

.two-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(320px, 1fr));
    gap: 22px;
}

.record-card {
    padding: 24px;
}

.record-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.record-head h2,
.record-head h3 {
    margin: 0;
    font-size: 22px;
    font-weight: 900;
}

.record-subtitle {
    color: #73839a;
    font-size: 16px;
    font-weight: 800;
}

.metric-strip {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    margin: 18px 0;
}

.metric-box {
    background: #f5f6f8;
    border-radius: 12px;
    padding: 14px;
    text-align: start;
}

.metric-box span {
    display: block;
    color: #7b8aa1;
    font-size: 13px;
    font-weight: 900;
}

.metric-box strong {
    display: block;
    margin-top: 3px;
    font-size: 22px;
    color: #2458a8;
    font-weight: 900;
}

.metric-box.green strong {
    color: #36a982;
}

.record-total {
    border-top: 1px solid var(--line);
    padding-top: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 18px;
    font-weight: 900;
}

.record-total strong {
    font-size: 28px;
}

.filters {
    display: grid;
    grid-template-columns: 220px minmax(260px, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.empty-state {
    min-height: 240px;
    display: grid;
    place-items: center;
    text-align: center;
    color: #8391a3;
}

.empty-state svg {
    width: 58px;
    height: 58px;
    margin-bottom: 12px;
    color: #aab5c4;
}

.empty-state strong {
    display: block;
    font-size: 20px;
    color: #74839a;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 20px;
}

.form-field.full {
    grid-column: 1 / -1;
}

.full {
    grid-column: 1 / -1;
}

.form-field label {
    display: block;
    margin-bottom: 8px;
    font-weight: 900;
}

.form-field input,
.form-field select,
.form-field textarea,
.filters input,
.filters select {
    width: 100%;
    min-height: 48px;
    border: 1px solid #dde4ec;
    background: #fff;
    border-radius: 10px;
    padding: 10px 14px;
    outline: none;
    color: #1f2937;
    box-shadow: 0 2px 5px rgba(29, 37, 48, .03);
}

.form-field textarea {
    min-height: 94px;
    resize: vertical;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus,
.filters input:focus,
.filters select:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(36, 88, 168, .12);
}

.calc-strip {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    padding: 18px;
    background: #f5f6f8;
    border-radius: 12px;
    text-align: center;
}

.calc-strip span {
    display: block;
    color: #8190a4;
    font-weight: 800;
}

.calc-strip strong {
    display: block;
    margin-top: 5px;
    font-size: 22px;
    font-weight: 900;
}

.file-zone {
    grid-column: 1 / -1;
    border: 2px dashed #dfe5ec;
    min-height: 120px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    color: #7b8aa1;
    font-weight: 800;
    text-align: center;
}

.file-zone input {
    border: 0;
    box-shadow: none;
    max-width: 320px;
}

.modal {
    position: fixed;
    inset: 0;
    z-index: 70;
    background: rgba(0,0,0,.72);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 32px;
}

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

.modal-dialog {
    width: min(930px, 100%);
    max-height: calc(100vh - 64px);
    overflow: auto;
    background: #fff;
    border: 1px solid #dce2ea;
    border-radius: 14px;
    box-shadow: var(--shadow);
    padding: 30px 34px;
}

.modal-dialog.narrow {
    width: min(620px, 100%);
}

.modal-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 22px;
}

.modal-title h2 {
    margin: 0;
    font-size: 24px;
    font-weight: 900;
}

.modal-close {
    border: 0;
    background: transparent;
    color: #6b7280;
}

.modal-footer {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 24px;
}

.btn {
    border: 0;
    min-height: 48px;
    padding: 0 24px;
    border-radius: 10px;
    font-weight: 900;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-decoration: none;
}

.btn.primary {
    background: var(--blue);
    color: #fff;
}

.btn.secondary {
    background: #fff;
    color: #273244;
    border: 1px solid #dde4ec;
}

.btn.subtle {
    background: #8fa8cf;
    color: #fff;
}

.btn.wide {
    width: 100%;
}

.expert-avatar {
    width: 66px;
    height: 66px;
    border-radius: 50%;
    background: #e9eef6;
    color: #2458a8;
    display: grid;
    place-items: center;
    font-size: 30px;
    font-weight: 900;
}

.expert-lines {
    display: grid;
    gap: 8px;
    margin: 18px 0;
    color: #708198;
    font-weight: 800;
}

.expert-lines span {
    display: flex;
    align-items: center;
    gap: 8px;
}

.stars {
    color: #f59e0b;
    letter-spacing: 2px;
    font-size: 22px;
}

.mobile-sidebar-btn {
    display: none;
    position: fixed;
    top: 14px;
    inset-inline-start: 14px;
    z-index: 65;
    width: 44px;
    height: 44px;
    border: 0;
    background: var(--blue);
    color: #fff;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.sidebar-scrim {
    display: none;
}

.sidebar-language {
    padding: 16px 18px 0;
}

.language-switcher {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px;
    border-radius: 999px;
    background: #eef3f7;
    border: 1px solid #dfe7ef;
}

.language-switcher form {
    margin: 0;
}

.language-switcher button {
    border: 0;
    border-radius: 999px;
    min-height: 30px;
    padding: 0 12px;
    background: transparent;
    color: #536276;
    font-size: 12px;
    font-weight: 900;
}

.language-switcher button.is-active {
    background: #fff;
    color: var(--blue);
    box-shadow: 0 2px 8px rgba(29, 37, 48, .08);
}

.language-switcher.is-dark {
    background: rgba(255,255,255,.08);
    border-color: rgba(255,255,255,.12);
}

.language-switcher.is-dark button {
    color: #aeb8c6;
}

.language-switcher.is-dark button.is-active {
    color: #142033;
    background: #fff;
}

.landing-body {
    min-height: 100vh;
    background: #f5f7fa;
    color: #17202c;
}

.landing-nav {
    position: sticky;
    top: 0;
    z-index: 60;
    min-height: 78px;
    padding: 14px clamp(18px, 4vw, 56px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    background: rgba(250, 252, 255, .9);
    border-bottom: 1px solid rgba(215, 224, 235, .84);
    backdrop-filter: blur(14px);
}

.landing-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    min-width: max-content;
}

.landing-brand img {
    width: 44px;
    height: 44px;
    border-radius: 12px;
}

.landing-brand strong {
    display: block;
    color: #141f2d;
    font-size: 22px;
    font-weight: 900;
    line-height: 1;
}

.landing-brand small {
    display: block;
    color: #73839a;
    font-size: 12px;
    font-weight: 800;
    margin-top: 4px;
}

.landing-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 26px;
    color: #536276;
    font-weight: 900;
    font-size: 14px;
}

.landing-links a,
.landing-login {
    text-decoration: none;
}

.landing-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.landing-login {
    color: #283446;
    font-weight: 900;
    white-space: nowrap;
}

.landing-cta,
.landing-secondary {
    min-height: 48px;
    padding: 0 22px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-weight: 900;
    white-space: nowrap;
}

.landing-cta {
    background: var(--green);
    color: #fff;
    box-shadow: 0 12px 28px rgba(73, 189, 152, .26);
}

.landing-cta.small {
    min-height: 40px;
    padding-inline: 16px;
    box-shadow: none;
}

.landing-secondary {
    color: #fff;
    border: 1px solid rgba(255,255,255,.42);
    background: rgba(255,255,255,.12);
}

.landing-hero {
    min-height: 76vh;
    display: flex;
    align-items: center;
    padding: clamp(58px, 8vw, 92px) clamp(18px, 5vw, 72px);
    background-image:
        linear-gradient(90deg, rgba(15, 25, 39, .91), rgba(15, 25, 39, .74) 42%, rgba(15, 25, 39, .34) 100%),
        var(--hero-image);
    background-size: cover;
    background-position: center;
    color: #fff;
    position: relative;
}

[dir="rtl"] .landing-hero {
    background-image:
        linear-gradient(270deg, rgba(15, 25, 39, .91), rgba(15, 25, 39, .74) 42%, rgba(15, 25, 39, .34) 100%),
        var(--hero-image);
}

.hero-copy {
    width: min(760px, 100%);
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 34px;
    padding: 0 13px;
    border-radius: 999px;
    background: rgba(255,255,255,.13);
    color: #dce7f5;
    border: 1px solid rgba(255,255,255,.22);
    font-size: 13px;
    font-weight: 900;
}

.hero-badge svg {
    width: 17px;
    height: 17px;
    color: var(--green);
}

.hero-copy h1 {
    margin: 22px 0 18px;
    max-width: 780px;
    font-size: clamp(42px, 6.6vw, 76px);
    line-height: 1.05;
    font-weight: 900;
    letter-spacing: 0;
}

.hero-copy p {
    margin: 0;
    max-width: 660px;
    color: #d9e3ef;
    font-size: clamp(17px, 2vw, 21px);
    line-height: 1.85;
    font-weight: 700;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.landing-metrics {
    margin-top: 34px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    max-width: 700px;
}

.landing-metrics article {
    border-inline-start: 3px solid var(--green);
    padding-inline-start: 14px;
}

.landing-metrics strong {
    display: block;
    color: #fff;
    font-size: 22px;
    font-weight: 900;
}

.landing-metrics span {
    display: block;
    margin-top: 2px;
    color: #bdcad8;
    font-size: 13px;
    font-weight: 800;
}

.product-preview-section,
.landing-section,
.landing-trust {
    padding: clamp(46px, 7vw, 84px) clamp(18px, 5vw, 72px);
}

.preview-shell {
    max-width: 1180px;
    margin: 0 auto;
    background: #fff;
    border: 1px solid #dfe7ef;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 24px 64px rgba(23, 32, 44, .12);
}

.preview-shell img {
    display: block;
    width: 100%;
    height: auto;
}

.preview-caption {
    padding: 22px 26px 26px;
    display: grid;
    gap: 5px;
}

.preview-caption span {
    color: var(--green-dark);
    font-weight: 900;
    font-size: 13px;
}

.preview-caption strong {
    font-size: 24px;
    font-weight: 900;
}

.preview-caption p {
    margin: 0;
    color: #697789;
    font-weight: 700;
}

.section-heading {
    max-width: 780px;
    margin: 0 auto 30px;
    text-align: center;
}

.section-heading h2,
.landing-trust h2,
.final-cta h2 {
    margin: 0;
    font-size: clamp(30px, 4vw, 46px);
    line-height: 1.18;
    font-weight: 900;
}

.section-heading p,
.final-cta p {
    margin: 12px 0 0;
    color: #697789;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.7;
}

.benefit-grid,
.workflow-grid {
    max-width: 1180px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.benefit-card,
.workflow-grid article,
.final-cta {
    background: #fff;
    border: 1px solid #e2e9f1;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(23, 32, 44, .06);
}

.benefit-card,
.workflow-grid article {
    padding: 24px;
}

.benefit-card span,
.workflow-grid article span {
    display: inline-flex;
    color: var(--green-dark);
    font-weight: 900;
    margin-bottom: 16px;
}

.benefit-card h3,
.workflow-grid h3 {
    margin: 0 0 8px;
    font-size: 21px;
    font-weight: 900;
}

.benefit-card p,
.workflow-grid p {
    margin: 0;
    color: #697789;
    line-height: 1.7;
    font-weight: 700;
}

.workflow-section {
    background: #edf4f7;
}

.landing-trust {
    display: grid;
    grid-template-columns: minmax(280px, .9fr) minmax(320px, .75fr);
    gap: 24px;
    align-items: stretch;
}

.landing-trust > div:first-child {
    background: #17212d;
    color: #fff;
    border-radius: 8px;
    padding: clamp(28px, 5vw, 46px);
}

.landing-trust ul {
    list-style: none;
    padding: 0;
    margin: 24px 0 0;
    display: grid;
    gap: 14px;
}

.landing-trust li {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #d7e2ef;
    font-weight: 800;
}

.landing-trust li svg {
    width: 20px;
    height: 20px;
    color: var(--green);
}

.final-cta {
    padding: clamp(28px, 5vw, 46px);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 24px;
}

.auth-body {
    min-height: 100vh;
    background: #eef3f7;
}

.auth-layout {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(420px, .9fr) minmax(440px, 1.1fr);
}

.auth-aside {
    padding: clamp(30px, 5vw, 54px);
    background: var(--sidebar);
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 34px;
    position: relative;
    overflow: hidden;
}

.auth-aside::before {
    content: "";
    position: absolute;
    inset: auto 0 0 0;
    height: 45%;
    background: linear-gradient(180deg, transparent, rgba(73, 189, 152, .16));
    pointer-events: none;
}

.auth-aside > * {
    position: relative;
    z-index: 1;
}

.auth-aside-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
}

.auth-aside-copy {
    max-width: 640px;
}

.auth-aside-copy h2 {
    font-size: clamp(36px, 5vw, 58px);
    line-height: 1.15;
    margin: 22px 0 18px;
    font-weight: 900;
}

.auth-aside-copy p {
    color: #aeb8c6;
    font-size: 18px;
    line-height: 1.8;
    font-weight: 700;
}

.auth-proof {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.auth-proof article {
    min-height: 94px;
    padding: 18px;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 8px;
    background: rgba(255,255,255,.07);
}

.auth-proof strong,
.auth-proof span {
    display: block;
}

.auth-proof strong {
    color: #fff;
    font-size: 22px;
    font-weight: 900;
}

.auth-proof span {
    margin-top: 5px;
    color: #aeb8c6;
    font-size: 13px;
    font-weight: 800;
}

.auth-main {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 24px;
    padding: clamp(22px, 5vw, 56px);
}

.auth-mobile-top {
    width: min(520px, 100%);
    display: none;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.auth-card {
    width: min(520px, 100%);
    background: #fff;
    border-radius: 8px;
    border: 1px solid #e4e9f0;
    box-shadow: 0 24px 70px rgba(23, 32, 44, .12);
    padding: clamp(28px, 5vw, 42px);
}

.auth-card-heading > span {
    display: inline-flex;
    margin-bottom: 10px;
    color: var(--green-dark);
    font-size: 13px;
    font-weight: 900;
}

.auth-card h1 {
    margin: 0;
    font-size: clamp(30px, 4vw, 40px);
    font-weight: 900;
}

.auth-intro {
    margin: 8px 0 26px;
    color: #77869b;
    font-weight: 700;
}

.auth-links {
    margin-top: 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    color: var(--blue);
    font-weight: 800;
    flex-wrap: wrap;
}

.auth-links a {
    color: var(--blue);
    font-weight: 900;
    text-decoration: none;
}

.check-row {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #4d5b6e;
    font-weight: 800;
}

.check-row input {
    width: 18px;
    height: 18px;
    min-height: auto;
}

.password-field {
    position: relative;
}

.password-field input {
    padding-inline-end: 50px;
}

.password-field button {
    position: absolute;
    inset-block: 7px;
    inset-inline-end: 7px;
    width: 38px;
    border: 0;
    border-radius: 8px;
    background: #f0f4f8;
    color: #66758a;
    display: grid;
    place-items: center;
}

.password-field svg {
    width: 18px;
    height: 18px;
}

.demo-title {
    margin-top: 26px;
    color: #708198;
    font-size: 13px;
    font-weight: 900;
}

.demo-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-top: 12px;
}

.demo-grid form,
.demo-grid button {
    width: 100%;
}

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

    .dashboard-layout,
    .two-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .cards-grid {
        grid-template-columns: repeat(2, minmax(280px, 1fr));
    }

    .landing-links {
        display: none;
    }

    .landing-trust {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 860px) {
    .dj-sidebar {
        inset-inline-start: 0;
        width: 0;
        overflow: hidden;
        border-inline-end: 0;
        transform: none;
        transition: width .2s ease;
    }

    .dj-sidebar.is-open {
        width: var(--sidebar-width);
        border-inline-end: 1px solid var(--sidebar-border);
    }

    .dj-sidebar:not(.is-open) > * {
        display: none;
    }

    .sidebar-scrim.is-open {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,.45);
        z-index: 35;
    }

    .mobile-sidebar-btn {
        display: grid;
        place-items: center;
    }

    .dj-main {
        margin-inline-start: 0;
        padding: 78px 18px 28px;
    }

    .page-heading {
        flex-direction: column-reverse;
        align-items: stretch;
        margin-bottom: 24px;
    }

    .primary-action {
        width: 100%;
    }

    .stats-grid,
    .cards-grid,
    .form-grid,
    .filters {
        grid-template-columns: minmax(0, 1fr);
    }

    .dashboard-layout > *,
    .cards-grid > *,
    .two-grid > *,
    .panel {
        min-width: 0;
        max-width: 100%;
    }

    .calc-strip,
    .metric-strip {
        grid-template-columns: 1fr;
    }

    .auth-layout {
        grid-template-columns: 1fr;
    }

    .auth-aside {
        display: none;
    }

    .auth-mobile-top {
        display: flex;
        flex-wrap: wrap;
        width: 100%;
        max-width: 520px;
    }

    .auth-mobile-top .landing-brand,
    .auth-mobile-top .language-switcher {
        width: 100%;
    }

    .auth-main,
    .auth-card,
    .auth-card > *,
    .auth-card form {
        min-width: 0;
        max-width: 100%;
    }

    .auth-card {
        width: 100%;
    }

    .landing-nav {
        position: relative;
        flex-wrap: wrap;
        padding: 14px 18px;
    }

    .landing-actions {
        width: 100%;
        justify-content: stretch;
        gap: 10px;
        flex-wrap: wrap;
    }

    .landing-actions .language-switcher,
    .landing-actions .landing-cta.small {
        width: 100%;
    }

    .landing-actions .landing-cta.small {
        min-height: 42px;
    }

    .landing-login {
        display: none;
    }

    .landing-hero {
        min-height: 690px;
        padding: 48px 18px 64px;
        align-items: flex-end;
        background-image:
            linear-gradient(180deg, rgba(15, 25, 39, .34), rgba(15, 25, 39, .92) 56%),
            var(--hero-image);
        background-position: center top;
    }

    [dir="rtl"] .landing-hero {
        background-image:
            linear-gradient(180deg, rgba(15, 25, 39, .34), rgba(15, 25, 39, .92) 56%),
            var(--hero-image);
    }

    .landing-metrics,
    .benefit-grid,
    .workflow-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .product-preview-section,
    .landing-section,
    .landing-trust {
        padding: 40px 18px;
    }

    .preview-caption {
        padding: 18px;
    }

    .modal {
        padding: 14px;
        align-items: flex-start;
    }

    .modal-dialog {
        padding: 22px;
        max-height: calc(100vh - 28px);
    }
}
