:root {

    /* Colours */

    --color-primary: #111827;
    --color-primary-hover: #1f2937;

    --color-accent: #2563eb;

    --color-background: #f6f8fb;
    --color-surface: #ffffff;

    --color-border: #e5e7eb;

    --color-text: #111827;
    --color-text-muted: #6b7280;

    --color-success: #16a34a;
    --color-danger: #dc2626;

    /* Layout */

    --container-width: 1280px;

    /* Radius */

    --radius-small: 8px;
    --radius-medium: 12px;
    --radius-large: 16px;

    /* Shadows */

    --shadow-small: 0 4px 12px rgba(0,0,0,.04);
    --shadow-medium: 0 12px 32px rgba(0,0,0,.06);

    /* Spacing */

    --space-1: 8px;
    --space-2: 16px;
    --space-3: 24px;
    --space-4: 32px;
    --space-5: 48px;
    --space-6: 64px;

}

/* ========================================= */

* {

    margin: 0;
    padding: 0;
    box-sizing: border-box;

}

html {

    scroll-behavior: smooth;

}

body {

    background: var(--color-background);

    color: var(--color-text);

    font-family:
        Inter,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    line-height: 1.6;

}

/* ========================================= */

.container {

    width: 100%;

    max-width: var(--container-width);

    margin: 0 auto;

    padding: 0 40px;

}

/* ========================================= */

section {

    width: 100%;

}

img {

    display: block;

    max-width: 100%;

}

a {

    color: inherit;

    text-decoration: none;

}

button {

    font: inherit;

}

input,
textarea,
select {

    font: inherit;

}

/* ========================================= */

h1 {

    font-size: clamp(3rem, 6vw, 4.8rem);

    line-height: 1.05;

    letter-spacing: -2px;

    margin-bottom: 20px;

}

h2 {

    font-size: 2.3rem;

    margin-bottom: 18px;

}

h3 {

    font-size: 1.35rem;

    margin-bottom: 12px;

}

h4 {

    font-size: 1rem;

    margin-bottom: 8px;

}

p {

    color: var(--color-text-muted);

}

/* ========================================= */

.hidden {

    display: none !important;

}

.center {

    text-align: center;

}

/* ========================================= */

@media (max-width: 900px) {

    .container {

        padding: 0 24px;

    }

}

/* ManagedHorizons responsive application pass v2 */

html, body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

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

img, svg, video, canvas {
    max-width: 100%;
    height: auto;
}

textarea,
input,
select,
button {
    max-width: 100%;
    box-sizing: border-box;
}

.modal {
    padding: 12px;
    overflow-y: auto;
}

.modal-card {
    width: min(900px, calc(100vw - 24px));
    max-height: calc(100dvh - 24px);
    overflow-y: auto;
}

@media (max-width: 900px) {

    .dashboard-layout,
    .app-layout {
        display: block !important;
    }

    .sidebar {
        width: 100% !important;
        position: relative !important;
    }

    .hero,
    .hero-layout,
    .checkout-layout,
    .support-layout,
    .template-editor-layout {
        grid-template-columns: 1fr !important;
    }

    .stats-grid,
    .dashboard-grid,
    .billing-grid,
    .admin-grid,
    .feature-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    table {
        display: block;
        width: 100%;
        overflow-x: auto;
    }
}

@media (max-width: 600px) {

    .site-header,
    .navbar,
    nav {
        flex-wrap: wrap;
        height: auto !important;
    }

    .site-header {
        padding: 16px !important;
    }

    .site-header nav {
        width: 100%;
        gap: 10px;
        flex-wrap: wrap;
    }

    .stats-grid,
    .dashboard-grid,
    .billing-grid,
    .admin-grid,
    .feature-grid,
    .template-editor-layout,
    .form-grid {
        grid-template-columns: 1fr !important;
    }

    .dashboard-content,
    .admin-content,
    .container {
        width: 100%;
        padding-left: 16px !important;
        padding-right: 16px !important;
    }

    .modal-card,
    .card,
    .panel {
        width: 100%;
        max-width: 100%;
    }

    .modal-actions,
    .hero-actions {
        flex-direction: column;
        width: 100%;
    }

    .modal-actions button,
    .hero-actions a,
    .hero-actions button {
        width: 100%;
    }

    textarea {
        min-height: 180px;
    }
}
