/* ==========================================================================
   Stoute Web Solutions — Nexus Child Theme
   Brand: Deep Forest Green · Warm Amber · Warm Cream
   Fonts: Plus Jakarta Sans (display) / Inter (body)

   Parent uses element.class selectors (header.header, footer.footer)
   so all overrides match that pattern for specificity.
   ========================================================================== */


/* ==========================================================================
   1. CSS Custom Properties — Brand Tokens
   ========================================================================== */

:root {
    /* Brand Green Scale */
    --primary-50:  #f4f8f1;
    --primary-100: #e5f0dc;
    --primary-200: #cce1ba;
    --primary-300: #a7cb8a;
    --primary-400: #7fb35d;
    --primary-500: #5e9639;
    --primary-600: #49782c;
    --primary-700: #395e23;
    --primary-800: #2f4c1e;
    --primary-900: #284019;
    --primary-950: #14230b;

    --primary:          #49782c;
    --primary-lifted:   #395e23;
    --primary-accented: #2f4c1e;

    /* Accent — Warm Amber */
    --accent-400: #e2a543;
    --accent-500: #d4881c;
    --accent-600: #b86c15;

    /* Warning — warm amber aligned */
    --warning:          #d4881c;
    --warning-lifted:   #b86c15;
    --warning-accented: #985313;

    /* Surface — warm cream tones */
    --surface-0:   #fefcf9;
    --surface-50:  #faf6f0;
    --surface-100: #f5f0eb;
    --surface-200: #ebe3d9;
    --surface-300: #ddd2c5;
    --surface-400: #baa99a;
    --surface-700: #5e504a;
    --surface-800: #3b3542;
    --surface-900: #272339;
    --surface-950: #1a1a2e;

    /* Override parent's --bg/--bg-muted so ALL theme elements get warm cream */
    --bg:          #fefcf9;
    --bg-muted:    #faf6f0;
    --bg-lifted:   #f5f0eb;
    --bg-accented: #ebe3d9;
    --bg-inverted: #1a1a2e;

    /* Rounding — generous, matching main site (rounded-xl/2xl) */
    --rounding-sm: 0.5rem;
    --rounding-md: 0.75rem;
    --rounding-lg: 1rem;

    /* Brand gradient */
    --brand-gradient: linear-gradient(135deg, #5e9639 0%, #395e23 100%);
    --brand-gradient-deep: linear-gradient(135deg, #5e9639 0%, #2f4c1e 100%);
}


/* ==========================================================================
   2. Typography
   ========================================================================== */

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: var(--surface-0);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
    font-family: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-weight: 700;
    letter-spacing: -0.025em;
    color: var(--surface-950);
}

h1, .h1 {
    font-weight: 800;
    letter-spacing: -0.03em;
}

h2, .h2 {
    font-weight: 800;
}


/* ==========================================================================
   3. Header — Top Bar
   ========================================================================== */

header.header {
    background-color: #fff;
}

header.header .topbar {
    background-color: var(--surface-950);
    color: rgba(255, 255, 255, 0.75);
    padding: 4px 0;
}

header.header .topbar .btn {
    color: rgba(255, 255, 255, 0.75);
    font-size: 13px;
}

header.header .topbar .btn:hover {
    color: #fff;
}

header.header .topbar .active-client .input-group-text {
    color: rgba(255, 255, 255, 0.6);
    font-size: 13px;
}

header.header .topbar .active-client .btn {
    color: rgba(255, 255, 255, 0.75);
}

header.header .topbar .active-client .btn.btn-active-client span {
    border-bottom-color: rgba(255, 255, 255, 0.4);
}


/* ==========================================================================
   4. Header — Main Navigation
   ========================================================================== */

header.header .main-navbar-wrapper {
    background: var(--brand-gradient);
    padding: 0;
}

header.header .navbar a {
    color: rgba(255, 255, 255, 0.9);
}

header.header .main-navbar-wrapper .navbar-nav a {
    color: rgba(255, 255, 255, 0.9);
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: -0.01em;
    padding: 0.5rem 0.875rem;
    border-radius: var(--rounding-sm);
    transition: all 0.2s ease;
}

header.header .main-navbar-wrapper .navbar-nav a:hover,
header.header .main-navbar-wrapper .navbar-nav a:focus {
    color: #fff;
    background-color: rgba(255, 255, 255, 0.12);
}

header.header .main-navbar-wrapper .navbar-nav .nav-item.active a,
header.header .main-navbar-wrapper .navbar-nav a.active {
    color: #fff;
    background-color: rgba(255, 255, 255, 0.18);
}

/* Dropdown menus — white with warm styling */
header.header .main-navbar-wrapper .dropdown-menu {
    border: 1px solid var(--surface-200);
    border-radius: var(--rounding-md);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
    padding: 0.5rem;
    margin-top: 0.25rem;
}

header.header .main-navbar-wrapper .dropdown-menu a,
header.header .main-navbar-wrapper .dropdown-menu .dropdown-item {
    color: var(--surface-700);
    border-radius: var(--rounding-sm);
    padding: 0.5rem 0.75rem;
    font-size: 14px;
    transition: all 0.15s ease;
}

header.header .main-navbar-wrapper .dropdown-menu a:hover,
header.header .main-navbar-wrapper .dropdown-menu .dropdown-item:hover {
    color: var(--primary);
    background-color: var(--primary-50);
}

header.header .dropdown-item.active,
header.header .dropdown-item:active {
    background-color: var(--primary);
    color: #fff;
}

/* Search bar */
header.header .search {
    border-radius: var(--rounding-md);
    border-color: var(--surface-200);
}

header.header .search:focus-within {
    border-color: var(--primary-400);
    box-shadow: 0 0 0 3px rgba(127, 179, 93, 0.15);
}

header.header .toolbar .nav-link {
    border-radius: var(--rounding-md);
    border-color: var(--surface-200);
}


/* ==========================================================================
   5. Buttons — Brand Gradient Primary
   ========================================================================== */

.btn {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 600;
    border-radius: var(--rounding-md);
    transition: all 0.2s ease;
}

.btn-primary {
    background: var(--brand-gradient);
    border: none;
    color: #fff;
    padding: 0.5rem 1.25rem;
    box-shadow: 0 1px 3px rgba(73, 120, 44, 0.2);
}

.btn-primary:hover,
.btn-primary:focus {
    background: var(--brand-gradient-deep);
    box-shadow: 0 4px 16px rgba(73, 120, 44, 0.3);
    color: #fff;
    transform: translateY(-1px);
}

.btn-primary:active,
.btn-primary:not(:disabled):not(.disabled):active {
    background: var(--brand-gradient-deep);
    box-shadow: 0 1px 3px rgba(73, 120, 44, 0.2);
    transform: translateY(0);
}

/* Accent CTA — warm amber for high-visibility */
.btn-accent,
.btn-cta {
    background: linear-gradient(135deg, #e2a543 0%, #d4881c 100%);
    border: none;
    color: #fff;
    padding: 0.5rem 1.25rem;
    box-shadow: 0 1px 3px rgba(212, 136, 28, 0.2);
}

.btn-accent:hover,
.btn-accent:focus,
.btn-cta:hover,
.btn-cta:focus {
    background: linear-gradient(135deg, #d4881c 0%, #b86c15 100%);
    box-shadow: 0 4px 16px rgba(212, 136, 28, 0.3);
    color: #fff;
    transform: translateY(-1px);
}

.btn-default,
.btn-outline-secondary {
    border-color: var(--surface-300);
    color: var(--surface-700);
    background-color: #fff;
}

.btn-default:hover,
.btn-outline-secondary:hover {
    border-color: var(--primary-400);
    color: var(--primary);
    background-color: var(--primary-50);
}

.btn-sm {
    border-radius: var(--rounding-sm);
}

.btn-lg {
    padding: 0.625rem 1.5rem;
    font-size: 1rem;
}


/* ==========================================================================
   6. Cards & Panels — Premium Feel
   ========================================================================== */

.card,
.panel,
.mc-promo-manage,
.mc-promo-login {
    border: 1px solid var(--surface-200);
    border-radius: var(--rounding-lg);
    background-color: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.card:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    border-color: var(--surface-300);
}

.card .card-header,
.panel .panel-heading {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 600;
    background-color: var(--surface-50);
    border-bottom: 1px solid var(--surface-200);
    border-radius: var(--rounding-lg) var(--rounding-lg) 0 0;
}

.card .card-body {
    padding: 1.25rem;
}

.card .card-footer {
    background-color: var(--surface-50);
    border-top: 1px solid var(--surface-200);
    border-radius: 0 0 var(--rounding-lg) var(--rounding-lg);
}


/* ==========================================================================
   7. Sidebar — Clean with Brand Accents
   ========================================================================== */

.sidebar .card,
.sidebar .panel {
    border-radius: var(--rounding-lg);
    overflow: hidden;
}

.sidebar .list-group-item {
    border-color: var(--surface-200);
    padding: 0.75rem 1.25rem;
    transition: all 0.15s ease;
}

.sidebar .list-group-item:hover {
    color: var(--primary);
    background-color: var(--primary-50);
}

.sidebar .list-group-item.active {
    background: var(--brand-gradient);
    border-color: var(--primary);
    color: #fff;
}

.sidebar .card-header,
.sidebar .panel-heading {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
    font-size: 0.8125rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--surface-700);
    background-color: var(--surface-50);
}


/* ==========================================================================
   8. Dashboard Stats (Top Counters)
   ========================================================================== */

#main-body .client-home-panels .card {
    border-radius: var(--rounding-lg);
}


/* ==========================================================================
   9. Domain Search (Homepage Hero)
   ========================================================================== */

.domain-search-container {
    background: var(--brand-gradient-deep);
    padding: 3rem 0;
}

.domain-search-container h2,
.domain-search-container h3 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.domain-search-container p {
    font-family: 'Inter', sans-serif;
    opacity: 0.85;
}

.domain-search-container .btn-primary {
    background: linear-gradient(135deg, #e2a543 0%, #d4881c 100%);
    box-shadow: 0 4px 16px rgba(212, 136, 28, 0.3);
}

.domain-search-container .btn-primary:hover {
    background: linear-gradient(135deg, #d4881c 0%, #b86c15 100%);
    box-shadow: 0 6px 24px rgba(212, 136, 28, 0.4);
}

.domain-search-container .form-control {
    border-radius: var(--rounding-md);
    padding: 0.625rem 1rem;
    border: 2px solid rgba(255, 255, 255, 0.2);
    background-color: rgba(255, 255, 255, 0.95);
}

.domain-search-container .form-control:focus {
    border-color: var(--accent-400);
    box-shadow: 0 0 0 3px rgba(226, 165, 67, 0.25);
}


/* ==========================================================================
   10. Breadcrumb
   ========================================================================== */

.master-breadcrumb {
    background-color: transparent;
    border-bottom: none;
    font-size: 0.875rem;
}

.master-breadcrumb .breadcrumb {
    background-color: transparent;
}

.master-breadcrumb a {
    color: var(--surface-700);
}

.master-breadcrumb a:hover {
    color: var(--primary);
}


/* ==========================================================================
   11. Tables
   ========================================================================== */

.table {
    border-radius: var(--rounding-md);
}

.table thead th {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--surface-700);
    background-color: var(--surface-50);
    border-bottom: 2px solid var(--surface-200);
    padding: 0.75rem 1rem;
}

.table td {
    padding: 0.75rem 1rem;
    border-color: var(--surface-200);
    vertical-align: middle;
}

.table-striped tbody tr:nth-of-type(odd) {
    background-color: rgba(250, 246, 240, 0.5);
}

.table-hover tbody tr:hover {
    background-color: var(--primary-50);
}


/* ==========================================================================
   12. Links
   ========================================================================== */

a {
    color: var(--primary);
    transition: color 0.15s ease;
}

a:hover {
    color: var(--primary-lifted);
}


/* ==========================================================================
   13. Badges & Status Labels
   ========================================================================== */

.badge {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 600;
    font-size: 0.7rem;
    letter-spacing: 0.02em;
    padding: 0.3em 0.65em;
    border-radius: 50rem;
}


/* ==========================================================================
   14. Forms — Rounded, Brand Focus Ring
   ========================================================================== */

.form-control {
    border-radius: var(--rounding-md);
    border-color: var(--surface-300);
    padding: 0.5rem 0.875rem;
    font-size: 0.9375rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background-color: #fff;
}

.form-control:focus {
    border-color: var(--primary-400);
    box-shadow: 0 0 0 3px rgba(127, 179, 93, 0.15);
}

.form-control::placeholder {
    color: var(--surface-400);
}

.input-group .form-control {
    border-radius: 0;
}

.input-group .form-control:first-child,
.input-group .input-group-prepend + .form-control {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

.input-group-prepend .btn {
    border-radius: var(--rounding-md) 0 0 var(--rounding-md);
}

.custom-select {
    border-radius: var(--rounding-md);
    border-color: var(--surface-300);
}

.custom-select:focus {
    border-color: var(--primary-400);
    box-shadow: 0 0 0 3px rgba(127, 179, 93, 0.15);
}

label {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--surface-700);
    margin-bottom: 0.375rem;
}


/* ==========================================================================
   15. Alerts — Branded with icon + content layout
   ========================================================================== */

/* Keep Bootstrap .alert base styles for any third-party usage */
.alert {
    border-radius: var(--rounding-lg);
    border: 1px solid;
    font-size: 0.9375rem;
}

.alert-success {
    background-color: #f0fdf4;
    border-color: #bbf7d0;
    color: #166534;
}

.alert-info {
    background-color: #eff6ff;
    border-color: #bfdbfe;
    color: #1e40af;
}

.alert-warning {
    background-color: #fffbeb;
    border-color: #fde68a;
    color: #92400e;
}

.alert-danger {
    background-color: #fef2f2;
    border-color: #fecaca;
    color: #991b1b;
}

/* Custom Stoute Alerts */
.stoute-alert {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    border-radius: var(--rounding-lg);
    border: 1px solid;
    margin-bottom: 1rem;
    font-size: 0.9375rem;
    line-height: 1.5;
}

.stoute-alert__icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.125rem;
    margin-top: 1px;
}

.stoute-alert__content {
    flex: 1;
    min-width: 0;
}

.stoute-alert__title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
}

.stoute-alert__message {
    font-size: 0.875rem;
    line-height: 1.5;
}

.stoute-alert__list {
    margin: 0.25rem 0 0;
    padding-left: 1.125rem;
    font-size: 0.875rem;
}

.stoute-alert__list li {
    margin-bottom: 0.125rem;
}

/* Success */
.stoute-alert--success {
    background-color: #f0fdf4;
    border-color: #bbf7d0;
    color: #166534;
}

.stoute-alert--success .stoute-alert__icon {
    color: #22c55e;
}

.stoute-alert--success .stoute-alert__title {
    color: #14532d;
}

/* Info */
.stoute-alert--info {
    background-color: #eff6ff;
    border-color: #bfdbfe;
    color: #1e40af;
}

.stoute-alert--info .stoute-alert__icon {
    color: #3b82f6;
}

.stoute-alert--info .stoute-alert__title {
    color: #1e3a8a;
}

/* Warning */
.stoute-alert--warning {
    background-color: #fffbeb;
    border-color: #fde68a;
    color: #92400e;
}

.stoute-alert--warning .stoute-alert__icon {
    color: #f59e0b;
}

.stoute-alert--warning .stoute-alert__title {
    color: #78350f;
}

/* Danger / Error */
.stoute-alert--danger {
    background-color: #fef2f2;
    border-color: #fecaca;
    color: #991b1b;
}

.stoute-alert--danger .stoute-alert__icon {
    color: #ef4444;
}

.stoute-alert--danger .stoute-alert__title {
    color: #7f1d1d;
}

/* Text-centered variant */
.stoute-alert.text-center {
    justify-content: center;
}

.stoute-alert.text-center .stoute-alert__content {
    flex: none;
}


/* ==========================================================================
   16. Modals
   ========================================================================== */

.modal-content {
    border-radius: var(--rounding-lg);
    border: 1px solid var(--surface-200);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.modal-header {
    border-bottom-color: var(--surface-200);
    padding: 1.25rem 1.5rem;
}

.modal-header .modal-title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
}

.modal-footer {
    border-top-color: var(--surface-200);
    padding: 1rem 1.5rem;
}


/* ==========================================================================
   17. Pagination
   ========================================================================== */

.page-link {
    border-radius: var(--rounding-sm);
    border-color: var(--surface-200);
    color: var(--surface-700);
    margin: 0 2px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 600;
    font-size: 0.875rem;
}

.page-link:hover {
    background-color: var(--primary-50);
    border-color: var(--primary-200);
    color: var(--primary);
}

.page-item.active .page-link {
    background: var(--brand-gradient);
    border-color: transparent;
    color: #fff;
}


/* ==========================================================================
   18. Footer — Matching stoutewebsolutions.com
   ========================================================================== */

footer.footer.stoute-footer {
    background-color: var(--surface-900);
    color: rgba(255, 255, 255, 0.6);
    padding: 0;
}

/* --- CTA Banner --- */
.stoute-footer-cta {
    background-color: var(--surface-950);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding: 3rem 0;
}

.stoute-footer-cta__heading {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 800;
    font-size: 1.5rem;
    color: #fff;
    margin: 0;
    letter-spacing: -0.03em;
}

.stoute-footer-cta__sub {
    color: rgba(255, 255, 255, 0.45);
    font-size: 0.875rem;
    margin: 0.375rem 0 0;
}

.stoute-footer-cta__btn {
    white-space: nowrap;
    padding: 0.75rem 1.75rem;
    font-size: 1rem;
    border-radius: var(--rounding-lg);
    box-shadow: 0 8px 24px rgba(73, 120, 44, 0.25);
}

/* --- Main Footer Grid --- */
.stoute-footer-main {
    padding: 3.5rem 0 2.5rem;
}

/* Logo */
.stoute-footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.stoute-footer-logo:hover {
    opacity: 0.9;
    text-decoration: none;
    color: inherit;
}

.stoute-footer-logo__icon {
    width: 40px;
    height: 40px;
    border-radius: var(--rounding-md);
    flex-shrink: 0;
}

.stoute-footer-logo__name {
    display: block;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 800;
    font-size: 1rem;
    color: #fff;
    line-height: 1.2;
}

.stoute-footer-logo__location {
    display: block;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 500;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.45);
    letter-spacing: 0.02em;
}

/* Description */
.stoute-footer-desc {
    margin-top: 1.25rem;
    max-width: 280px;
    font-size: 0.875rem;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.45);
}

/* Contact Info */
.stoute-footer-contact {
    margin-top: 1.5rem;
}

.stoute-footer-contact li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.45);
    margin-bottom: 0.625rem;
}

.stoute-footer-contact li i {
    color: var(--primary-400);
    width: 16px;
    text-align: center;
    flex-shrink: 0;
    font-size: 0.8rem;
}

.stoute-footer-contact li a {
    color: rgba(255, 255, 255, 0.45);
    text-decoration: none;
    transition: color 0.15s ease;
}

.stoute-footer-contact li a:hover {
    color: var(--primary-400);
}

/* Social Links */
.stoute-footer-social {
    margin-top: 1.75rem;
}

.stoute-footer-social__label {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 600;
    font-size: 0.6875rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.35);
    margin-bottom: 0.75rem;
}

.stoute-footer-social__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: var(--rounding-sm);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.45);
    text-decoration: none;
    transition: all 0.2s ease;
    font-size: 0.875rem;
}

.stoute-footer-social__link:hover {
    border-color: rgba(255, 255, 255, 0.2);
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--primary-300);
    text-decoration: none;
}

/* Also style any WHMCS social account icons injected via include */
footer.footer.stoute-footer .btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: var(--rounding-sm);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.45);
    padding: 0;
    transition: all 0.2s ease;
}

footer.footer.stoute-footer .btn-icon:hover {
    border-color: rgba(255, 255, 255, 0.2);
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--primary-300);
}

/* Link Columns */
.stoute-footer-heading {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 1rem;
}

.stoute-footer-links li {
    margin-bottom: 0.625rem;
}

.stoute-footer-links a {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.45);
    text-decoration: none;
    transition: color 0.15s ease;
}

.stoute-footer-links a:hover {
    color: var(--primary-400);
}

/* Language / Currency button */
.stoute-footer-lang-btn {
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.55);
    background: transparent;
    border-radius: var(--rounding-sm);
    font-size: 0.8125rem;
    padding: 0.35rem 0.75rem;
    transition: all 0.2s ease;
}

.stoute-footer-lang-btn:hover {
    border-color: rgba(255, 255, 255, 0.25);
    color: #fff;
    background-color: rgba(255, 255, 255, 0.04);
}

/* --- Bottom Bar --- */
.stoute-footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding: 1.25rem 0;
}

.stoute-footer-copyright {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.3);
    margin: 0;
}

.stoute-footer-legal {
    margin: 0;
}

.stoute-footer-legal a {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.3);
    text-decoration: none;
    transition: color 0.15s ease;
}

.stoute-footer-legal a:hover {
    color: var(--primary-400);
}

.stoute-footer-legal .list-inline-item:not(:last-child) {
    margin-right: 1rem;
}

/* Back to Top button */
.stoute-footer-totop {
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.4);
    background: transparent;
    border-radius: var(--rounding-md);
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 500;
    font-size: 0.8125rem;
    padding: 0.35rem 0.875rem;
    transition: all 0.2s ease;
}

.stoute-footer-totop:hover {
    border-color: var(--primary-400);
    color: var(--primary-400);
    background: transparent;
}

.stoute-footer-totop i {
    transition: transform 0.2s ease;
}

.stoute-footer-totop:hover i {
    transform: translateY(-2px);
}


/* ==========================================================================
   19. Popover & Tooltip
   ========================================================================== */

.popover {
    border-radius: var(--rounding-md);
    border-color: var(--surface-200);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.tooltip-inner {
    border-radius: var(--rounding-sm);
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 500;
    font-size: 0.8125rem;
}


/* ==========================================================================
   20. Scroll Progress Bar
   ========================================================================== */

.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, #7fb35d, #49782c);
    z-index: 9999;
    transition: transform 0.1s linear;
}


/* ==========================================================================
   21. Utility Classes
   ========================================================================== */

.bg-brand-gradient {
    background: var(--brand-gradient);
}

.bg-brand-subtle {
    background: linear-gradient(135deg, #f4f8f1 0%, #e5f0dc 100%);
}

.bg-surface-warm {
    background-color: var(--surface-50);
}

.text-accent {
    color: var(--accent-500);
}

.text-brand {
    color: var(--primary);
}

.text-gradient {
    background: linear-gradient(135deg, #a7cb8a 0%, #5e9639 50%, #395e23 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.border-brand {
    border-color: var(--primary-200);
}


/* ==========================================================================
   22. Outline & Link Buttons
   Parent uses body #main-body .btn-outline-primary (high specificity)
   ========================================================================== */

/* Match parent specificity: body #main-body prefix */
body #main-body .btn-outline-primary {
    color: var(--primary);
    border: 1px solid var(--primary-300);
    background-color: transparent;
    border-radius: var(--rounding-md);
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 600;
    transition: all 0.2s ease;
}

body #main-body .btn-outline-primary:hover {
    color: #fff;
    background: var(--brand-gradient);
    border-color: transparent;
    box-shadow: 0 2px 8px rgba(73, 120, 44, 0.25);
}

.btn-outline-primary:focus,
.btn-outline-primary.focus {
    box-shadow: 0 0 0 3px rgba(127, 179, 93, 0.2);
}

.btn-outline-primary:not(:disabled):not(.disabled):active,
.btn-outline-primary:not(:disabled):not(.disabled).active,
.show > .btn-outline-primary.dropdown-toggle {
    color: #fff;
    background-color: var(--primary-lifted);
    border-color: var(--primary-lifted);
}

.btn-link {
    color: var(--primary);
}

.btn-link:hover {
    color: var(--primary-lifted);
}

/* Default/outline buttons — warm border with brand hover */
.btn-default {
    color: var(--surface-700);
    background-color: #fff;
    border-color: var(--surface-300);
    border-radius: var(--rounding-md);
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 600;
    transition: all 0.2s ease;
}

.btn-default:hover {
    color: var(--primary);
    background-color: var(--primary-50);
    border-color: var(--primary-300);
}


/* ==========================================================================
   23. Client Home Dashboard Cards
   ========================================================================== */

.client-home-cards .card,
.client-home-cards .mc-promo-manage,
.client-home-cards .mc-promo-login {
    border: 1px solid var(--surface-200);
    border-radius: var(--rounding-lg);
    overflow: hidden;
}

.client-home-cards .card-header {
    background-color: #fff;
    padding: 1rem 1.25rem;
}

.client-home-cards .card-header .btn {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 600;
    font-size: 0.8125rem;
    border-radius: var(--rounding-sm);
    padding: 0.25rem 0.75rem;
    color: var(--primary);
    border: 1px solid var(--primary-200);
    background-color: var(--primary-50);
}

.client-home-cards .card-header .btn:hover {
    color: #fff;
    background: var(--brand-gradient);
    border-color: transparent;
}

.client-home-cards .list-group {
    border-top: 1px solid var(--surface-200) !important;
    border-bottom: 1px solid var(--surface-200) !important;
}

.client-home-cards .list-group .list-group-item {
    border-bottom: 1px solid var(--surface-200);
    padding: 0.5rem 1rem;
}

.client-home-cards .list-group .list-group-item:hover {
    background-color: var(--primary-50);
}

.client-home-cards .card-footer {
    background-color: var(--surface-50);
}


/* ==========================================================================
   24. Sidebar — Override Parent Specificity
   ========================================================================== */

.sidebar .card-sidebar {
    border: 1px solid var(--surface-200);
    border-radius: var(--rounding-lg);
    overflow: hidden;
}

.sidebar .card-header {
    background-color: var(--surface-50);
    padding: 12px 16px;
    border-bottom: 1px solid var(--surface-200);
}

.sidebar .card-title,
.sidebar .card-sidebar .panel-title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--surface-700);
}

.sidebar .list-group-item {
    border: none;
    border-bottom: 1px solid var(--surface-200);
    color: var(--surface-700);
    padding: 0.625rem 1rem;
    transition: all 0.15s ease;
}

.sidebar .list-group-item:last-child {
    border-bottom: none;
}

.sidebar .list-group-item:hover {
    background-color: var(--primary-50);
    color: var(--primary);
}

.sidebar .list-group-item.active,
.sidebar .list-group-item.active:hover,
.sidebar .list-group-item.active:focus {
    background: var(--brand-gradient);
    color: #fff;
    border-color: transparent;
}

.sidebar .card-footer {
    background-color: var(--surface-50);
    border-top: 1px solid var(--surface-200);
}


/* ==========================================================================
   25. Card Accent Borders — Brand Green Instead of Random Colors
   ========================================================================== */

.sidebar .card-sidebar {
    border-top: 3px solid var(--primary-400);
}


/* ==========================================================================
   26. Hardcoded Background Overrides
   Bootstrap compiles gray backgrounds as hex, not CSS variables.
   ========================================================================== */

/* Main content area — already uses var(--bg-lifted) which we override */
section#main-body {
    background-color: var(--bg-lifted);
}

/* Override Bootstrap's hardcoded .bg-light */
.bg-light {
    background-color: var(--surface-50) !important;
}

/* Hardcoded #fff backgrounds on cards/inputs — warm them */
.card,
.panel,
.mc-promo-manage,
.mc-promo-login {
    background-color: #fff;
}

/* Override Bootstrap's hardcoded table striping */
.table-striped tbody tr:nth-of-type(odd) {
    background-color: var(--surface-50);
}


/* ==========================================================================
   27. Stat Counter Cards (Dashboard Top Row)
   ========================================================================== */

.client-home-panels .card .card-body {
    padding: 1rem 1.25rem;
}

.client-home-panels .card .card-body .h1,
.client-home-panels .card .card-body .h2,
.client-home-panels .card .card-body h1,
.client-home-panels .card .card-body h2 {
    color: var(--primary);
    font-weight: 800;
}

.client-home-panels .card .card-body i,
.client-home-panels .card .card-body .fas,
.client-home-panels .card .card-body .far,
.client-home-panels .card .card-body .fal {
    color: var(--surface-400);
}


/* ==========================================================================
   28. Action Icon Buttons (e.g. service detail page)
   ========================================================================== */

body #main-body .action-icon-btns a {
    border-radius: var(--rounding-md);
    border: 1px solid var(--surface-200);
    color: var(--surface-700);
    transition: all 0.15s ease;
}

body #main-body .action-icon-btns a:hover {
    border-color: var(--primary-300);
    color: var(--primary);
    background-color: var(--primary-50);
}


/* ==========================================================================
   29. Hardcoded Gray Border Overrides
   Bootstrap compiles borders as hex (#dee2e6, #ced4da, #ccc, #ddd).
   Replace all with warm equivalents.
   ========================================================================== */

/* List groups — Bootstrap hardcodes #dee2e6 */
.list-group-item {
    border-color: var(--surface-200);
}

/* Card borders — catch anything missed */
.card {
    border-color: var(--surface-200);
}

/* Input group addons */
.input-group-text {
    border-color: var(--surface-300);
    background-color: var(--surface-50);
    color: var(--surface-700);
    border-radius: var(--rounding-md);
}

/* Dropdown menus */
.dropdown-menu {
    border-color: var(--surface-200);
    border-radius: var(--rounding-md);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.dropdown-item:hover,
.dropdown-item:focus {
    background-color: var(--primary-50);
    color: var(--primary);
}

.dropdown-divider {
    border-top-color: var(--surface-200);
}

/* Nav tabs & pills */
.nav-tabs {
    border-bottom-color: var(--surface-200);
}

.nav-tabs .nav-link {
    border-radius: var(--rounding-sm) var(--rounding-sm) 0 0;
}

.nav-tabs .nav-link.active,
.nav-tabs .nav-item.show .nav-link {
    border-color: var(--surface-200) var(--surface-200) #fff;
    color: var(--primary);
}

.nav-tabs .nav-link:hover {
    border-color: var(--surface-200) var(--surface-200) var(--surface-200);
}

.nav-pills .nav-link.active {
    background: var(--brand-gradient);
}

/* Horizontal rules */
hr {
    border-top-color: var(--surface-200);
}

/* Well / jumbotron backgrounds */
.jumbotron {
    background-color: var(--surface-50);
    border-radius: var(--rounding-lg);
}

/* Catch-all: any border-bottom/top using Bootstrap defaults */
.border,
.border-top,
.border-bottom,
.border-left,
.border-right {
    border-color: var(--surface-200) !important;
}

/* Bootstrap info/secondary backgrounds */
.bg-secondary {
    background-color: var(--surface-200) !important;
}

/* Progress bars */
.progress {
    background-color: var(--surface-100);
    border-radius: var(--rounding-md);
}

.progress-bar {
    background: var(--brand-gradient);
}

/* Close buttons — soften */
.close {
    color: var(--surface-700);
    opacity: 0.6;
}

.close:hover {
    color: var(--surface-950);
    opacity: 1;
}

/* Success/info/warning btn outlines — warm borders */
.btn-outline-success {
    color: #166534;
    border-color: #86efac;
}

.btn-outline-success:hover {
    background-color: #166534;
    border-color: #166534;
    color: #fff;
}

.btn-info {
    background-color: var(--primary-500);
    border-color: var(--primary-500);
}

.btn-info:hover {
    background-color: var(--primary-600);
    border-color: var(--primary-600);
}

/* Badge colors — brand aligned */
.badge-primary {
    background: var(--brand-gradient);
}

.badge-success {
    background-color: #166534;
}

.badge-warning {
    background-color: var(--accent-500);
    color: #fff;
}

.badge-info {
    background-color: var(--primary-400);
}


/* ==========================================================================
   30. Auth Pages (Login / Register)
   ========================================================================== */

.stoute-auth-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 50vh;
    padding: 2rem 0;
}

.stoute-auth-card {
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
}

.stoute-auth-logo {
    text-align: center;
    margin-bottom: 1.5rem;
}

.stoute-auth-logo__icon {
    width: 40px;
    height: 40px;
    border-radius: var(--rounding-md);
}

.stoute-auth-heading {
    text-align: center;
    margin-bottom: 2rem;
}

.stoute-auth-heading__title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
    font-size: 1.375rem;
    color: var(--surface-950);
    margin: 0 0 0.375rem;
    letter-spacing: -0.02em;
}

.stoute-auth-heading__sub {
    font-size: 0.875rem;
    color: var(--surface-400);
    margin: 0;
}

.stoute-auth-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.stoute-auth-field label {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 600;
    font-size: 0.8125rem;
    color: var(--surface-700);
    margin-bottom: 0.375rem;
}

.stoute-auth-field .form-control {
    padding: 0.625rem 0.875rem;
    border-radius: var(--rounding-md);
    border-color: var(--surface-300);
    font-size: 0.9375rem;
}

.stoute-auth-field .form-control:focus {
    border-color: var(--primary-400);
    box-shadow: 0 0 0 3px rgba(127, 179, 93, 0.15);
}

.stoute-auth-forgot {
    font-size: 0.8125rem;
    color: var(--surface-400);
    text-decoration: none;
    transition: color 0.15s ease;
}

.stoute-auth-forgot:hover {
    color: var(--primary);
}

.stoute-auth-remember {
    display: flex;
    align-items: center;
}

.stoute-auth-remember label {
    font-size: 0.875rem;
    font-weight: 400;
    color: var(--surface-700);
    margin: 0;
    cursor: pointer;
}

.stoute-auth-submit {
    margin-top: 0.5rem;
    padding: 0.625rem 1.25rem;
    font-size: 0.9375rem;
}

.stoute-auth-footer {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--surface-200);
    font-size: 0.875rem;
    color: var(--surface-400);
}

.stoute-auth-footer a {
    font-weight: 600;
    color: var(--primary);
    margin-left: 0.25rem;
}

.stoute-auth-footer a:hover {
    color: var(--primary-lifted);
}

.stoute-auth-captcha {
    margin: 0;
}


/* ==========================================================================
   31. Header — Brand Bar & Logo
   ========================================================================== */

.stoute-header__brand-bar {
    background-color: #fff;
    border-bottom: 1px solid var(--surface-100);
}

.stoute-header__logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.stoute-header__logo:hover {
    text-decoration: none;
}

.stoute-header__logo-icon {
    width: 36px;
    height: 36px;
    border-radius: var(--rounding-sm);
    flex-shrink: 0;
}

.stoute-header__logo-text {
    display: flex;
    align-items: center;
}

.stoute-header__logo-text .logo-img {
    max-height: 32px;
    width: auto;
}

.stoute-header__logo-name {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 800;
    font-size: 1.125rem;
    color: var(--surface-950);
    letter-spacing: -0.02em;
}

.stoute-header__search .form-control {
    border-radius: 0 var(--rounding-md) var(--rounding-md) 0;
}

.stoute-header__search .btn {
    border-radius: var(--rounding-md) 0 0 var(--rounding-md);
}

/* Cart badge — brand green */
header.header .cart-btn .badge {
    background: var(--brand-gradient);
    color: #fff;
}


/* ==========================================================================
   32. Dashboard Stat Tiles
   ========================================================================== */

.stoute-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: #fff;
    border: 1px solid var(--surface-200);
    border-radius: var(--rounding-lg);
    padding: 1.5rem 1rem;
    text-decoration: none;
    color: var(--surface-700);
    transition: all 0.2s ease;
    height: 100%;
}

.stoute-tile:hover {
    text-decoration: none;
    border-color: var(--primary-300);
    box-shadow: 0 4px 20px rgba(73, 120, 44, 0.1);
    transform: translateY(-2px);
    color: var(--surface-700);
}

.stoute-tile__icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--rounding-md);
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

/* Service tile — brand green */
.stoute-tile--services .stoute-tile__icon {
    background-color: var(--primary-50);
    color: var(--primary);
}

/* Domain tile — blue tinted */
.stoute-tile--domains .stoute-tile__icon {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    color: #2563eb;
}

/* Tickets tile — amber */
.stoute-tile--tickets .stoute-tile__icon {
    background: linear-gradient(135deg, #fffbeb 0%, #fde68a 100%);
    color: var(--accent-600);
}

/* Invoices tile — warm red */
.stoute-tile--invoices .stoute-tile__icon {
    background: linear-gradient(135deg, #fef2f2 0%, #fecaca 100%);
    color: #dc2626;
}

.stoute-tile__stat {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 800;
    font-size: 2rem;
    line-height: 1;
    color: var(--surface-950);
    margin-bottom: 0.25rem;
    letter-spacing: -0.03em;
}

.stoute-tile:hover .stoute-tile__stat {
    color: var(--primary);
}

.stoute-tile__label {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--surface-400);
}

/* Hide parent theme .tiles if still present */
.tiles .tile {
    display: none;
}


/* ==========================================================================
   33. Dashboard Cards — Refined
   ========================================================================== */

.stoute-dash-card {
    border: 1px solid var(--surface-200);
    border-radius: var(--rounding-lg);
    overflow: hidden;
    margin-bottom: 1.25rem;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
    transition: box-shadow 0.2s ease;
}

.stoute-dash-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.stoute-dash-card .card-header {
    background-color: #fff;
    border-bottom: 1px solid var(--surface-200);
    padding: 1rem 1.25rem;
}

.stoute-dash-card .card-header .card-title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
    font-size: 0.9375rem;
    color: var(--surface-950);
}

.stoute-dash-card__action {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 600;
    font-size: 0.75rem;
    border-radius: var(--rounding-sm);
    padding: 0.25rem 0.75rem;
    color: var(--primary);
    border: 1px solid var(--primary-200);
    background-color: var(--primary-50);
    transition: all 0.15s ease;
}

.stoute-dash-card__action:hover {
    color: #fff;
    background: var(--brand-gradient);
    border-color: transparent;
}

.stoute-dash-card .list-group-item {
    border-color: var(--surface-100);
    padding: 0.625rem 1.25rem;
    font-size: 0.9375rem;
    transition: background-color 0.15s ease;
}

.stoute-dash-card .list-group-item:hover {
    background-color: var(--primary-50);
}

.stoute-dash-card .list-group-item .badge {
    font-size: 0.7rem;
}

.stoute-dash-card .card-footer {
    background-color: var(--surface-50);
    border-top: 1px solid var(--surface-100);
    padding: 0.625rem 1.25rem;
}

/* Override parent's hardcoded bg-color-* classes on action buttons */
.stoute-dash-cards .bg-color-blue,
.stoute-dash-cards .bg-color-green,
.stoute-dash-cards .bg-color-red,
.stoute-dash-cards .bg-color-gold {
    background-color: transparent !important;
}

/* Override parent's card-accent-* borders */
.stoute-dash-card[class*="card-accent-"] {
    border-top: 3px solid var(--primary-400);
}


/* ==========================================================================
   34. Homepage — Product Cards
   ========================================================================== */

.stoute-section-heading h2 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--surface-950);
    letter-spacing: -0.03em;
}

.stoute-product-card {
    background: #fff;
    border: 1px solid var(--surface-200);
    border-radius: var(--rounding-lg);
    height: 100%;
    transition: all 0.2s ease;
    overflow: hidden;
}

.stoute-product-card:hover {
    border-color: var(--primary-300);
    box-shadow: 0 8px 30px rgba(73, 120, 44, 0.1);
    transform: translateY(-2px);
}

.stoute-product-card__body {
    padding: 2rem 1.5rem;
    text-align: center;
}

.stoute-product-card__title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
    font-size: 1.125rem;
    color: var(--surface-950);
    margin-bottom: 0.5rem;
}

.stoute-product-card__desc {
    font-size: 0.9375rem;
    color: var(--surface-400);
    margin-bottom: 1.25rem;
    line-height: 1.5;
}

.stoute-product-card .btn-primary {
    border-radius: var(--rounding-md);
}


/* ==========================================================================
   35. Homepage — Action Icon Grid
   ========================================================================== */

.stoute-action-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: #fff;
    border: 1px solid var(--surface-200);
    border-radius: var(--rounding-lg);
    padding: 1.75rem 1rem;
    text-decoration: none;
    color: var(--surface-700);
    transition: all 0.2s ease;
    height: 100%;
}

.stoute-action-card:hover {
    text-decoration: none;
    color: var(--primary);
    border-color: var(--primary-300);
    box-shadow: 0 4px 20px rgba(73, 120, 44, 0.1);
    transform: translateY(-2px);
}

.stoute-action-card__icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--rounding-lg);
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    transition: transform 0.2s ease;
}

.stoute-action-card:hover .stoute-action-card__icon {
    transform: scale(1.05);
}

.stoute-action-card__icon--brand {
    background: linear-gradient(135deg, var(--primary-50) 0%, var(--primary-100) 100%);
    color: var(--primary);
}

.stoute-action-card__icon--accent {
    background: linear-gradient(135deg, #fffbeb 0%, #fde68a 100%);
    color: var(--accent-600);
}

.stoute-action-card__icon--warm {
    background: linear-gradient(135deg, #fff7ed 0%, #fed7aa 100%);
    color: #ea580c;
}

.stoute-action-card__icon--muted {
    background: linear-gradient(135deg, var(--surface-50) 0%, var(--surface-200) 100%);
    color: var(--surface-700);
}

.stoute-action-card__label {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 600;
    font-size: 0.8125rem;
    letter-spacing: -0.01em;
}


/* ==========================================================================
   36. Invoice Page
   ========================================================================== */

.stoute-invoice-page {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: #fefcf9;
    -webkit-font-smoothing: antialiased;
}

.stoute-invoice {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
}

.stoute-invoice__header {
    padding-bottom: 1.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid #ebe3d9;
}

.stoute-invoice__brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
    justify-content: center;
}

@media (min-width: 576px) {
    .stoute-invoice__brand {
        justify-content: flex-start;
    }
}

.stoute-invoice__logo-icon {
    width: 32px;
    height: 32px;
    border-radius: 0.5rem;
}

.stoute-invoice__company-logo {
    max-height: 36px;
    width: auto;
}

.stoute-invoice__company-name {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 800;
    font-size: 1.25rem;
    color: #1a1a2e;
}

.stoute-invoice__title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    color: #5e504a;
    margin: 0;
}

/* Status Badges */
.stoute-badge {
    display: inline-block;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
    font-size: 0.8125rem;
    padding: 0.5rem 1.25rem;
    border-radius: 50rem;
    letter-spacing: 0.02em;
}

.stoute-badge--paid {
    background-color: #f0fdf4;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.stoute-badge--unpaid {
    background-color: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.stoute-badge--draft {
    background-color: #faf6f0;
    color: #5e504a;
    border: 1px solid #ebe3d9;
}

.stoute-badge--refunded {
    background-color: #eff6ff;
    color: #1e40af;
    border: 1px solid #bfdbfe;
}

.stoute-badge--cancelled {
    background-color: #faf6f0;
    color: #78716c;
    border: 1px solid #ebe3d9;
}

.stoute-badge--collections {
    background-color: #fffbeb;
    color: #92400e;
    border: 1px solid #fde68a;
}

.stoute-invoice__due {
    font-size: 0.875rem;
    color: #5e504a;
    margin-top: 0.5rem;
}

/* Details sections */
.stoute-invoice__details,
.stoute-invoice__meta {
    padding: 1rem 0;
    border-bottom: 1px solid #ebe3d9;
}

.stoute-invoice__detail-label {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #5e504a;
    margin-bottom: 0.25rem;
}

.stoute-invoice__address {
    font-size: 0.875rem;
    color: #78716c;
    line-height: 1.6;
    margin-bottom: 0;
}

.stoute-invoice__meta-value {
    font-size: 0.875rem;
    color: #78716c;
}

/* Line Items & Ledger */
.stoute-invoice__items,
.stoute-invoice__ledger,
.stoute-invoice__credit {
    border: 1px solid #ebe3d9;
    border-radius: 0.75rem;
    overflow: hidden;
}

.stoute-invoice__items .card-header,
.stoute-invoice__ledger .card-header,
.stoute-invoice__credit .card-header {
    background-color: #faf6f0;
    border-bottom: 1px solid #ebe3d9;
    padding: 0.75rem 1rem;
}

.stoute-invoice__items .card-header .card-title,
.stoute-invoice__ledger .card-header .card-title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
    font-size: 0.875rem;
    color: #1a1a2e;
}

.stoute-invoice__items .table td,
.stoute-invoice__ledger .table td {
    border-color: #ebe3d9;
    font-size: 0.875rem;
    padding: 0.625rem 1rem;
}

.stoute-invoice__items .table thead td,
.stoute-invoice__ledger .table thead td {
    background-color: transparent;
    font-size: 0.75rem;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #5e504a;
}

.stoute-invoice__subtotal-row td {
    border-top: 2px solid #ebe3d9 !important;
}

.stoute-invoice__total-row td {
    background-color: #faf6f0;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
    border-top: 2px solid #ebe3d9 !important;
}

.stoute-invoice__tax-note {
    font-size: 0.8125rem;
    color: #78716c;
    margin-top: 0.5rem;
}

/* Action buttons */
.stoute-invoice__actions {
    text-align: right;
    margin-top: 1rem;
}

.stoute-invoice__actions .btn {
    border-radius: 0.5rem;
}


/* ==========================================================================
   37. Support Ticket — Department Selector
   ========================================================================== */

.stoute-ticket-select {
    max-width: 700px;
}

.stoute-section-title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--surface-950);
    margin-bottom: 0.25rem;
    letter-spacing: -0.02em;
}

.stoute-section-sub {
    font-size: 0.9375rem;
    color: var(--surface-400);
    margin-bottom: 0;
}

.stoute-dept-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
    background: #fff;
    border: 1px solid var(--surface-200);
    border-radius: var(--rounding-lg);
    text-decoration: none;
    color: var(--surface-700);
    transition: all 0.2s ease;
    height: 100%;
}

.stoute-dept-card:hover {
    text-decoration: none;
    color: var(--primary);
    border-color: var(--primary-300);
    box-shadow: 0 4px 16px rgba(73, 120, 44, 0.1);
    transform: translateY(-1px);
}

.stoute-dept-card__icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--rounding-md);
    background: linear-gradient(135deg, var(--primary-50) 0%, var(--primary-100) 100%);
    color: var(--primary);
    font-size: 1.125rem;
    flex-shrink: 0;
}

.stoute-dept-card__content {
    flex: 1;
    min-width: 0;
}

.stoute-dept-card__name {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
    font-size: 0.9375rem;
    margin: 0 0 0.125rem;
    color: var(--surface-950);
}

.stoute-dept-card:hover .stoute-dept-card__name {
    color: var(--primary);
}

.stoute-dept-card__desc {
    font-size: 0.8125rem;
    color: var(--surface-400);
    margin: 0;
    line-height: 1.4;
}

.stoute-dept-card__arrow {
    color: var(--surface-300);
    font-size: 0.75rem;
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

.stoute-dept-card:hover .stoute-dept-card__arrow {
    color: var(--primary);
    transform: translateX(3px);
}


/* ==========================================================================
   38. Support Ticket — View/Conversation
   ========================================================================== */

.stoute-ticket {
    border: 1px solid var(--surface-200);
    border-radius: var(--rounding-lg);
    overflow: hidden;
}

.stoute-ticket__header {
    background: #fff;
    border-bottom: 1px solid var(--surface-200);
}

.stoute-ticket__title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
    font-size: 1.125rem;
    color: var(--surface-950);
    margin: 0;
    letter-spacing: -0.02em;
}

.stoute-ticket__id {
    color: var(--surface-400);
    font-weight: 600;
    margin-right: 0.375rem;
}

.stoute-ticket__actions .btn {
    border-radius: var(--rounding-sm);
}

/* Message Thread */
.stoute-ticket__message {
    border-bottom: 1px solid var(--surface-100);
    padding: 0;
}

.stoute-ticket__message:last-of-type {
    border-bottom: none;
}

.stoute-ticket__message-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1.25rem;
    background-color: var(--surface-50);
    border-bottom: 1px solid var(--surface-100);
}

.stoute-ticket__message--staff .stoute-ticket__message-header {
    background-color: #f0fdf4;
    border-bottom-color: #dcfce7;
}

.stoute-ticket__poster {
    display: flex;
    align-items: center;
    gap: 0.625rem;
}

.stoute-ticket__avatar {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: var(--surface-200);
    color: var(--surface-700);
    font-size: 0.75rem;
    flex-shrink: 0;
}

.stoute-ticket__avatar--staff {
    background: var(--brand-gradient);
    color: #fff;
}

.stoute-ticket__poster-name {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--surface-950);
}

.stoute-ticket__poster-type {
    display: inline-block;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 600;
    font-size: 0.6875rem;
    padding: 0.125rem 0.5rem;
    border-radius: 50rem;
    margin-left: 0.375rem;
}

.stoute-ticket__poster-type--owner,
.stoute-ticket__poster-type--client {
    background-color: var(--surface-100);
    color: var(--surface-700);
}

.stoute-ticket__poster-type--operator {
    background-color: #dcfce7;
    color: #166534;
}

.stoute-ticket__date {
    font-size: 0.75rem;
    color: var(--surface-400);
    white-space: nowrap;
}

.stoute-ticket__message-body {
    padding: 1rem 1.25rem;
    font-size: 0.9375rem;
    line-height: 1.65;
    color: var(--surface-700);
}

.stoute-ticket__ip {
    margin-top: 1rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--surface-100);
    font-size: 0.75rem;
    color: var(--surface-400);
}

.stoute-ticket__rating {
    margin-top: 1rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--surface-100);
}

.stoute-ticket__attachments {
    padding: 0.75rem 1.25rem;
    background-color: var(--surface-50);
    border-top: 1px solid var(--surface-100);
    font-size: 0.8125rem;
}

/* Reply card */
.stoute-ticket__reply {
    border: 1px solid var(--surface-200);
    border-radius: var(--rounding-lg);
    margin-top: 1.25rem;
}


/* ==========================================================================
   39. Registration Page
   ========================================================================== */

.stoute-register {
    max-width: 680px;
    margin: 0 auto;
}

.stoute-register__card {
    border: 1px solid var(--surface-200);
    border-radius: var(--rounding-lg);
    overflow: hidden;
}

.stoute-register__card .card-body {
    padding: 1.5rem;
}

.stoute-register__card-title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    color: var(--surface-950);
    margin-bottom: 1.25rem;
    letter-spacing: -0.01em;
}

/* Remove parent's prepend-icon absolute positioning mess */
.stoute-register .prepend-icon .field-icon {
    display: none;
}

.stoute-register .form-group label {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 600;
    font-size: 0.8125rem;
    color: var(--surface-700);
    margin-bottom: 0.375rem;
}

.stoute-register .form-control,
.stoute-register .field {
    border-radius: var(--rounding-md);
    border-color: var(--surface-300);
    padding: 0.5rem 0.875rem;
    font-size: 0.9375rem;
    width: 100%;
}

.stoute-register .form-control:focus,
.stoute-register .field:focus {
    border-color: var(--primary-400);
    box-shadow: 0 0 0 3px rgba(127, 179, 93, 0.15);
}


/* ==========================================================================
   41. Status Labels — Brand-Aligned Service & Invoice Statuses
   ========================================================================== */

.label.status,
span.label.status {
    display: inline-block;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 600;
    font-size: 0.7rem;
    letter-spacing: 0.02em;
    padding: 0.35em 0.75em;
    border-radius: 50rem;
    text-transform: capitalize;
}

/* Active / Paid — green */
.label.status-active,
.label.status-paid {
    background-color: #dcfce7;
    color: #166534;
}

/* Pending / Unpaid — amber */
.label.status-pending,
.label.status-unpaid,
.label.status-payment-pending {
    background-color: #fef3c7;
    color: #92400e;
}

/* Suspended / Overdue — red */
.label.status-suspended,
.label.status-overdue {
    background-color: #fecaca;
    color: #991b1b;
}

/* Terminated / Cancelled / Refunded — gray */
.label.status-terminated,
.label.status-cancelled,
.label.status-refunded,
.label.status-draft {
    background-color: var(--surface-100);
    color: var(--surface-700);
}

/* Fraud / Collections — dark red */
.label.status-fraud,
.label.status-collections {
    background-color: #991b1b;
    color: #fff;
}


/* ==========================================================================
   42. DataTables — Warm Styling
   ========================================================================== */

/* Search input */
.dataTables_filter input {
    border-radius: var(--rounding-md) !important;
    border: 1px solid var(--surface-300) !important;
    padding: 0.375rem 0.75rem !important;
    font-size: 0.875rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.dataTables_filter input:focus {
    border-color: var(--primary-400) !important;
    box-shadow: 0 0 0 3px rgba(127, 179, 93, 0.15) !important;
    outline: none;
}

/* Length select */
.dataTables_length select {
    border-radius: var(--rounding-md) !important;
    border: 1px solid var(--surface-300) !important;
    padding: 0.25rem 0.5rem;
}

/* Info text */
.dataTables_info {
    font-size: 0.8125rem;
    color: var(--surface-400);
    padding-top: 0.75rem;
}

/* Clickable table rows */
.table-list tbody tr[onclick] {
    cursor: pointer;
    transition: background-color 0.15s ease;
}

.table-list tbody tr[onclick]:hover {
    background-color: var(--primary-50);
}

/* View filter buttons (status filters) */
.view-filter-btns .list-group-item {
    border-radius: var(--rounding-sm);
    font-size: 0.8125rem;
    margin-bottom: 2px;
}

.view-filter-btns .list-group-item.active {
    background: var(--brand-gradient);
    border-color: var(--primary);
    color: #fff;
}

.view-filter-btns .list-group-item .badge {
    background-color: var(--accent-500);
    color: #fff;
}


/* ==========================================================================
   43. Password Reset — Auth-Style Centering
   ========================================================================== */

.mw-540 {
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
    border-radius: var(--rounding-lg);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}


/* ==========================================================================
   44. Card Titles — Consistent Heading Style
   ========================================================================== */

.card-title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
    font-size: 1.125rem;
    color: var(--surface-950);
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
}

.card-body h3.card-title {
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--surface-200);
    margin-bottom: 1.25rem;
}


/* ==========================================================================
   45. Account Details Page Refinements
   ========================================================================== */

/* Ensure multi-column form layout looks clean */
.card-body .form-group label.col-form-label {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 600;
    font-size: 0.8125rem;
    color: var(--surface-700);
}

/* Checkbox styling */
.form-check-input {
    margin-top: 0.35rem;
}

.form-check-input:checked {
    accent-color: var(--primary);
}


/* ==========================================================================
   46. Announcements — Refined Typography
   ========================================================================== */

.card-body h1 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

.card-body .list-inline .list-inline-item {
    font-size: 0.8125rem;
}


/* ==========================================================================
   47. Ticket Submit (Step Two) — Extra Padding & Polish
   ========================================================================== */

.card-body.extra-padding {
    padding: 1.75rem;
}

.markdown-editor {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 0.9375rem;
    line-height: 1.6;
}

/* Custom file upload styling */
.custom-file-label {
    border-radius: var(--rounding-md);
    border-color: var(--surface-300);
    color: var(--surface-700);
    font-size: 0.875rem;
}

.custom-file-label::after {
    border-radius: 0 var(--rounding-md) var(--rounding-md) 0;
    background-color: var(--surface-50);
    border-color: var(--surface-300);
    color: var(--surface-700);
}

.custom-file-input:focus ~ .custom-file-label {
    border-color: var(--primary-400);
    box-shadow: 0 0 0 3px rgba(127, 179, 93, 0.15);
}


/* ==========================================================================
   48. Payment Methods — Form Row Alignment
   ========================================================================== */

.frm-credit-card-input .form-group.row label.control-label {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 600;
    font-size: 0.8125rem;
    color: var(--surface-700);
    padding-top: 0.5rem;
}

.frm-credit-card-input .field-error-msg {
    font-size: 0.75rem;
    color: #dc2626;
    margin-top: 0.25rem;
    display: none;
}

.frm-credit-card-input .has-error .field-error-msg {
    display: block;
}

.frm-credit-card-input .has-error .form-control {
    border-color: #dc2626;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

/* iCheck radio button alignment */
.form-check.form-check-inline {
    margin-right: 1rem;
}


/* ==========================================================================
   49. Table Containers — Wrap & Loading Spinner
   ========================================================================== */

.table-container {
    background: #fff;
    border-radius: var(--rounding-lg);
    overflow: hidden;
    border: 1px solid var(--surface-200);
}

.table-container .table {
    margin-bottom: 0;
}

#tableLoading {
    padding: 2rem;
    color: var(--surface-400);
}

#tableLoading .fa-spinner {
    color: var(--primary);
}


/* ==========================================================================
   50. Responsive
   ========================================================================== */

@media (max-width: 1199.98px) {
    header.header .main-navbar-wrapper .navbar-nav a {
        padding: 0.625rem 1rem;
    }
}

@media (max-width: 767.98px) {
    .stoute-tile {
        padding: 1rem 0.75rem;
    }

    .stoute-tile__stat {
        font-size: 1.5rem;
    }

    .stoute-tile__icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .stoute-action-card {
        padding: 1.25rem 0.75rem;
    }

    .stoute-action-card__icon {
        width: 44px;
        height: 44px;
        font-size: 1.25rem;
    }
}

@media (max-width: 575.98px) {
    .btn-primary,
    .btn-accent,
    .btn-cta {
        padding: 0.5rem 1rem;
    }

    .stoute-footer-cta {
        text-align: center;
        padding: 2rem 0;
    }

    .stoute-footer-cta__heading {
        font-size: 1.25rem;
    }

    .stoute-footer-bottom .d-flex {
        flex-direction: column;
        gap: 0.75rem;
        text-align: center;
    }

    .stoute-auth-card {
        padding: 0 0.5rem;
    }

    .stoute-section-heading h2 {
        font-size: 1.25rem;
    }
}
