body.crm-body {
    background:
        radial-gradient(circle at top left, rgba(182, 54, 53, 0.12), transparent 24%),
        radial-gradient(circle at bottom right, rgba(33, 37, 78, 0.12), transparent 28%),
        linear-gradient(180deg, #f5efe6 0%, #ece2d5 100%);
    color: var(--crm-text);
    font-family: 'Manrope', sans-serif;
    min-height: 100vh;
}

body.crm-auth-body {
    background:
        radial-gradient(circle at top left, rgba(182, 54, 53, 0.18), transparent 30%),
        radial-gradient(circle at bottom right, rgba(33, 37, 78, 0.2), transparent 32%),
        linear-gradient(135deg, #f7efe5 0%, #e7d9c8 100%);
    color: var(--crm-text);
    font-family: 'Manrope', sans-serif;
    min-height: 100vh;
}

a {
    text-decoration: none;
}

.crm-shell {
    display: flex;
    min-height: 100vh;
}

.crm-sidebar {
    background:
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.08), transparent 24%),
        linear-gradient(180deg, #141934 0%, #1e244b 100%);
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    color: #eef1f7;
    gap: 1.25rem;
    overflow-y: auto;
    padding: 1.4rem;
    position: sticky;
    top: 0;
    width: 320px;
}

.crm-sidebar-brand,
.crm-sidebar-utility {
    align-items: flex-start;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 1.35rem;
    color: #f7f8fc;
    display: flex;
    gap: 0.95rem;
    padding: 1rem;
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.crm-sidebar-brand:hover,
.crm-sidebar-utility:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.14);
    color: #ffffff;
    transform: translateY(-1px);
}

.crm-sidebar-logo {
    border-radius: 1rem;
    flex-shrink: 0;
    width: 58px;
}

.crm-sidebar-kicker,
.crm-topbar-kicker,
.page-kicker,
.section-chip,
.crm-nav-label {
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.crm-sidebar-kicker {
    color: rgba(255, 255, 255, 0.72);
    display: inline-block;
    margin-bottom: 0.35rem;
}

.crm-sidebar-title,
.crm-topbar-title,
.page-title,
.surface-title,
.stream-title,
.work-title,
.notification-title,
.section-title,
.content-title {
    color: var(--crm-secondary);
    font-family: 'Sora', sans-serif;
    font-weight: 700;
    letter-spacing: -0.03em;
}

.crm-sidebar-title,
.crm-mobile-sidebar-title {
    color: #ffffff;
    font-size: 1.25rem;
    margin: 0;
}

.crm-sidebar-copy {
    color: rgba(238, 241, 247, 0.72);
    font-size: 0.9rem;
    line-height: 1.55;
}

.crm-sidebar-audit {
    align-items: center;
    background: rgba(182, 54, 53, 0.18);
    border: 1px solid rgba(182, 54, 53, 0.22);
    border-radius: 999px;
    color: #ffe7e6;
    display: inline-flex;
    font-size: 0.82rem;
    font-weight: 700;
    gap: 0.6rem;
    padding: 0.75rem 1rem;
}

.crm-sidebar-audit-dot {
    background: #ffd7c7;
    border-radius: 999px;
    display: inline-flex;
    height: 0.55rem;
    width: 0.55rem;
}

.crm-sidebar-nav {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 1.2rem;
}

.crm-nav-group {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.crm-nav-label {
    color: rgba(255, 255, 255, 0.46);
    padding: 0 0.35rem;
}

.crm-nav-link {
    align-items: center;
    border: 1px solid transparent;
    border-radius: 1.15rem;
    color: rgba(238, 241, 247, 0.84);
    display: flex;
    gap: 0.9rem;
    padding: 0.75rem 0.8rem;
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.crm-nav-link:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    transform: translateX(2px);
}

.crm-nav-link.active {
    background: linear-gradient(135deg, rgba(182, 54, 53, 0.26), rgba(255, 255, 255, 0.08));
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: 0 14px 24px rgba(10, 14, 31, 0.28);
    color: #ffffff;
}

.crm-nav-icon,
.metric-icon,
.work-icon,
.info-icon,
.notification-icon,
.external-link-icon {
    align-items: center;
    border-radius: 1rem;
    display: inline-flex;
    flex-shrink: 0;
    height: 2.8rem;
    justify-content: center;
    width: 2.8rem;
}

.crm-nav-icon {
    background: rgba(255, 255, 255, 0.08);
    color: #f7f8fc;
}

.crm-nav-text {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 0;
}

.crm-nav-text strong,
.crm-nav-text small {
    display: block;
}

.crm-nav-text strong {
    color: inherit;
    font-size: 0.95rem;
    font-weight: 700;
}

.crm-nav-text small {
    color: rgba(238, 241, 247, 0.62);
    font-size: 0.74rem;
    line-height: 1.45;
}

.crm-sidebar-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    padding-top: 1.25rem;
}

.crm-page {
    flex: 1;
    min-width: 0;
    padding: 1.25rem;
}

.crm-topbar {
    align-items: center;
    backdrop-filter: blur(16px);
    background: rgba(255, 251, 246, 0.72);
    border: 1px solid rgba(33, 37, 78, 0.08);
    border-radius: 1.6rem;
    box-shadow: 0 18px 34px rgba(23, 28, 54, 0.08);
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    padding: 1rem 1.2rem;
}

.crm-topbar-kicker {
    color: rgba(29, 35, 64, 0.56);
    margin-bottom: 0.25rem;
}

.crm-topbar-title {
    font-size: 1.25rem;
}

.crm-topbar-meta {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: flex-end;
}

.crm-user-pill {
    align-items: center;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(33, 37, 78, 0.08);
    border-radius: 999px;
    box-shadow: 0 12px 20px rgba(23, 28, 54, 0.06);
    display: inline-flex;
    gap: 0.75rem;
    padding: 0.45rem 0.9rem 0.45rem 0.45rem;
}

.crm-user-avatar {
    align-items: center;
    background: linear-gradient(135deg, var(--crm-secondary), #3b447d);
    border-radius: 999px;
    color: #ffffff;
    display: inline-flex;
    font-size: 0.82rem;
    font-weight: 800;
    height: 2.15rem;
    justify-content: center;
    width: 2.15rem;
}

.crm-user-copy {
    display: flex;
    flex-direction: column;
    gap: 0.05rem;
    line-height: 1.1;
}

.crm-user-copy strong {
    color: var(--crm-secondary);
    font-size: 0.88rem;
    font-weight: 800;
}

.crm-user-copy small {
    color: rgba(33, 37, 78, 0.64);
    font-size: 0.72rem;
    font-weight: 700;
}

.crm-topbar-chip {
    align-items: flex-start;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(33, 37, 78, 0.08);
    border-radius: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 10rem;
    padding: 0.7rem 0.9rem;
}

.crm-chip-label {
    color: rgba(29, 35, 64, 0.58);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.btn-topbar-icon {
    align-items: center;
    background: rgba(33, 37, 78, 0.06);
    border: 1px solid rgba(33, 37, 78, 0.08);
    border-radius: 0.95rem;
    color: var(--crm-secondary);
    display: inline-flex;
    font-size: 1.2rem;
    height: 2.85rem;
    justify-content: center;
    width: 2.85rem;
}

.btn-crm-primary,
.btn-outline-crm {
    border-radius: 1rem;
    font-weight: 800;
    padding: 0.85rem 1.2rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-crm-primary {
    background: linear-gradient(135deg, var(--crm-primary), #d55d54);
    border: 0;
    box-shadow: 0 16px 28px rgba(182, 54, 53, 0.24);
    color: #ffffff;
}

.btn-crm-primary:hover {
    color: #ffffff;
    transform: translateY(-1px);
}

.btn-outline-crm {
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(33, 37, 78, 0.12);
    color: var(--crm-secondary);
}

.btn-outline-crm:hover {
    background: rgba(33, 37, 78, 0.05);
    border-color: rgba(33, 37, 78, 0.18);
    color: var(--crm-secondary);
}

.btn-sm.btn-crm-primary,
.btn-sm.btn-outline-crm {
    border-radius: 0.9rem;
    padding: 0.55rem 0.85rem;
}

.crm-main {
    padding-top: 1.25rem;
}

.crm-page-section + .crm-page-section {
    margin-top: 1.35rem;
}

.page-hero,
.page-header-card,
.surface-card,
.metric-card,
.work-card,
.notification-card {
    border-radius: 1.6rem;
    position: relative;
}

.page-hero {
    background:
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.14), transparent 30%),
        linear-gradient(135deg, rgba(20, 25, 52, 0.98) 0%, rgba(33, 37, 78, 0.98) 58%, rgba(99, 36, 22, 0.96) 100%);
    box-shadow: 0 24px 48px rgba(22, 26, 48, 0.18);
    color: #fff8f2;
    overflow: hidden;
    padding: clamp(1.5rem, 3vw, 2.35rem);
}

.page-hero::after {
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.14), transparent);
    content: '';
    height: 1px;
    left: 2rem;
    position: absolute;
    right: 2rem;
    top: 5.35rem;
}

.page-hero-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.92fr);
}

.page-kicker,
.section-chip {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    color: #fff3e8;
    display: inline-flex;
    padding: 0.45rem 0.8rem;
}

.page-header-card .page-kicker,
.surface-card .section-chip,
.metric-card .section-chip {
    background: rgba(182, 54, 53, 0.08);
    border-color: rgba(182, 54, 53, 0.12);
    color: var(--crm-primary);
}

.page-title {
    color: inherit;
    font-size: clamp(2rem, 3.4vw, 3.3rem);
    line-height: 1.04;
    margin: 1rem 0 0.9rem;
}

.page-header-card .page-title,
.surface-title,
.stream-title,
.work-title,
.notification-title,
.section-title,
.content-title {
    color: var(--crm-secondary);
}

.page-copy,
.surface-copy,
.metric-copy,
.stream-copy,
.work-copy,
.content-copy {
    color: rgba(255, 248, 242, 0.84);
    font-size: 1rem;
    line-height: 1.75;
    margin: 0;
}

.page-header-card .page-copy,
.surface-copy,
.metric-copy,
.stream-copy,
.work-copy,
.content-copy {
    color: rgba(29, 35, 64, 0.74);
}

.hero-pill-row,
.feature-pill-row,
.module-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.hero-pill,
.table-badge,
.schema-pill,
.integration-status,
.status-pill,
.mini-stat-card,
.summary-chip {
    align-items: center;
    border-radius: 999px;
    display: inline-flex;
    font-size: 0.78rem;
    font-weight: 800;
    gap: 0.4rem;
    padding: 0.45rem 0.8rem;
}

.hero-pill {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: #fff4e9;
}

.table-badge {
    background: rgba(182, 54, 53, 0.08);
    color: var(--crm-primary);
}

.schema-pill,
.integration-status,
.summary-chip {
    background: rgba(33, 37, 78, 0.08);
    color: var(--crm-secondary);
}

.hero-side-card,
.page-header-card,
.surface-card,
.metric-card,
.work-card,
.notification-card {
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid rgba(33, 37, 78, 0.08);
    box-shadow: 0 18px 34px rgba(23, 28, 54, 0.08);
}

.hero-side-card {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.14);
    color: #fff8f2;
    padding: 1.35rem;
}

.hero-side-head {
    align-items: center;
    display: flex;
    font-size: 0.95rem;
    font-weight: 700;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.snapshot-grid {
    display: grid;
    gap: 0.75rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.snapshot-item {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1.15rem;
    padding: 0.95rem 1rem;
}

.snapshot-item strong {
    display: block;
    font-family: 'Sora', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.snapshot-item span {
    color: rgba(255, 248, 242, 0.76);
    font-size: 0.85rem;
}

.page-header-card,
.surface-card,
.metric-card,
.work-card,
.notification-card {
    padding: 1.45rem;
}

.page-header-card {
    background: rgba(255, 252, 247, 0.86);
}

.page-header-main,
.surface-card-header,
.stream-head,
.metric-head {
    align-items: flex-start;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
}

.page-header-actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: flex-end;
}

.mini-stat-card {
    background: rgba(33, 37, 78, 0.06);
    color: var(--crm-secondary);
    flex-direction: column;
    gap: 0.15rem;
    min-width: 8rem;
    padding: 0.85rem 1rem;
}

.mini-stat-card strong {
    font-family: 'Sora', sans-serif;
    font-size: 1.2rem;
}

.mini-stat-card span {
    color: rgba(29, 35, 64, 0.62);
    font-size: 0.7rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.metric-card,
.work-card,
.notification-card,
.external-link-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.metric-card:hover,
.work-card:hover,
.notification-card:hover,
.external-link-card:hover,
.surface-card:hover {
    box-shadow: 0 24px 44px rgba(23, 28, 54, 0.12);
    transform: translateY(-2px);
}

.metric-head {
    margin-bottom: 1.15rem;
}

.metric-icon {
    background: linear-gradient(135deg, rgba(182, 54, 53, 0.14), rgba(33, 37, 78, 0.12));
    color: var(--crm-primary);
}

.metric-label {
    color: rgba(29, 35, 64, 0.62);
    font-size: 0.84rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.metric-value {
    color: var(--crm-secondary);
    font-family: 'Sora', sans-serif;
    font-size: 2.35rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 0.55rem;
}

.surface-title {
    font-size: 1.35rem;
    margin: 0.7rem 0 0;
}

.stream-section + .stream-section {
    border-top: 1px solid rgba(33, 37, 78, 0.08);
    margin-top: 1.5rem;
    padding-top: 1.5rem;
}

.stream-title {
    font-size: 1.15rem;
    margin: 0;
}

.work-card {
    overflow: hidden;
}

.work-card::before {
    background: linear-gradient(90deg, var(--crm-primary), transparent);
    content: '';
    height: 4px;
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
}

.work-card-head {
    align-items: center;
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.work-icon,
.info-icon,
.notification-icon,
.external-link-icon {
    background: linear-gradient(135deg, rgba(182, 54, 53, 0.12), rgba(33, 37, 78, 0.08));
    color: var(--crm-primary);
}

.work-count {
    color: rgba(29, 35, 64, 0.62);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.work-title {
    font-size: 1.15rem;
    margin-bottom: 0.55rem;
}

.mini-muted {
    color: rgba(29, 35, 64, 0.56);
    font-size: 0.86rem;
}

.filter-bar {
    background: rgba(21, 26, 56, 0.03);
    border: 1px solid rgba(33, 37, 78, 0.08);
    border-radius: 1.25rem;
    padding: 1rem;
}

.crm-form-stack {
    gap: 1.25rem;
}

.form-label {
    color: var(--crm-secondary);
    font-size: 0.9rem;
    font-weight: 800;
    margin-bottom: 0.55rem;
}

.crm-input {
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(33, 37, 78, 0.12);
    border-radius: 1rem;
    min-height: 3.15rem;
    padding: 0.8rem 1rem;
}

textarea.crm-input {
    min-height: 8rem;
}

.crm-input:focus {
    background: #ffffff;
    border-color: rgba(182, 54, 53, 0.45);
    box-shadow: 0 0 0 0.22rem rgba(182, 54, 53, 0.12);
}

.crm-switch {
    align-items: center;
    background: rgba(33, 37, 78, 0.04);
    border: 1px solid rgba(33, 37, 78, 0.08);
    border-radius: 1rem;
    display: flex;
    gap: 0.75rem;
    min-height: 3.15rem;
    padding: 0.8rem 1rem;
}

.sticky-side-card {
    position: sticky;
    top: 1.25rem;
}

.info-pair {
    align-items: flex-start;
    border-bottom: 1px solid rgba(33, 37, 78, 0.08);
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    padding: 0.85rem 0;
}

.info-pair:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.info-pair span {
    color: rgba(29, 35, 64, 0.58);
    font-size: 0.84rem;
    font-weight: 700;
    text-transform: uppercase;
}

.info-pair strong {
    color: var(--crm-secondary);
    font-weight: 800;
    text-align: right;
}

.hero-side-card .info-pair {
    border-bottom-color: rgba(255, 255, 255, 0.12);
}

.hero-side-card .info-pair span,
.hero-side-card .info-pair strong {
    color: #fff8f2;
}

.detail-list,
.check-list {
    margin: 0;
    padding-left: 1.15rem;
}

.detail-list li,
.check-list li {
    margin-bottom: 0.7rem;
}

.detail-list li:last-child,
.check-list li:last-child {
    margin-bottom: 0;
}

.repeater-card {
    background: rgba(21, 26, 56, 0.03);
    border: 1px solid rgba(33, 37, 78, 0.08);
    border-radius: 1.3rem;
    padding: 1.15rem;
}

.repeater-row {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(33, 37, 78, 0.08);
    border-radius: 1.15rem;
    padding: 1rem;
}

.crm-table-shell {
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(33, 37, 78, 0.08);
    border-radius: 1.25rem;
    overflow: hidden;
}

.crm-table {
    margin: 0;
}

.crm-table thead th {
    background: #f5efe6;
    border-bottom: 1px solid rgba(33, 37, 78, 0.08);
    color: var(--crm-secondary);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.crm-table td,
.crm-table th {
    padding: 1rem 1.05rem;
    vertical-align: middle;
}

.crm-table tbody tr:hover {
    background: rgba(182, 54, 53, 0.03);
}

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

.status-pill {
    justify-content: center;
}

.status-success,
.status-paid,
.status-actif,
.status-accepted {
    background: rgba(35, 112, 75, 0.14);
    color: var(--crm-success);
}

.status-warning,
.status-pending,
.status-partially,
.status-warning-read,
.status-en-attente,
.status-en_attente {
    background: rgba(200, 139, 46, 0.14);
    color: var(--crm-warning);
}

.status-danger,
.status-unpaid,
.status-overdue,
.status-declined,
.status-cancelled,
.status-resilie {
    background: rgba(182, 54, 53, 0.14);
    color: var(--crm-primary);
}

.status-muted,
.status-draft,
.status-on-hold,
.status-suspendu {
    background: rgba(33, 37, 78, 0.1);
    color: var(--crm-secondary);
}

.status-info {
    background: rgba(33, 37, 78, 0.08);
    color: var(--crm-secondary);
}

.list-row {
    align-items: center;
    background: rgba(21, 26, 56, 0.03);
    border: 1px solid rgba(33, 37, 78, 0.08);
    border-radius: 1rem;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    padding: 0.95rem 1rem;
}

.list-row-stack {
    flex-wrap: wrap;
}

.external-link-card {
    align-items: center;
    background: rgba(21, 26, 56, 0.03);
    border: 1px solid rgba(33, 37, 78, 0.08);
    border-radius: 1.15rem;
    color: var(--crm-secondary);
    display: flex;
    gap: 1rem;
    padding: 1rem;
}

.notification-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.notification-card {
    align-items: flex-start;
    display: flex;
    gap: 1rem;
}

.notification-card.is-unread {
    border-color: rgba(182, 54, 53, 0.18);
    box-shadow: 0 18px 34px rgba(182, 54, 53, 0.08);
}

.notification-body {
    flex: 1;
    min-width: 0;
}

.notification-card form {
    flex-shrink: 0;
}

.notification-title {
    font-size: 1rem;
    line-height: 1.5;
    margin: 0 0 0.4rem;
}

.notification-meta {
    color: rgba(29, 35, 64, 0.58);
    font-size: 0.88rem;
}

.color-preview {
    align-items: center;
    display: inline-flex;
    gap: 0.6rem;
}

.color-preview-swatch {
    border: 1px solid rgba(33, 37, 78, 0.12);
    border-radius: 999px;
    display: inline-flex;
    height: 1rem;
    width: 1rem;
}

.alert-strip {
    align-items: center;
    background: rgba(182, 54, 53, 0.08);
    border: 1px solid rgba(182, 54, 53, 0.14);
    color: var(--crm-primary);
    display: flex;
    gap: 0.8rem;
}

.crm-divider {
    border-color: rgba(33, 37, 78, 0.1);
    margin: 1.4rem 0;
}

.breadcrumb-trail {
    align-items: center;
    color: rgba(29, 35, 64, 0.58);
    display: flex;
    flex-wrap: wrap;
    font-size: 0.9rem;
    font-weight: 700;
    gap: 0.55rem;
    margin-bottom: 1rem;
}

.breadcrumb-trail a {
    color: var(--crm-secondary);
}

.breadcrumb-current {
    color: rgba(29, 35, 64, 0.56);
}

.pagination {
    gap: 0.35rem;
}

.pagination .page-link {
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(33, 37, 78, 0.1);
    border-radius: 0.9rem;
    color: var(--crm-secondary);
    min-width: 2.5rem;
    text-align: center;
}

.pagination .page-item.active .page-link {
    background: var(--crm-secondary);
    border-color: var(--crm-secondary);
}

.pagination .page-link:focus {
    box-shadow: 0 0 0 0.2rem rgba(182, 54, 53, 0.12);
}

.auth-shell {
    align-items: stretch;
    display: grid;
    gap: 1.5rem;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.9fr);
    margin: 0 auto;
    max-width: 1320px;
    min-height: 100vh;
    padding: 1.5rem;
}

.auth-panel {
    min-width: 0;
}

.auth-brand-panel {
    background:
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.12), transparent 24%),
        linear-gradient(160deg, #151934 0%, #1c2350 55%, #202860 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 2rem;
    box-shadow: 0 28px 50px rgba(16, 20, 42, 0.24);
    color: #eef1f7;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    padding: 2rem;
    position: relative;
}

.auth-brand-panel::after {
    background: radial-gradient(circle, rgba(182, 54, 53, 0.24), transparent 62%);
    content: '';
    height: 22rem;
    position: absolute;
    right: -4rem;
    top: -5rem;
    width: 22rem;
}

.auth-brand-head,
.auth-security-list {
    position: relative;
    z-index: 1;
}

.auth-brand-logo {
    border-radius: 1.4rem;
    box-shadow: 0 18px 30px rgba(12, 16, 35, 0.24);
    margin: 1.25rem 0 1rem;
    width: 88px;
}

.auth-brand-title,
.auth-form-title {
    font-family: 'Sora', sans-serif;
    font-weight: 700;
    letter-spacing: -0.03em;
}

.auth-brand-title {
    color: #ffffff;
    font-size: clamp(2.2rem, 4vw, 3.5rem);
    margin-bottom: 0.85rem;
}

.auth-brand-copy {
    color: rgba(238, 241, 247, 0.78);
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 0;
    max-width: 36rem;
}

.auth-security-list {
    display: grid;
    gap: 1rem;
    margin-top: 2rem;
}

.auth-security-item {
    align-items: flex-start;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1.35rem;
    display: flex;
    gap: 1rem;
    padding: 1rem 1.1rem;
}

.auth-security-item i {
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    color: #ffd6cf;
    display: inline-flex;
    flex-shrink: 0;
    font-size: 1.15rem;
    height: 2.8rem;
    justify-content: center;
    width: 2.8rem;
}

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

.auth-security-item strong {
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 800;
    margin-bottom: 0.2rem;
}

.auth-security-item span {
    color: rgba(238, 241, 247, 0.72);
    font-size: 0.88rem;
    line-height: 1.55;
}

.auth-security-item code {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 0.5rem;
    color: #ffffff;
    padding: 0.15rem 0.35rem;
}

.auth-form-panel {
    align-items: center;
    display: flex;
    justify-content: center;
}

.auth-form-card {
    backdrop-filter: blur(18px);
    background: rgba(255, 251, 246, 0.86);
    border: 1px solid rgba(255, 255, 255, 0.62);
    border-radius: 2rem;
    box-shadow: 0 24px 44px rgba(23, 28, 54, 0.12);
    padding: 2rem;
    width: min(100%, 34rem);
}

.auth-form-head {
    margin-bottom: 1.5rem;
}

.auth-form-title {
    color: var(--crm-secondary);
    font-size: 2rem;
    margin-bottom: 0.55rem;
}

.auth-form-copy {
    color: rgba(33, 37, 78, 0.72);
    margin-bottom: 0;
}

.auth-inline-alert {
    align-items: center;
    background: rgba(182, 54, 53, 0.08);
    border: 1px solid rgba(182, 54, 53, 0.14);
    border-radius: 1rem;
    color: var(--crm-primary);
    display: flex;
    font-size: 0.94rem;
    font-weight: 700;
    gap: 0.75rem;
    margin-bottom: 1rem;
    padding: 0.9rem 1rem;
}

.auth-form-grid {
    display: grid;
    gap: 1rem;
}

.auth-label {
    color: var(--crm-secondary);
    font-weight: 800;
}

.auth-input {
    min-height: 3.4rem;
}

.auth-password-shell {
    position: relative;
}

.auth-password-shell .auth-input {
    padding-right: 3.25rem;
}

.auth-password-toggle {
    align-items: center;
    background: transparent;
    border: 0;
    color: rgba(33, 37, 78, 0.52);
    display: inline-flex;
    height: 100%;
    justify-content: center;
    position: absolute;
    right: 0;
    top: 0;
    width: 3.2rem;
}

.auth-submit-btn {
    justify-content: center;
    min-height: 3.5rem;
}

.auth-form-foot {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.25rem;
}

.auth-foot-chip {
    align-items: center;
    background: rgba(33, 37, 78, 0.06);
    border: 1px solid rgba(33, 37, 78, 0.08);
    border-radius: 999px;
    color: rgba(33, 37, 78, 0.78);
    display: inline-flex;
    font-size: 0.82rem;
    font-weight: 800;
    gap: 0.5rem;
    padding: 0.6rem 0.85rem;
}

.crm-mobile-sidebar {
    background: linear-gradient(180deg, #141934 0%, #1e244b 100%);
    color: #eef1f7;
}

.crm-mobile-sidebar .offcanvas-header,
.crm-mobile-sidebar .offcanvas-body {
    background: transparent;
}

.crm-mobile-sidebar .btn-close {
    filter: invert(1);
}

@media (max-width: 1399.98px) {
    .page-hero-grid {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 991.98px) {
    .crm-page {
        padding: 1rem;
    }

    .crm-topbar {
        align-items: flex-start;
        flex-direction: column;
    }

    .crm-topbar-meta {
        justify-content: flex-start;
    }

    .auth-shell {
        padding: 1rem;
    }

    .auth-brand-panel,
    .auth-form-card {
        padding: 1.5rem;
    }

    .page-header-main,
    .surface-card-header,
    .stream-head {
        flex-direction: column;
    }

    .page-header-actions {
        justify-content: flex-start;
    }

    .sticky-side-card {
        position: static;
    }
}

@media (max-width: 767.98px) {
    .crm-page {
        padding: 0.85rem;
    }

    .page-hero,
    .page-header-card,
    .surface-card,
    .metric-card,
    .work-card,
    .notification-card {
        border-radius: 1.25rem;
        padding: 1.15rem;
    }

    .page-hero::after {
        display: none;
    }

    .snapshot-grid {
        grid-template-columns: 1fr 1fr;
    }

    .notification-card {
        flex-direction: column;
    }

    .crm-table td,
    .crm-table th {
        padding: 0.9rem;
    }

    .auth-brand-title {
        font-size: 2rem;
    }
}

@media (max-width: 575.98px) {
    .page-title {
        font-size: 1.85rem;
    }

    .metric-value {
        font-size: 2rem;
    }

    .snapshot-grid {
        grid-template-columns: 1fr;
    }

    .mini-stat-card {
        min-width: 100%;
    }

    .auth-shell {
        padding: 0.75rem;
    }

    .auth-brand-panel,
    .auth-form-card {
        border-radius: 1.5rem;
        padding: 1.15rem;
    }

    .auth-form-title {
        font-size: 1.7rem;
    }
}
