/*
 * DATACORB Professional Monochrome UI Layer
 * Loaded after the existing styles to preserve application behavior while
 * providing one responsive visual system across public, auth, forms and CRM.
 */

:root {
    color-scheme: light;
    --dc-black: #050505;
    --dc-ink: #141414;
    --dc-charcoal: #262626;
    --dc-graphite: #404040;
    --dc-gray-700: #595959;
    --dc-gray-600: #737373;
    --dc-gray-500: #8c8c8c;
    --dc-gray-400: #a6a6a6;
    --dc-gray-300: #c7c7c7;
    --dc-gray-200: #dedede;
    --dc-gray-150: #e9e9e9;
    --dc-gray-100: #f2f2f2;
    --dc-gray-050: #f8f8f8;
    --dc-white: #ffffff;
    --dc-surface: rgba(255, 255, 255, 0.92);
    --dc-surface-strong: #ffffff;
    --dc-border: rgba(5, 5, 5, 0.12);
    --dc-border-strong: rgba(5, 5, 5, 0.24);
    --dc-shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.05);
    --dc-shadow-sm: 0 8px 24px rgba(0, 0, 0, 0.07);
    --dc-shadow-md: 0 18px 46px rgba(0, 0, 0, 0.10);
    --dc-shadow-lg: 0 30px 80px rgba(0, 0, 0, 0.14);
    --dc-radius-sm: 10px;
    --dc-radius-md: 16px;
    --dc-radius-lg: 24px;
    --dc-radius-xl: 32px;
    --dc-container: 1240px;
    --dc-header-height: 84px;
    --dc-ease: cubic-bezier(.2, .8, .2, 1);
}

html {
    min-width: 320px;
    background: var(--dc-gray-050);
    scroll-padding-top: calc(var(--dc-header-height) + 20px);
}

body {
    min-width: 320px;
    overflow-x: hidden;
    font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    color: var(--dc-ink);
    background:
        radial-gradient(circle at 10% -10%, rgba(0, 0, 0, 0.055), transparent 30rem),
        radial-gradient(circle at 95% 20%, rgba(0, 0, 0, 0.035), transparent 26rem),
        linear-gradient(180deg, var(--dc-white) 0, var(--dc-gray-050) 48%, var(--dc-gray-100) 100%);
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    opacity: .24;
    background-image: linear-gradient(rgba(0, 0, 0, .025) 1px, transparent 1px), linear-gradient(90deg, rgba(0, 0, 0, .025) 1px, transparent 1px);
    background-size: 40px 40px;
    mask-image: linear-gradient(to bottom, #000, transparent 70%);
}

::selection {
    color: var(--dc-white);
    background: var(--dc-black);
}

:focus-visible {
    outline: 3px solid var(--dc-black) !important;
    outline-offset: 3px;
}

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

button,
a,
input,
select,
textarea {
    -webkit-tap-highlight-color: transparent;
}

img {
    height: auto;
}

.container {
    width: min(calc(100% - 40px), var(--dc-container));
    max-width: var(--dc-container);
}

.page-content,
.dashboard-content,
.services-page,
.contact-page,
.hr-form-page,
.login-page {
    position: relative;
}

.page-content {
    width: min(calc(100% - 40px), var(--dc-container));
    margin-inline: auto;
    padding-top: calc(var(--dc-header-height) + 40px);
    padding-bottom: 72px;
}

/* Accessibility */
.dc-skip-link {
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 20000;
    padding: 10px 14px;
    color: var(--dc-white);
    background: var(--dc-black);
    border-radius: var(--dc-radius-sm);
    transform: translateY(-160%);
    transition: transform .18s ease;
}

.dc-skip-link:focus {
    transform: translateY(0);
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--dc-black);
    letter-spacing: -.025em;
    text-wrap: balance;
}

h1 {
    font-size: clamp(2rem, 4.4vw, 4.65rem);
    line-height: 1.03;
}

h2 {
    font-size: clamp(1.65rem, 3vw, 3.05rem);
    line-height: 1.12;
}

h3 {
    font-size: clamp(1.12rem, 1.8vw, 1.55rem);
}

p,
li {
    color: var(--dc-graphite);
}

/* Buttons */
.btn,
button[type="submit"],
input[type="submit"],
.hr-submit-btn,
.login-btn,
.submit-btn,
.btn-submit,
.form-submit,
button.primary,
a.primary {
    min-height: 50px;
    padding: 12px 22px;
    border: 1px solid var(--dc-black);
    border-radius: 999px;
    color: var(--dc-white);
    background: linear-gradient(180deg, #202020, #050505);
    box-shadow: 0 8px 18px rgba(0, 0, 0, .14), inset 0 1px rgba(255, 255, 255, .18);
    font-weight: 750;
    letter-spacing: .01em;
    transition: transform .2s var(--dc-ease), box-shadow .2s var(--dc-ease), background .2s ease, color .2s ease;
}

.btn:hover,
button[type="submit"]:hover,
input[type="submit"]:hover,
.hr-submit-btn:hover,
.login-btn:hover,
.submit-btn:hover,
.btn-submit:hover,
.form-submit:hover {
    color: var(--dc-black);
    background: var(--dc-white);
    box-shadow: 0 12px 28px rgba(0, 0, 0, .14);
    transform: translateY(-2px);
}

.btn:active,
button[type="submit"]:active,
input[type="submit"]:active {
    transform: translateY(0) scale(.985);
}

.btn-outline,
.btn-secondary,
.btn-light,
a.btn-secondary,
button.btn-secondary {
    color: var(--dc-black);
    background: var(--dc-white);
    border: 1px solid var(--dc-border-strong);
    box-shadow: var(--dc-shadow-xs);
}

.btn-outline:hover,
.btn-secondary:hover,
.btn-light:hover {
    color: var(--dc-white);
    background: var(--dc-black);
    border-color: var(--dc-black);
}

/* Header and navigation */
.site-header {
    z-index: 10000;
}

.site-header .nav-wrapper {
    min-height: var(--dc-header-height);
    padding: 12px clamp(18px, 4vw, 54px);
    gap: 22px;
    background: rgba(255, 255, 255, .84);
    border-top: 0;
    border-bottom: 1px solid var(--dc-border);
    box-shadow: 0 12px 36px rgba(0, 0, 0, .065);
    backdrop-filter: blur(22px) saturate(130%);
    -webkit-backdrop-filter: blur(22px) saturate(130%);
}

.site-header .nav-wrapper::before,
.site-header .nav-wrapper::after {
    display: none;
}

.site-header.scrolled .nav-wrapper {
    min-height: 68px;
    padding: 8px clamp(18px, 4vw, 54px);
    background: rgba(255, 255, 255, .94);
    border-top: 0;
    border-bottom: 1px solid var(--dc-border-strong);
    box-shadow: 0 14px 42px rgba(0, 0, 0, .10);
}

.nav-logo {
    flex: 0 0 auto;
}

.nav-logo img,
.site-header.scrolled .nav-logo img {
    width: auto;
    height: clamp(42px, 5vw, 58px);
    object-fit: contain;
}

.desktop-nav {
    min-width: 0;
}

.desktop-nav ul {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
}

.desktop-nav a {
    min-height: 42px;
    padding: 9px 12px;
    border-radius: 999px;
    color: var(--dc-charcoal);
    font-size: 14px;
    font-weight: 720;
    white-space: nowrap;
    transition: color .18s ease, background .18s ease, transform .18s ease;
}

.desktop-nav a:hover,
.desktop-nav a.is-active,
.mobile-nav a.is-active {
    color: var(--dc-white);
    background: var(--dc-black);
    transform: translateY(-1px);
}

.nav-icon,
.desktop-nav a img,
.mobile-nav a img {
    width: 18px;
    height: 18px;
    object-fit: contain;
    filter: grayscale(1);
}

.desktop-nav a:hover .nav-icon,
.desktop-nav a.is-active .nav-icon {
    filter: grayscale(1) invert(1);
}

.nav-actions {
    flex: 0 0 auto;
}

.nav-login {
    min-height: 44px;
    padding: 9px 18px;
}

.mobile-toggle,
.sidebar-toggle {
    border: 1px solid var(--dc-border-strong);
    border-radius: 12px;
    color: var(--dc-black);
    background: var(--dc-white);
    box-shadow: var(--dc-shadow-xs);
}

.mobile-toggle {
    width: 46px;
    height: 46px;
    padding: 0;
    font-size: 0;
}

.mobile-toggle::before,
.mobile-toggle::after,
.mobile-toggle span {
    content: "";
    position: absolute;
    left: 12px;
    width: 20px;
    height: 2px;
    border-radius: 2px;
    background: var(--dc-black);
    transition: transform .2s ease, top .2s ease, opacity .2s ease;
}

.mobile-toggle {
    position: relative;
}

.mobile-toggle::before { top: 15px; }
.mobile-toggle::after { top: 28px; }
.mobile-toggle span { top: 21px; }
.mobile-toggle[aria-expanded="true"]::before { top: 21px; transform: rotate(45deg); }
.mobile-toggle[aria-expanded="true"]::after { top: 21px; transform: rotate(-45deg); }
.mobile-toggle[aria-expanded="true"] span { opacity: 0; }

.mobile-nav {
    top: calc(var(--dc-header-height) - 1px);
    left: 14px;
    right: 14px;
    width: auto;
    max-height: calc(100vh - var(--dc-header-height) - 24px);
    padding: 10px;
    overflow-y: auto;
    border: 1px solid var(--dc-border);
    border-radius: 0 0 var(--dc-radius-lg) var(--dc-radius-lg);
    background: rgba(255, 255, 255, .97);
    box-shadow: var(--dc-shadow-lg);
    backdrop-filter: blur(18px);
}

.mobile-nav a {
    min-height: 48px;
    display: flex;
    align-items: center;
    padding: 11px 14px;
    border-radius: 12px;
    border-bottom: 0;
    font-weight: 720;
}

body.dc-menu-open {
    overflow: hidden;
}

/* Public sections and cards */
.section {
    padding: clamp(52px, 7vw, 96px) 0;
}

.hero {
    padding-top: calc(var(--dc-header-height) + 46px);
    padding-bottom: 34px;
}

.hero-card,
.about-card,
.service-card,
.services-card,
.why-card,
.pricing-card,
.contact-info-box,
.contact-form-box,
.form-container,
.card,
.login-card,
.auth-message-card,
.hr-form-container,
.checkout-card,
.security-card,
.card-section {
    border: 1px solid var(--dc-border);
    background: linear-gradient(145deg, rgba(255,255,255,.98), rgba(246,246,246,.92));
    box-shadow: var(--dc-shadow-md);
}

.hero-card {
    position: relative;
    overflow: hidden;
    gap: clamp(34px, 6vw, 76px);
    padding: clamp(30px, 6vw, 76px);
    border-radius: var(--dc-radius-xl);
}

.hero-card::after {
    content: "";
    position: absolute;
    right: -130px;
    bottom: -180px;
    width: 420px;
    height: 420px;
    border: 70px solid rgba(0, 0, 0, .025);
    border-radius: 50%;
    pointer-events: none;
}

.hero-left,
.hero-right {
    position: relative;
    z-index: 1;
}

.hero-left h1 {
    font-size: clamp(2.1rem, 4.3vw, 4.5rem);
    max-width: 13ch;
}

.hero-left p,
.hero-tagline {
    max-width: 58ch;
    color: var(--dc-gray-700);
}

.hero-right img,
.about-image img,
.section-image img {
    border: 1px solid var(--dc-border);
    border-radius: var(--dc-radius-lg);
    box-shadow: var(--dc-shadow-md);
    filter: grayscale(100%) contrast(1.04);
}

.section-heading,
.page-header {
    max-width: 780px;
}

.section-heading p,
.page-header p {
    color: var(--dc-gray-700);
    font-size: clamp(1rem, 1.5vw, 1.12rem);
}

.services-grid,
.why-grid,
.pricing-grid,
.feature-grid,
.security-grid,
.stats-grid {
    gap: clamp(18px, 2.5vw, 30px);
}

.service-card,
.why-card,
.pricing-card,
.feature-card {
    height: 100%;
    padding: clamp(24px, 3vw, 36px);
    border-radius: var(--dc-radius-lg);
    transition: transform .25s var(--dc-ease), box-shadow .25s var(--dc-ease), border-color .25s ease;
}

.service-card:hover,
.why-card:hover,
.pricing-card:hover,
.feature-card:hover {
    transform: translateY(-7px);
    border-color: var(--dc-border-strong);
    box-shadow: var(--dc-shadow-lg);
}

/* Forms */
.form-container,
.hr-form-container,
.login-card,
.card[role="main"] {
    width: min(100%, 920px);
    margin-inline: auto;
    padding: clamp(24px, 5vw, 52px);
    border-radius: var(--dc-radius-xl);
}

.form-container h1,
.form-container h2,
.hr-form-container h1,
.login-card h2,
.card[role="main"] h1 {
    margin-bottom: 12px;
    text-align: center;
}

.form-container form,
.hr-form-container form,
.login-card form,
.card[role="main"] form {
    margin-top: 30px;
}

.form-row,
.grid-2,
.row,
.form-grid {
    gap: 18px;
}

.form-group,
.field,
.form-field,
.col,
.grid-2 > div {
    min-width: 0;
}

label {
    display: block;
    margin-bottom: 7px;
    color: var(--dc-charcoal);
    font-size: .91rem;
    font-weight: 720;
}

input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]),
select,
textarea,
.select2-container--default .select2-selection--single,
.select2-container--default .select2-selection--multiple {
    width: 100%;
    min-height: 50px;
    padding: 12px 14px;
    color: var(--dc-ink);
    background: rgba(255, 255, 255, .92);
    border: 1px solid var(--dc-gray-300);
    border-radius: 12px;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, .025);
    outline: none;
    transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

textarea {
    min-height: 126px;
    resize: vertical;
}

input[type="file"] {
    padding: 8px;
    background: var(--dc-gray-050);
}

input[type="file"]::file-selector-button {
    margin-right: 12px;
    padding: 9px 14px;
    border: 0;
    border-radius: 9px;
    color: var(--dc-white);
    background: var(--dc-black);
    font-weight: 700;
    cursor: pointer;
}

input:not([type="checkbox"]):not([type="radio"]):focus,
select:focus,
textarea:focus,
.select2-container--default.select2-container--focus .select2-selection--multiple,
.select2-container--default.select2-container--open .select2-selection--single {
    border-color: var(--dc-black);
    background: var(--dc-white);
    box-shadow: 0 0 0 4px rgba(0, 0, 0, .08);
}

input::placeholder,
textarea::placeholder {
    color: var(--dc-gray-500);
}

input[type="checkbox"],
input[type="radio"] {
    width: 18px;
    height: 18px;
    accent-color: var(--dc-black);
}

.required {
    color: var(--dc-black);
}

.success-message,
.success-box,
.dashboard-success,
.error-message,
.error-box,
.dashboard-error,
.error,
.success,
.alert {
    padding: 14px 16px;
    border-radius: 12px;
    border: 1px solid var(--dc-border-strong);
    color: var(--dc-ink);
    background: var(--dc-gray-100);
    box-shadow: var(--dc-shadow-xs);
}

.success-message,
.success-box,
.dashboard-success,
.success {
    border-left: 5px solid var(--dc-black);
    background: var(--dc-white);
}

.error-message,
.error-box,
.dashboard-error,
.error {
    border-left: 5px double var(--dc-black);
    background: var(--dc-gray-150);
}

/* Dashboard */
.dashboard-page,
.dashboard-shell,
.dashboard-wrapper,
body:has(.dashboard-wrapper) {
    background: var(--dc-gray-050);
}

.dashboard-wrapper {
    min-height: calc(100vh - 68px);
    margin-top: 68px;
}

.sidebar {
    width: 270px;
    margin-top: 0;
    border-right: 1px solid rgba(255, 255, 255, .10);
    background: linear-gradient(180deg, #050505, #171717);
    box-shadow: 14px 0 35px rgba(0, 0, 0, .10);
}

.sidebar-panel-title,
.sidebar-title {
    color: var(--dc-black);
    background: linear-gradient(180deg, var(--dc-white), var(--dc-gray-200));
    border: 0;
    border-bottom: 1px solid var(--dc-border-strong);
}

.sidebar a {
    position: relative;
    min-height: 54px;
    height: auto;
    justify-content: flex-start;
    margin: 3px 10px !important;
    padding: 13px 16px;
    border: 1px solid transparent;
    border-radius: 11px;
    color: rgba(255, 255, 255, .82);
    font-size: 15px;
    font-weight: 650;
    transition: background .18s ease, color .18s ease, transform .18s ease;
}

.sidebar a:hover,
.sidebar a.active,
.sidebar a.is-active {
    color: var(--dc-black);
    background: var(--dc-white);
    border-color: rgba(255, 255, 255, .55);
    transform: translateX(3px);
}

.main-content {
    min-width: 0;
    padding: clamp(22px, 3.5vw, 46px);
}

.page-content:has(.page-header),
.main-content > .page-content,
.dashboard-content {
    width: 100%;
    max-width: 1480px;
    margin-inline: auto;
    padding-top: 0;
}

.page-header {
    max-width: none;
    margin-bottom: 26px;
    padding: 0;
}

.page-header h1,
.page-header h2 {
    font-size: clamp(1.8rem, 3.4vw, 3.1rem);
}

.dashboard-card,
.stat-card,
.metric-card,
.info-card,
.profile-card,
.security-score-card,
.checkout-card,
.card-section,
.table-card,
.dashboard-form {
    border: 1px solid var(--dc-border);
    border-radius: var(--dc-radius-lg);
    background: var(--dc-white);
    box-shadow: var(--dc-shadow-sm);
}

.dashboard-card,
.stat-card,
.metric-card,
.info-card,
.profile-card,
.security-score-card,
.table-card,
.card-section {
    padding: clamp(20px, 3vw, 30px);
}

.stat-card,
.metric-card {
    overflow: hidden;
    transition: transform .2s var(--dc-ease), box-shadow .2s var(--dc-ease);
}

.stat-card:hover,
.metric-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--dc-shadow-md);
}

.dashboard-form {
    padding: clamp(20px, 3vw, 32px);
}

.dashboard-toolbar,
.page-header-row,
.card-header,
.checkout-header {
    gap: 14px;
}

/* Tables */
.dc-table-scroll {
    width: 100%;
    overflow-x: auto;
    border: 1px solid var(--dc-border);
    border-radius: var(--dc-radius-md);
    background: var(--dc-white);
    box-shadow: var(--dc-shadow-sm);
    -webkit-overflow-scrolling: touch;
}

.dc-table-scroll > table {
    margin: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

.admin-table,
.dashboard-table,
table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    color: var(--dc-ink);
    background: var(--dc-white);
}

.admin-table th,
.dashboard-table th,
table th {
    padding: 13px 15px;
    color: var(--dc-white);
    background: var(--dc-black);
    border-bottom: 1px solid var(--dc-black);
    font-size: .78rem;
    font-weight: 780;
    letter-spacing: .055em;
    text-transform: uppercase;
    white-space: nowrap;
}

.admin-table td,
.dashboard-table td,
table td {
    padding: 14px 15px;
    border-bottom: 1px solid var(--dc-gray-150);
    vertical-align: middle;
}

.admin-table tbody tr,
.dashboard-table tbody tr,
table tbody tr {
    transition: background .16s ease;
}

.admin-table tbody tr:hover,
.dashboard-table tbody tr:hover,
table tbody tr:hover {
    background: var(--dc-gray-050);
}

.admin-table tr:last-child td,
.dashboard-table tr:last-child td,
table tr:last-child td {
    border-bottom: 0;
}

.badge,
.status,
.status-badge,
.role-badge,
.notification-count,
.checkout-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 28px;
    padding: 5px 10px;
    border: 1px solid var(--dc-border-strong);
    border-radius: 999px;
    color: var(--dc-black);
    background: var(--dc-gray-100);
    font-size: .78rem;
    font-weight: 760;
}

/* Footer */
.site-footer {
    position: relative;
    overflow: hidden;
    color: var(--dc-white);
    background: linear-gradient(155deg, #050505, #1c1c1c);
    border-top: 1px solid rgba(255, 255, 255, .10);
}

.site-footer::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(circle at 15% 0, rgba(255, 255, 255, .12), transparent 30rem);
}

.footer-container,
.footer-bottom {
    position: relative;
    z-index: 1;
    width: min(calc(100% - 40px), var(--dc-container));
    margin-inline: auto;
}

.site-footer h3,
.site-footer p,
.site-footer li,
.site-footer a {
    color: rgba(255, 255, 255, .84);
}

.site-footer a:hover {
    color: var(--dc-white);
}

.footer-logo {
    filter: grayscale(1) brightness(0) invert(1);
}

.footer-icon {
    filter: grayscale(1) brightness(0) invert(1);
    opacity: .78;
    transition: opacity .18s ease, transform .18s ease;
}

.footer-social a:hover .footer-icon {
    opacity: 1;
    transform: translateY(-2px);
}

/* Contact widget */
.contact-widget,
.contact-widget-panel,
.contact-widget-box {
    border: 1px solid var(--dc-border-strong);
    color: var(--dc-ink);
    background: var(--dc-white);
    box-shadow: var(--dc-shadow-lg);
}

/* Responsive behavior */
@media (max-width: 1200px) {
    .desktop-nav a {
        padding-inline: 9px;
        font-size: 13px;
    }

    .nav-icon {
        display: none;
    }
}

@media (max-width: 1024px) {
    :root {
        --dc-header-height: 72px;
    }

    .site-header .nav-wrapper,
    .site-header.scrolled .nav-wrapper {
        min-height: var(--dc-header-height);
        padding: 10px 18px;
    }

    .desktop-nav,
    .nav-actions .nav-login {
        display: none;
    }

    .mobile-toggle {
        display: inline-flex;
    }

    .dashboard-wrapper {
        margin-top: var(--dc-header-height);
    }

    .sidebar {
        position: fixed;
        top: var(--dc-header-height);
        bottom: 0;
        left: 0;
        z-index: 9998;
        transform: translateX(-105%);
        transition: transform .24s var(--dc-ease);
    }

    .sidebar.sidebar-open {
        transform: translateX(0);
    }

    .main-content {
        width: 100%;
        padding: 24px;
    }
}

@media (max-width: 768px) {
    .container,
    .page-content,
    .footer-container,
    .footer-bottom {
        width: min(calc(100% - 28px), var(--dc-container));
    }

    .page-content {
        padding-top: calc(var(--dc-header-height) + 24px);
        padding-bottom: 52px;
    }

    .section {
        padding: 52px 0;
    }

    .hero {
        padding-top: calc(var(--dc-header-height) + 24px);
    }

    .hero-card {
        grid-template-columns: 1fr;
        padding: 26px;
        border-radius: var(--dc-radius-lg);
    }

    .hero-left h1 {
        max-width: none;
    }

    .hero-actions,
    .checkout-actions,
    .form-actions,
    .page-header-row,
    .dashboard-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .hero-actions .btn,
    .checkout-actions .btn,
    .form-actions .btn,
    .dashboard-toolbar .btn {
        width: 100%;
    }

    .services-grid,
    .why-grid,
    .pricing-grid,
    .feature-grid,
    .security-grid,
    .stats-grid,
    .grid-2,
    .form-grid,
    .form-row,
    .row {
        grid-template-columns: 1fr !important;
    }

    .form-container,
    .hr-form-container,
    .login-card,
    .card[role="main"] {
        padding: 24px 18px;
        border-radius: var(--dc-radius-lg);
    }

    .main-content {
        padding: 18px 14px 30px;
    }

    .dashboard-card,
    .stat-card,
    .metric-card,
    .info-card,
    .profile-card,
    .security-score-card,
    .table-card,
    .card-section,
    .dashboard-form {
        border-radius: var(--dc-radius-md);
    }

    .admin-table th,
    .dashboard-table th,
    table th,
    .admin-table td,
    .dashboard-table td,
    table td {
        padding: 11px 12px;
        font-size: .86rem;
    }

    .footer-container {
        grid-template-columns: 1fr !important;
        gap: 34px;
    }

    .footer-bottom {
        align-items: flex-start;
        flex-direction: column;
        gap: 16px;
    }
}

@media (max-width: 480px) {
    :root {
        --dc-header-height: 66px;
    }

    .nav-logo img,
    .site-header.scrolled .nav-logo img {
        height: 42px;
    }

    .mobile-toggle {
        width: 42px;
        height: 42px;
    }

    .mobile-nav {
        left: 8px;
        right: 8px;
    }

    h1 {
        font-size: clamp(1.9rem, 11vw, 2.75rem);
    }

    h2 {
        font-size: clamp(1.5rem, 8vw, 2.1rem);
    }

    .btn,
    button[type="submit"],
    input[type="submit"] {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
        scroll-behavior: auto !important;
    }
}

@media print {
    .site-header,
    .site-footer,
    .sidebar,
    .dashboard-footerbar,
    .contact-widget,
    .mobile-nav,
    .dc-skip-link {
        display: none !important;
    }

    body,
    .dashboard-page,
    .dashboard-shell,
    .main-content {
        color: #000;
        background: #fff !important;
    }

    .dashboard-wrapper {
        display: block;
        margin: 0;
    }

    .main-content,
    .page-content {
        width: 100%;
        max-width: none;
        padding: 0;
    }

    .dc-table-scroll {
        overflow: visible;
        box-shadow: none;
    }
}

/* Final compatibility refinements */
.btn-acc {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 9px 18px;
    border: 1px solid var(--dc-black);
    border-radius: 999px;
    color: var(--dc-white);
    background: var(--dc-black);
    font-size: 14px;
    font-weight: 750;
    text-decoration: none;
}

.notification-area {
    position: relative;
}

.notification-icon {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 1px solid var(--dc-border-strong);
    border-radius: 50%;
    background: var(--dc-white);
}

.notification-bell {
    width: 20px;
    height: 20px;
    filter: grayscale(1);
}

.notification-count {
    position: absolute;
    top: -5px;
    right: -5px;
    min-width: 22px;
    min-height: 22px;
    padding: 2px 6px;
    color: var(--dc-white);
    background: var(--dc-black);
    border: 2px solid var(--dc-white);
}

.notification-dropdown {
    overflow: hidden;
    border: 1px solid var(--dc-border);
    border-radius: var(--dc-radius-md);
    background: var(--dc-white);
    box-shadow: var(--dc-shadow-lg);
}

.notify-item,
.notify-empty,
.notify-footer {
    padding: 12px 14px;
    border-bottom: 1px solid var(--dc-gray-150);
}

.notify-footer {
    border-bottom: 0;
    background: var(--dc-gray-050);
}

label:has(input[type="checkbox"]),
label:has(input[type="radio"]) {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    line-height: 1.5;
}

label:has(input[type="checkbox"]) input,
label:has(input[type="radio"]) input {
    flex: 0 0 auto;
    margin-top: 2px;
}

@media (max-width: 1024px) {
    .mobile-nav {
        display: none;
        flex-direction: column;
    }

    .mobile-nav.active {
        display: flex;
    }

    .sidebar-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .nav-actions {
        margin-left: auto;
    }

    .nav-actions .notification-area,
    .nav-actions .btn-acc {
        display: inline-flex;
    }
}

@media (max-width: 600px) {
    .nav-actions .btn-acc {
        display: none;
    }

    .notification-dropdown {
        position: fixed;
        top: var(--dc-header-height);
        left: 12px;
        right: 12px;
        width: auto;
    }
}

/* Public-page component polish */
.about-hero-card,
.about-intro-card,
.who-card,
.what-we-do .container,
.philosophy .container,
.how-we-work .container,
.vision-mission .container,
.commitment .container,
.contact-left,
.contact-right,
.cta-box,
.core-box,
.business-box,
.process-box,
.philosophy-box,
.vision-box,
.service-about-box,
.industry-box,
.plan-card,
.step-card,
.faq-card,
.hs-card,
.hs-small-card,
.dc-box {
    border: 1px solid var(--dc-border);
    background: linear-gradient(145deg, rgba(255, 255, 255, .98), rgba(245, 245, 245, .92));
    box-shadow: var(--dc-shadow-md);
    animation: none !important;
}

.about-intro-card::after,
.who-card::after,
.what-we-do .container::after,
.philosophy .container::after,
.how-we-work .container::after,
.vision-mission .container::after,
.commitment .container::after,
.contact-left::after,
.contact-right::after {
    opacity: .32;
    animation-duration: 14s !important;
}

.core-box,
.business-box,
.process-box,
.philosophy-box,
.vision-box,
.service-about-box,
.industry-box,
.plan-card,
.step-card,
.faq-card,
.hs-card,
.hs-small-card {
    border-radius: var(--dc-radius-lg);
    transition: transform .22s var(--dc-ease), box-shadow .22s var(--dc-ease), border-color .22s ease;
}

.core-box:hover,
.business-box:hover,
.process-box:hover,
.philosophy-box:hover,
.vision-box:hover,
.service-about-box:hover,
.industry-box:hover,
.plan-card:hover,
.step-card:hover,
.faq-card:hover,
.hs-card:hover,
.hs-small-card:hover {
    transform: translateY(-5px);
    border-color: var(--dc-border-strong);
    box-shadow: var(--dc-shadow-lg);
}

.cta-box {
    overflow: hidden;
    padding: clamp(28px, 5vw, 56px);
    border-radius: var(--dc-radius-xl);
    text-align: center;
}

.core-grid,
.business-grid,
.process-grid,
.philosophy-grid,
.vision-grid,
.services-grid-about,
.industry-grid,
.next-grid {
    gap: clamp(16px, 2.5vw, 28px);
}

.services-page {
    padding-top: var(--dc-header-height);
}

.services-hero {
    padding: clamp(58px, 8vw, 100px) 0 clamp(34px, 5vw, 64px);
    text-align: center;
    background: linear-gradient(180deg, rgba(255,255,255,.92), rgba(238,238,238,.72));
    border-bottom: 1px solid var(--dc-border);
}

.services-hero p {
    margin: 14px auto 0;
    max-width: 60ch;
    font-size: 1.08rem;
}

.dc-services-table,
.dc,
.dc-feature-box {
    padding-block: clamp(42px, 6vw, 80px);
}

.dc-services-table h2,
.dc h2,
.dc-feature-box h2 {
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    font-size: clamp(1.75rem, 3vw, 2.75rem);
    letter-spacing: -.025em;
    word-spacing: normal;
    text-transform: none;
}

.services-table,
.table-wrap,
.dc-box {
    border-color: var(--dc-border-strong);
    border-width: 1px;
    border-radius: var(--dc-radius-lg);
    box-shadow: var(--dc-shadow-md);
}

.services-table th,
.services-table td,
.table th,
.table td {
    border-color: var(--dc-gray-200);
    border-width: 1px;
}

.services-table tbody tr:last-child td,
.yearly-row td {
    border-bottom: 1px solid var(--dc-gray-200) !important;
}

.order-btn,
.hero-btn,
.join-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 12px 24px;
    border: 1px solid var(--dc-black);
    border-radius: 999px;
    color: var(--dc-white);
    background: var(--dc-black);
    box-shadow: var(--dc-shadow-sm);
    font-size: 1rem;
    font-weight: 760;
    text-decoration: none;
    transition: transform .2s var(--dc-ease), color .2s ease, background .2s ease;
}

.order-btn:hover,
.hero-btn:hover,
.join-btn:hover {
    color: var(--dc-black) !important;
    background: var(--dc-white);
    transform: translateY(-2px);
}

.contact-page {
    padding-top: calc(var(--dc-header-height) + 42px);
}

.contact-left,
.contact-right {
    border-radius: var(--dc-radius-xl);
}

.contact-points .point,
.next-item {
    border: 1px solid var(--dc-border);
    border-radius: var(--dc-radius-md);
    background: rgba(255,255,255,.78);
}

.hire-support,
.hire-support-mobile {
    padding-top: calc(var(--dc-header-height) + 42px);
}

@media (max-width: 768px) {
    .about-hero {
        padding-top: calc(var(--dc-header-height) + 28px);
    }

    .about-hero-card,
    .contact-shell {
        grid-template-columns: 1fr;
    }

    .about-intro-card,
    .who-card,
    .what-we-do .container,
    .philosophy .container,
    .how-we-work .container,
    .vision-mission .container,
    .commitment .container,
    .contact-left,
    .contact-right,
    .cta-box {
        padding: 24px 18px;
        border-radius: var(--dc-radius-lg);
    }

    .order-btn,
    .hero-btn,
    .join-btn {
        width: 100%;
        max-width: 100%;
        font-size: 1rem;
    }
}

/* Monochrome status and utility states */
.note-box,
.important-points,
.info-box,
.warning-box,
.notice-box,
.file-hint-box,
.totals,
.summary-box {
    color: var(--dc-charcoal) !important;
    background: var(--dc-gray-100) !important;
    border-color: var(--dc-gray-300) !important;
}

.remove-row,
.delete-row,
.btn-danger,
.danger-btn {
    color: var(--dc-black) !important;
    background: var(--dc-white) !important;
    border-color: var(--dc-black) !important;
}

.remove-row:hover,
.delete-row:hover,
.btn-danger:hover,
.danger-btn:hover {
    color: var(--dc-white) !important;
    background: var(--dc-black) !important;
}

.success-message,
.success-box,
.dashboard-success,
.success,
.error-message,
.error-box,
.dashboard-error,
.error,
.auth-success,
.auth-error {
    color: var(--dc-ink) !important;
    background: var(--dc-white) !important;
    border-color: var(--dc-gray-300) !important;
}

/* Strong mobile navigation safeguards against legacy display rules */
.site-header .nav-wrapper {
    overflow: visible;
}

@media (max-width: 1024px) {
    .site-header .desktop-nav {
        display: none !important;
    }

    body:not(.dashboard-page) .site-header .nav-actions .nav-login {
        display: none !important;
    }

    .site-header .mobile-toggle {
        display: inline-flex !important;
        margin-left: auto;
    }

    .site-header .mobile-nav:not(.active) {
        display: none !important;
    }

    .site-header .mobile-nav.active {
        display: flex !important;
    }
}
