.cd-back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 500;
    color: #4b6cb7;
    text-decoration: none;
    margin-bottom: 16px;
    transition: color 0.2s ease;
}

.cd-back-link:hover {
    color: #365899;
    text-decoration: underline;
}

.cd-back-icon {
    width: 16px;
    height: 16px;
    stroke-width: 2;
}

.spinner {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 0.8s linear infinite;
    vertical-align: middle;
    margin-right: 4px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.ajax-form-alert {
    margin-bottom: 1rem;
}

.ajax-form-alert:empty {
    display: none;
}

:root {
    --primary: #4077c0;
    --primary-dark: #365fa3;
    --secondary: #64748b;
    --success: #22c55e;
    --warning: #f59e0b;
    --danger: #ef4444;
    --info: #3b82f6;
    --light: #f8fafc;
    --dark: #1e293b;
    --white: #ffffff;
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --gray-900: #0f172a;
    --sidebar-width: 260px;
    --header-height: 64px;
    --accent-color: #0099FF;
    --accent-hover: #0077CC;
    --text-primary: #111827;
    --text-secondary: #1f2937;
    --text-body: #4b5563;
    --text-muted: #6b7280;
}

/* Public page typography - Inter font */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

.public-page {
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: #fff;
    color: var(--text-body);
    font-size: 16px;
    line-height: 1.6;
}
.public-page h1 { font-size: 40px; font-weight: 700; line-height: 1.2; color: var(--text-primary); }
.public-page h2 { font-size: 28px; font-weight: 600; line-height: 1.3; color: var(--text-primary); text-align: left; }
.public-page h3 { font-size: 20px; font-weight: 600; line-height: 1.4; color: var(--text-secondary); }
.public-page .text-accent { color: var(--accent-color); }
.public-page a { color: var(--accent-color); }
.public-page a:hover { color: var(--accent-hover); text-decoration: none; }

/* Section headers - left aligned */
.public-page .section-header { text-align: left; margin-bottom: 2.5rem; }
.public-page .section-header h2 { margin-bottom: 0.5rem; }
.public-page .section-header p { color: var(--text-body); }

/* Radio card group - side by side on desktop, stacked on mobile */
.radio-card-group { display: flex; gap: 1rem; margin-bottom: 1.5rem; flex-wrap: nowrap; }
.radio-card-group label { display: flex; align-items: center; justify-content: center; gap: 0.5rem; cursor: pointer; font-size: 0.9375rem; color: #1e293b; padding: 0.75rem 1rem; border: 2px solid #e2e8f0; border-radius: 8px; transition: all 0.2s; flex: 1; min-width: 0; }
.radio-card-group label span { white-space: nowrap; }
.radio-card-group label:hover { border-color: var(--accent-color); background: #f0f9ff; }
.radio-card-group label:has(input[type="radio"]:checked) { border-color: var(--accent-color); background: #f0f9ff; }
.radio-card-group input[type="radio"] { width: 18px; height: 18px; accent-color: var(--accent-color); }
.radio-card-group input[type="radio"]:checked + span { color: inherit; font-weight: 600; }
@media (max-width: 767px) { .radio-card-group { flex-direction: column; } }

/* Feature checklist with accent color */
.feature-check { color: var(--accent-color); font-weight: 700; font-size: 1rem; flex-shrink: 0; }

/* Accent buttons */
.btn-accent { background: var(--accent-color); color: #fff; border: none; padding: 0.75rem 1.5rem; border-radius: 8px; font-weight: 600; cursor: pointer; transition: background 0.2s; }
.btn-accent:hover { background: var(--accent-hover); color: #fff; }

/* Common site header for public pages */
.public-page .site-header { background: #fff; border-bottom: 1px solid #e2e8f0; padding: 1rem 2rem; display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; z-index: 100; }
.public-page .header-logo { font-size: 1.75rem; font-weight: 800; text-decoration: none; display: flex; align-items: center; gap: 0.5rem; }
.public-page .header-logo span { background: linear-gradient(135deg, var(--accent-color) 0%, #1e3a5f 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.public-page .header-nav { display: flex; align-items: center; gap: 2rem; }
.public-page .header-nav a { color: var(--text-muted); text-decoration: none; font-size: 0.9375rem; font-weight: 500; transition: color 0.2s; }
.public-page .header-nav a:hover, .public-page .header-nav a.active { color: var(--accent-color); }
.public-page .header-actions { display: flex; align-items: center; gap: 1rem; }
.public-page .header-cart { position: relative; display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 8px; color: var(--text-muted); transition: background 0.2s, color 0.2s; }
.public-page .header-cart:hover { background: #f1f5f9; color: var(--accent-color); }
.public-page .cart-badge { position: absolute; top: 2px; right: 2px; min-width: 18px; height: 18px; padding: 0 5px; background: var(--accent-color); color: #fff; font-size: 11px; font-weight: 600; border-radius: 9px; display: flex; align-items: center; justify-content: center; }
/* Customer Login Button */
.customer-login-btn {
    background-color: #0099FF;
    color: #ffffff;
    border: none;
    outline: none;
    box-shadow: none;
    border-radius: 6px;
    padding: 10px 16px;
    font-weight: 400;
    cursor: pointer;
    font-size: 0.9375rem;
    font-family: inherit;
}
.customer-login-btn:hover {
    background-color: #0086E6;
}
.customer-login-btn:focus-visible {
    outline: none;
    box-shadow: 0 0 0 2px rgba(0, 153, 255, 0.35);
}
.customer-login-btn:focus:not(:focus-visible) {
    outline: none;
    box-shadow: none;
}

/* Auth dropdown styles */
.auth-dropdown-wrapper { position: relative; }
.auth-dropdown { position: absolute; top: calc(100% + 8px); right: 0; width: 320px; background: #fff; border-radius: 12px; box-shadow: 0 10px 40px rgba(0,0,0,0.15); border: 1px solid #e2e8f0; z-index: 1000; opacity: 0; visibility: hidden; transform: translateY(-10px); transition: opacity 0.2s, transform 0.2s, visibility 0.2s; }
.auth-dropdown.open { opacity: 1; visibility: visible; transform: translateY(0); }
.auth-dropdown-header { padding: 1.25rem 1.25rem 0; }
.auth-dropdown-header h3 { font-size: 1.125rem; font-weight: 600; color: var(--text-primary); margin: 0 0 0.25rem; }
.auth-dropdown-header p { font-size: 0.8125rem; color: var(--text-muted); margin: 0; }
.auth-dropdown-body { padding: 1.25rem; }
.auth-dropdown .form-group { margin-bottom: 1rem; }
.auth-dropdown .form-group label { display: block; font-size: 0.8125rem; font-weight: 500; color: var(--text-secondary); margin-bottom: 0.375rem; }
.auth-dropdown .form-group input { width: 100%; padding: 0.625rem 0.875rem; border: 1px solid #d1d5db; border-radius: 6px; font-size: 0.9375rem; transition: border-color 0.15s, box-shadow 0.15s; box-sizing: border-box; }
.auth-dropdown .form-group input:focus { outline: none; border-color: var(--accent-color); box-shadow: 0 0 0 3px rgba(0, 153, 255, 0.1); }
.auth-dropdown .btn-submit { width: 100%; padding: 0.75rem 1rem; background: var(--accent-color); color: #fff; border: none; border-radius: 6px; font-size: 0.9375rem; font-weight: 600; cursor: pointer; transition: background 0.15s; display: flex; align-items: center; justify-content: center; gap: 0.5rem; }
.auth-dropdown .btn-submit:hover { background: var(--accent-hover); }
.auth-dropdown .btn-submit:disabled { background: #94a3b8; cursor: not-allowed; }
.auth-dropdown .btn-submit .spinner { width: 16px; height: 16px; border: 2px solid rgba(255,255,255,0.3); border-top-color: #fff; border-radius: 50%; animation: spin 0.8s linear infinite; }
.auth-dropdown .dropdown-error { background: #fee2e2; color: #991b1b; padding: 0.75rem; border-radius: 6px; font-size: 0.8125rem; margin-bottom: 1rem; display: none; }
.auth-dropdown .dropdown-error.show { display: block; }
.auth-dropdown-footer { padding: 1rem 1.25rem; background: #f8fafc; border-top: 1px solid #e2e8f0; border-radius: 0 0 12px 12px; }
.auth-dropdown-footer a { font-size: 0.8125rem; color: var(--accent-color); text-decoration: none; }
.auth-dropdown-footer a:hover { text-decoration: underline; }
.auth-dropdown-footer .signup-link { display: block; text-align: center; margin-top: 0.75rem; padding-top: 0.75rem; border-top: 1px solid #e2e8f0; }

/* Wallet display */
.header-wallet { display: flex; align-items: center; gap: 0.5rem; padding: 0.5rem 0.875rem; background: #f0fdf4; border: 1px solid #86efac; border-radius: 6px; font-size: 0.8125rem; font-weight: 600; color: #166534; }
.header-wallet svg { width: 16px; height: 16px; }

/* Welcome dropdown */
.welcome-dropdown-wrapper { position: relative; }
.welcome-trigger { display: flex; align-items: center; gap: 0.5rem; padding: 0.5rem 0.75rem; background: transparent; border: 1px solid #e2e8f0; border-radius: 6px; font-size: 0.875rem; font-weight: 500; color: var(--text-secondary); cursor: pointer; transition: all 0.15s; }
.welcome-trigger:hover { border-color: var(--accent-color); color: var(--accent-color); }
.welcome-trigger .caret { width: 16px; height: 16px; transition: transform 0.2s; }
.welcome-dropdown-wrapper.open .welcome-trigger .caret { transform: rotate(180deg); }
.welcome-menu { position: absolute; top: calc(100% + 8px); right: 0; width: 200px; background: #fff; border-radius: 8px; box-shadow: 0 10px 40px rgba(0,0,0,0.15); border: 1px solid #e2e8f0; z-index: 1000; opacity: 0; visibility: hidden; transform: translateY(-10px); transition: opacity 0.2s, transform 0.2s, visibility 0.2s; overflow: hidden; }
.welcome-dropdown-wrapper.open .welcome-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.welcome-menu a { display: flex; align-items: center; gap: 0.75rem; padding: 0.75rem 1rem; font-size: 0.875rem; color: var(--text-secondary); text-decoration: none; transition: background 0.15s; }
.welcome-menu a:hover { background: #f8fafc; color: var(--accent-color); }
.welcome-menu a svg { width: 18px; height: 18px; opacity: 0.7; }
.welcome-menu .menu-divider { height: 1px; background: #e2e8f0; margin: 0.25rem 0; }
.welcome-menu .logout-link { color: #dc2626; }
.welcome-menu .logout-link:hover { background: #fef2f2; }

/* Mobile responsive for auth dropdown */
@media (max-width: 768px) {
    .auth-dropdown {
        position: fixed;
        top: 80px;
        left: 50%;
        transform: translateX(-50%);
        width: 90%;
        max-width: 360px;
        z-index: 1000;
        right: auto;
    }
    .auth-dropdown.open {
        transform: translateX(-50%);
    }
    .auth-dropdown-body {
        border-radius: 12px;
        padding: 16px;
    }
    .welcome-menu { width: 180px; }
}

/* Common footer for public pages */
.public-page .site-footer { background: #1e293b; color: #94a3b8; padding: 3rem 2rem 2rem; }
.public-page .footer-content { max-width: 1280px; margin: 0 auto; display: grid; grid-template-columns: 2fr repeat(3, 1fr); gap: 3rem; }
.public-page .footer-brand .logo { font-size: 1.5rem; font-weight: 800; color: var(--accent-color); margin-bottom: 0.75rem; }
.public-page .footer-col h4 { color: #fff; font-size: 0.875rem; font-weight: 600; margin-bottom: 1rem; text-transform: uppercase; letter-spacing: 0.05em; }
.public-page .footer-col a { display: block; color: #94a3b8; text-decoration: none; font-size: 0.875rem; margin-bottom: 0.5rem; }
.public-page .footer-col a:hover { color: var(--accent-color); }
.public-page .footer-bottom { max-width: 1280px; margin: 2rem auto 0; padding-top: 2rem; border-top: 1px solid #334155; display: flex; justify-content: space-between; font-size: 0.8125rem; }

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 14px;
    line-height: 1.5;
    color: var(--gray-800);
    background-color: var(--gray-100);
}

a {
    color: var(--primary);
    text-decoration: none;
}

a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
}

.auth-box {
    background: var(--white);
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    width: 100%;
    max-width: 420px;
}

.auth-logo {
    text-align: center;
    margin-bottom: 30px;
}

.auth-logo h1 {
    font-size: 24px;
    color: var(--primary);
    font-weight: 700;
}

.auth-logo p {
    color: var(--gray-500);
    margin-top: 5px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    color: var(--gray-700);
}

.form-control {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--gray-300);
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-control.error {
    border-color: var(--danger);
}

.form-check {
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-check input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--primary);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 500;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}

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

.btn-primary:hover {
    background: var(--primary-dark);
    text-decoration: none;
    color: var(--white);
}

.btn-secondary {
    background: var(--gray-200);
    color: var(--gray-700);
}

.btn-secondary:hover {
    background: var(--gray-300);
}

.btn-success {
    background: var(--success);
    color: var(--white);
}

.btn-danger {
    background: var(--danger);
    color: var(--white);
}

.btn-outline-primary {
    background: transparent;
    color: #4077c0;
    border: 1px solid #4077c0;
}

.btn-outline-primary:hover {
    background: #eef3fa;
    color: #365fa3;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 12px;
}

.btn-block {
    width: 100%;
}

.alert {
    padding: 14px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.alert-success {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.alert-danger {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.alert-warning {
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #fde68a;
}

.alert-info {
    background: #dbeafe;
    color: #1e40af;
    border: 1px solid #bfdbfe;
}

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

.sidebar {
    width: var(--sidebar-width);
    background: var(--dark);
    color: var(--white);
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    overflow-y: auto;
    z-index: 100;
}

.sidebar-header {
    padding: 20px;
    border-bottom: 1px solid var(--gray-700);
}

.sidebar-header h1 {
    font-size: 18px;
    font-weight: 700;
}

.sidebar-header span {
    font-size: 12px;
    color: var(--gray-400);
}

.sidebar-nav {
    padding: 15px 0;
}

.nav-section {
    padding: 0 15px;
    margin-bottom: 15px;
}

.nav-section-title {
    font-size: 11px;
    text-transform: uppercase;
    color: var(--gray-500);
    padding: 10px 10px 5px;
    font-weight: 600;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 15px;
    color: var(--gray-300);
    border-radius: 6px;
    margin: 2px 0;
    transition: all 0.2s;
}

.nav-link:hover {
    background: var(--gray-700);
    color: var(--white);
    text-decoration: none;
}

.nav-link.active {
    background: var(--primary);
    color: var(--white);
}

.nav-link svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.main-content {
    flex: 1;
    margin-left: var(--sidebar-width);
    display: flex;
    flex-direction: column;
}

.header {
    height: var(--header-height);
    background: var(--white);
    border-bottom: 1px solid var(--gray-200);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    position: sticky;
    top: 0;
    z-index: 50;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.header-cart {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    color: var(--gray-600);
    transition: background 0.2s, color 0.2s;
}

.header-cart:hover {
    background: var(--gray-100);
    color: var(--primary);
}

.client-layout .header-cart {
    width: 36px;
    height: 36px;
    color: #64748b;
    transition: background 0.15s ease, color 0.15s ease;
}

.client-layout .header-cart:hover {
    background: #f1f5f9;
    color: #0088ee;
}

.cart-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    background: var(--primary);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.user-menu {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    background: var(--gray-100);
    border-radius: 8px;
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--primary);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 12px;
}

.page-content {
    padding: 24px;
    flex: 1;
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.page-title {
    font-size: 24px;
    font-weight: 600;
    color: var(--gray-900);
}

.card {
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    margin-bottom: 24px;
}

.card-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--gray-200);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--gray-800);
}

.card-body {
    padding: 20px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 24px;
}

.stat-card {
    background: var(--white);
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.stat-label {
    font-size: 13px;
    color: var(--gray-500);
    margin-bottom: 8px;
}

.stat-value {
    font-size: 28px;
    font-weight: 700;
    color: var(--gray-900);
}

.stat-card.primary {
    background: var(--primary);
    color: var(--white);
}

.stat-card.primary .stat-label,
.stat-card.primary .stat-value {
    color: var(--white);
}

.table-responsive {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid var(--gray-200);
}

th {
    background: var(--gray-50);
    font-weight: 600;
    color: var(--gray-700);
    font-size: 12px;
    text-transform: uppercase;
}

tr:hover {
    background: var(--gray-50);
}

.badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 600;
    border-radius: 20px;
    text-transform: uppercase;
}

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

.badge-warning {
    background: #fef3c7;
    color: #92400e;
}

.badge-danger {
    background: #fee2e2;
    color: #991b1b;
}

.badge-info {
    background: #dbeafe;
    color: #1e40af;
}

.badge-secondary {
    background: var(--gray-200);
    color: var(--gray-700);
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.form-row.three {
    grid-template-columns: repeat(3, 1fr);
}

textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

select.form-control,
.form-select {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--gray-300);
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.2s, box-shadow 0.2s;
    appearance: none;
    background-color: #fff;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 12px center;
    background-repeat: no-repeat;
    background-size: 16px;
    padding-right: 40px;
}

select.form-control:focus,
.form-select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.action-buttons {
    display: flex;
    gap: 8px;
}

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

.text-small {
    font-size: 12px;
}

.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 12px; }
.mt-4 { margin-top: 16px; }
.mb-2 { margin-bottom: 8px; }
.mb-3 { margin-bottom: 12px; }
.mb-4 { margin-bottom: 16px; }

.tos-content {
    max-height: 400px;
    overflow-y: auto;
    padding: 20px;
    background: var(--gray-50);
    border-radius: 8px;
    border: 1px solid var(--gray-200);
    margin-bottom: 20px;
}

.tos-content h1, .tos-content h2 {
    margin-top: 20px;
    margin-bottom: 10px;
}

.tos-content p {
    margin-bottom: 10px;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--gray-500);
}

.empty-state svg {
    width: 64px;
    height: 64px;
    margin-bottom: 16px;
    color: var(--gray-400);
}

.empty-state h3 {
    font-size: 18px;
    margin-bottom: 8px;
    color: var(--gray-700);
}

/* Two-column form layout */
.form-grid.two-column {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.form-column {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-group.half {
    flex: 1;
}

.form-row {
    display: flex;
    gap: 15px;
}

.form-row .form-group.half {
    flex: 1;
}

.form-actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--gray-200);
}

.input-group {
    display: flex;
    gap: 8px;
}

.input-group .form-control {
    flex: 1;
}

.phone-input {
    display: flex;
    gap: 8px;
}

.form-text {
    font-size: 12px;
    color: var(--gray-500);
    margin-top: 4px;
}

.required {
    color: var(--danger);
}

/* Toggle switches */
.toggle-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.toggle-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid var(--gray-100);
}

.toggle-item:last-child {
    border-bottom: none;
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--gray-300);
    transition: 0.3s;
    border-radius: 24px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

.toggle-switch input:checked + .toggle-slider {
    background-color: var(--success);
}

.toggle-switch input:checked + .toggle-slider:before {
    transform: translateX(20px);
}

/* Checkbox list */
.checkbox-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--primary);
}

/* Radio group */
.radio-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.radio-label input[type="radio"] {
    width: 18px;
    height: 18px;
    accent-color: var(--primary);
}

/* Tabs navigation */
.tabs-nav {
    display: flex;
    gap: 0;
    border-bottom: 2px solid var(--gray-200);
    margin-bottom: 24px;
    background: var(--white);
    padding: 0 20px;
    border-radius: 12px 12px 0 0;
}

.tab-link {
    padding: 14px 20px;
    color: var(--gray-600);
    font-weight: 500;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: all 0.2s;
}

.tab-link:hover {
    color: var(--primary);
    text-decoration: none;
}

.tab-link.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

/* Profile page layout */
.page-header-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.page-header-left h1 {
    font-size: 24px;
    font-weight: 600;
}

.page-header-left .subtitle {
    color: var(--gray-500);
}

.page-header-right {
    display: flex;
    gap: 10px;
}

/* Status badges */
.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    font-size: 12px;
    font-weight: 500;
    border-radius: 20px;
    text-transform: capitalize;
}

.status-badge.status-active { background: #dcfce7; color: #166534; }
.status-badge.status-pending { background: #fef3c7; color: #92400e; }
.status-badge.status-pending_kyc { background: #fef3c7; color: #92400e; }
.status-badge.status-suspended { background: #fee2e2; color: #991b1b; }
.status-badge.status-pending_deletion { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.status-badge.status-inactive { background: var(--gray-200); color: var(--gray-600); }
.status-badge.status-closed { background: var(--gray-300); color: var(--gray-700); }
.status-badge.status-paid { background: #dcfce7; color: #166534; }
.status-badge.status-unpaid { background: #fee2e2; color: #991b1b; }
.status-badge.status-draft { background: var(--gray-200); color: var(--gray-600); }
.status-badge.status-cancelled { background: var(--gray-300); color: var(--gray-700); }
.status-badge.status-refunded { background: #dbeafe; color: #1e40af; }
.status-badge.status-open { background: #dbeafe; color: #1e40af; }
.status-badge.status-answered { background: #dcfce7; color: #166534; }
.status-badge.status-customer-reply { background: #fef3c7; color: #92400e; }
.status-badge.status-on-hold { background: var(--gray-200); color: var(--gray-600); }
.status-badge.status-in-progress { background: #dbeafe; color: #1e40af; }

/* Profile grid (3-column) */
.profile-grid.three-column {
    display: grid;
    grid-template-columns: 1fr 1.2fr 1fr;
    gap: 24px;
}

.profile-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Info list */
.info-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.info-item label {
    font-size: 12px;
    color: var(--gray-500);
    font-weight: 500;
}

.info-item span {
    color: var(--gray-800);
}

/* Stats in summary */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.stat-item {
    text-align: center;
    padding: 10px;
    background: var(--gray-50);
    border-radius: 8px;
}

.stat-item .stat-label {
    display: block;
    font-size: 11px;
    color: var(--gray-500);
    margin-bottom: 4px;
}

.stat-item .stat-value {
    display: block;
    font-size: 20px;
    font-weight: 600;
}

.stat-item .stat-amount {
    display: block;
    font-size: 12px;
    color: var(--gray-600);
}

.text-success { color: var(--success); }
.text-warning { color: var(--warning); }
.text-danger { color: var(--danger); }

/* Billing summary */
.billing-summary {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--gray-200);
}

.summary-item {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
}

/* Quick actions */
.quick-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 15px;
}

/* Service stats */
.service-stats {
    display: flex;
    flex-direction: column;
}

.stat-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid var(--gray-100);
}

.stat-row:last-child {
    border-bottom: none;
}

/* Action list */
.action-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.action-link {
    display: block;
    padding: 8px 12px;
    background: var(--gray-50);
    border-radius: 6px;
    color: var(--gray-700);
    transition: all 0.2s;
    border: none;
    text-align: left;
    cursor: pointer;
    width: 100%;
    font-size: 14px;
}

.action-link:hover {
    background: var(--gray-100);
    text-decoration: none;
}

.action-link.text-danger {
    color: var(--danger);
}

.action-link.text-success {
    color: var(--success);
}

/* Inline form */
.inline-form {
    display: inline;
}

/* Card header link */
.card-header .header-link {
    font-size: 12px;
}

.card-header h3 {
    font-size: 16px;
    font-weight: 600;
    margin: 0;
}

.card-actions {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--gray-200);
}

/* Data table */
.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th,
.data-table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid var(--gray-200);
}

.data-table th {
    background: var(--gray-50);
    font-weight: 600;
    color: var(--gray-700);
    font-size: 12px;
    text-transform: uppercase;
}

.data-table tr:hover {
    background: var(--gray-50);
}

.btn-xs {
    padding: 4px 8px;
    font-size: 11px;
}

/* Filter bar */
.filter-bar {
    margin-bottom: 20px;
    padding: 15px;
    background: var(--gray-50);
    border-radius: 8px;
}

.filter-form {
    display: flex;
    gap: 15px;
    align-items: flex-end;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.filter-group label {
    font-size: 12px;
    color: var(--gray-600);
}

/* Bulk actions */
.bulk-actions {
    margin-top: 15px;
    padding: 15px;
    background: var(--gray-50);
    border-radius: 8px;
    display: flex;
    gap: 10px;
    align-items: center;
}

/* Stats bar */
.stats-bar {
    display: flex;
    gap: 15px;
    margin-bottom: 24px;
}

.stat-box {
    flex: 1;
    background: var(--white);
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    text-align: center;
}

.stat-box .stat-label {
    display: block;
    font-size: 12px;
    color: var(--gray-500);
    margin-bottom: 5px;
}

.stat-box .stat-value {
    display: block;
    font-size: 24px;
    font-weight: 600;
    color: var(--gray-800);
}

/* Email list */
.email-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.email-list li {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid var(--gray-100);
}

.email-list li:last-child {
    border-bottom: none;
}

.email-subject {
    color: var(--gray-800);
}

.email-date {
    font-size: 12px;
    color: var(--gray-500);
}

/* Alert error list */
.alert ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.alert-error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

@media (max-width: 1200px) {
    .profile-grid.three-column {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 992px) {
    .form-grid.two-column {
        grid-template-columns: 1fr;
    }
    
    .profile-grid.three-column {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .form-row {
        flex-direction: column;
    }
    
    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .tabs-nav {
        overflow-x: auto;
        padding: 0 10px;
    }
    
    .tab-link {
        padding: 12px 15px;
        white-space: nowrap;
    }
    
    .stats-bar {
        flex-wrap: wrap;
    }
    
    .stat-box {
        flex: 1 1 45%;
    }
}

/* Cart Bottom Bar */
.cart-bottom-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    background: #fff;
    border-top: 1px solid #e6e6e6;
    box-shadow: 0 -6px 16px rgba(0,0,0,0.06);
}

.cart-bottom-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.cart-bottom-left {
    font-size: 1rem;
    color: #1e293b;
}

.cart-bottom-total {
    color: #1677ff;
    font-weight: 700;
}

.cart-bottom-right .btn {
    padding: 0.75rem 1.5rem;
    font-weight: 600;
}

body.has-cart-bar {
    padding-bottom: 90px;
}

@media (max-width: 991px) {
    .cart-bottom-inner {
        height: 80px;
        padding: 0 16px;
    }
    body.has-cart-bar {
        padding-bottom: 110px;
    }
}

/* Settings Cards Grid */
.settings-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 16px;
}

.settings-card {
    background: #fff;
    border: 1px solid #e6e6e6;
    border-radius: 8px;
    padding: 24px;
    transition: box-shadow 0.2s ease;
}

.settings-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.settings-card-icon {
    width: 48px;
    height: 48px;
    background: #f0f7ff;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0099FF;
    margin-bottom: 16px;
}

.settings-card h3 {
    margin: 0 0 16px 0;
    font-size: 1.125rem;
    font-weight: 600;
    color: #1e293b;
}

.settings-card .wallet-balance {
    background: #f8fafc;
    border-radius: 6px;
    padding: 12px 16px;
    margin-bottom: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.settings-card .wallet-label {
    color: #64748b;
    font-size: 0.875rem;
}

.settings-card .wallet-amount {
    font-size: 1.25rem;
    font-weight: 700;
    color: #0099FF;
}

.settings-card-actions {
    display: flex;
    gap: 8px;
}

.settings-card .payment-method-form {
    margin-bottom: 8px;
}

.settings-card .form-select {
    font-size: 0.9375rem;
}

.settings-card .account-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.settings-card .account-links li {
    margin-bottom: 8px;
}

.settings-card .account-links a {
    color: #0099FF;
    text-decoration: none;
    font-size: 0.9375rem;
    display: flex;
    align-items: center;
    gap: 6px;
}

.settings-card .account-links a:hover {
    text-decoration: underline;
}

.settings-card .danger-zone {
    margin-top: 12px;
    border-top: 1px solid #fee2e2;
    padding-top: 12px;
}

.btn-outline-danger {
    background: transparent;
    border: 1px solid #dc2626;
    color: #dc2626;
}

.btn-outline-danger:hover {
    background: #fef2f2;
}

.form-message {
    font-size: 0.875rem;
    margin-top: 8px;
}

.text-success {
    color: #16a34a;
}

.text-danger {
    color: #dc2626;
}

.text-warning {
    color: #d97706;
}

.text-muted {
    color: #94a3b8;
}

.helper-text {
    font-size: 0.8125rem;
}

/* Wallet pages */
.wallet-balance-card {
    background: linear-gradient(135deg, #0099FF 0%, #0077cc 100%);
    color: #fff;
    border-radius: 12px;
    padding: 32px;
    text-align: center;
    margin-bottom: 24px;
}

.wallet-balance-label {
    font-size: 0.875rem;
    opacity: 0.9;
    margin-bottom: 8px;
}

.wallet-balance-amount {
    font-size: 2.5rem;
    font-weight: 700;
}

.payment-methods-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.payment-method-option {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    border: 1px solid #e6e6e6;
    border-radius: 8px;
    cursor: pointer;
    transition: border-color 0.2s ease;
}

.payment-method-option:hover {
    border-color: #0099FF;
}

.payment-method-option input[type="radio"] {
    margin-top: 2px;
}

.payment-method-name {
    font-weight: 500;
    color: #1e293b;
}

.payment-method-desc {
    display: block;
    color: #64748b;
    font-size: 0.875rem;
    margin-top: 4px;
}

.input-group {
    display: flex;
    align-items: center;
}

.input-prefix {
    background: #f1f5f9;
    border: 1px solid #d1d5db;
    border-right: none;
    border-radius: 6px 0 0 6px;
    padding: 10px 12px;
    color: #64748b;
}

.input-group input {
    border-radius: 0 6px 6px 0;
    flex: 1;
}

.section-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 16px;
}

@media (max-width: 992px) {
    .settings-cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .settings-cards-grid {
        grid-template-columns: 1fr;
    }
}

.wallet-topup-container {
    max-width: 720px;
}

.wallet-form-card {
    margin-top: 0;
}

.wallet-form {
    max-width: 720px;
}

.currency-input {
    display: flex;
    align-items: center;
    max-width: 420px;
    border: 1px solid #dcdfe6;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
}

.currency-prefix {
    padding: 0 14px;
    font-weight: 700;
    color: #555;
    background: #f5f7fa;
    border-right: 1px solid #dcdfe6;
    line-height: 44px;
}

.currency-input input {
    border: 0;
    outline: none;
    padding: 12px 14px;
    font-size: 16px;
    width: 100%;
}

.currency-input input::-webkit-outer-spin-button,
.currency-input input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.currency-input input[type=number] {
    -moz-appearance: textfield;
}

.payment-methods-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 8px;
}

.payment-method-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border: 1px solid var(--gray-200);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.payment-method-option:hover {
    border-color: var(--primary);
    background: var(--gray-50);
}

.payment-method-option input[type="radio"] {
    width: 18px;
    height: 18px;
    margin: 0;
}

.payment-method-option input[type="radio"]:checked + .payment-method-name {
    color: var(--primary);
    font-weight: 500;
}

.payment-method-name {
    font-size: 0.95rem;
    color: var(--gray-700);
}

.payment-method-desc {
    color: var(--gray-500);
    font-size: 0.85rem;
    margin-left: auto;
}

.wallet-form .form-actions {
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid var(--gray-200);
}

@media (max-width: 768px) {
    .wallet-topup-container,
    .wallet-form,
    .currency-input {
        max-width: 100%;
    }
    
    .wallet-form .btn-primary {
        width: 100%;
    }
    
    .payment-method-option {
        flex-wrap: wrap;
    }
    
    .payment-method-desc {
        margin-left: 30px;
        margin-top: 4px;
        width: 100%;
    }
}

/* ============================================================
   CLIENT SIDEBAR — Leaseweb-style (scoped under .client-layout)
   ============================================================ */

.client-layout .client-sidebar {
    width: 260px;
    background: linear-gradient(180deg, #0a2540 0%, #0d3a6b 50%, #0f4c8a 100%);
    color: rgba(255,255,255,0.92);
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    overflow-y: auto;
    z-index: 200;
    transition: transform 0.25s ease;
}

.client-layout .client-sidebar .sidebar-header {
    padding: 24px 20px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.client-layout .client-sidebar .sidebar-header h1 {
    font-size: 17px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 4px;
}

.client-layout .client-sidebar .sidebar-header span {
    font-size: 12px;
    color: rgba(255,255,255,0.55);
}

.client-layout .client-sidebar .sidebar-nav {
    padding: 12px 0;
}

.client-layout .client-sidebar .nav-divider {
    height: 1px;
    background: rgba(255,255,255,0.08);
    margin: 8px 16px;
}

.client-layout .client-sidebar .sidebar-nav > .nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    margin: 2px 8px;
    border-radius: 8px;
    color: rgba(255,255,255,0.8);
    font-size: 13.5px;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.2s ease-out, color 0.15s ease;
    position: relative;
}

.client-layout .client-sidebar .sidebar-nav > .nav-link:hover {
    background: rgba(255,255,255,0.08);
    color: #fff;
    text-decoration: none;
}

.client-layout .client-sidebar .sidebar-nav > .nav-link.active {
    background: rgba(255,255,255,0.1);
    color: #fff;
}

.client-layout .client-sidebar .sidebar-nav > .nav-link.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 6px;
    bottom: 6px;
    width: 3px;
    border-radius: 0 3px 3px 0;
    background: #fff;
}

.client-layout .client-sidebar .sidebar-nav > .nav-link svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    opacity: 0.7;
}

.client-layout .client-sidebar .sidebar-nav > .nav-link:hover svg,
.client-layout .client-sidebar .sidebar-nav > .nav-link.active svg {
    opacity: 1;
}

.client-layout .nav-group {
    margin: 1px 0;
}

.client-layout .nav-group-toggle {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 12px 20px;
    margin: 0;
    border: none;
    background: none;
    color: rgba(255,255,255,0.8);
    font-size: 13.5px;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    text-align: left;
    transition: background 0.2s ease-out, color 0.15s ease;
    border-radius: 0;
}

.client-layout .nav-group-toggle:hover {
    background: rgba(255,255,255,0.06);
    color: #fff;
}

.client-layout .nav-group-toggle svg:first-child {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    opacity: 0.7;
}

.client-layout .nav-group-toggle:hover svg:first-child {
    opacity: 1;
}

.client-layout .nav-group-label {
    flex: 1;
}

.client-layout .nav-chevron {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    opacity: 0.4;
    transition: transform 0.2s ease, opacity 0.15s;
}

.client-layout .nav-group-toggle:hover .nav-chevron {
    opacity: 0.7;
}

.client-layout .nav-group-toggle[aria-expanded="true"] .nav-chevron {
    transform: rotate(180deg);
}

.client-layout .nav-submenu {
    display: none;
    padding: 2px 0 6px;
}

.client-layout .nav-submenu .nav-link {
    display: block;
    padding: 8px 20px 8px 52px;
    color: rgba(255,255,255,0.6);
    font-size: 13px;
    font-weight: 400;
    text-decoration: none;
    transition: background 0.2s ease-out, color 0.15s ease;
    position: relative;
    border-radius: 0;
    margin: 0;
}

.client-layout .nav-submenu .nav-link:hover {
    background: rgba(255,255,255,0.05);
    color: #fff;
    text-decoration: none;
}

.client-layout .nav-submenu .nav-link.active {
    background: rgba(255,255,255,0.1);
    color: #fff;
    font-weight: 500;
}

.client-layout .nav-submenu .nav-link.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 4px;
    bottom: 4px;
    width: 3px;
    border-radius: 0 3px 3px 0;
    background: #fff;
}

.client-layout .main-content {
    margin-left: 260px;
    background: #f4f6f9;
}

.client-layout .header {
    background: #fff;
    border-bottom: 1px solid #e8ecf1;
    box-shadow: 0 1px 2px rgba(0,0,0,0.03);
}

.client-layout .header h2 {
    font-size: 1rem;
    font-weight: 600;
    color: #1e293b;
    letter-spacing: -0.01em;
}

.cd-alert {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 0.8125rem;
    font-weight: 500;
    margin-bottom: 24px;
    border-left: 3px solid;
    line-height: 1.5;
}

.cd-alert svg {
    flex-shrink: 0;
}

.cd-alert-success {
    background: #f0fdf4;
    border-left-color: #22c55e;
    color: #15803d;
}

.cd-alert-error {
    background: #fef2f2;
    border-left-color: #ef4444;
    color: #b91c1c;
}

.client-layout .mobile-menu-btn {
    display: none;
    align-items: center;
    justify-content: center;
    background: none;
    border: 1px solid var(--gray-200);
    border-radius: 8px;
    padding: 6px;
    cursor: pointer;
    color: var(--gray-600);
    margin-right: 12px;
    flex-shrink: 0;
}

.client-layout .mobile-menu-btn:hover {
    background: var(--gray-100);
    color: var(--gray-800);
}

.client-layout .sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    z-index: 199;
}

@media (max-width: 900px) {
    .client-layout .client-sidebar {
        transform: translateX(-100%);
        width: 280px;
    }

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

    .client-layout.sidebar-open .sidebar-overlay {
        display: block !important;
    }

    .client-layout .main-content {
        margin-left: 0;
    }

    .client-layout .mobile-menu-btn {
        display: flex;
    }
}

/* ============================================================
   CLIENT HEADER — Enterprise
   Context switcher, bell notifications, status badges
   ============================================================ */

.client-layout .context-switcher {
    position: relative;
    margin-right: 16px;
}

.client-layout .context-switcher-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 500;
    color: #334155;
    transition: background 0.15s ease;
}

.client-layout .context-switcher-btn:hover {
    background: #e2e8f0;
}

.client-layout .context-switcher-btn.agency-mode {
    background: #dbeafe;
    border-color: #93c5fd;
    color: #1e40af;
}

.client-layout .context-badge {
    display: inline-block;
    padding: 2px 8px;
    background: #1e40af;
    color: #fff;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}

.client-layout .context-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 4px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
    min-width: 220px;
    z-index: 1000;
}

.client-layout .context-dropdown.show {
    display: block;
}

.client-layout .context-dropdown-item {
    display: block;
    padding: 12px 16px;
    color: #334155;
    text-decoration: none;
    border-bottom: 1px solid #f1f5f9;
    cursor: pointer;
    transition: background 0.15s ease;
}

.client-layout .context-dropdown-item:hover {
    background: #f8fafc;
}

.client-layout .context-dropdown-item.active {
    background: #eff6ff;
    color: #1e40af;
}

.client-layout .context-dropdown-item:last-child {
    border-bottom: none;
}

.client-layout .context-dropdown-divider {
    height: 1px;
    background: #e2e8f0;
    margin: 4px 0;
}

.client-layout .context-dropdown-label {
    padding: 8px 16px;
    font-size: 0.75rem;
    color: #64748b;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.04em;
}

.client-layout .upgrade-link {
    color: #059669;
    font-weight: 500;
}

.client-layout .upgrade-link:hover {
    color: #047857;
}

.client-layout .bell-notification {
    position: relative;
    margin-right: 12px;
}

.client-layout .bell-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    color: #64748b;
    border-radius: 8px;
    transition: background 0.15s ease, color 0.15s ease;
}

.client-layout .bell-btn:hover {
    background: #f1f5f9;
    color: #0088ee;
}

.client-layout .bell-btn.bell-has-unread svg {
    stroke: #d4af37;
}

.client-layout .bell-btn.bell-has-unread {
    animation: bellShake 1.2s ease-in-out infinite;
}

.finance-filter-tab {
    display: inline-block;
    padding: 5px 14px;
    font-size: 13px;
    font-weight: 500;
    border-radius: 6px;
    text-decoration: none;
    color: #64748b;
    background: transparent;
    transition: background 0.15s, color 0.15s;
}
.finance-filter-tab:hover {
    background: #f1f5f9;
    color: #0f172a;
}
.finance-filter-tab.active {
    background: #0088ee;
    color: #fff;
}

.cd-badge-danger {
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
}
.cd-badge-info {
    background: #eff6ff;
    color: #2563eb;
    border: 1px solid #bfdbfe;
}
.cd-badge-muted {
    background: #f8fafc;
    color: #94a3b8;
    border: 1px solid #e2e8f0;
}

.renew-now-link {
    color: #dc2626;
    font-weight: 600;
    text-decoration: none;
    margin-left: 10px;
}
.renew-now-link:hover {
    text-decoration: underline;
}

@keyframes bellShake {
    0%, 100% { transform: rotate(0deg); }
    10% { transform: rotate(-10deg); }
    20% { transform: rotate(10deg); }
    30% { transform: rotate(-8deg); }
    40% { transform: rotate(8deg); }
    50% { transform: rotate(-4deg); }
    60% { transform: rotate(4deg); }
    70% { transform: rotate(0deg); }
}

.client-layout .bell-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    min-width: 18px;
    height: 18px;
    background: #ef4444;
    border-radius: 9px;
    border: 2px solid #fff;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    line-height: 1;
}

.client-layout .bell-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 8px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
    min-width: 280px;
    z-index: 1000;
}

.client-layout .bell-dropdown.show {
    display: block;
}

.client-layout .bell-dropdown-header {
    padding: 12px 16px;
    font-weight: 600;
    color: #0f172a;
    border-bottom: 1px solid #e2e8f0;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.client-layout .bell-header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.client-layout .bell-mute-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    color: #64748b;
    border-radius: 4px;
    display: flex;
    align-items: center;
    transition: background 0.15s ease;
}

.client-layout .bell-mute-toggle:hover {
    background: #f1f5f9;
}

.client-layout .bell-dropdown-items {
    max-height: 340px;
    overflow-y: auto;
}

.client-layout .bell-dropdown-empty {
    padding: 16px;
    color: #64748b;
    text-align: center;
    font-size: 0.8125rem;
}

.client-layout .bell-dropdown-item {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 16px;
    text-decoration: none;
    border-bottom: 1px solid #f1f5f9;
    transition: background 0.15s ease;
    cursor: pointer;
    color: inherit;
}

.client-layout .bell-dropdown-item:hover {
    background: #f8fafc;
}

.client-layout .bell-item-unread {
    background: #f0f7ff;
}

.client-layout .bell-item-icon {
    flex-shrink: 0;
    margin-top: 2px;
}

.client-layout .bell-item-body {
    flex: 1;
    min-width: 0;
}

.client-layout .bell-item-title {
    color: #0f172a;
    font-size: 0.8125rem;
    font-weight: 600;
    line-height: 1.3;
}

.client-layout .bell-item-unread .bell-item-title {
    color: #0088ee;
}

.client-layout .bell-item-msg {
    color: #64748b;
    font-size: 0.75rem;
    line-height: 1.3;
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.client-layout .bell-item-time {
    color: #94a3b8;
    font-size: 0.6875rem;
    margin-top: 3px;
}

.client-layout .bell-dropdown-footer-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 16px;
    border-top: 1px solid #e2e8f0;
}

.client-layout .bell-footer-action {
    background: none;
    border: none;
    color: #0088ee;
    font-weight: 500;
    font-size: 0.8125rem;
    cursor: pointer;
    padding: 0;
    transition: color 0.15s ease;
}

.client-layout .bell-footer-action:hover {
    color: #0066cc;
}

.client-layout .badge-expiring,
.client-layout .badge-expired {
    display: inline-block;
    margin-left: 8px;
    padding: 2px 8px;
    font-size: 12px;
    font-weight: 700;
    border-radius: 999px;
    background: #ffe5e5;
    color: #b00020;
    border: 1px solid #ffb3b3;
    vertical-align: middle;
}

.client-layout .badge-grace {
    display: inline-block;
    margin-left: 8px;
    padding: 2px 8px;
    font-size: 12px;
    font-weight: 700;
    border-radius: 999px;
    background: #fff4d6;
    color: #8a5a00;
    border: 1px solid #ffe0a3;
    vertical-align: middle;
}

.client-layout .badge-suspended {
    display: inline-block;
    margin-left: 8px;
    padding: 2px 8px;
    font-size: 12px;
    font-weight: 800;
    border-radius: 999px;
    background: #b71c1c;
    color: #fff;
    border: 1px solid #7f0000;
    vertical-align: middle;
}

.client-layout .renew-notice {
    margin-top: 8px;
    padding: 12px 16px;
    border-radius: 8px;
    background: #fff1f1;
    border: 1px solid #ffcccc;
    color: #8b0000;
    font-weight: 700;
}

/* ============================================================
   ENTERPRISE DASHBOARD — Ultra Premium SaaS Design System
   Strict 8px grid · 3-level shadows · Refined typography
   ============================================================ */

.client-dashboard {
    max-width: 1680px;
    margin: 0 auto;
    padding: 0 24px;
}

.dash-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    align-items: stretch;
}

.dash-col1 { grid-column: 1; grid-row: 1; }
.dash-col2 { grid-column: 2; grid-row: 1; }
.dash-col3 { grid-column: 3; grid-row: 1; }

.dash-row2-left {
    grid-column: 1 / 3;
    grid-row: 2;
}

.dash-row2-right {
    grid-column: 3;
    grid-row: 2;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.dash-row2-right > .cd-card {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.dash-row2-right > .cd-card > .cd-card-inner {
    flex: 1;
}

.dash-row2-right > .cd-card > .cd-card-footer {
    margin-top: auto;
}

.cd-header {
    margin-bottom: 32px;
}

.cd-greeting {
    font-size: 1.75rem;
    font-weight: 600;
    color: #0f172a;
    margin: 0 0 4px 0;
    letter-spacing: -0.025em;
    line-height: 1.25;
}

.cd-subtitle {
    font-size: 0.875rem;
    color: #64748b;
    margin: 0;
    font-weight: 400;
    line-height: 1.5;
}

.cd-card {
    background: #fff;
    border: 1px solid #b8c6de;
    border-radius: 5px;
    display: flex;
    flex-direction: column;
    height: 100%;
    box-shadow: 0 1px 2px rgba(0,0,0,0.04), 0 1px 3px rgba(0,0,0,0.06);
    transition: box-shadow 0.2s ease-out, transform 0.2s ease-out;
}

.cd-card:hover {
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
    transform: translateY(-2px);
}

.cd-card-inner {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.cd-card-inner .cd-card-desc:last-of-type {
    flex: 1;
}

.cd-card-title {
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #64748b;
    margin: 0 0 16px 0;
    display: flex;
    align-items: center;
    gap: 8px;
    line-height: 1;
}

.cd-card-title-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    opacity: 0.5;
}

.cd-card-desc {
    font-size: 0.8125rem;
    color: #64748b;
    margin: 0 0 16px 0;
    line-height: 1.6;
}

.cd-stat-chip {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 12px 16px;
    border-radius: 8px;
    box-sizing: border-box;
    margin-top: auto;
    border-left: 3px solid;
}

.cd-stat-chip-billing {
    background: #f6f5fa;
    border-left-color: #22c55e;
}

.cd-stat-chip-billing .cd-stat-dot { background: #22c55e; }

.cd-stat-chip-tickets {
    background: #fef2f2;
    border-left-color: #ef4444;
}

.cd-stat-chip-tickets-zero {
        background: #f6f5fa;
    border-left-color: #22c55e;
}

.cd-stat-chip-tickets .cd-stat-dot { background: #ef4444; }
.cd-stat-chip-tickets-zero .cd-stat-dot { background: #22c55e; }

.cd-stat-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.cd-stat-value {
    font-size: 1.5rem;
    font-weight: 600;
    color: #0f172a;
    letter-spacing: -0.02em;
    line-height: 1;
}

.cd-stat-label {
    font-size: 0.8125rem;
    color: #64748b;
    font-weight: 400;
    line-height: 1;
}

.cd-card-footer {
    padding: 16px 24px;
    border-top: 1px solid #f1f5f9;
}

.cd-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 16px;
    height: 40px;
    font-size: 0.8125rem;
    font-weight: 500;
    color: #fff;
    background: #4077c0;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s ease-out, box-shadow 0.2s ease-out, transform 0.1s ease;
    box-sizing: border-box;
    line-height: 1;
    white-space: nowrap;
}

.cd-btn:hover {
    background: #365fa3;
    color: #fff;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(64,119,192,0.25);
}

.cd-btn:active {
    transform: scale(0.95);
}

.cd-btn:focus-visible {
    outline: 2px solid #4077c0;
    outline-offset: 2px;
}

.cd-contracts {
    background: #fff;
    border: 1px solid #b8c6de;
    border-radius: 5px;
    padding: 24px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.04), 0 1px 3px rgba(0,0,0,0.06);
    transition: box-shadow 0.2s ease-out;
}

.cd-contracts:hover {
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}

.cd-contracts-header {
    margin-bottom: 24px;
}

.cd-contracts-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #0f172a;
    margin: 0 0 4px 0;
    letter-spacing: -0.02em;
    line-height: 1.3;
}

.cd-contracts-subtitle {
    font-size: 0.8125rem;
    color: #64748b;
    margin: 0;
    line-height: 1.5;
}

.cd-tabs {
    display: flex;
    gap: 0;
    border-bottom: 1px solid #e2e8f0;
    margin-bottom: 0;
    position: relative;
}

.cd-tab {
    padding: 12px 24px;
    font-size: 0.8125rem;
    font-weight: 500;
    color: #64748b;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    cursor: pointer;
    transition: color 0.2s ease, border-color 0.2s ease;
    position: relative;
}

.cd-tab:hover {
    color: #334155;
}

.cd-tab:focus-visible {
    outline: 2px solid #4077c0;
    outline-offset: -2px;
    border-radius: 4px 4px 0 0;
}

.cd-tab-active {
    color: #4077c0;
    border-bottom-color: #4077c0;
    font-weight: 600;
}

.cd-tab-panel {
    padding-top: 0;
}

.cd-table-wrap {
    overflow-x: auto;
}

.cd-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.8125rem;
}

.cd-table thead th {
    text-align: left;
    padding: 12px 16px;
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #64748b;
    border-bottom: 1px solid #e2e8f0;
    background: #f8fafc;
    line-height: 1;
}

.cd-table tbody td {
    padding: 12px 16px;
    color: #334155;
    border-bottom: 1px solid #f1f5f9;
    line-height: 1.5;
}

.cd-table tbody tr {
    transition: background 0.15s ease;
}

.cd-table tbody tr:hover {
    background: rgba(248,250,252,0.7);
}

.cd-table tbody tr:last-child td {
    border-bottom: none;
}

.cd-link {
    color: #0088ee;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.15s;
}

.cd-link:hover {
    color: #0066bb;
    text-decoration: underline;
}

.cd-link:focus-visible {
    outline: 2px solid #0088ee;
    outline-offset: 2px;
    border-radius: 2px;
}

.cd-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.6875rem;
    font-weight: 500;
    line-height: 1.4;
    letter-spacing: 0.01em;
    white-space: nowrap;
}

.cd-badge-green {
    background: #ecfdf5;
    color: #059669;
}

.cd-badge-yellow {
    background: #fffbeb;
    color: #d97706;
}

.cd-badge-warning {
    background: rgba(245,158,11,0.12);
    color: #f59e0b;
    border: 1px solid rgba(245,158,11,0.35);
    font-weight: 600;
}

.cd-badge-red {
    background: #fef2f2;
    color: #dc2626;
}

.cd-badge-gray {
    background: #f1f5f9;
    color: #475569;
}


.cd-table-footer {
    padding: 16px 0 0;
    text-align: right;
}

.cd-empty {
    padding: 48px 16px;
    text-align: center;
    color: #94a3b8;
    font-size: 0.8125rem;
    line-height: 1.5;
}

.cd-empty svg {
    display: block;
    margin: 0 auto 16px;
    color: #cbd5e1;
}

.cd-wallet-label {
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #94a3b8;
    margin: 0 0 8px 0;
    line-height: 1;
}

.cd-wallet-balance {
    font-size: 1.75rem;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 8px;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.cd-card-footer-actions {
    display: flex;
    gap: 8px;
}

.cd-btn-outline {
    background: transparent;
    color: #4077c0;
    border: 1px solid #b8cde6;
    border-radius: 5px;
}

.cd-btn-outline:hover {
    background: #eef3fa;
    color: #365fa3;
    border-color: #4077c0;
    box-shadow: none;
}

.cd-btn-outline:focus-visible {
    outline: 2px solid #4077c0;
    outline-offset: 2px;
}

.cd-mini-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.cd-mini-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #f1f5f9;
    transition: background 0.15s;
}

.cd-mini-item:last-child {
    border-bottom: none;
}

.cd-mini-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.cd-mini-name {
    font-size: 0.8125rem;
    font-weight: 600;
    color: #334155;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.4;
}

.cd-mini-due {
    font-size: 0.75rem;
    color: #94a3b8;
    line-height: 1.4;
}

.cd-support-links {
    list-style: none;
    margin: 0;
    padding: 0;
}

.cd-support-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 12px;
    border-radius: 8px;
    color: #334155;
    text-decoration: none;
    font-size: 0.8125rem;
    font-weight: 500;
    transition: background 0.2s ease-out, color 0.15s ease;
    line-height: 1.4;
}

.cd-support-link:hover {
    background: #f1f5f9;
    color: #0088ee;
    text-decoration: none;
}

.cd-support-link:focus-visible {
    outline: 2px solid #0088ee;
    outline-offset: -2px;
    border-radius: 8px;
}

.cd-support-link svg:first-child {
    color: #94a3b8;
    flex-shrink: 0;
    transition: color 0.15s;
}

.cd-support-link:hover svg:first-child {
    color: #0088ee;
}

.cd-support-link span {
    flex: 1;
}

.cd-chevron {
    color: #cbd5e1;
    flex-shrink: 0;
    transition: transform 0.2s ease-out, color 0.15s;
}

.cd-support-link:hover .cd-chevron {
    transform: translateX(2px);
    color: #0088ee;
}

.cd-support-helper {
    margin-top: 16px;
    margin-bottom: 0;
    padding-top: 16px;
    border-top: 1px solid #f1f5f9;
    font-size: 0.75rem;
    color: #94a3b8;
    line-height: 1.5;
}

@media (max-width: 1199px) and (min-width: 768px) {
    .dash-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    .dash-col1 { grid-column: 1; grid-row: 1; }
    .dash-col2 { grid-column: 2; grid-row: 1; }
    .dash-col3 { grid-column: 1 / -1; grid-row: 2; }
    .dash-row2-left {
        grid-column: 1 / -1;
        grid-row: 3;
    }
    .dash-row2-right {
        grid-column: 1 / -1;
        grid-row: 4;
        flex-direction: column;
    }
    .dash-row2-right > .cd-card {
        flex: 1;
    }
}

@media (max-width: 767px) {
    .client-dashboard {
        padding: 0;
    }
    .cd-header {
        margin-bottom: 24px;
    }
    .dash-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .dash-col1,
    .dash-col2,
    .dash-col3,
    .dash-row2-left,
    .dash-row2-right {
        grid-column: 1;
        grid-row: auto;
    }
    .dash-row2-right {
        flex-direction: column;
    }
    .cd-greeting {
        font-size: 1.375rem;
    }
    .cd-table-wrap {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    .cd-tab {
        padding: 10px 16px;
        font-size: 0.8125rem;
    }
    .cd-wallet-balance {
        font-size: 1.375rem;
    }
    .cd-card-inner {
        padding: 20px;
    }
    .cd-card-footer {
        padding: 12px 20px;
    }
    .cd-contracts {
        padding: 20px;
    }
}

.form-control.is-invalid {
    border-color: #dc2626;
}

.invalid-feedback {
    display: block;
    font-size: 12px;
    color: #dc2626;
    margin-top: 4px;
}

/* ------------------------------------------------------------
   Client sidebar icon + toggle hardening
   Prevents default <button> styles / other CSS bundles from
   affecting sidebar icon sizing and layout.
------------------------------------------------------------- */

.client-layout .client-sidebar .nav-link,
.client-layout .client-sidebar .nav-group-toggle {
    color: rgba(255,255,255,0.82);
}

/* Reset button quirks in some browsers/themes */
.client-layout .client-sidebar .nav-group-toggle {
    appearance: none;
    -webkit-appearance: none;
    background: transparent;
    border: 0;
}

/* Force consistent icon sizing regardless of inherited styles */
.client-layout .client-sidebar svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    display: inline-block;
}

.client-layout .client-sidebar .nav-chevron {
    width: 14px;
    height: 14px;
}

/* If some global CSS sets svg width/height via inline or !important,
   this keeps the sidebar stable. */
.client-layout .client-sidebar .nav-link svg,
.client-layout .client-sidebar .nav-group-toggle svg {
    max-width: 18px;
    max-height: 18px;
}

.client-layout .client-sidebar .nav-group-toggle svg.nav-chevron {
    max-width: 14px;
    max-height: 14px;
}

