@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans+Arabic:wght@300;400;500;600;700&display=swap');

:root {
    --ds-font: 'IBM Plex Sans Arabic', 'Segoe UI', Tahoma, Arial, sans-serif;
    --ds-ink: #10233f;
    --ds-ink-soft: #52647c;
    --ds-ink-faint: #8090a5;
    --ds-brand: #1559d6;
    --ds-brand-dark: #0b3e9f;
    --ds-brand-light: #e8f0ff;
    --ds-cyan: #0891b2;
    --ds-teal: #0f9f84;
    --ds-gold: #c9943f;
    --ds-danger: #dc3150;
    --ds-warning: #e58a17;
    --ds-success: #0b9a70;
    --ds-bg: #f3f6fb;
    --ds-surface: #ffffff;
    --ds-surface-soft: #f8fafd;
    --ds-border: #e2e8f2;
    --ds-border-strong: #ced8e8;
    --ds-shadow-xs: 0 2px 8px rgba(16, 35, 63, 0.04);
    --ds-shadow-sm: 0 8px 24px rgba(16, 35, 63, 0.07);
    --ds-shadow-md: 0 18px 50px rgba(16, 35, 63, 0.10);
    --ds-shadow-brand: 0 14px 30px rgba(21, 89, 214, 0.24);
    --ds-radius-sm: 10px;
    --ds-radius-md: 16px;
    --ds-radius-lg: 24px;
    --ds-radius-xl: 30px;
    --ds-transition: 180ms cubic-bezier(.2, .8, .2, 1);
}

*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    background: var(--ds-bg);
}

body,
button,
input,
select,
textarea {
    font-family: var(--ds-font) !important;
}

body {
    color: var(--ds-ink);
    background-color: var(--ds-bg);
    background-image:
        radial-gradient(circle at 92% 4%, rgba(21, 89, 214, 0.07), transparent 28rem),
        radial-gradient(circle at 5% 65%, rgba(8, 145, 178, 0.05), transparent 25rem);
    background-attachment: fixed;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

body.ds-ready {
    opacity: 1;
}

::selection {
    color: #fff;
    background: var(--ds-brand);
}

a {
    text-underline-offset: 3px;
}

img {
    max-width: 100%;
}

/* Shared page layout */
.container {
    width: min(100% - 32px, 1320px) !important;
    margin-inline: auto !important;
}

.ds-page-shell {
    width: min(100% - 32px, 1320px);
    margin-inline: auto;
}

.page-header,
.dashboard-header,
.section-header {
    position: relative;
}

.page-header h1,
.dashboard-header h1,
.section-header h1,
.section-header h2 {
    color: var(--ds-ink) !important;
    letter-spacing: -0.035em;
    line-height: 1.25;
}

.page-header p,
.dashboard-header p,
.section-header p {
    color: var(--ds-ink-soft) !important;
}

main > .page-header,
.main-content > .page-header,
.content-wrapper > .page-header {
    gap: 18px;
    padding: 22px 24px !important;
    border: 1px solid var(--ds-border) !important;
    border-radius: var(--ds-radius-lg) !important;
    background: rgba(255, 255, 255, .88) !important;
    box-shadow: var(--ds-shadow-sm) !important;
}

main > .page-header h1,
.main-content > .page-header h1,
.content-wrapper > .page-header h1,
.page-title {
    margin-block: 0 !important;
    color: var(--ds-ink) !important;
    font-size: clamp(1.35rem, 2.5vw, 1.8rem) !important;
    font-weight: 700 !important;
}

main > .page-header p,
.main-content > .page-header p,
.content-wrapper > .page-header p {
    margin: 6px 0 0 !important;
    color: var(--ds-ink-soft) !important;
    font-size: .88rem !important;
    line-height: 1.7;
}

/* Shared navigation */
.navbar,
.top-bar,
.admin-navbar,
.client-navbar,
nav.navbar {
    border: 1px solid rgba(226, 232, 242, 0.82) !important;
    background: rgba(255, 255, 255, 0.92) !important;
    box-shadow: 0 10px 34px rgba(16, 35, 63, 0.08) !important;
    backdrop-filter: blur(18px) saturate(150%);
    -webkit-backdrop-filter: blur(18px) saturate(150%);
    transition: box-shadow var(--ds-transition), background var(--ds-transition);
}

.ds-nav-scrolled .navbar,
.ds-nav-scrolled .top-bar,
.ds-nav-scrolled .admin-navbar,
.ds-nav-scrolled .client-navbar {
    box-shadow: 0 14px 38px rgba(16, 35, 63, 0.13) !important;
    background: rgba(255, 255, 255, 0.97) !important;
}

.nav-brand,
.brand-name,
.logo-text {
    color: var(--ds-ink) !important;
    font-weight: 700 !important;
    letter-spacing: -0.02em;
}

.nav-link,
.nav-links a,
.client-navbar a,
.admin-navbar a {
    font-weight: 600 !important;
}

.nav-link:hover,
.nav-links a:hover,
.nav-link.active,
.nav-links a.active,
.client-navbar a:hover,
.client-navbar a.active,
.admin-navbar a:hover,
.admin-navbar a.active {
    color: var(--ds-brand) !important;
}

/* Cards */
.card,
.stat-card,
.table-wrapper,
.filter-bar,
.auth-card,
.login-glass-card,
.side-card,
.info-card,
.chat-card,
.statement-paper,
.contract-card,
.order-card,
.service-card,
.post-card,
.portfolio-card,
.settings-card,
.form-card {
    border: 1px solid var(--ds-border) !important;
    background: rgba(255, 255, 255, 0.97) !important;
    box-shadow: var(--ds-shadow-sm) !important;
}

.card,
.stat-card,
.table-wrapper,
.filter-bar,
.side-card,
.info-card,
.chat-card,
.order-card,
.service-card,
.post-card,
.portfolio-card,
.settings-card,
.form-card {
    border-radius: var(--ds-radius-lg) !important;
}

.card,
.stat-card,
.service-card,
.post-card,
.portfolio-card,
.order-card {
    transition: transform var(--ds-transition), box-shadow var(--ds-transition), border-color var(--ds-transition);
}

.card:hover,
.stat-card:hover,
.service-card:hover,
.post-card:hover,
.portfolio-card:hover,
.order-card:hover {
    border-color: rgba(21, 89, 214, 0.20) !important;
    box-shadow: var(--ds-shadow-md) !important;
    transform: translateY(-3px);
}

.card-title,
.card-header {
    color: var(--ds-ink) !important;
    font-weight: 700 !important;
    letter-spacing: -0.02em;
}

/* Existing statistics, upgraded globally */
.stats-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)) !important;
    gap: 18px !important;
}

.stat-card {
    position: relative;
    isolation: isolate;
    min-height: 132px;
    overflow: hidden;
    padding: 24px !important;
}

.stat-card::before {
    content: '';
    position: absolute;
    inset: 0 0 auto;
    height: 4px;
    background: linear-gradient(90deg, var(--ds-brand), var(--ds-cyan));
}

.stat-card::after {
    content: '';
    position: absolute;
    width: 110px;
    height: 110px;
    inset: auto auto -55px -35px;
    z-index: -1;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(21, 89, 214, 0.10), transparent 68%);
}

.stat-card:nth-child(2)::before {
    background: linear-gradient(90deg, var(--ds-teal), #32c49b);
}

.stat-card:nth-child(3)::before {
    background: linear-gradient(90deg, var(--ds-gold), #f2bd65);
}

.stat-card:nth-child(4)::before {
    background: linear-gradient(90deg, #7555d9, #a987ff);
}

.stat-card h3,
.stat-card strong,
.stat-info h3,
.stat-info strong,
.stat-value {
    color: var(--ds-ink) !important;
    font-size: clamp(1.65rem, 2.7vw, 2.2rem) !important;
    font-weight: 700 !important;
    letter-spacing: -0.045em;
    line-height: 1.1;
}

.stat-card p,
.stat-info p,
.stat-label {
    color: var(--ds-ink-soft) !important;
    font-weight: 500 !important;
}

.stat-icon,
.icon-box,
.shortcut-item i {
    border-radius: 16px !important;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28), 0 8px 18px rgba(16, 35, 63, 0.10);
}

/* New dashboard components */
.ds-dashboard-hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(250px, .65fr);
    gap: 28px;
    align-items: center;
    overflow: hidden;
    margin-bottom: 26px;
    padding: clamp(26px, 4vw, 42px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--ds-radius-xl);
    color: #fff;
    background:
        linear-gradient(118deg, rgba(8, 31, 70, 0.98), rgba(16, 72, 164, 0.96) 56%, rgba(8, 145, 178, 0.92));
    box-shadow: 0 24px 55px rgba(9, 42, 91, 0.22);
}

.ds-dashboard-hero::before,
.ds-dashboard-hero::after {
    content: '';
    position: absolute;
    border-radius: 999px;
    pointer-events: none;
}

.ds-dashboard-hero::before {
    width: 380px;
    height: 380px;
    inset: -230px auto auto -90px;
    border: 70px solid rgba(255, 255, 255, 0.055);
}

.ds-dashboard-hero::after {
    width: 210px;
    height: 210px;
    inset: auto -70px -120px auto;
    background: rgba(255, 255, 255, 0.07);
}

.ds-dashboard-copy,
.ds-dashboard-side {
    position: relative;
    z-index: 1;
}

.ds-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    padding: 7px 12px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.88);
    background: rgba(255, 255, 255, 0.08);
    font-size: .78rem;
    font-weight: 600;
}

.ds-dashboard-hero h1 {
    max-width: 760px;
    margin: 0 0 12px;
    color: #fff !important;
    font-size: clamp(1.65rem, 3.4vw, 2.75rem);
    font-weight: 700;
    letter-spacing: -0.045em;
    line-height: 1.26;
}

.ds-dashboard-hero p {
    max-width: 720px;
    margin: 0;
    color: rgba(255, 255, 255, 0.78) !important;
    font-size: .98rem;
    line-height: 1.9;
}

.ds-dashboard-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}

.ds-hero-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 44px;
    padding: 10px 17px;
    border: 1px solid rgba(255, 255, 255, 0.20);
    border-radius: 12px;
    color: #fff;
    background: rgba(255, 255, 255, 0.10);
    font-size: .88rem;
    font-weight: 600;
    text-decoration: none;
    transition: var(--ds-transition);
}

.ds-hero-button.primary,
.ds-hero-button:hover {
    color: var(--ds-brand-dark);
    background: #fff;
    transform: translateY(-2px);
}

.ds-dashboard-side {
    display: grid;
    gap: 12px;
}

.ds-live-card {
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.09);
    backdrop-filter: blur(12px);
}

.ds-live-label {
    display: block;
    margin-bottom: 5px;
    color: rgba(255, 255, 255, 0.68);
    font-size: .76rem;
    font-weight: 500;
}

.ds-live-value {
    color: #fff;
    font-size: 1.05rem;
    font-weight: 700;
}

.ds-stat-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 26px;
}

.ds-stat-card {
    position: relative;
    overflow: hidden;
    padding: 21px;
    border: 1px solid var(--ds-border);
    border-radius: 20px;
    background: var(--ds-surface);
    box-shadow: var(--ds-shadow-sm);
    transition: var(--ds-transition);
}

.ds-stat-card:hover {
    border-color: rgba(21, 89, 214, 0.24);
    box-shadow: var(--ds-shadow-md);
    transform: translateY(-3px);
}

.ds-stat-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 18px;
}

.ds-stat-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 14px;
    color: var(--ds-brand);
    background: var(--ds-brand-light);
    font-size: 1.1rem;
}

.ds-stat-card.success .ds-stat-icon { color: var(--ds-success); background: #e6f8f1; }
.ds-stat-card.warning .ds-stat-icon { color: var(--ds-warning); background: #fff3e2; }
.ds-stat-card.purple .ds-stat-icon { color: #6e4bd4; background: #f0ebff; }

.ds-stat-trend {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 8px;
    border-radius: 999px;
    color: var(--ds-success);
    background: #e9f9f3;
    font-size: .72rem;
    font-weight: 600;
}

.ds-stat-number {
    display: block;
    margin-bottom: 6px;
    color: var(--ds-ink);
    font-size: clamp(1.55rem, 2.6vw, 2rem);
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 1.1;
}

.ds-stat-caption {
    color: var(--ds-ink-soft);
    font-size: .84rem;
    font-weight: 500;
}

.ds-insights-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(300px, .75fr);
    gap: 18px;
    margin-bottom: 26px;
}

.ds-insight-card {
    padding: 24px;
    border: 1px solid var(--ds-border);
    border-radius: var(--ds-radius-lg);
    background: rgba(255, 255, 255, .97);
    box-shadow: var(--ds-shadow-sm);
}

.ds-section-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
}

.ds-section-heading h2 {
    margin: 3px 0 0;
    color: var(--ds-ink);
    font-size: 1.08rem;
    font-weight: 700;
}

.ds-section-kicker {
    color: var(--ds-brand);
    font-size: .74rem;
    font-weight: 700;
}

.ds-inline-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--ds-brand) !important;
    font-size: .78rem;
    font-weight: 700;
    text-decoration: none;
}

.ds-total-pill {
    padding: 6px 10px;
    border-radius: 999px;
    color: var(--ds-brand-dark);
    background: var(--ds-brand-light);
    font-size: .74rem;
    font-weight: 700;
    white-space: nowrap;
}

.ds-bar-chart {
    display: grid;
    grid-template-columns: repeat(6, minmax(34px, 1fr));
    gap: clamp(8px, 2vw, 18px);
    align-items: end;
    min-height: 214px;
}

.ds-bar-column {
    display: grid;
    grid-template-rows: 24px 150px 22px;
    gap: 7px;
    align-items: end;
    text-align: center;
}

.ds-bar-value,
.ds-bar-label {
    color: var(--ds-ink-soft);
    font-size: .68rem;
    font-weight: 600;
    white-space: nowrap;
}

.ds-bar-track {
    position: relative;
    display: block;
    height: 150px;
    overflow: hidden;
    border-radius: 10px 10px 6px 6px;
    background: linear-gradient(180deg, #f4f7fc, #eef3fa);
}

.ds-bar-fill {
    position: absolute;
    inset: auto 0 0;
    min-height: 7px;
    border-radius: 10px 10px 5px 5px;
    background: linear-gradient(180deg, var(--ds-cyan), var(--ds-brand));
    box-shadow: 0 -8px 20px rgba(21, 89, 214, .18);
}

.ds-pipeline-list {
    display: grid;
    gap: 24px;
}

.ds-pipeline-row > div {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 8px;
    align-items: center;
    margin-bottom: 9px;
}

.ds-pipeline-row strong {
    color: var(--ds-ink);
    font-size: .82rem;
}

.ds-pipeline-row small {
    color: var(--ds-ink-soft);
    font-size: .72rem;
}

.ds-dot {
    width: 9px;
    height: 9px;
    border-radius: 999px;
}

.ds-dot.pending,
.ds-progress-track .pending { background: var(--ds-warning); }
.ds-dot.processing,
.ds-progress-track .processing { background: var(--ds-brand); }
.ds-dot.completed,
.ds-progress-track .completed { background: var(--ds-success); }

.ds-progress-track {
    display: block;
    height: 8px;
    overflow: hidden;
    border-radius: 999px;
    background: #edf2f8;
}

.ds-progress-track > span {
    display: block;
    height: 100%;
    min-width: 3px;
    border-radius: inherit;
}

.table-responsive {
    width: 100%;
    overflow-x: auto;
}

/* Tables */
.table-wrapper {
    overflow-x: auto;
    padding: 10px !important;
}

table {
    border-collapse: separate !important;
    border-spacing: 0 !important;
}

table th {
    padding: 14px 16px !important;
    border-bottom: 1px solid var(--ds-border-strong) !important;
    color: var(--ds-ink-soft) !important;
    background: var(--ds-surface-soft) !important;
    font-size: .78rem !important;
    font-weight: 700 !important;
    white-space: nowrap;
}

table td {
    padding: 15px 16px !important;
    border-bottom: 1px solid var(--ds-border) !important;
    color: var(--ds-ink) !important;
    font-size: .86rem;
}

table tbody tr {
    transition: background var(--ds-transition), transform var(--ds-transition);
}

table tbody tr:hover {
    background: #f7faff !important;
}

table tbody tr:last-child td {
    border-bottom: 0 !important;
}

/* Forms */
.form-control,
input:not([type='checkbox']):not([type='radio']):not([type='range']),
select,
textarea {
    min-height: 46px;
    border: 1px solid var(--ds-border-strong) !important;
    border-radius: 12px !important;
    color: var(--ds-ink) !important;
    background: #fbfcff !important;
    font-size: .88rem !important;
    font-weight: 500 !important;
    outline: none !important;
    transition: border-color var(--ds-transition), box-shadow var(--ds-transition), background var(--ds-transition) !important;
}

textarea {
    min-height: 110px;
    line-height: 1.75;
    resize: vertical;
}

.form-control:focus,
input:not([type='checkbox']):not([type='radio']):not([type='range']):focus,
select:focus,
textarea:focus {
    border-color: rgba(21, 89, 214, 0.72) !important;
    background: #fff !important;
    box-shadow: 0 0 0 4px rgba(21, 89, 214, 0.10) !important;
}

.form-label,
label {
    color: var(--ds-ink) !important;
    font-weight: 600 !important;
}

/* Buttons */
.btn,
.btn-submit,
.btn-primary,
.btn-new,
.btn-login,
.btn-action,
.btn-save,
.btn-view,
.btn-platform,
button[type='submit'] {
    border-radius: 12px !important;
    font-weight: 600 !important;
    letter-spacing: -0.01em;
    transition: transform var(--ds-transition), box-shadow var(--ds-transition), background var(--ds-transition) !important;
}

.btn-primary,
.btn-submit,
.btn-new,
.btn-login,
.btn-save,
button[type='submit'] {
    border-color: transparent !important;
    color: #fff !important;
    background: linear-gradient(135deg, var(--ds-brand), var(--ds-brand-dark)) !important;
    box-shadow: 0 10px 22px rgba(21, 89, 214, 0.20) !important;
}

.btn-primary:hover,
.btn-submit:hover,
.btn-new:hover,
.btn-login:hover,
.btn-save:hover,
button[type='submit']:hover {
    box-shadow: var(--ds-shadow-brand) !important;
    transform: translateY(-2px);
}

.btn-danger,
.btn-delete,
.action-btn.delete,
.btn-del {
    color: var(--ds-danger) !important;
    background: #fff0f3 !important;
}

/* Badges and alerts */
.badge,
.status-badge,
.status-pill,
.notif-badge {
    border-radius: 999px !important;
    font-weight: 600 !important;
}

.alert,
.alert-box,
.error-box,
.alert-popup,
.alert-toast {
    border-radius: 14px !important;
    box-shadow: var(--ds-shadow-xs);
}

/* Public marketing sections */
.ds-public-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    padding: 8px 13px;
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 999px;
    color: rgba(255, 255, 255, .88);
    background: rgba(255, 255, 255, .08);
    font-size: .8rem;
    font-weight: 600;
}

.ds-public-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 11px;
    margin-top: 25px;
}

.ds-public-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 48px;
    padding: 11px 20px;
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 13px;
    color: #fff !important;
    background: rgba(255, 255, 255, .08);
    font-size: .88rem;
    font-weight: 700;
    text-decoration: none;
    transition: var(--ds-transition);
}

.ds-public-button.primary,
.ds-public-button:hover {
    border-color: #fff;
    color: var(--ds-brand-dark) !important;
    background: #fff;
    box-shadow: 0 12px 28px rgba(0, 0, 0, .16);
    transform: translateY(-2px);
}

.ds-trust-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 18px;
    margin-top: 24px;
    color: rgba(255, 255, 255, .68);
    font-size: .78rem;
    font-weight: 500;
}

.ds-trust-list span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

/* Public inner pages */
body .public-page-header {
    isolation: isolate;
    overflow: hidden;
    margin-bottom: clamp(42px, 6vw, 72px) !important;
    padding: clamp(58px, 8vw, 94px) 20px !important;
    border-radius: 0 0 clamp(28px, 5vw, 54px) clamp(28px, 5vw, 54px) !important;
    color: #fff !important;
    background:
        radial-gradient(circle at 12% 15%, rgba(45, 182, 213, .22), transparent 25rem),
        radial-gradient(circle at 87% 85%, rgba(201, 148, 63, .16), transparent 22rem),
        linear-gradient(125deg, #071a35, #0b316b 58%, #0a5875) !important;
    box-shadow: 0 24px 58px rgba(7, 31, 72, .18) !important;
}

body .public-page-header::before,
body .public-page-header::after {
    content: '';
    position: absolute;
    z-index: -1;
    border-radius: 50%;
    pointer-events: none;
}

body .public-page-header::before {
    width: 380px;
    height: 380px;
    inset: -250px auto auto -80px;
    border: 65px solid rgba(255, 255, 255, .045);
}

body .public-page-header::after {
    width: 240px;
    height: 240px;
    inset: auto -100px -160px auto;
    background: rgba(255, 255, 255, .05);
}

body .public-page-header .container {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

body .public-page-header h1 {
    max-width: 880px;
    margin: 0 0 14px !important;
    color: #fff !important;
    font-size: clamp(2rem, 5vw, 3.25rem) !important;
    font-weight: 700 !important;
}

body .public-page-header p {
    max-width: 760px !important;
    margin: 0 auto !important;
    color: rgba(255, 255, 255, .76) !important;
    font-size: clamp(.92rem, 1.8vw, 1.04rem) !important;
    font-weight: 400 !important;
    line-height: 1.95 !important;
}

.ds-page-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 17px;
    padding: 7px 13px;
    border: 1px solid rgba(255, 255, 255, .20);
    border-radius: 999px;
    color: #b6ebf7;
    background: rgba(255, 255, 255, .075);
    font-size: .78rem;
    font-weight: 600;
}

.ds-page-highlights {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 20px;
    margin-top: 25px;
    color: rgba(255, 255, 255, .72);
    font-size: .8rem;
}

.ds-page-highlights span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.ds-page-highlights i { color: #8de0ef; }

.ds-empty-state {
    grid-column: 1 / -1;
    padding: clamp(42px, 8vw, 72px) 24px !important;
    border: 1px dashed var(--ds-border-strong);
    border-radius: var(--ds-radius-lg) !important;
    text-align: center;
    background: rgba(255, 255, 255, .82) !important;
    box-shadow: var(--ds-shadow-sm);
}

.ds-empty-state i {
    display: inline-grid;
    place-items: center;
    width: 74px;
    height: 74px;
    margin-bottom: 16px !important;
    border-radius: 22px;
    color: var(--ds-brand) !important;
    background: var(--ds-brand-light);
    font-size: 1.8rem !important;
}

.ds-content-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin: 54px 0 80px;
    padding: clamp(24px, 4vw, 36px);
    border: 1px solid rgba(21, 89, 214, .15);
    border-radius: var(--ds-radius-lg);
    background: linear-gradient(135deg, #fff, #eef4ff);
    box-shadow: var(--ds-shadow-sm);
}

.ds-content-cta h2 {
    margin: 0 0 7px;
    color: var(--ds-ink);
    font-size: clamp(1.25rem, 2.5vw, 1.75rem);
}

.ds-content-cta p {
    margin: 0;
    color: var(--ds-ink-soft);
    line-height: 1.8;
}

.ds-content-cta a {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    padding: 10px 18px;
    border-radius: 12px;
    color: #fff !important;
    background: var(--ds-brand);
    box-shadow: var(--ds-shadow-brand);
    font-size: .88rem;
    font-weight: 600;
    text-decoration: none;
}

.ds-process-section {
    padding: 92px 0;
    background: linear-gradient(180deg, #f3f6fb, #fff 48%, #f5f8fc);
}

.ds-process-heading {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, .75fr);
    gap: 30px;
    align-items: end;
    margin-bottom: 34px;
}

.ds-process-heading h2,
.ds-cta-panel h2 {
    margin: 6px 0 0;
    color: var(--ds-ink);
    font-size: clamp(1.65rem, 3vw, 2.35rem);
    line-height: 1.35;
    letter-spacing: -.04em;
}

.ds-process-heading p {
    margin: 0;
    color: var(--ds-ink-soft);
    line-height: 1.9;
}

.ds-process-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.ds-process-card {
    position: relative;
    overflow: hidden;
    padding: 28px;
    border: 1px solid var(--ds-border);
    border-radius: var(--ds-radius-lg);
    background: #fff;
    box-shadow: var(--ds-shadow-sm);
}

.ds-process-card.featured {
    border-color: rgba(21, 89, 214, .24);
    background: linear-gradient(155deg, #fff, #eef4ff);
    transform: translateY(-10px);
}

.ds-step-number {
    position: absolute;
    inset: 18px auto auto 20px;
    color: #dbe4f1;
    font-size: 2.4rem;
    font-weight: 700;
    line-height: 1;
}

.ds-process-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    margin-bottom: 22px;
    border-radius: 15px;
    color: var(--ds-brand);
    background: var(--ds-brand-light);
    font-size: 1.15rem;
}

.ds-process-card h3 {
    margin: 0 0 10px;
    color: var(--ds-ink);
    font-size: 1.05rem;
}

.ds-process-card p {
    margin: 0;
    color: var(--ds-ink-soft);
    font-size: .87rem;
    line-height: 1.85;
}

.ds-cta-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-top: 44px;
    padding: clamp(26px, 4vw, 42px);
    border-radius: var(--ds-radius-xl);
    color: #fff;
    background: linear-gradient(120deg, #071f48, #0c459b 58%, #087f9c);
    box-shadow: 0 24px 55px rgba(9, 42, 91, .20);
}

.ds-cta-panel h2 { color: #fff; }
.ds-cta-panel .ds-section-kicker { color: #8fdcf0; }

.hero-section,
.hero,
.featured-section {
    position: relative;
    overflow: hidden;
}

.hero-section h1,
.hero h1,
.featured-section h1 {
    letter-spacing: -0.045em;
    line-height: 1.25;
}

.section-title,
.section-title h2 {
    color: var(--ds-ink) !important;
    font-weight: 700 !important;
    letter-spacing: -0.035em;
}

.section-subtitle {
    color: var(--ds-ink-soft) !important;
}

/* Authentication surfaces */
.auth-card,
.login-glass-card {
    border-radius: var(--ds-radius-xl) !important;
    box-shadow: 0 26px 70px rgba(16, 35, 63, 0.14) !important;
}

.auth-card h1,
.auth-card h2,
.login-glass-card h1,
.login-glass-card h2 {
    color: var(--ds-ink) !important;
    font-weight: 700 !important;
    letter-spacing: -0.035em;
}

/* Progressive reveal */
.ds-reveal {
    opacity: 0;
    transform: translateY(10px);
}

.ds-reveal.ds-visible {
    opacity: 1;
    transform: none;
    transition: opacity 420ms ease, transform 420ms ease;
}

/* Scrollbar */
* {
    scrollbar-color: #b8c5d8 transparent;
    scrollbar-width: thin;
}

*::-webkit-scrollbar { width: 8px; height: 8px; }
*::-webkit-scrollbar-track { background: transparent; }
*::-webkit-scrollbar-thumb { border: 2px solid transparent; border-radius: 99px; background: #b8c5d8; background-clip: padding-box; }
*::-webkit-scrollbar-thumb:hover { background: #91a2ba; background-clip: padding-box; }

@media (max-width: 1024px) {
    .ds-insights-grid {
        grid-template-columns: 1fr;
    }

    .ds-process-heading {
        grid-template-columns: 1fr;
    }

    .ds-stat-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ds-dashboard-hero {
        grid-template-columns: 1fr;
    }

    .ds-dashboard-side {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    :root {
        --ds-radius-lg: 18px;
        --ds-radius-xl: 22px;
    }

    .container {
        width: min(100% - 22px, 1320px) !important;
    }

    .stats-grid,
    .ds-stat-grid {
        grid-template-columns: 1fr !important;
    }

    .ds-dashboard-hero {
        gap: 22px;
        margin-inline: 0;
        padding: 25px 20px;
    }

    .ds-dashboard-side {
        grid-template-columns: 1fr;
    }

    .ds-dashboard-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .ds-hero-button {
        width: 100%;
    }

    .ds-public-actions,
    .ds-cta-panel {
        display: grid;
        grid-template-columns: 1fr;
    }

    .ds-public-button {
        width: 100%;
    }

    .ds-process-grid {
        grid-template-columns: 1fr;
    }

    .ds-process-card.featured {
        transform: none;
    }

    .ds-cta-panel {
        align-items: stretch;
    }

    .ds-content-cta {
        align-items: stretch;
        flex-direction: column;
        text-align: center;
    }

    .card,
    .table-wrapper,
    .filter-bar,
    .side-card,
    .info-card {
        padding: 20px !important;
    }

    table th,
    table td {
        padding: 12px !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

@media print {
    body {
        background: #fff !important;
        background-image: none !important;
    }

    .navbar,
    .top-bar,
    .admin-navbar,
    .client-navbar,
    .no-print,
    .no-print-area {
        display: none !important;
    }

    .card,
    .table-wrapper,
    .statement-paper,
    .contract-card,
    .a4-paper {
        border-color: #d8dee8 !important;
        box-shadow: none !important;
        transform: none !important;
    }
}
