/* ==========================================================================
   SuportLayer — single stylesheet (light/dark, forms, all pages)
   ========================================================================== */

/* --- Design tokens: light --- */
:root,
[data-theme="light"] {
    color-scheme: light;
    --brand: #6366f1;
    --brand-dark: #4f46e5;
    --brand-blue: #3b82f6;
    --brand-gradient: linear-gradient(135deg, #6366f1 0%, #3b82f6 100%);
    --success: #10b981;
    --purple: #8b5cf6;
    --orange: #f59e0b;
    --danger: #ef4444;

    --app-bg: #f8f9fc;
    --surface: #ffffff;
    --surface-2: #f1f5f9;
    --surface-hover: #eef2f7;
    --text-primary: #0f172a;
    --text-secondary: #334155;
    --text-muted: #64748b;
    --border: #e8ecf3;
    --border-focus: #6366f1;
    --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06);
    --shadow-md: 0 12px 32px rgba(15, 23, 42, 0.08);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;

    --input-bg: #ffffff;
    --input-border: #e2e8f0;
    --input-focus-ring: rgba(99, 102, 241, 0.25);
    --dropdown-bg: #ffffff;
    --chart-grid: #f1f5f9;
    --progress-bg: #eef2f7;
    --auth-gradient: linear-gradient(135deg, #0f172a 0%, #1e3a5f 50%, #2563eb 100%);

    --sidebar-bg: #ffffff;
    --sidebar-hover: #eef2f7;
    --sidebar-active: #3b82f6;
    --sidebar-text: #64748b;
    --sidebar-text-hover: #0f172a;
    --sidebar-text-on-active: #ffffff;
    --sidebar-heading: #0f172a;
    --sidebar-border: #e8ecf3;
    --sidebar-muted: #94a3b8;
    --sidebar-tenant-bg: #f8fafc;
    --sidebar-tenant-border: #e2e8f0;
    --sidebar-tenant-hover-bg: #f1f5f9;
    --sidebar-tenant-hover-border: #cbd5e1;
    --sidebar-tenant-name: #0f172a;
    --sidebar-tenant-domain: #64748b;
    --sidebar-tenant-chevron: #94a3b8;
    --sidebar-avatar-bg: rgba(59, 130, 246, 0.12);
    --sidebar-avatar-color: #2563eb;
    --sidebar-dropdown-border: #e2e8f0;
    --sidebar-dropdown-shadow: 0 12px 32px rgba(15, 23, 42, 0.1);
    --sidebar-dropdown-text: #334155;
    --sidebar-dropdown-muted: #64748b;
    --sidebar-dropdown-item-hover-text: #0f172a;
    --sidebar-dropdown-active-bg: rgba(59, 130, 246, 0.1);
    --sidebar-dropdown-link: #64748b;
    --sidebar-dropdown-link-hover: #0f172a;
    --sidebar-plan-bg: #f8fafc;
    --sidebar-plan-border: #e8ecf3;
    --sidebar-plan-title: #64748b;
    --sidebar-plan-name: #0f172a;
    --sidebar-footer-text: #64748b;
    --sidebar-footer-link-hover: #0f172a;
    --main-bg: var(--app-bg);
    --card-border: var(--border);
    --primary: var(--brand-blue);
}

/* --- Design tokens: dark --- */
[data-theme="dark"] {
    color-scheme: dark;
    --app-bg: #0c1222;
    --surface: #1a2332;
    --surface-2: #243044;
    --surface-hover: #2d3a4f;
    --text-primary: #f1f5f9;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;
    --border: #2d3a4f;
    --border-focus: #818cf8;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.35);
    --shadow-md: 0 12px 32px rgba(0, 0, 0, 0.4);
    --input-bg: #1a2332;
    --input-border: #334155;
    --input-focus-ring: rgba(129, 140, 248, 0.3);
    --dropdown-bg: #1a2332;
    --chart-grid: #243044;
    --progress-bg: #243044;
    --auth-gradient: linear-gradient(135deg, #020617 0%, #0f172a 50%, #1e3a8a 100%);
    --sidebar-bg: #0b1426;
    --sidebar-hover: #152238;
    --sidebar-active: #3b82f6;
    --sidebar-text: #94a3b8;
    --sidebar-text-hover: #ffffff;
    --sidebar-text-on-active: #ffffff;
    --sidebar-heading: #ffffff;
    --sidebar-border: rgba(255, 255, 255, 0.06);
    --sidebar-muted: #64748b;
    --sidebar-tenant-bg: rgba(255, 255, 255, 0.04);
    --sidebar-tenant-border: rgba(255, 255, 255, 0.1);
    --sidebar-tenant-hover-bg: rgba(255, 255, 255, 0.07);
    --sidebar-tenant-hover-border: rgba(255, 255, 255, 0.16);
    --sidebar-tenant-name: #ffffff;
    --sidebar-tenant-domain: #94a3b8;
    --sidebar-tenant-chevron: #64748b;
    --sidebar-avatar-bg: rgba(59, 130, 246, 0.25);
    --sidebar-avatar-color: #93c5fd;
    --sidebar-dropdown-border: rgba(255, 255, 255, 0.12);
    --sidebar-dropdown-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
    --sidebar-dropdown-text: #cbd5e1;
    --sidebar-dropdown-muted: #94a3b8;
    --sidebar-dropdown-item-hover-text: #ffffff;
    --sidebar-dropdown-active-bg: rgba(59, 130, 246, 0.2);
    --sidebar-dropdown-link: #94a3b8;
    --sidebar-dropdown-link-hover: #ffffff;
    --sidebar-plan-bg: rgba(255, 255, 255, 0.05);
    --sidebar-plan-border: rgba(255, 255, 255, 0.08);
    --sidebar-plan-title: #94a3b8;
    --sidebar-plan-name: #ffffff;
    --sidebar-footer-text: #94a3b8;
    --sidebar-footer-link-hover: #ffffff;
    --main-bg: var(--app-bg);
    --card-border: var(--border);
}

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

html {
    scrollbar-gutter: stable;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    -webkit-font-smoothing: antialiased;
}

/* ==========================================================================
   App tooltips (Bootstrap + .app-tooltip)   light/dark theme
   ========================================================================== */
.tooltip.app-tooltip {
    --app-tooltip-bg: var(--surface);
    --app-tooltip-border: var(--card-border);
    --app-tooltip-text: var(--text-primary);
    opacity: 1 !important;
    font-family: inherit;
    pointer-events: none;
}

.tooltip.app-tooltip .tooltip-inner {
    max-width: min(280px, calc(100vw - 2rem));
    padding: 0.5rem 0.75rem;
    font-size: 0.78rem;
    font-weight: 500;
    line-height: 1.45;
    text-align: left;
    color: var(--app-tooltip-text);
    background: var(--app-tooltip-bg);
    border: 1px solid var(--app-tooltip-border);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-md);
}

.tooltip.app-tooltip.bs-tooltip-top .tooltip-arrow::before {
    border-top-color: var(--app-tooltip-bg);
}

.tooltip.app-tooltip.bs-tooltip-bottom .tooltip-arrow::before {
    border-bottom-color: var(--app-tooltip-bg);
}

.tooltip.app-tooltip.bs-tooltip-start .tooltip-arrow::before {
    border-left-color: var(--app-tooltip-bg);
}

.tooltip.app-tooltip.bs-tooltip-end .tooltip-arrow::before {
    border-right-color: var(--app-tooltip-bg);
}

[data-theme="dark"] .tooltip.app-tooltip .tooltip-inner {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
}

/* ==========================================================================
   Modern form system (inputs, textarea, select, checkbox)
   ========================================================================== */
.ui-label,
.form-label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 0.4rem;
    letter-spacing: 0.01em;
}

.ui-label-required::after {
    content: ' *';
    color: var(--danger);
}

.ui-field {
    margin-bottom: 1.15rem;
}

.ui-hint {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.35rem;
}

.ui-input,
.ui-textarea,
.ui-select,
.form-control:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="color"]),
.form-select {
    width: 100%;
    font-family: inherit;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--text-primary);
    background-color: var(--input-bg);
    border: 1.5px solid var(--input-border);
    border-radius: var(--radius-md);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
    appearance: none;
    -webkit-appearance: none;
}

.ui-input,
.form-control:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="color"]) {
    height: 2.75rem;
    padding: 0 1rem;
    line-height: 1.4;
}

.ui-textarea,
textarea.form-control {
    min-height: 7rem;
    padding: 0.85rem 1rem;
    resize: vertical;
    line-height: 1.55;
}

.ui-select,
.form-select,
select.form-control {
    height: 2.75rem;
    padding: 0 2.5rem 0 1rem;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2364748b' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 12px;
}

[data-theme="dark"] .ui-select,
[data-theme="dark"] .form-select,
[data-theme="dark"] select.form-control {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2394a3b8' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
}

.ui-input::placeholder,
.ui-textarea::placeholder,
.form-control::placeholder {
    color: var(--text-muted);
    opacity: 0.85;
    font-weight: 400;
}

.ui-input:hover,
.ui-textarea:hover,
.ui-select:hover,
.form-control:hover:not(:disabled):not([readonly]),
.form-select:hover:not(:disabled) {
    border-color: #cbd5e1;
    background-color: var(--surface);
}

[data-theme="dark"] .ui-input:hover,
[data-theme="dark"] .ui-textarea:hover,
[data-theme="dark"] .ui-select:hover,
[data-theme="dark"] .form-control:hover:not(:disabled),
[data-theme="dark"] .form-select:hover:not(:disabled) {
    border-color: #475569;
}

.ui-input:focus,
.ui-textarea:focus,
.ui-select:focus,
.form-control:focus,
.form-select:focus {
    outline: none;
    border-color: var(--border-focus);
    box-shadow: 0 0 0 4px var(--input-focus-ring);
    background-color: var(--input-bg);
}

.ui-input:disabled,
.ui-textarea:disabled,
.ui-select:disabled,
.form-control:disabled,
.form-select:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    background-color: var(--surface-2);
}

.ui-input.is-invalid,
.ui-textarea.is-invalid,
.ui-select.is-invalid,
.form-control.is-invalid,
.form-select.is-invalid {
    border-color: var(--danger);
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15);
}

.ui-invalid-feedback,
.invalid-feedback {
    font-size: 0.75rem;
    color: var(--danger);
    margin-top: 0.35rem;
    font-weight: 500;
}

.ui-check {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-height: 2.75rem;
}

.ui-check .form-check-input {
    width: 1.125rem;
    height: 1.125rem;
    margin: 0;
    border: 1.5px solid var(--input-border);
    border-radius: 4px;
    cursor: pointer;
    flex-shrink: 0;
}

.ui-check .form-check-input:checked {
    background-color: var(--brand);
    border-color: var(--brand);
}

.ui-check .form-check-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    cursor: pointer;
    margin: 0;
}

.ui-input-group {
    position: relative;
}

.ui-input-group .ui-input-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 0.9rem;
    pointer-events: none;
}

.ui-input-group .ui-input {
    padding-left: 2.65rem;
}

.chart-range-select {
    width: auto !important;
    min-width: 140px;
    font-size: 0.8125rem !important;
    height: 2.25rem !important;
    padding: 0 2rem 0 0.75rem !important;
}

/* Buttons */
.btn-primary {
    background: var(--brand-gradient) !important;
    border: none !important;
    font-weight: 600;
    border-radius: var(--radius-md) !important;
    padding: 0.65rem 1.25rem;
    transition: transform 0.15s, box-shadow 0.2s, opacity 0.2s;
}

.btn-primary:hover {
    opacity: 0.95;
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.35);
    transform: translateY(-1px);
}

.btn-primary.is-loading,
.btn-primary.is-loading:hover {
    opacity: 0.92;
    transform: none;
    box-shadow: none;
    cursor: wait;
    pointer-events: none;
}

.btn-primary.is-loading .btn-spinner {
    display: inline-block;
    width: 1rem;
    height: 1rem;
    margin-right: 0.5rem;
    vertical-align: -0.15em;
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-top-color: #fff;
    border-radius: 50%;
    animation: btn-spinner-spin 0.65s linear infinite;
}

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

.btn-outline-primary {
    color: var(--brand) !important;
    border-color: var(--brand) !important;
    border-radius: var(--radius-md) !important;
    font-weight: 600;
}

.btn-outline-primary:hover {
    background: var(--brand) !important;
    border-color: var(--brand) !important;
    color: #fff !important;
}

/* ==========================================================================
   Dashboard layout
   ========================================================================== */
body.dashboard-body {
    background: var(--main-bg);
    min-height: 100vh;
    color: var(--text-primary);
}

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

.app-sidebar {
    width: 260px;
    background: var(--sidebar-bg);
    color: var(--sidebar-text);
    border-right: 1px solid var(--sidebar-border);
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 1040;
    overflow: hidden;
}

.sidebar-brand {
    padding: 1.25rem 1rem;
    border-bottom: 1px solid var(--sidebar-border);
}

.sidebar-brand h5,
.sidebar-brand .sidebar-brand-fallback,
.sidebar-brand .app-brand-mark__name {
    color: var(--sidebar-heading);
    font-weight: 700;
    margin: 0;
    font-size: 1rem;
    line-height: 1.25;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
}

.sidebar-brand .app-brand-mark {
    width: 100%;
    min-width: 0;
}

.sidebar-brand .app-brand-mark__name {
    flex: 1;
}

.sidebar-brand-logo {
    display: block;
    max-width: 100%;
    width: auto;
    height: auto;
    max-height: 32px;
    object-fit: contain;
    object-position: left center;
}

.sidebar-brand .brand-icon {
    width: 36px;
    height: 36px;
    background: var(--sidebar-active);
    border-radius: var(--radius-sm);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--sidebar-text-on-active);
    margin-right: 0.5rem;
}

.sidebar-tenant-wrap {
    padding: 0.75rem 1rem;
    flex-shrink: 0;
    min-width: 0;
    overflow: visible;
    position: relative;
    z-index: 2;
}

.tenant-dropdown {
    position: relative;
    min-width: 0;
    max-width: fit-content;
}

.tenant-dropdown.show {
    z-index: 1055;
}

.tenant-box {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    width: 100%;
    min-height: 52px;
    padding: 0.65rem 0.75rem;
    background: var(--sidebar-tenant-bg);
    border: 1px solid var(--sidebar-tenant-border);
    border-radius: 10px;
    font-size: 0.8rem;
    color: inherit;
    cursor: default;
    text-align: left;
    transition: background 0.15s, border-color 0.15s;
}

.tenant-box:not(:disabled):hover {
    background: var(--sidebar-tenant-hover-bg);
    border-color: var(--sidebar-tenant-hover-border);
}

.tenant-box-avatar {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 9px;
    background: var(--sidebar-avatar-bg);
    color: var(--sidebar-avatar-color);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.tenant-box-text {
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.tenant-box-name {
    color: var(--sidebar-tenant-name);
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tenant-box-domain {
    color: var(--sidebar-tenant-domain);
    display: block;
    margin-top: 2px;
    font-size: 0.72rem;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tenant-chevron {
    flex-shrink: 0;
    color: var(--sidebar-tenant-chevron);
    font-size: 0.7rem;
}

.tenant-dropdown .dropdown-toggle::after {
    display: none;
}

.tenant-dropdown-menu {
    --bs-dropdown-min-width: 0;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: auto;
    min-width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    background: var(--sidebar-bg);
    border: 1px solid var(--sidebar-dropdown-border);
    border-radius: 10px;
    padding: 0.35rem 0;
    box-shadow: var(--sidebar-dropdown-shadow);
    margin-top: 0.35rem !important;
    max-height: min(16rem, calc(100vh - 10rem));
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    z-index: 1055;
}

/* Keep menu aligned to the toggle, not viewport-wide (Popper fixed + w-100) */
.tenant-dropdown-menu.show {
    inset: auto !important;
    transform: none !important;
    margin-top: 0.35rem !important;
}

.tenant-dropdown-menu > li {
    min-width: 0;
}

.tenant-dropdown-menu form {
    display: block;
    width: 100%;
    min-width: 0;
    margin: 0;
}

.tenant-dropdown-label {
    display: block;
    padding: 0.35rem 0.85rem 0.25rem;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--sidebar-muted);
}

.tenant-dropdown-item {
    display: flex !important;
    align-items: center;
    gap: 0.65rem;
    padding: 0.55rem 0.85rem !important;
    color: var(--sidebar-dropdown-text) !important;
    background: transparent;
    border: none;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
    text-align: left;
}

.tenant-dropdown-item:hover,
.tenant-dropdown-item:focus {
    background: var(--sidebar-hover) !important;
    color: var(--sidebar-dropdown-item-hover-text) !important;
}

.tenant-dropdown-item.active {
    background: var(--sidebar-dropdown-active-bg) !important;
    color: var(--sidebar-dropdown-item-hover-text) !important;
}

.tenant-item-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: var(--sidebar-avatar-bg);
    color: var(--sidebar-avatar-color);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 0.8rem;
}

.tenant-item-text {
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.tenant-item-text strong {
    display: block;
    font-size: 0.82rem;
    line-height: 1.3;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tenant-item-text small {
    display: block;
    font-size: 0.72rem;
    color: var(--sidebar-dropdown-muted);
    margin-top: 2px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tenant-item-check {
    flex-shrink: 0;
    color: var(--sidebar-active);
    font-size: 0.75rem;
    margin-left: 0.15rem;
}

.tenant-dropdown-link {
    color: var(--sidebar-dropdown-link) !important;
    font-size: 0.82rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tenant-dropdown-link:hover {
    color: var(--sidebar-dropdown-link-hover) !important;
}

.tenant-box-empty:hover {
    background: var(--sidebar-tenant-hover-bg);
    border-color: var(--sidebar-tenant-hover-border);
    color: inherit;
}

.tenant-box-empty .tenant-box-avatar {
    background: var(--sidebar-avatar-bg);
    color: var(--sidebar-avatar-color);
}

.context-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.85rem 1.25rem;
    padding: 0.85rem 1.1rem;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.08) 0%, var(--surface) 50%, rgba(59, 130, 246, 0.06) 100%);
    border: 1px solid rgba(99, 102, 241, 0.16);
    border-radius: 16px;
    font-size: 0.88rem;
    color: var(--text-secondary);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.05) inset,
        0 6px 20px rgba(15, 23, 42, 0.05);
}

[data-theme="dark"] .context-banner {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.14) 0%, rgba(15, 23, 42, 0.5) 55%, rgba(59, 130, 246, 0.08) 100%);
    border-color: rgba(99, 102, 241, 0.24);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.context-banner-main {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
    flex: 1 1 240px;
}

.context-banner-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.35rem;
    height: 2.35rem;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.18) 0%, rgba(59, 130, 246, 0.12) 100%);
    color: var(--brand);
    flex-shrink: 0;
    font-size: 1rem;
}

.context-banner-text {
    color: var(--text-secondary);
    line-height: 1.5;
}

.context-banner-text strong {
    color: var(--text-primary);
    font-weight: 700;
}

.context-banner-toolbar {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0.3rem 0.35rem;
    background: var(--surface);
    border: 1px solid var(--card-border);
    border-radius: 999px;
    box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.04);
    flex-shrink: 0;
}

[data-theme="dark"] .context-banner-toolbar {
    background: rgba(15, 23, 42, 0.55);
}

.context-banner-share-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.42rem 0.85rem 0.42rem 0.5rem;
    border: 0;
    border-radius: 999px;
    background: var(--brand-gradient);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    transition:
        transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 0.35s cubic-bezier(0.22, 1, 0.36, 1);
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.28);
}

.context-banner-share-btn:hover {
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.38);
}

.context-banner-share-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.65rem;
    height: 1.65rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    font-size: 0.72rem;
}

.context-banner-range {
    display: inline-flex;
    align-items: center;
    gap: 0.12rem;
    padding: 0.18rem;
    margin: 0;
}

.context-banner-range-option {
    min-width: 2.5rem;
    padding: 0.38rem 0.65rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-decoration: none;
    text-align: center;
    color: var(--text-muted);
    background: transparent;
    line-height: 1;
    transition:
        color 0.3s cubic-bezier(0.22, 1, 0.36, 1),
        background 0.3s cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.context-banner-range-option:hover {
    color: var(--text-primary);
    background: var(--surface-2);
}

.context-banner-range-option.is-active {
    color: #fff;
    background: var(--brand-gradient);
    box-shadow: 0 3px 12px rgba(99, 102, 241, 0.32);
}

.context-banner-range-option.is-active:hover {
    color: #fff;
}

@media (max-width: 575.98px) {
    .context-banner-toolbar {
        width: 100%;
        justify-content: space-between;
    }

    .context-banner-share-btn {
        flex: 1;
        justify-content: center;
    }

    .context-banner-range {
        flex: 1;
        justify-content: center;
    }
}

.ui-data-table tbody tr.is-current-context td {
    background: rgba(59, 130, 246, 0.06);
}

.website-context-badge {
    display: inline-block;
    margin-left: 0.35rem;
    font-size: 0.62rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--brand-blue);
    background: rgba(59, 130, 246, 0.12);
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    vertical-align: middle;
}

.chatbot-status.pending {
    color: #b45309;
    background: rgba(245, 158, 11, 0.15);
}

.sidebar-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
    z-index: 1035;
    opacity: 0;
    transition: opacity 0.3s;
}

.sidebar-backdrop.show {
    display: block;
    opacity: 1;
}

body.sidebar-open {
    overflow: hidden;
}

.sidebar-nav {
    padding: 0.5rem 0.75rem;
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
}

.sidebar-nav .nav-link {
    position: relative;
    color: var(--sidebar-text);
    padding: 0.52rem 0.75rem 0.52rem 0.65rem;
    border-radius: 10px;
    font-size: 0.84rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin-bottom: 3px;
    text-decoration: none;
    border: 1px solid transparent;
    transition:
        background 0.3s cubic-bezier(0.22, 1, 0.36, 1),
        color 0.3s ease,
        border-color 0.3s ease,
        box-shadow 0.35s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.sidebar-nav .nav-link:hover:not(.active) {
    background: var(--sidebar-hover);
    color: var(--sidebar-text-hover);
    border-color: rgba(99, 102, 241, 0.12);
}

.sidebar-nav .nav-link.active {
    color: #e0e7ff;
    font-weight: 600;
    background: linear-gradient(105deg, #4338ca 0%, #3730a3 52%, #312e81 100%);
    border-color: rgba(49, 46, 129, 0.45);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.06) inset,
        0 4px 14px rgba(49, 46, 129, 0.28);
    transform: translateX(2px);
}

.sidebar-nav .nav-link.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 58%;
    border-radius: 0 4px 4px 0;
    background: rgba(165, 180, 252, 0.75);
    box-shadow: none;
}

.sidebar-nav .nav-link i {
    width: 1.65rem;
    height: 1.65rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    flex-shrink: 0;
    border-radius: 8px;
    transition: background 0.3s ease;
}

.sidebar-nav .nav-link.active i {
    background: rgba(15, 23, 42, 0.22);
}

[data-theme="dark"] .sidebar-nav .nav-link.active {
    color: #c7d2fe;
    background: linear-gradient(105deg, rgba(67, 56, 202, 0.55) 0%, rgba(55, 48, 163, 0.62) 55%, rgba(49, 46, 129, 0.7) 100%);
    border-color: rgba(129, 140, 248, 0.22);
    box-shadow:
        0 1px 0 rgba(0, 0, 0, 0.15) inset,
        0 4px 16px rgba(15, 23, 42, 0.35);
}

[data-theme="dark"] .sidebar-nav .nav-link.active::before {
    background: rgba(129, 140, 248, 0.65);
}

[data-theme="dark"] .sidebar-nav .nav-link.active i {
    background: rgba(15, 23, 42, 0.28);
}

[data-theme="dark"] .sidebar-nav .nav-link:hover:not(.active) {
    border-color: rgba(129, 140, 248, 0.2);
}

.badge-new {
    font-size: 0.65rem;
    background: var(--sidebar-active);
    color: var(--sidebar-text-on-active);
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: auto;
}

.sidebar-nav .nav-link .sidebar-nav-count {
    margin-left: auto;
    font-size: 0.65rem;
    font-weight: 600;
    line-height: 1;
    min-width: 1.25rem;
    padding: 3px 7px;
    border-radius: 999px;
    background: var(--sidebar-active);
    color: var(--sidebar-text-on-active);
    text-align: center;
}

.sidebar-nav .nav-link.active .sidebar-nav-count {
    background: rgba(255, 255, 255, 0.2);
    color: #e0e7ff;
}

.sidebar-nav-count--waiting {
    background: #f59e0b;
    color: #1e293b;
}

.sidebar-nav .nav-link.active .sidebar-nav-count--waiting {
    background: rgba(245, 158, 11, 0.85);
    color: #1e293b;
}

.sidebar-section-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--sidebar-muted);
    padding: 0.75rem 0.75rem 0.25rem;
    margin-top: 0.5rem;
}

.sidebar-plan-card {
    margin: 1rem;
    padding: 1rem;
    background: var(--sidebar-plan-bg);
    border: 1px solid var(--sidebar-plan-border);
    border-radius: 10px;
}

.sidebar-plan-card .plan-title { color: var(--sidebar-plan-title); font-size: 0.75rem; font-weight: 500; }
.sidebar-plan-card .plan-name { color: var(--sidebar-plan-name); font-weight: 600; font-size: 0.95rem; }
.sidebar-plan-card .plan-billing { color: var(--sidebar-muted) !important; font-size: 0.75rem; }

.badge-plan-active {
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
    font-size: 0.65rem;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 6px;
}

.sidebar-footer-link {
    padding: 1rem;
    border-top: 1px solid var(--sidebar-border);
    font-size: 0.8rem;
}

.sidebar-footer-link a {
    color: var(--sidebar-footer-text);
    text-decoration: none;
}

.sidebar-footer-link a:hover {
    color: var(--sidebar-footer-link-hover);
}

.sidebar-footer-support {
    padding: 0.75rem 0.85rem 1rem;
    border-top: 1px solid var(--sidebar-border);
}

.sidebar-support-cta {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    width: 100%;
    padding: 0.65rem 0.7rem;
    border-radius: 12px;
    text-decoration: none;
    color: var(--sidebar-footer-text);
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.18) 0%, rgba(59, 130, 246, 0.1) 100%);
    border: 1px solid rgba(99, 102, 241, 0.22);
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.12);
    transition:
        transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 0.35s cubic-bezier(0.22, 1, 0.36, 1),
        border-color 0.35s ease,
        background 0.35s ease;
}

.sidebar-support-cta:hover {
    color: var(--sidebar-footer-link-hover);
    border-color: rgba(129, 140, 248, 0.45);
    box-shadow: 0 8px 22px rgba(99, 102, 241, 0.22);
    transform: translateY(-2px);
}

.sidebar-support-cta--workspace {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.16) 0%, rgba(59, 130, 246, 0.08) 100%);
    border-color: rgba(16, 185, 129, 0.28);
}

.sidebar-support-cta--workspace:hover {
    border-color: rgba(52, 211, 153, 0.45);
    box-shadow: 0 8px 22px rgba(16, 185, 129, 0.18);
}

.sidebar-support-cta-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.15rem;
    height: 2.15rem;
    border-radius: 10px;
    font-size: 0.95rem;
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.14);
    color: #a5b4fc;
}

.sidebar-support-cta-icon--workspace {
    color: #6ee7b7;
}

.sidebar-support-cta-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.sidebar-support-cta-title {
    font-size: 0.82rem;
    font-weight: 700;
    line-height: 1.25;
    color: var(--sidebar-footer-link-hover);
}

.sidebar-support-cta-desc {
    font-size: 0.7rem;
    line-height: 1.3;
    color: var(--sidebar-footer-text);
    opacity: 0.9;
}

.sidebar-support-cta-chevron {
    font-size: 0.65rem;
    color: var(--sidebar-footer-text);
    opacity: 0.75;
    flex-shrink: 0;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.sidebar-support-cta:hover .sidebar-support-cta-chevron {
    opacity: 1;
    transform: translateX(2px);
}

.app-sidebar-super .sidebar-support-cta {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.2) 0%, rgba(15, 23, 42, 0.35) 100%);
}

.app-main {
    flex: 1;
    margin-left: 260px;
    min-width: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.app-topbar {
    position: sticky;
    top: 0;
    z-index: 1030;
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--card-border);
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    box-shadow: var(--shadow-sm);
}

[data-theme="dark"] .app-topbar {
    background: rgba(12, 18, 34, 0.92);
}


.app-topbar h1 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    color: var(--text-primary);
}

.app-topbar .subtitle { color: var(--text-muted); font-size: 0.875rem; margin: 0; }

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.35rem 0.45rem 0.35rem 0.55rem;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.06) 0%, var(--surface) 45%, rgba(16, 185, 129, 0.04) 100%);
    border: 1px solid rgba(99, 102, 241, 0.14);
    border-radius: 999px;
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.06) inset,
        0 6px 20px rgba(15, 23, 42, 0.06);
}

[data-theme="dark"] .topbar-actions {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.12) 0%, rgba(15, 23, 42, 0.6) 50%, rgba(16, 185, 129, 0.06) 100%);
    border-color: rgba(99, 102, 241, 0.22);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.04) inset,
        0 8px 24px rgba(0, 0, 0, 0.25);
}

.topbar-toolbar {
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

.topbar-actions-divider {
    width: 1px;
    height: 28px;
    background: linear-gradient(180deg, transparent, var(--card-border), transparent);
    flex-shrink: 0;
}

.topbar-lang-switch {
    display: inline-flex;
    align-items: center;
    gap: 0.15rem;
    padding: 0.22rem;
    background: var(--surface);
    border: 1px solid var(--card-border);
    border-radius: 999px;
    box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.04);
    flex-shrink: 0;
}

.topbar-lang-option {
    min-width: 2.35rem;
    padding: 0.38rem 0.62rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-decoration: none;
    text-align: center;
    color: var(--text-muted);
    background: transparent;
    line-height: 1;
    transition:
        color 0.3s cubic-bezier(0.22, 1, 0.36, 1),
        background 0.3s cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 0.3s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.topbar-lang-option:hover {
    color: var(--text-primary);
    background: var(--surface-2);
}

.topbar-lang-option.is-active {
    color: #fff;
    background: var(--brand-gradient);
    box-shadow: 0 3px 12px rgba(99, 102, 241, 0.35);
}

.topbar-lang-option.is-active:hover {
    color: #fff;
    transform: translateY(-1px);
}

.lang-switch,
.lp-lang-switch {
    display: inline-flex;
    border: 1px solid var(--card-border);
    border-radius: var(--radius-sm);
    overflow: hidden;
    flex-shrink: 0;
}

.lp-lang-switch {
    border-color: var(--border);
}

.lp-lang-switch.dropdown {
    overflow: visible;
    border: 0;
}

.lang-switch a,
.lp-lang-switch a {
    padding: 0.4rem 0.65rem;
    font-size: 0.72rem;
    font-weight: 700;
    text-decoration: none;
    color: var(--text-muted);
    background: var(--surface);
    line-height: 1;
    transition: background 0.15s, color 0.15s;
}

.lang-switch a:hover,
.lp-lang-switch a:hover {
    color: var(--text-primary);
    background: var(--surface-2);
}

.lang-switch a.active,
.lp-lang-switch a.active {
    background: var(--brand);
    color: #fff;
}

.lang-switch a.active:hover,
.lp-lang-switch a.active:hover {
    background: var(--brand-dark);
    color: #fff;
}

.topbar-icon-btn {
    width: 36px;
    height: 36px;
    border: 1px solid var(--card-border);
    border-radius: 50%;
    background: var(--surface);
    color: var(--text-secondary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    cursor: pointer;
    flex-shrink: 0;
    transition:
        border-color 0.3s ease,
        background 0.3s ease,
        color 0.3s ease,
        transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.topbar-icon-btn:hover {
    color: var(--brand);
    background: var(--surface-2);
    border-color: rgba(99, 102, 241, 0.35);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(99, 102, 241, 0.15);
}

.topbar-icon-btn:focus-visible {
    outline: 2px solid var(--brand);
    outline-offset: 2px;
}

.topbar-icon-btn .notif-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: var(--brand-blue);
    color: #fff;
    font-size: 0.6rem;
    font-weight: 600;
    min-width: 17px;
    height: 17px;
    padding: 0 4px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.notif-dropdown-menu {
    width: min(360px, calc(100vw - 2rem));
    padding: 0;
    border: 1px solid var(--card-border);
    border-radius: 14px;
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

.notif-dropdown-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.85rem 1rem;
    border-bottom: 1px solid var(--card-border);
    background: var(--surface);
}

.notif-dropdown-title {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-primary);
}

.notif-dropdown-count {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--brand-blue);
    background: rgba(59, 130, 246, 0.12);
    padding: 0.2rem 0.5rem;
    border-radius: 999px;
}

.notif-dropdown-list {
    list-style: none;
    margin: 0;
    padding: 0.35rem 0;
    max-height: 320px;
    overflow-y: auto;
}

.notif-dropdown-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.7rem 1rem;
    text-decoration: none;
    color: inherit;
    transition: background 0.15s;
    position: relative;
}

.notif-dropdown-item:hover {
    background: var(--surface-2);
    color: inherit;
}

.notif-dropdown-item.is-unread {
    background: rgba(59, 130, 246, 0.04);
}

.notif-dropdown-item.is-unread:hover {
    background: rgba(59, 130, 246, 0.08);
}

.notif-dropdown-icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
}

.notif-dropdown-icon.blue { background: #dbeafe; color: var(--brand-blue); }
.notif-dropdown-icon.green { background: #d1fae5; color: var(--success); }
.notif-dropdown-icon.purple { background: #ede9fe; color: var(--purple); }
.notif-dropdown-icon.orange { background: #ffedd5; color: var(--orange); }

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

.notif-dropdown-item-title {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.35;
    margin-bottom: 2px;
}

.notif-dropdown-item-meta {
    display: block;
    font-size: 0.72rem;
    color: var(--text-muted);
    line-height: 1.35;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.notif-unread-dot {
    flex-shrink: 0;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--brand-blue);
    margin-top: 6px;
}

.notif-dropdown-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.65rem 1rem;
    border-top: 1px solid var(--card-border);
    background: var(--surface-2);
}

.notif-dropdown-link {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--brand-blue);
    text-decoration: none;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
}

.notif-dropdown-link:hover {
    color: var(--brand-dark, #2563eb);
    text-decoration: underline;
}

[data-theme="dark"] .notif-dropdown-icon.blue { background: rgba(59, 130, 246, 0.2); }
[data-theme="dark"] .notif-dropdown-icon.green { background: rgba(16, 185, 129, 0.2); }
[data-theme="dark"] .notif-dropdown-icon.purple { background: rgba(139, 92, 246, 0.2); }
[data-theme="dark"] .notif-dropdown-icon.orange { background: rgba(245, 158, 11, 0.2); }

.user-pill {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.3rem 0.85rem 0.3rem 0.3rem;
    border: 1px solid var(--card-border);
    border-radius: 999px;
    background: var(--surface);
    cursor: pointer;
    transition:
        border-color 0.3s ease,
        background 0.3s ease,
        box-shadow 0.35s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.user-pill:hover {
    border-color: rgba(99, 102, 241, 0.3);
    box-shadow: 0 6px 18px rgba(99, 102, 241, 0.12);
    transform: translateY(-1px);
}

.user-avatar {
    width: 38px;
    height: 38px;
    background: var(--brand-gradient);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    flex-shrink: 0;
    object-fit: cover;
}

.user-avatar-sm {
    width: 38px;
    height: 38px;
    font-size: 0.8rem;
}

.user-avatar-md {
    width: 48px;
    height: 48px;
    font-size: 0.9rem;
}

.user-avatar-xl {
    width: 120px;
    height: 120px;
    font-size: 2rem;
}

.user-avatar-img {
    border: 2px solid var(--card-border);
}

.user-pill-text {
    min-width: 0;
}

.user-pill .name { font-weight: 600; font-size: 0.875rem; color: var(--text-primary); line-height: 1.2; }
.user-pill .role { font-size: 0.75rem; color: var(--text-muted); }

.user-dropdown-menu {
    min-width: 280px;
    padding: 0;
    border: 1px solid rgba(99, 102, 241, 0.14);
    border-radius: 16px;
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.06) inset,
        0 16px 40px rgba(15, 23, 42, 0.14);
    overflow: hidden;
}

[data-theme="dark"] .user-dropdown-menu {
    border-color: rgba(99, 102, 241, 0.22);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

.user-dropdown-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.05rem;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, var(--surface-2) 55%);
    border-bottom: 1px solid var(--card-border);
}

.user-dropdown-header strong {
    display: block;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-primary);
}

.user-dropdown-header span {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    word-break: break-all;
    margin-top: 0.1rem;
}

.user-dropdown-mobile-extras {
    display: none;
}

.user-dropdown-mobile-divider {
    height: 1px;
    margin: 0.35rem 0.65rem 0.45rem;
    background: var(--card-border);
}

.user-dropdown-item-icon--billing {
    background: rgba(16, 185, 129, 0.14);
    color: #059669;
}

.user-dropdown-item-icon--support {
    background: rgba(59, 130, 246, 0.14);
    color: #2563eb;
}

.user-dropdown-body {
    padding: 0.45rem;
    list-style: none;
}

.user-dropdown-footer {
    padding: 0.45rem 0.45rem 0.5rem;
    border-top: 1px solid var(--card-border);
    background: var(--surface-2);
    list-style: none;
}

.user-dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.6rem 0.65rem;
    border-radius: 12px;
    text-decoration: none;
    color: var(--text-primary);
    transition:
        background 0.25s ease,
        transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.user-dropdown-item:hover {
    background: rgba(99, 102, 241, 0.08);
    color: var(--text-primary);
    transform: translateX(2px);
}

.user-dropdown-item-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.15rem;
    height: 2.15rem;
    border-radius: 10px;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.user-dropdown-item-icon--profile {
    background: rgba(99, 102, 241, 0.14);
    color: #6366f1;
}

.user-dropdown-item-icon--agreements {
    background: rgba(245, 158, 11, 0.14);
    color: #d97706;
}

.user-dropdown-item-icon--workspace {
    background: rgba(16, 185, 129, 0.14);
    color: #059669;
}

.user-dropdown-item-icon--logout {
    background: rgba(239, 68, 68, 0.12);
    color: #dc2626;
}

.user-dropdown-item-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.user-dropdown-item-title {
    font-size: 0.84rem;
    font-weight: 600;
    line-height: 1.25;
    color: var(--text-primary);
}

.user-dropdown-item-desc {
    font-size: 0.72rem;
    line-height: 1.3;
    color: var(--text-muted);
}

.user-dropdown-item-chevron {
    font-size: 0.65rem;
    color: var(--text-muted);
    opacity: 0.65;
    flex-shrink: 0;
    transition: transform 0.25s ease, color 0.25s ease;
}

.user-dropdown-item:hover .user-dropdown-item-chevron {
    color: var(--brand);
    transform: translateX(2px);
    opacity: 1;
}

.user-dropdown-item-badge {
    flex-shrink: 0;
    min-width: 1.35rem;
    height: 1.35rem;
    padding: 0 0.4rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    border-radius: 999px;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.35);
}

.user-dropdown-item--logout:hover {
    background: rgba(239, 68, 68, 0.08);
}

.user-dropdown-item--logout:hover .user-dropdown-item-title {
    color: #dc2626;
}

/* Profile settings */
.profile-avatar-card {
    text-align: center;
}

.profile-avatar-preview-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.profile-avatar-hint {
    font-size: 0.78rem;
    color: var(--text-muted);
}

.profile-upload-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.65rem 1rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--brand-blue);
    background: rgba(59, 130, 246, 0.08);
    border: 1px dashed rgba(59, 130, 246, 0.4);
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
}

.profile-upload-btn:hover {
    background: rgba(59, 130, 246, 0.14);
    border-color: var(--brand-blue);
}

/* Settings — company logo (sidebar brand) */
.settings-company-logo-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
    align-items: flex-start;
}

.settings-company-logo-sidebar-preview {
    flex: 0 0 auto;
    min-width: 200px;
}

.sidebar-brand--preview {
    width: 228px;
    min-height: 52px;
    padding: 0.75rem 1rem;
    background: var(--sidebar-bg);
    border: 1px solid var(--sidebar-border);
    border-radius: var(--radius-sm);
}

.settings-company-logo-preview-caption {
    display: block;
    margin-top: 0.35rem;
    font-size: 0.72rem;
    color: var(--text-muted);
    text-align: center;
}

.settings-company-logo-upload {
    flex: 1 1 12rem;
    min-width: 0;
}

.settings-company-logo-preview-box {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 88px;
    padding: 0.75rem 1rem;
    background: var(--surface-2);
    border: 1px dashed var(--border);
    border-radius: var(--radius-md);
}

.settings-company-logo-preview-img {
    max-width: 100%;
    max-height: 72px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.settings-company-logo-preview-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.settings-company-logo-preview-empty i {
    font-size: 1.25rem;
    opacity: 0.65;
}

.profile-section-title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    color: var(--text-primary);
}

.profile-role-readonly .ui-label {
    margin-bottom: 0.35rem;
}

.profile-role-badge {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--brand-blue);
    background: rgba(59, 130, 246, 0.1);
    padding: 0.35rem 0.65rem;
    border-radius: 8px;
}

.app-content {
    flex: 1;
    padding: 1.5rem;
    --dash-action-font: 0.8rem;
    --dash-action-pad-y: 0.52rem;
    --dash-action-pad-end: 0.95rem;
    --dash-action-pad-start: 0.5rem;
    --dash-action-gap: 0.5rem;
    --dash-action-icon: 1.75rem;
    --dash-action-icon-font: 0.76rem;
    --dash-action-toolbar-pad: 0.45rem;
    --dash-action-toolbar-gap: 0.5rem;
    --dash-action-toolbar-radius: 999px;
}

@media (max-width: 1199.98px) {
    .app-content {
        --dash-action-font: 0.76rem;
        --dash-action-pad-y: 0.48rem;
        --dash-action-pad-end: 0.85rem;
        --dash-action-pad-start: 0.45rem;
        --dash-action-gap: 0.45rem;
        --dash-action-icon: 1.6rem;
        --dash-action-icon-font: 0.72rem;
        --dash-action-toolbar-pad: 0.4rem;
        --dash-action-toolbar-gap: 0.45rem;
    }
}

@media (max-width: 991.98px) {
    .app-content {
        --dash-action-font: 0.72rem;
        --dash-action-pad-y: 0.42rem;
        --dash-action-pad-end: 0.65rem;
        --dash-action-pad-start: 0.42rem;
        --dash-action-gap: 0.35rem;
        --dash-action-icon: 1.5rem;
        --dash-action-icon-font: 0.68rem;
        --dash-action-toolbar-pad: 0.35rem;
        --dash-action-toolbar-gap: 0.35rem;
        --dash-action-toolbar-radius: 12px;
    }
}

@media (max-width: 767.98px) {
    .app-content {
        --dash-action-font: 0.68rem;
        --dash-action-pad-y: 0.38rem;
        --dash-action-pad-end: 0.55rem;
        --dash-action-pad-start: 0.38rem;
        --dash-action-gap: 0.3rem;
        --dash-action-icon: 1.4rem;
        --dash-action-icon-font: 0.64rem;
        --dash-action-toolbar-pad: 0.32rem;
        --dash-action-toolbar-gap: 0.3rem;
    }
}

@media (max-width: 575.98px) {
    .app-content {
        --dash-action-font: 0.65rem;
        --dash-action-pad-y: 0.35rem;
        --dash-action-pad-end: 0.5rem;
        --dash-action-pad-start: 0.35rem;
        --dash-action-gap: 0.28rem;
        --dash-action-icon: 1.25rem;
        --dash-action-icon-font: 0.6rem;
        --dash-action-toolbar-pad: 0.3rem;
        --dash-action-toolbar-gap: 0.28rem;
        --dash-action-toolbar-radius: 10px;
    }
}

.app-content .website-voice-actions {
    container-type: inline-size;
    container-name: dash-action-area;
}

@container dash-action-area (max-width: 720px) {
    .website-voice-actions {
        --dash-action-font: 0.72rem;
        --dash-action-pad-y: 0.42rem;
        --dash-action-pad-end: 0.65rem;
        --dash-action-pad-start: 0.42rem;
        --dash-action-gap: 0.35rem;
        --dash-action-icon: 1.5rem;
        --dash-action-icon-font: 0.68rem;
        --dash-action-toolbar-pad: 0.35rem;
        --dash-action-toolbar-gap: 0.35rem;
        --dash-action-toolbar-radius: 12px;
    }
}

@container dash-action-area (max-width: 520px) {
    .website-voice-actions {
        --dash-action-font: 0.65rem;
        --dash-action-pad-y: 0.35rem;
        --dash-action-pad-end: 0.5rem;
        --dash-action-pad-start: 0.35rem;
        --dash-action-gap: 0.28rem;
        --dash-action-icon: 1.25rem;
        --dash-action-icon-font: 0.6rem;
        --dash-action-toolbar-pad: 0.3rem;
        --dash-action-toolbar-gap: 0.28rem;
        --dash-action-toolbar-radius: 10px;
    }
}

@container dash-action-area (max-width: 360px) {
    .website-voice-actions {
        --dash-action-font: 0.58rem;
        --dash-action-pad-y: 0.28rem;
        --dash-action-pad-end: 0.22rem;
        --dash-action-pad-start: 0.22rem;
        --dash-action-gap: 0.18rem;
        --dash-action-icon: 1.05rem;
        --dash-action-icon-font: 0.52rem;
        --dash-action-toolbar-pad: 0.25rem;
        --dash-action-toolbar-gap: 0.22rem;
    }
}

.stat-card,
.dash-card {
    background: var(--surface);
    border: 1px solid var(--card-border);
    border-radius: 14px;
    box-shadow: var(--shadow-sm);
}

.stat-card { padding: 1.25rem 1.35rem; height: 100%; }

.stat-card .stat-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.stat-icon.blue { background: #dbeafe; color: var(--brand-blue); }
.stat-icon.green { background: #d1fae5; color: var(--success); }
.stat-icon.purple { background: #ede9fe; color: var(--purple); }
.stat-icon.orange { background: #ffedd5; color: var(--orange); }

.stat-card .stat-label { color: var(--text-muted); font-size: 0.8rem; margin-bottom: 0.25rem; }
.stat-card .stat-value { font-size: 1.75rem; font-weight: 700; color: var(--text-primary); line-height: 1; }
.stat-card .stat-trend { font-size: 0.75rem; color: var(--success); margin-top: 0.5rem; }

.dash-card { padding: 1.35rem; height: 100%; }
.dash-card.dash-card-fit { height: auto; }
.dash-card .card-header-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; }
.dash-card .card-title { font-size: 1rem; font-weight: 700; color: var(--text-primary); margin: 0; }

.chart-area { height: 220px; position: relative; }
.chart-area canvas { width: 100% !important; height: 100% !important; }

.chart-axis-labels {
    display: flex;
    justify-content: space-between;
    color: var(--text-muted);
    font-size: 0.75rem;
    padding: 0.5rem 0.25rem 0;
}

.chatbot-list {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.chatbot-list-empty {
    color: var(--text-muted, #6b7280);
}

[data-theme="dark"] .chatbot-list-empty {
    color: #ffffff;
}

.chatbot-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    background: var(--surface-2);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.chatbot-card:hover {
    border-color: rgba(59, 130, 246, 0.35);
    box-shadow: var(--shadow-sm);
    transform: translateY(-1px);
    color: inherit;
}

.chatbot-card-main {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
    min-width: 0;
}

.chatbot-icon {
    width: 42px;
    height: 42px;
    border-radius: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.chatbot-icon.blue { background: #dbeafe; color: var(--brand-blue); }
.chatbot-icon.green { background: #d1fae5; color: var(--success); }
.chatbot-icon.purple { background: #ede9fe; color: var(--purple); }
.chatbot-icon.orange { background: #ffedd5; color: var(--orange); }

.chatbot-card-info {
    min-width: 0;
    overflow: hidden;
}

.chatbot-card-name {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.chatbot-card-domain {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 2px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.chatbot-card-meta {
    flex-shrink: 0;
    text-align: right;
}

.chatbot-status {
    display: inline-flex;
    align-items: center;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.2rem 0.5rem;
    border-radius: 999px;
    line-height: 1.2;
}

.chatbot-status.active {
    color: #047857;
    background: rgba(16, 185, 129, 0.12);
}

.chatbot-status.inactive {
    color: #64748b;
    background: rgba(148, 163, 184, 0.15);
}

.chatbot-status.pending {
    color: #b45309;
    background: rgba(245, 158, 11, 0.15);
}

.ui-data-table .chatbot-status {
    font-size: 0.65rem;
    padding: 0.12rem 0.4rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.chatbot-table-avatar {
    background: rgba(99, 102, 241, 0.12) !important;
    color: var(--brand) !important;
}

.chatbot-empty-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto;
    border-radius: 18px;
    background: rgba(99, 102, 241, 0.12);
    color: var(--brand);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
}

[data-theme="dark"] .chatbot-table-avatar {
    background: rgba(99, 102, 241, 0.22) !important;
}

[data-theme="dark"] .chatbot-empty-icon {
    background: rgba(99, 102, 241, 0.2);
}

.chatbot-detail-icon {
    background: rgba(99, 102, 241, 0.12) !important;
    color: var(--brand) !important;
}

[data-theme="dark"] .chatbot-detail-icon {
    background: rgba(99, 102, 241, 0.22) !important;
}

[data-theme="dark"] .chatbot-status.pending {
    color: #fbbf24;
    background: rgba(245, 158, 11, 0.18);
}

.chatbot-card-stat {
    margin-top: 0.35rem;
}

.chatbot-card-stat-value {
    display: block;
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text-primary);
    line-height: 1.2;
}

.chatbot-card-stat-label {
    display: block;
    font-size: 0.65rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.chatbot-card-arrow {
    flex-shrink: 0;
    font-size: 0.7rem;
    color: var(--text-muted);
    opacity: 0.5;
    transition: opacity 0.2s, transform 0.2s;
}

.chatbot-card:hover .chatbot-card-arrow {
    opacity: 1;
    color: var(--brand);
    transform: translateX(2px);
}

.status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 5px;
    flex-shrink: 0;
}

.status-dot.active { background: var(--success); }
.status-dot.inactive { background: #94a3b8; }

[data-theme="dark"] .chatbot-card {
    background: rgba(255, 255, 255, 0.03);
}

[data-theme="dark"] .chatbot-status.active {
    color: #34d399;
    background: rgba(16, 185, 129, 0.18);
}

@media (max-width: 575.98px) {
    .chatbot-card {
        flex-wrap: wrap;
        align-items: flex-start;
    }

    .chatbot-card-meta {
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: space-between;
        text-align: left;
        padding-left: calc(42px + 0.75rem);
    }

    .chatbot-card-stat {
        margin-top: 0;
        text-align: right;
    }

    .chatbot-card-arrow {
        position: absolute;
        right: 1rem;
        top: 50%;
        transform: translateY(-50%);
    }

    .chatbot-card {
        position: relative;
        padding-right: 2rem;
    }

    .chatbot-card:hover .chatbot-card-arrow {
        transform: translate(2px, -50%);
    }
}

/* Dashboard chatbots sidebar card */
.dashboard-chatbots-card {
    container-type: inline-size;
    container-name: dashboard-chatbots-card;
    display: flex;
    flex-direction: column;
}

.dashboard-chatbots-header {
    gap: 0.75rem;
    margin-bottom: 1.15rem;
}

.dashboard-chatbots-heading {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 0;
}

.dashboard-chatbots-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.35rem;
    height: 1.35rem;
    padding: 0 0.35rem;
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--brand-blue);
    background: rgba(59, 130, 246, 0.12);
    border-radius: 999px;
    flex-shrink: 0;
}

.dashboard-chatbots-add-btn {
    flex-shrink: 0;
    white-space: nowrap;
}

.dashboard-chatbots-list {
    flex: 1;
    min-height: 0;
    max-height: min(320px, 52vh);
    overflow-y: auto;
    padding-right: 0.15rem;
    scrollbar-gutter: stable;
}

.dashboard-chatbots-list .chatbot-card {
    background: linear-gradient(135deg, var(--surface-2) 0%, rgba(59, 130, 246, 0.04) 100%);
}

.dashboard-chatbots-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 0.55rem;
    min-height: 220px;
    padding: 1.75rem 1.25rem;
    background: var(--surface-2);
    border: 1px dashed rgba(59, 130, 246, 0.28);
    border-radius: 12px;
}

.dashboard-chatbots-empty-icon {
    width: 56px;
    height: 56px;
    margin-bottom: 0.15rem;
    border-radius: 16px;
    background: rgba(99, 102, 241, 0.12);
    color: var(--brand);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
}

.dashboard-chatbots-empty-title {
    margin: 0;
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--text-primary);
}

.dashboard-chatbots-empty-text {
    margin: 0 0 0.35rem;
    max-width: 18rem;
    font-size: 0.78rem;
    line-height: 1.45;
    color: var(--text-muted);
}

[data-theme="dark"] .dashboard-chatbots-list .chatbot-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0%, rgba(59, 130, 246, 0.08) 100%);
}

[data-theme="dark"] .dashboard-chatbots-empty {
    border-color: rgba(96, 165, 250, 0.28);
}

[data-theme="dark"] .dashboard-chatbots-empty-icon {
    background: rgba(99, 102, 241, 0.2);
}

@container dashboard-chatbots-card (max-width: 360px) {
    .dashboard-chatbots-header {
        flex-wrap: wrap;
        align-items: flex-start;
    }

    .dashboard-chatbots-add-btn {
        width: 100%;
        justify-content: center;
    }

    .dashboard-chatbots-list .chatbot-card-meta {
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: space-between;
        text-align: left;
        padding-left: calc(42px + 0.75rem);
    }

    .dashboard-chatbots-list .chatbot-card-stat {
        margin-top: 0;
        text-align: right;
    }
}

.dashboard-conversations-chart-scroll {
    margin: 0 -0.15rem;
}

.dashboard-conversations-chart-track {
    min-width: 0;
}

@media (max-width: 767.98px) {
    .dashboard-conversations-card .card-header-row {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .dashboard-conversations-card .chart-range-select {
        width: 100%;
        max-width: 100%;
    }

    .dashboard-conversations-chart-scroll {
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior-x: contain;
        scrollbar-width: thin;
        scrollbar-color: rgba(100, 116, 139, 0.45) transparent;
        padding-bottom: 0.35rem;
        margin: 0 -0.35rem;
    }

    .dashboard-conversations-chart-scroll::-webkit-scrollbar {
        height: 6px;
    }

    .dashboard-conversations-chart-scroll::-webkit-scrollbar-thumb {
        background: rgba(100, 116, 139, 0.35);
        border-radius: 999px;
    }

    .dashboard-conversations-chart-track {
        min-width: 32rem;
        padding: 0 0.35rem;
    }
}

@media (max-width: 575.98px) {
    .dashboard-conversations-chart-track {
        min-width: 28rem;
    }

    .dashboard-conversations-card .chart-area {
        height: 200px;
    }
}

@media (max-width: 991.98px) {
    .dashboard-overview-row .dashboard-chatbots-card {
        height: auto;
    }

    .dashboard-chatbots-list {
        max-height: none;
        overflow: visible;
    }

    .dashboard-chatbots-empty {
        min-height: 180px;
        padding: 1.35rem 1rem;
    }
}

@media (max-width: 575.98px) {
    .dashboard-chatbots-header {
        flex-wrap: wrap;
        align-items: flex-start;
    }

    .dashboard-chatbots-add-btn {
        width: 100%;
        justify-content: center;
    }

    .dashboard-chatbots-empty-icon {
        width: 48px;
        height: 48px;
        font-size: 1.15rem;
    }

    .dashboard-chatbots-empty-title {
        font-size: 0.875rem;
    }

    .dashboard-chatbots-empty-text {
        font-size: 0.75rem;
    }
}

/* Knowledge base status card */
.kb-status-card {
    container-type: inline-size;
    container-name: kb-status-card;
}

.kb-status-card .card-header-row {
    margin-bottom: 1.25rem;
}

.kb-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.7rem;
    font-weight: 600;
    color: #047857;
    background: rgba(16, 185, 129, 0.12);
    padding: 0.25rem 0.55rem;
    border-radius: 999px;
}

.kb-status-badge i {
    font-size: 0.65rem;
}

.kb-status-body {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.kb-donut-panel {
    display: flex;
    justify-content: center;
    padding: 0.5rem 0 0.25rem;
}

.kb-donut-chart-wrap {
    position: relative;
    width: 168px;
    height: 168px;
    flex-shrink: 0;
}

.kb-donut-chart-wrap canvas {
    width: 100% !important;
    height: 100% !important;
}

.kb-donut-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    pointer-events: none;
    line-height: 1.2;
}

.kb-total-value {
    display: block;
    font-weight: 800;
    font-size: 1.35rem;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.kb-total-label {
    display: block;
    font-size: 0.68rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-top: 2px;
}

.kb-breakdown-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.kb-breakdown-item {
    background: var(--surface-2);
    border: 1px solid var(--card-border);
    border-radius: 10px;
    padding: 0.75rem 0.85rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.kb-breakdown-item:hover {
    border-color: rgba(59, 130, 246, 0.25);
    box-shadow: var(--shadow-sm);
}

.kb-breakdown-head {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.kb-breakdown-icon {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    flex-shrink: 0;
}

.kb-breakdown-icon.blue { background: #dbeafe; color: var(--brand-blue); }
.kb-breakdown-icon.green { background: #d1fae5; color: var(--success); }
.kb-breakdown-icon.purple { background: #ede9fe; color: var(--purple); }
.kb-breakdown-icon.orange { background: #ffedd5; color: var(--orange); }

.kb-breakdown-name {
    flex: 1;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-primary);
}

.kb-breakdown-pct {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-secondary);
}

.kb-breakdown-bar {
    height: 6px;
    border-radius: 999px;
    background: var(--progress-bg);
    overflow: hidden;
    margin-bottom: 0.35rem;
}

.kb-breakdown-fill {
    display: block;
    height: 100%;
    border-radius: 999px;
    transition: width 0.4s ease;
}

.kb-breakdown-fill.blue { background: var(--brand-blue); }
.kb-breakdown-fill.green { background: var(--success); }
.kb-breakdown-fill.purple { background: var(--purple); }
.kb-breakdown-fill.orange { background: var(--orange); }

.kb-breakdown-count {
    font-size: 0.72rem;
    color: var(--text-muted);
}

.dashboard-insight-action-btn,
.kb-manage-btn,
.usage-manage-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    margin-top: 1.25rem;
    padding: 0.7rem 1rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--brand-blue);
    background: rgba(59, 130, 246, 0.08);
    border: 1px solid rgba(59, 130, 246, 0.25);
    border-radius: 10px;
    text-decoration: none;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.dashboard-insight-action-btn:hover,
.kb-manage-btn:hover,
.usage-manage-btn:hover {
    background: rgba(59, 130, 246, 0.14);
    border-color: var(--brand-blue);
    color: var(--brand-blue);
}

.dashboard-insight-action-btn .fa-arrow-right,
.kb-manage-btn .fa-arrow-right,
.usage-manage-btn .fa-arrow-right {
    font-size: 0.75rem;
    transition: transform 0.2s;
}

.dashboard-insight-action-btn:hover .fa-arrow-right,
.kb-manage-btn:hover .fa-arrow-right,
.usage-manage-btn:hover .fa-arrow-right {
    transform: translateX(3px);
}

[data-theme="dark"] .kb-status-badge {
    color: #34d399;
    background: rgba(16, 185, 129, 0.18);
}

[data-theme="dark"] .kb-breakdown-item {
    background: rgba(255, 255, 255, 0.03);
}

[data-theme="dark"] .kb-breakdown-icon.blue { background: rgba(59, 130, 246, 0.2); }
[data-theme="dark"] .kb-breakdown-icon.green { background: rgba(16, 185, 129, 0.2); }
[data-theme="dark"] .kb-breakdown-icon.purple { background: rgba(139, 92, 246, 0.2); }
[data-theme="dark"] .kb-breakdown-icon.orange { background: rgba(245, 158, 11, 0.2); }

@container kb-status-card (min-width: 480px) {
    .kb-status-body {
        flex-direction: row;
        align-items: center;
        gap: 1rem;
    }

    .kb-donut-panel {
        flex: 0 0 168px;
        padding: 0;
    }

    .kb-breakdown-list {
        flex: 1;
        min-width: 0;
    }
}

.dashboard-insights-row .dash-card {
    height: auto;
}

.dashboard-activity-card {
    container-type: inline-size;
    container-name: dashboard-activity-card;
}

.dashboard-activity-card .activity-timeline-body {
    min-width: 0;
}

.dashboard-activity-card .activity-timeline-title,
.dashboard-activity-card .activity-timeline-context {
    overflow-wrap: anywhere;
    word-break: break-word;
}

@container dashboard-activity-card (max-width: 359px) {
    .dashboard-activity-card .activity-timeline-item {
        grid-template-columns: 32px 1fr;
        gap: 0.55rem;
        padding-bottom: 1rem;
    }

    .dashboard-activity-card .activity-timeline-node {
        width: 30px;
        height: 30px;
        font-size: 0.72rem;
    }

    .dashboard-activity-card .activity-timeline-item:not(:last-child) .activity-timeline-track::after {
        top: 32px;
    }

    .dashboard-activity-card .activity-timeline-head {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }

    .dashboard-activity-card .activity-timeline-title {
        font-size: 0.8125rem;
    }

    .dashboard-activity-card .activity-timeline-time {
        white-space: normal;
        font-size: 0.62rem;
    }

    .dashboard-activity-card .activity-timeline-context {
        font-size: 0.72rem;
    }

    .dashboard-activity-card .activity-timeline-body {
        padding: 0.55rem 0.65rem;
    }
}

@media (max-width: 767.98px) {
    .dashboard-insights-row .dash-card {
        padding: 1.1rem;
    }

    .kb-status-card .card-header-row,
    .usage-summary-card .card-header-row,
    .dashboard-activity-card .card-header-row,
    .dashboard-chatbots-header {
        flex-wrap: wrap;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .kb-donut-chart-wrap {
        width: 148px;
        height: 148px;
    }

    .kb-total-value {
        font-size: 1.2rem;
    }

    .kb-breakdown-item,
    .usage-metric-card {
        padding: 0.7rem 0.75rem;
    }

    .kb-breakdown-name,
    .usage-metric-name {
        font-size: 0.78rem;
    }

    .dashboard-insight-action-btn,
    .kb-manage-btn,
    .usage-manage-btn {
        font-size: 0.8rem;
        padding: 0.65rem 0.85rem;
    }

    .usage-chart-panel {
        height: 120px;
        padding: 0.6rem;
    }

    .activity-timeline-head {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.35rem;
    }

    .dashboard-activity-card .activity-timeline-head {
        flex-direction: column;
    }

    .activity-timeline-time {
        white-space: normal;
    }

    .activity-timeline-item {
        grid-template-columns: 36px 1fr;
        gap: 0.65rem;
    }

    .activity-timeline-node {
        width: 34px;
        height: 34px;
        font-size: 0.78rem;
    }

    .activity-timeline-item:not(:last-child) .activity-timeline-track::after {
        top: 36px;
    }
}

.activity-timeline {
    list-style: none;
    margin: 0;
    padding: 0.25rem 0 0;
}

.activity-timeline-item {
    display: grid;
    grid-template-columns: 42px 1fr;
    gap: 0.85rem;
    position: relative;
    padding-bottom: 1.15rem;
}

.activity-timeline-item:last-child {
    padding-bottom: 0;
}

.activity-timeline-item:not(:last-child) .activity-timeline-track::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 42px;
    bottom: -1.15rem;
    width: 2px;
    transform: translateX(-50%);
    background: linear-gradient(180deg, var(--border) 0%, rgba(148, 163, 184, 0.15) 100%);
    border-radius: 2px;
}

.activity-timeline-track {
    position: relative;
    display: flex;
    justify-content: center;
}

.activity-timeline-node {
    position: relative;
    z-index: 1;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    background: var(--surface);
    border: 2px solid var(--card-border);
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
    flex-shrink: 0;
}

.activity-timeline-node.blue {
    color: var(--brand-blue);
    border-color: #bfdbfe;
    background: #eff6ff;
}

.activity-timeline-node.green {
    color: var(--success);
    border-color: #a7f3d0;
    background: #ecfdf5;
}

.activity-timeline-node.purple {
    color: var(--purple);
    border-color: #ddd6fe;
    background: #f5f3ff;
}

.activity-timeline-node.orange {
    color: var(--orange);
    border-color: #fed7aa;
    background: #fff7ed;
}

.activity-timeline-body {
    background: var(--surface-2);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    padding: 0.85rem 1rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.activity-timeline-item:hover .activity-timeline-body {
    border-color: rgba(59, 130, 246, 0.3);
    box-shadow: var(--shadow-sm);
}

.activity-timeline-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.35rem;
}

.activity-timeline-title {
    margin: 0;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.4;
}

.activity-timeline-time {
    flex-shrink: 0;
    font-size: 0.68rem;
    font-weight: 600;
    color: var(--text-muted);
    background: var(--surface);
    border: 1px solid var(--card-border);
    padding: 0.15rem 0.45rem;
    border-radius: 999px;
    white-space: nowrap;
}

.activity-timeline-context {
    margin: 0;
    font-size: 0.78rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.activity-timeline-context::before {
    content: '';
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--brand);
    opacity: 0.55;
    flex-shrink: 0;
}

[data-theme="dark"] .activity-timeline-node.blue { background: rgba(59, 130, 246, 0.15); border-color: rgba(59, 130, 246, 0.35); }
[data-theme="dark"] .activity-timeline-node.green { background: rgba(16, 185, 129, 0.15); border-color: rgba(16, 185, 129, 0.35); }
[data-theme="dark"] .activity-timeline-node.purple { background: rgba(139, 92, 246, 0.15); border-color: rgba(139, 92, 246, 0.35); }
[data-theme="dark"] .activity-timeline-node.orange { background: rgba(245, 158, 11, 0.15); border-color: rgba(245, 158, 11, 0.35); }

[data-theme="dark"] .activity-timeline-body {
    background: rgba(255, 255, 255, 0.03);
}

[data-theme="dark"] .activity-timeline-item:not(:last-child) .activity-timeline-track::after {
    background: linear-gradient(180deg, rgba(148, 163, 184, 0.25) 0%, transparent 100%);
}

/* Usage summary card */
.usage-summary-card .card-header-row {
    margin-bottom: 1rem;
}

.usage-summary-period {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-muted);
    background: var(--surface-2);
    border: 1px solid var(--card-border);
    padding: 0.25rem 0.55rem;
    border-radius: 999px;
}

.usage-chart-panel {
    height: 140px;
    position: relative;
    margin-bottom: 1rem;
    padding: 0.75rem;
    background: var(--surface-2);
    border: 1px solid var(--card-border);
    border-radius: 12px;
}

.usage-chart-panel canvas {
    width: 100% !important;
    height: 100% !important;
}

.usage-metric-list {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.usage-metric-card {
    background: var(--surface-2);
    border: 1px solid var(--card-border);
    border-radius: 10px;
    padding: 0.8rem 0.9rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.usage-metric-card:hover {
    border-color: rgba(59, 130, 246, 0.25);
    box-shadow: var(--shadow-sm);
}

.usage-metric-head {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin-bottom: 0.55rem;
}

.usage-metric-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.usage-metric-icon.blue { background: #dbeafe; color: var(--brand-blue); }
.usage-metric-icon.green { background: #d1fae5; color: var(--success); }
.usage-metric-icon.orange { background: #ffedd5; color: var(--orange); }
.usage-metric-icon.cyan { background: #cffafe; color: #0891b2; }

.usage-metric-info {
    flex: 1;
    min-width: 0;
}

.usage-metric-name {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.3;
}

.usage-metric-values {
    display: block;
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-top: 1px;
}

.usage-metric-pct {
    flex-shrink: 0;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-secondary);
}

.usage-metric-bar {
    height: 6px;
    border-radius: 999px;
    background: var(--progress-bg);
    overflow: hidden;
}

.usage-metric-fill {
    display: block;
    height: 100%;
    border-radius: 999px;
    transition: width 0.4s ease;
}

.usage-metric-fill.blue { background: var(--brand-blue); }
.usage-metric-fill.green { background: var(--success); }
.usage-metric-fill.orange { background: var(--orange); }
.usage-metric-fill.cyan { background: #06b6d4; }

[data-theme="dark"] .usage-metric-card,
[data-theme="dark"] .usage-chart-panel {
    background: rgba(255, 255, 255, 0.03);
}

[data-theme="dark"] .usage-metric-icon.blue { background: rgba(59, 130, 246, 0.2); }
[data-theme="dark"] .usage-metric-icon.green { background: rgba(16, 185, 129, 0.2); }
[data-theme="dark"] .usage-metric-icon.orange { background: rgba(245, 158, 11, 0.2); }
[data-theme="dark"] .usage-metric-icon.cyan { background: rgba(6, 182, 212, 0.2); }

/* Dropdown menus */
.dropdown-menu {
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    background: var(--dropdown-bg);
    padding: 0.35rem;
}

.dropdown-item {
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    color: var(--text-secondary);
    padding: 0.5rem 0.75rem;
}

.dropdown-item:hover {
    background: var(--surface-2);
    color: var(--text-primary);
}

.dropdown-item-text { color: var(--text-muted) !important; }

.btn-outline-secondary {
    color: var(--text-secondary);
    border-color: var(--border);
    border-radius: var(--radius-sm);
}

.btn-light {
    background: var(--surface-2);
    border-color: var(--border);
    color: var(--text-primary);
}

/* ==========================================================================
   Auth pages
   ========================================================================== */
.auth-page {
    min-height: 100vh;
    background: var(--auth-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
}

.auth-card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    padding: 2rem;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
    border: 1px solid var(--border);
}

.auth-card--compact {
    max-width: 360px;
    padding: 1.25rem 1.35rem;
}

.auth-card--dark {
    background: #1a2332;
    border-color: rgba(148, 163, 184, 0.22);
    color: #fff;
}

.auth-card--dark .form-label,
.auth-card--dark .ui-label {
    color: #fff;
}

.auth-card--dark .h5,
.auth-card--dark h1,
.auth-card--dark h2 {
    color: #fff;
}

.auth-card--dark .text-muted {
    color: rgba(203, 213, 225, 0.75) !important;
}

.auth-card--dark .form-control {
    background: rgba(15, 23, 42, 0.75);
    border-color: rgba(148, 163, 184, 0.25);
    color: #fff;
}

.auth-card--dark .form-control:focus {
    background: rgba(15, 23, 42, 0.9);
    border-color: rgba(129, 140, 248, 0.5);
    color: #fff;
}

.auth-card--dark .form-control::placeholder {
    color: rgba(148, 163, 184, 0.55);
}

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

/* Shared SuportLayer logo + wordmark */
.app-brand-mark {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    line-height: 1.15;
    min-width: 0;
}

.app-brand-mark__img {
    flex-shrink: 0;
    display: block;
    width: 2rem;
    height: 2rem;
    object-fit: contain;
    object-position: center;
}

.app-brand-mark__name {
    font-weight: 700;
    color: inherit;
    margin: 0;
    min-width: 0;
}

.app-brand-mark--sm .app-brand-mark__img {
    width: 1.75rem;
    height: 1.75rem;
}

.app-brand-mark--sm .app-brand-mark__name {
    font-size: 1rem;
    line-height: 1.25;
}

.app-brand-mark--md .app-brand-mark__img {
    width: 2rem;
    height: 2rem;
}

.app-brand-mark--md .app-brand-mark__name {
    font-size: 1.05rem;
}

.app-brand-mark--lg .app-brand-mark__img {
    width: 2.35rem;
    height: 2.35rem;
}

.app-brand-mark--lg .app-brand-mark__name {
    font-size: 1.35rem;
    letter-spacing: -0.02em;
}

.app-brand-mark--auth {
    justify-content: center;
    margin-bottom: 0.35rem;
    max-width: 100%;
}

.app-brand-mark--auth .app-brand-mark__img {
    width: 2.75rem;
    height: 2.75rem;
}

.app-brand-mark--auth .app-brand-mark__name {
    font-size: 1.35rem;
    text-align: left;
    color: var(--text-primary);
}

.auth-logo-brand {
    display: flex;
    justify-content: center;
}

.auth-card h2 { font-size: 1.35rem; font-weight: 700; text-align: center; margin-bottom: 0.25rem; color: var(--text-primary); }
.auth-card .auth-sub { text-align: center; color: var(--text-muted); font-size: 0.875rem; margin-bottom: 0; }

.auth-switch {
    margin: 1.15rem 0 0;
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.auth-switch a {
    font-weight: 600;
    color: var(--brand-blue);
    text-decoration: none;
}

.auth-switch a:hover {
    color: var(--brand-dark);
    text-decoration: underline;
}

.auth-lang {
    display: flex;
    justify-content: center;
    margin: 1.5rem 0 0.75rem;
}

.auth-lang-switch {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    padding: 0.28rem;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: 999px;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.04);
}

.auth-lang-switch a {
    min-width: 2.85rem;
    padding: 0.5rem 0.9rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-decoration: none;
    text-align: center;
    color: var(--text-muted);
    background: transparent;
    line-height: 1;
    transition: color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}

.auth-lang-switch a:hover {
    color: var(--text-primary);
    background: var(--surface);
}

.auth-lang-switch a.active {
    color: #fff;
    background: var(--brand-gradient);
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
}

.auth-lang-switch a.active:hover {
    color: #fff;
    background: var(--brand-gradient);
    transform: translateY(-1px);
}

.btn-google {
    background: var(--surface);
    border: 1.5px solid var(--input-border);
    color: var(--text-primary);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    border-radius: var(--radius-md);
    height: 2.75rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.btn-google:hover {
    background: var(--surface-2);
    border-color: var(--border-focus);
    color: var(--text-primary);
    box-shadow: var(--shadow-sm);
}

.btn-google .fa-google { color: #ea4335; }

.btn-microsoft {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text-primary);
    font-weight: 600;
    box-shadow: var(--shadow-sm);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.btn-microsoft:hover {
    border-color: rgba(0, 120, 212, 0.45);
    color: var(--text-primary);
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}

.btn-microsoft .fa-microsoft { color: #0078d4; }

.auth-oauth-buttons {
    margin-bottom: 0;
}

.auth-divider {
    display: flex;
    align-items: center;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.8rem;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--border);
}

.auth-divider span { padding: 0 0.75rem; }

.auth-theme-toggle {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 1050;
    width: 42px;
    height: 42px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s;
}

.auth-theme-toggle:hover { background: rgba(255, 255, 255, 0.22); }

[data-theme="dark"] .auth-theme-toggle {
    background: var(--surface-2);
    border-color: var(--border);
    color: var(--text-primary);
}

/* Cookie consent banner */
.cookie-consent {
    position: fixed;
    inset: auto 0 0 0;
    z-index: 1080;
    padding: 0.85rem 1rem 1rem;
    pointer-events: none;
    opacity: 0;
    transform: translateY(1.25rem);
    transition: opacity 0.28s ease, transform 0.28s ease;
}

.cookie-consent.is-visible {
    pointer-events: auto;
    opacity: 1;
    transform: translateY(0);
}

.cookie-consent[hidden] {
    display: none !important;
}

.cookie-consent-panel {
    max-width: 1120px;
    margin: 0 auto;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    padding: 1.1rem 1.2rem;
}

.cookie-consent-main {
    display: flex;
    align-items: flex-start;
    gap: 0.9rem;
}

.cookie-consent-icon {
    flex-shrink: 0;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: var(--radius-md);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: color-mix(in srgb, var(--brand) 12%, transparent);
    color: var(--brand);
    font-size: 1.05rem;
}

.cookie-consent-copy {
    min-width: 0;
    flex: 1;
}

.cookie-consent-title {
    margin: 0 0 0.35rem;
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.35;
    color: var(--text-primary);
}

.cookie-consent-lead {
    margin: 0;
    font-size: 0.86rem;
    line-height: 1.55;
    color: var(--text-muted);
}

.cookie-consent-link {
    color: var(--brand);
    font-weight: 600;
    text-decoration: none;
}

.cookie-consent-link:hover {
    color: var(--brand-dark);
    text-decoration: underline;
}

.cookie-consent-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 0.55rem;
    margin-top: 1rem;
}

.cookie-consent-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.5rem;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    font-size: 0.82rem;
    font-weight: 700;
    line-height: 1.2;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.cookie-consent-btn--ghost {
    border: 1px solid transparent;
    background: transparent;
    color: var(--text-muted);
}

.cookie-consent-btn--ghost:hover {
    color: var(--text-primary);
    background: var(--surface-2);
}

.cookie-consent-btn--outline {
    border: 1.5px solid var(--input-border);
    background: var(--surface);
    color: var(--text-primary);
}

.cookie-consent-btn--outline:hover {
    border-color: var(--border-focus);
    box-shadow: var(--shadow-sm);
}

.cookie-consent-btn--primary {
    border: none;
    background: var(--brand-gradient);
    color: #fff;
    box-shadow: 0 6px 18px rgba(99, 102, 241, 0.28);
}

.cookie-consent-btn--primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 22px rgba(99, 102, 241, 0.35);
}

.cookie-consent-preferences {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

.cookie-consent-preferences[hidden] {
    display: none !important;
}

.cookie-consent-category {
    padding: 0.85rem 0.95rem;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    margin-bottom: 0.65rem;
}

.cookie-consent-category:last-of-type {
    margin-bottom: 0;
}

.cookie-consent-category p,
.cookie-consent-category small {
    margin: 0.35rem 0 0;
    font-size: 0.8rem;
    line-height: 1.5;
    color: var(--text-muted);
}

.cookie-consent-category-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.cookie-consent-category-head strong,
.cookie-consent-toggle strong {
    display: block;
    font-size: 0.86rem;
    font-weight: 800;
    color: var(--text-primary);
}

.cookie-consent-chip {
    flex-shrink: 0;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--brand);
    background: color-mix(in srgb, var(--brand) 12%, transparent);
    padding: 0.2rem 0.5rem;
    border-radius: 999px;
}

.cookie-consent-toggle {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
    margin: 0;
}

.cookie-consent-toggle input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.cookie-consent-toggle-ui {
    flex-shrink: 0;
    width: 2.4rem;
    height: 1.35rem;
    margin-top: 0.15rem;
    border-radius: 999px;
    background: var(--progress-bg);
    border: 1px solid var(--border);
    position: relative;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.cookie-consent-toggle-ui::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 1rem;
    height: 1rem;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.18);
    transition: transform 0.2s ease;
}

.cookie-consent-toggle input:checked + .cookie-consent-toggle-ui {
    background: var(--brand);
    border-color: var(--brand);
}

.cookie-consent-toggle input:checked + .cookie-consent-toggle-ui::after {
    transform: translateX(1.05rem);
}

.cookie-consent-toggle input:focus-visible + .cookie-consent-toggle-ui {
    outline: 2px solid var(--border-focus);
    outline-offset: 2px;
}

.cookie-consent-preferences-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.55rem;
    margin-top: 0.85rem;
}

@media (min-width: 768px) {
    .cookie-consent-panel {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: start;
        column-gap: 1.25rem;
        row-gap: 0.75rem;
    }

    .cookie-consent-main {
        grid-column: 1;
        grid-row: 1;
    }

    .cookie-consent-actions {
        grid-column: 2;
        grid-row: 1;
        margin-top: 0;
        align-self: center;
        flex-direction: column;
        min-width: 11.5rem;
    }

    .cookie-consent-actions .cookie-consent-btn {
        width: 100%;
    }

    .cookie-consent-preferences {
        grid-column: 1 / -1;
    }
}

@media (max-width: 575.98px) {
    .cookie-consent {
        padding: 0.65rem 0.65rem 0.85rem;
    }

    .cookie-consent-panel {
        padding: 1rem;
    }

    .cookie-consent-actions,
    .cookie-consent-preferences-actions {
        flex-direction: column;
    }

    .cookie-consent-actions .cookie-consent-btn,
    .cookie-consent-preferences-actions .cookie-consent-btn {
        width: 100%;
    }
}

/* ==========================================================================
   Landing page
   ========================================================================== */
body.landing-page {
    color: var(--text-primary);
    background: var(--surface);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

@supports (overflow-x: clip) {
    body.landing-page {
        overflow-x: clip;
    }
}

body.landing-page .lp-main {
    flex: 1 0 auto;
    display: flex;
    flex-direction: column;
}

.lp-navbar {
    padding: 1rem 0;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1030;
}

.lp-brand {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    color: var(--text-primary);
}

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

.lp-brand .app-brand-mark__img,
.lp-offcanvas-brand .app-brand-mark__img {
    width: 2.5rem;
    height: 2.5rem;
}

.lp-brand .app-brand-mark__name {
    color: var(--text-primary);
    font-size: 1.1rem;
}

.lp-offcanvas-brand .app-brand-mark__name {
    font-size: 1.1rem;
    color: var(--text-primary);
}

.lp-brand-icon {
    width: 38px;
    height: 38px;
    background: var(--brand-gradient);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1rem;
}

.lp-nav-links {
    display: flex;
    align-items: center;
    gap: 1.75rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.lp-nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.15s;
}

.lp-nav-links a:hover { color: var(--brand); }

.lp-nav-links a.active {
    color: var(--brand);
    font-weight: 600;
}

.lp-nav-links .has-caret::after {
    content: '\f107';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    margin-left: 4px;
    font-size: 0.7rem;
    color: var(--text-muted);
}

.lp-nav-dropdown .dropdown-toggle::after {
    display: none;
}

.lp-nav-dropdown .dropdown-toggle.has-caret::after {
    display: inline-block;
}

.lp-features-dropdown {
    min-width: 300px;
    padding: 0.5rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    margin-top: 0.65rem !important;
}

.lp-features-dropdown .dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.55rem 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    white-space: normal;
}

.lp-features-dropdown .dropdown-item i {
    width: 18px;
    text-align: center;
    color: var(--brand);
    flex-shrink: 0;
}

.lp-features-dropdown .dropdown-item:hover {
    background: var(--surface-2);
    color: var(--text-primary);
}

.lp-features-dropdown .dropdown-divider {
    margin: 0.35rem 0;
    border-color: var(--border);
}

.lp-features-dropdown-all {
    font-weight: 600 !important;
    color: var(--brand) !important;
}

.lp-features [id^="feature-"] {
    scroll-margin-top: 100px;
}

.lp-navbar-actions {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    flex-shrink: 0;
}

.lp-navbar-toolbar {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.22rem;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: 999px;
    box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.04);
}

.lp-navbar-icon-btn {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--surface);
    color: var(--text-muted);
    cursor: pointer;
    transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.lp-navbar-icon-btn:hover,
.lp-navbar-icon-btn:focus-visible {
    color: var(--text-primary);
    background: var(--surface-2);
    border-color: var(--border-focus, var(--brand));
    outline: none;
}

.lp-lang-switch-nav {
    display: inline-flex;
    align-items: center;
    gap: 0.15rem;
    padding: 0.22rem;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: 999px;
    box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.04);
}

.lp-lang-switch-nav a {
    min-width: 2.35rem;
    padding: 0.38rem 0.6rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-decoration: none;
    text-align: center;
    color: var(--text-muted);
    background: transparent;
    line-height: 1;
    transition: color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.lp-lang-switch-nav a:hover {
    color: var(--text-primary);
    background: var(--surface);
}

.lp-lang-switch-nav a.active {
    color: #fff;
    background: var(--brand-gradient);
    box-shadow: 0 3px 12px rgba(99, 102, 241, 0.32);
}

.lp-lang-switch-nav a.active:hover {
    color: #fff;
}

.lp-navbar-link-btn {
    padding: 0.48rem 1rem;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-decoration: none;
    line-height: 1;
    transition: color 0.2s ease, background 0.2s ease;
}

.lp-navbar-link-btn:hover {
    color: var(--text-primary);
    background: var(--surface);
}

.lp-navbar-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.48rem 1.05rem;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    background: var(--brand-gradient);
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.28);
    transition: transform 0.15s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.lp-navbar-cta-btn:hover {
    color: #fff;
    opacity: 0.95;
    transform: translateY(-1px);
    box-shadow: 0 8px 22px rgba(99, 102, 241, 0.38);
}

.lp-navbar-cta-btn i {
    font-size: 0.72rem;
    transition: transform 0.2s ease;
}

.lp-navbar-cta-btn:hover i {
    transform: translateX(2px);
}

.lp-btn-ghost {
    border: 1.5px solid var(--border);
    color: var(--text-secondary);
    font-weight: 600;
    padding: 0.5rem 1.1rem;
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-size: 0.875rem;
    background: transparent;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
}

.lp-btn-ghost:hover { background: var(--surface-2); color: var(--text-primary); }

.lp-mobile-toggle {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    background: transparent;
    cursor: pointer;
}

.lp-mobile-toggle:hover {
    color: var(--text-primary);
    background: var(--surface-2);
}

.lp-navbar-actions .lp-lang-switch.dropdown {
    margin: 0;
}

.lp-lang-dropdown-toggle {
    min-width: 58px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--surface);
    color: var(--text-secondary);
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.lp-lang-dropdown-toggle:hover,
.lp-lang-dropdown-toggle:focus {
    color: var(--text-primary);
    background: var(--surface-2);
}

.lp-lang-dropdown-toggle i {
    font-size: 0.65rem;
}

.lp-lang-dropdown-menu {
    min-width: 120px;
    padding: 0.4rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
}

.lp-lang-dropdown-menu .dropdown-item {
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 700;
    padding: 0.5rem 0.7rem;
}

.lp-lang-dropdown-menu .dropdown-item:hover {
    color: var(--text-primary);
    background: var(--surface-2);
}

.lp-lang-dropdown-menu .dropdown-item.active {
    color: #fff;
    background: var(--brand);
}

.lp-mobile-offcanvas {
    width: min(340px, 88vw);
    background: var(--surface);
    color: var(--text-primary);
    border-right: 1px solid var(--border);
    z-index: 1060;
}

.offcanvas-backdrop {
    z-index: 1055;
}

.lp-mobile-offcanvas .offcanvas-header {
    border-bottom: 1px solid var(--border);
    padding: 1rem 1.1rem;
}

.lp-offcanvas-brand {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 800;
}

.lp-mobile-offcanvas .offcanvas-body {
    padding: 1rem;
}

.lp-mobile-nav {
    margin-top: 0.85rem;
    padding: 0.75rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.lp-mobile-nav a {
    display: flex;
    align-items: center;
    min-height: 42px;
    padding: 0.55rem 0.7rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
}

.lp-mobile-nav a:hover,
.lp-mobile-nav a.active {
    color: var(--brand);
    background: var(--surface-2);
}

.lp-mobile-offcanvas .lp-mobile-nav {
    margin-top: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

.lp-mobile-offcanvas .lp-mobile-nav a {
    min-height: 46px;
    padding: 0.65rem 0.75rem;
}

.lp-mobile-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 0.75rem;
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

.lp-mobile-actions .lp-btn-ghost,
.lp-mobile-actions .lp-btn-primary {
    width: 100%;
    padding-left: 0.75rem;
    padding-right: 0.75rem;
}

[data-theme="dark"] .lp-mobile-offcanvas .btn-close {
    filter: invert(1) grayscale(100%) brightness(200%);
}

.lp-btn-primary {
    background: var(--brand-gradient);
    border: none;
    color: #fff;
    font-weight: 600;
    padding: 0.55rem 1.25rem;
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-size: 0.875rem;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.lp-btn-primary:hover {
    color: #fff;
    opacity: 0.92;
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.35);
}

/* Website Finder */
.website-finder-form-card .form-label {
    font-weight: 700;
    color: var(--text-primary);
}

.website-finder-search-list {
    display: grid;
    gap: 0.85rem;
}

.website-finder-search-card {
    display: flex;
    gap: 0.9rem;
    align-items: flex-start;
    background: linear-gradient(135deg, var(--surface) 0%, var(--surface-2) 100%);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 1rem;
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}

.website-finder-search-card:hover,
.website-finder-search-card.active {
    border-color: rgba(99, 102, 241, 0.5);
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}

.website-finder-search-card.active {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, var(--surface) 100%);
}

.website-finder-search-icon {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--brand);
    background: rgba(99, 102, 241, 0.12);
    border: 1px solid rgba(99, 102, 241, 0.18);
    border-radius: 13px;
}

.website-finder-search-main {
    flex: 1;
    min-width: 0;
}

.website-finder-search-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.7rem;
}

.website-finder-search-head h4 {
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 800;
    margin: 0;
}

.website-finder-search-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.website-finder-search-meta span {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--text-secondary);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 0.28rem 0.6rem;
    font-size: 0.76rem;
    font-weight: 700;
}

.website-finder-search-meta i {
    color: var(--brand);
    font-size: 0.72rem;
}

.website-finder-results-section {
    height: auto;
    padding-bottom: 1rem;
}

.website-finder-selected-search {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    color: var(--text-primary);
    background: rgba(99, 102, 241, 0.08);
    border: 1px solid rgba(99, 102, 241, 0.18);
    border-radius: var(--radius-md);
    padding: 0.65rem 0.8rem;
    margin-bottom: 1rem;
    font-size: 0.86rem;
}

.website-finder-selected-search i {
    color: var(--brand);
    margin-right: 0.35rem;
}

.website-finder-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    align-items: start;
}

@media (max-width: 1199.98px) {
    .website-finder-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767.98px) {
    .website-finder-grid {
        grid-template-columns: 1fr;
    }
}

.website-finder-card {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 1rem;
    box-shadow: var(--shadow-sm);
}

.website-finder-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.website-finder-card h4 {
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 800;
    margin: 0 0 0.2rem;
}

.website-finder-card a {
    color: var(--brand);
    font-size: 0.85rem;
    font-weight: 700;
    text-decoration: none;
}

.website-finder-reason {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0;
}

.website-finder-insight-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 0.65rem;
}

.website-finder-insight-card {
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 0.75rem 0.85rem;
}

.website-finder-insight-card.score {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.website-finder-insight-card span {
    display: block;
    color: var(--text-muted);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 0.3rem;
}

.website-finder-insight-card span i {
    color: var(--brand);
    margin-right: 0.25rem;
}

.website-finder-insight-card strong {
    color: var(--text-primary);
    font-size: 1.35rem;
    line-height: 1;
}

.website-finder-insight-card p {
    color: var(--text-primary);
    font-size: 0.85rem;
    line-height: 1.45;
    margin: 0;
}

.website-finder-insight-card p.is-empty {
    color: var(--text-muted);
    font-style: italic;
}

.website-finder-color-card {
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 0.75rem 0.85rem;
}

.website-finder-color-card > span {
    display: block;
    color: var(--text-muted);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 0.55rem;
}

.website-finder-color-card > span i {
    color: var(--brand);
    margin-right: 0.25rem;
}

.website-finder-color-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.website-finder-color-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 0.35rem 0.55rem;
}

.website-finder-color-chip i {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 1px solid rgba(15, 23, 42, 0.18);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2);
}

.website-finder-color-chip strong {
    color: var(--text-primary);
    font-size: 0.78rem;
}

.website-finder-color-chip small {
    color: var(--text-muted);
    font-size: 0.68rem;
    font-weight: 700;
}

.website-finder-card-actions {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem;
    margin-top: 0.15rem;
    padding: 0.32rem 0.38rem;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.06) 0%, var(--surface-2) 55%, var(--surface) 100%);
    border: 1px solid rgba(99, 102, 241, 0.12);
    border-radius: 999px;
    box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.04);
}

[data-theme="dark"] .website-finder-card-actions {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.12) 0%, rgba(15, 23, 42, 0.45) 100%);
    border-color: rgba(99, 102, 241, 0.2);
}

.website-finder-card-actions .website-finder-action-form,
.website-finder-card-actions .website-finder-action-wrap {
    margin: 0;
    flex: 0 0 auto;
    display: inline-flex;
}

.website-finder-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.15rem;
    height: 2.15rem;
    padding: 0;
    flex: 0 0 auto;
    border: 1px solid var(--card-border);
    border-radius: 50%;
    background: var(--surface);
    color: var(--text-secondary);
    font-size: 0.82rem;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
    transition:
        transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 0.35s cubic-bezier(0.22, 1, 0.36, 1),
        background 0.35s ease,
        border-color 0.35s ease,
        color 0.35s ease;
}

.website-finder-action-btn:hover:not(.is-disabled) {
    transform: translateY(-2px);
}

.website-finder-action-btn:focus-visible {
    outline: 2px solid var(--brand);
    outline-offset: 2px;
}

.website-finder-action-btn i {
    margin: 0;
}

.website-finder-action-btn--visit {
    color: var(--brand);
    border-color: rgba(99, 102, 241, 0.25);
    background: rgba(99, 102, 241, 0.08);
}

.website-finder-action-btn--visit:hover {
    color: #fff;
    background: var(--brand-gradient);
    border-color: transparent;
    box-shadow: 0 6px 16px rgba(99, 102, 241, 0.32);
}

.website-finder-action-btn--add {
    color: #fff;
    background: var(--brand-gradient);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.28);
}

.website-finder-action-btn--add:hover {
    box-shadow: 0 8px 22px rgba(99, 102, 241, 0.4);
}

.website-finder-action-btn--done.is-disabled {
    color: #059669;
    background: rgba(16, 185, 129, 0.12);
    border-color: rgba(16, 185, 129, 0.28);
    cursor: default;
    opacity: 0.9;
}

.website-finder-action-btn--release {
    color: #059669;
    border-color: rgba(16, 185, 129, 0.28);
    background: rgba(16, 185, 129, 0.1);
}

.website-finder-action-btn--release:hover {
    color: #fff;
    background: linear-gradient(135deg, #10b981, #059669);
    border-color: transparent;
    box-shadow: 0 6px 16px rgba(16, 185, 129, 0.3);
}

.website-finder-action-btn--delete {
    color: #dc2626;
    border-color: rgba(220, 38, 38, 0.25);
    background: rgba(220, 38, 38, 0.08);
}

.website-finder-action-btn--delete:hover {
    color: #fff;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    border-color: transparent;
    box-shadow: 0 6px 16px rgba(220, 38, 38, 0.28);
}

.website-finder-card-actions .website-finder-public-badge {
    margin-left: 0.15rem;
}

.website-finder-public-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: #10b981;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 999px;
    padding: 0.25rem 0.6rem;
    font-size: 0.75rem;
    font-weight: 800;
}

.website-finder-pagination-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

.website-finder-page-info {
    color: var(--text-muted);
    font-size: 0.82rem;
    font-weight: 600;
}

.lp-hero { padding: 4rem 0 5rem; overflow: hidden; }

/* 3D mockup transform extends past layout box without clipping the column */
.lp-hero .row > .col-lg-6:last-child {
    overflow: hidden;
}

.lp-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: #eef2ff;
    color: var(--brand);
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.4rem 0.85rem;
    border-radius: 50px;
    margin-bottom: 1.25rem;
}

[data-theme="dark"] .lp-hero-badge {
    background: rgba(99, 102, 241, 0.15);
}

.lp-hero h1 {
    font-size: clamp(2rem, 4.5vw, 3.25rem);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 1.25rem;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

.lp-hero .gradient-text {
    background: var(--brand-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.lp-hero-lead {
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.7;
    max-width: 520px;
    margin-bottom: 1rem;
}

.lp-hero-positioning {
    max-width: 560px;
    margin-bottom: 1.75rem;
    padding: 1rem 1.1rem 1.05rem;
    border: 1px solid rgba(59, 130, 246, 0.22);
    border-radius: 16px;
    background: linear-gradient(145deg, rgba(59, 130, 246, 0.1) 0%, rgba(99, 102, 241, 0.05) 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

[data-theme="dark"] .lp-hero-positioning {
    background: linear-gradient(145deg, rgba(59, 130, 246, 0.14) 0%, rgba(15, 23, 42, 0.4) 100%);
    border-color: rgba(99, 102, 241, 0.28);
}

.lp-hero-positioning-lead {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    margin: 0 0 0.85rem;
    color: var(--text-primary);
    font-size: 0.98rem;
    font-weight: 700;
    line-height: 1.4;
}

.lp-hero-positioning-lead > i {
    color: var(--brand);
    flex-shrink: 0;
    font-size: 1rem;
}

.lp-hero-positioning-features {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.55rem 0.65rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.lp-hero-positioning-item {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    min-width: 0;
}

.lp-hero-positioning-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 10px;
    font-size: 0.82rem;
    flex-shrink: 0;
}

.lp-hero-positioning-icon--brand {
    background: rgba(99, 102, 241, 0.16);
    color: #6366f1;
}

.lp-hero-positioning-icon--blue {
    background: rgba(59, 130, 246, 0.16);
    color: #2563eb;
}

.lp-hero-positioning-icon--green {
    background: rgba(16, 185, 129, 0.16);
    color: #059669;
}

.lp-hero-positioning-icon--orange {
    background: rgba(245, 158, 11, 0.16);
    color: #d97706;
}

.lp-hero-positioning-icon--purple {
    background: rgba(168, 85, 247, 0.16);
    color: #9333ea;
}

.lp-hero-positioning-icon--cyan {
    background: rgba(6, 182, 212, 0.16);
    color: #0891b2;
}

.lp-hero-positioning-icon--pink {
    background: rgba(236, 72, 153, 0.16);
    color: #db2777;
}

.lp-hero-positioning-label {
    font-size: 0.8rem;
    font-weight: 600;
    line-height: 1.35;
    color: var(--text-primary);
}

@media (max-width: 575.98px) {
    .lp-hero-positioning-features {
        grid-template-columns: 1fr;
    }
}

.lp-hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.85rem;
    margin-bottom: 1.5rem;
}

.lp-hero-cta {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.8rem 1.35rem;
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    border-radius: 999px;
    transition:
        transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 0.4s cubic-bezier(0.22, 1, 0.36, 1),
        background 0.35s ease,
        border-color 0.35s ease,
        color 0.35s ease;
}

.lp-hero-cta:focus-visible {
    outline: 2px solid var(--brand);
    outline-offset: 3px;
}

.lp-hero-cta--trial {
    color: #fff;
    background: var(--brand-gradient);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.2) inset,
        0 10px 28px rgba(99, 102, 241, 0.35);
    padding-right: 1.1rem;
}

.lp-hero-cta--trial::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: var(--brand-gradient);
    opacity: 0;
    filter: blur(12px);
    z-index: -1;
    transition: opacity 0.4s ease;
}

.lp-hero-cta--trial:hover {
    color: #fff;
    transform: translateY(-3px);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.25) inset,
        0 16px 36px rgba(99, 102, 241, 0.45);
}

.lp-hero-cta--trial:hover::before {
    opacity: 0.7;
}

.lp-hero-cta-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    font-size: 0.8rem;
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), background 0.35s ease;
}

.lp-hero-cta--trial:hover .lp-hero-cta-arrow {
    transform: translateX(3px);
    background: rgba(255, 255, 255, 0.28);
}

.lp-hero-cta--demo {
    color: var(--text-primary);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(248, 250, 252, 0.95) 100%);
    border: 1px solid rgba(99, 102, 241, 0.2);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.8) inset,
        0 6px 20px rgba(15, 23, 42, 0.06);
    backdrop-filter: blur(8px);
}

[data-theme="dark"] .lp-hero-cta--demo {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.85) 0%, rgba(15, 23, 42, 0.9) 100%);
    border-color: rgba(99, 102, 241, 0.3);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.06) inset,
        0 8px 24px rgba(0, 0, 0, 0.3);
}

.lp-hero-cta--demo:hover {
    color: var(--text-primary);
    border-color: rgba(99, 102, 241, 0.45);
    transform: translateY(-3px);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.1) inset,
        0 12px 28px rgba(99, 102, 241, 0.18);
}

.lp-hero-cta-play {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.15rem;
    height: 2.15rem;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.15) 0%, rgba(139, 92, 246, 0.12) 100%);
    color: var(--brand);
    font-size: 0.72rem;
    padding-left: 0.15rem;
    transition:
        transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
        background 0.35s ease,
        color 0.35s ease;
}

.lp-hero-cta--demo:hover .lp-hero-cta-play {
    transform: scale(1.08);
    background: var(--brand-gradient);
    color: #fff;
}

@media (max-width: 575.98px) {
    .lp-hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .lp-hero-cta {
        justify-content: center;
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .lp-hero-cta,
    .lp-hero-cta-arrow,
    .lp-hero-cta-play {
        transition: none;
    }

    .lp-hero-cta--trial:hover,
    .lp-hero-cta--demo:hover {
        transform: none;
    }
}

button.lp-hero-cta {
    border: none;
    cursor: pointer;
    font-family: inherit;
}

.lp-hero-cta--block {
    width: 100%;
    justify-content: center;
}

.lp-hero-cta--block.lp-hero-cta--trial {
    padding-right: 1.35rem;
}

.lp-hero-cta--compact {
    font-size: 0.85rem;
    padding: 0.5rem 0.95rem 0.5rem 1.1rem;
}

.lp-hero-cta--compact .lp-hero-cta-arrow {
    width: 1.75rem;
    height: 1.75rem;
    font-size: 0.7rem;
}

.lp-customers .lp-hero-cta--trial,
.lp-rich-site .lp-hero-cta--trial {
    margin-top: 0.25rem;
}

.lp-mobile-actions .lp-hero-cta--trial {
    width: 100%;
    justify-content: center;
}

.lp-legal-contact-actions .lp-hero-cta--trial {
    width: 100%;
    justify-content: center;
}

.lp-pricing-card .lp-hero-cta {
    text-align: center;
}

.lp-btn-lg-primary { padding: 0.75rem 1.5rem; font-size: 0.95rem; border-radius: 10px; }

.lp-btn-outline {
    border: 2px solid var(--border);
    background: var(--surface);
    color: var(--text-primary);
    font-weight: 600;
    padding: 0.7rem 1.4rem;
    border-radius: 10px;
    text-decoration: none;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.lp-btn-outline:hover { border-color: var(--border-focus); color: var(--text-primary); }

.lp-trust-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
}

.lp-trust-list li {
    font-size: 0.85rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.lp-trust-list i { color: var(--brand); }

/* Visitor intelligence   marketing block after hero */
.lp-insight {
    padding: 4.5rem 0;
    background: linear-gradient(180deg, var(--surface-2) 0%, var(--surface) 55%, var(--surface) 100%);
    border-bottom: 1px solid var(--border);
}

[data-theme="dark"] .lp-insight {
    background: linear-gradient(180deg, rgba(99, 102, 241, 0.06) 0%, var(--surface) 50%, var(--surface) 100%);
}

.lp-insight-title {
    font-size: clamp(1.65rem, 3vw, 2.25rem);
    font-weight: 800;
    line-height: 1.2;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.lp-insight-title .gradient-text {
    display: block;
    background: linear-gradient(135deg, var(--brand) 0%, #8b5cf6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.lp-insight-lead {
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.65;
    margin-bottom: 1.75rem;
    max-width: 34rem;
}

.lp-insight .lp-hero-cta--trial {
    margin-top: 0.25rem;
}

.lp-insight-points {
    list-style: none;
    padding: 0;
    margin: 0 0 1.75rem;
    display: flex;
    flex-direction: column;
    gap: 1.15rem;
}

.lp-insight-points li {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.lp-insight-point-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.lp-insight-point-icon.c1 { background: #dbeafe; color: #3b82f6; }
.lp-insight-point-icon.c2 { background: #d1fae5; color: #10b981; }
.lp-insight-point-icon.c3 { background: #ede9fe; color: #8b5cf6; }

[data-theme="dark"] .lp-insight-point-icon.c1 { background: rgba(59, 130, 246, 0.2); }
[data-theme="dark"] .lp-insight-point-icon.c2 { background: rgba(16, 185, 129, 0.2); }
[data-theme="dark"] .lp-insight-point-icon.c3 { background: rgba(139, 92, 246, 0.2); }

.lp-insight-points strong {
    display: block;
    font-size: 0.98rem;
    color: var(--text-primary);
    margin-bottom: 0.2rem;
}

.lp-insight-points p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.55;
}

.lp-insight-stats {
    margin-bottom: 0.5rem;
}

.lp-insight-stat-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 1.1rem 1rem;
    height: 100%;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.45rem;
    box-shadow: var(--shadow-sm);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.lp-insight-stat-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: rgba(99, 102, 241, 0.35);
}

.lp-insight-stat-card-icon {
    width: 40px;
    height: 40px;
    border-radius: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.lp-insight-stat-card-icon.c1 { background: #dbeafe; color: #3b82f6; }
.lp-insight-stat-card-icon.c2 { background: #d1fae5; color: #10b981; }
.lp-insight-stat-card-icon.c3 { background: #ede9fe; color: #8b5cf6; }

[data-theme="dark"] .lp-insight-stat-card-icon.c1 { background: rgba(59, 130, 246, 0.2); }
[data-theme="dark"] .lp-insight-stat-card-icon.c2 { background: rgba(16, 185, 129, 0.2); }
[data-theme="dark"] .lp-insight-stat-card-icon.c3 { background: rgba(139, 92, 246, 0.2); }

.lp-insight-stat-card-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.lp-insight-stat-card-label {
    display: block;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    line-height: 1.35;
}

.lp-insight-panel {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 18px;
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

.lp-insight-panel-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: var(--surface-2);
    border-bottom: 1px solid var(--border);
}

.lp-insight-panel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.25);
    animation: lp-insight-pulse 2s ease-in-out infinite;
}

@keyframes lp-insight-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.55; }
}

.lp-insight-panel-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.lp-insight-panel-body {
    padding: 1.25rem;
}

.lp-insight-metric {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.08) 0%, rgba(139, 92, 246, 0.06) 100%);
    border: 1px solid rgba(99, 102, 241, 0.15);
    border-radius: 12px;
    padding: 1rem 1.15rem;
    margin-bottom: 1rem;
}

[data-theme="dark"] .lp-insight-metric {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.15) 0%, rgba(139, 92, 246, 0.1) 100%);
}

.lp-insight-metric-head {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 0.35rem;
}

.lp-insight-metric-head i { color: var(--brand); }

.lp-insight-metric-value {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.1;
}

.lp-insight-metric-trend {
    font-size: 0.8rem;
    color: #10b981;
    font-weight: 600;
    margin-top: 0.25rem;
}

.lp-insight-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

@media (max-width: 575.98px) {
    .lp-insight-split { grid-template-columns: 1fr; }
}

.lp-insight-block {
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 0.85rem;
}

.lp-insight-block-title {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-secondary);
    margin-bottom: 0.6rem;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.lp-insight-block-title i { color: var(--brand); font-size: 0.7rem; }

.lp-insight-page-list {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 0.78rem;
}

.lp-insight-page-list li {
    display: flex;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.3rem 0;
    border-bottom: 1px dashed var(--border);
}

.lp-insight-page-list li:last-child { border-bottom: none; }

.lp-insight-page-list span {
    font-weight: 600;
    color: var(--text-primary);
    font-family: ui-monospace, monospace;
}

.lp-insight-page-list em {
    font-style: normal;
    color: var(--text-muted);
}

.lp-insight-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.lp-insight-tags span {
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.25rem 0.5rem;
    border-radius: 50px;
    background: rgba(99, 102, 241, 0.12);
    color: var(--brand);
    border: 1px solid rgba(99, 102, 241, 0.2);
}

[data-theme="dark"] .lp-insight-tags span {
    background: rgba(99, 102, 241, 0.2);
}

.lp-insight-lead-banner {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.75rem 1rem;
    border-radius: 10px;
    background: #d1fae5;
    color: #047857;
    font-size: 0.85rem;
    font-weight: 600;
}

[data-theme="dark"] .lp-insight-lead-banner {
    background: rgba(16, 185, 129, 0.15);
    color: #6ee7b7;
}

.lp-insight-lead-banner i { font-size: 1rem; }

/* How it works */
.lp-how-it-works {
    padding: 4rem 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
}

.lp-how-header {
    max-width: 720px;
    margin: 0 auto 2.5rem;
}

.lp-how-header h2 {
    color: var(--text-primary);
    font-size: clamp(1.75rem, 3vw, 2.35rem);
    font-weight: 800;
    margin-bottom: 0.75rem;
}

.lp-how-header p {
    color: var(--text-muted);
    font-size: 1.02rem;
    line-height: 1.65;
    margin: 0;
}

.lp-how-card {
    position: relative;
    height: 100%;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 1.35rem;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.lp-how-card:hover {
    transform: translateY(-3px);
    border-color: rgba(99, 102, 241, 0.28);
    box-shadow: var(--shadow-md);
}

.lp-how-number {
    position: absolute;
    top: 1rem;
    right: 1.15rem;
    color: var(--text-muted);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    opacity: 0.55;
}

.lp-how-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.1rem;
    font-size: 1.1rem;
}

.lp-how-icon.c1 { background: #dbeafe; color: #3b82f6; }
.lp-how-icon.c2 { background: #ffedd5; color: #f59e0b; }
.lp-how-icon.c3 { background: #ede9fe; color: #8b5cf6; }
.lp-how-icon.c4 { background: #d1fae5; color: #10b981; }
.lp-how-icon.c5 { background: #fce7f3; color: #db2777; }

[data-theme="dark"] .lp-how-icon.c1 { background: rgba(59, 130, 246, 0.2); }
[data-theme="dark"] .lp-how-icon.c2 { background: rgba(245, 158, 11, 0.2); }
[data-theme="dark"] .lp-how-icon.c3 { background: rgba(139, 92, 246, 0.2); }
[data-theme="dark"] .lp-how-icon.c4 { background: rgba(16, 185, 129, 0.2); }
[data-theme="dark"] .lp-how-icon.c5 { background: rgba(236, 72, 153, 0.2); }

.lp-how-card h3 {
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 800;
    margin-bottom: 0.45rem;
}

.lp-how-card p {
    color: var(--text-muted);
    font-size: 0.88rem;
    line-height: 1.55;
    margin: 0;
}

/* Our customers */
.lp-customers {
    padding: 4.5rem 0;
    background:
        radial-gradient(circle at 88% 15%, rgba(16, 185, 129, 0.12), transparent 28%),
        linear-gradient(180deg, var(--surface-2) 0%, var(--surface) 100%);
    border-bottom: 1px solid var(--border);
}

[data-theme="dark"] .lp-customers {
    background:
        radial-gradient(circle at 88% 15%, rgba(16, 185, 129, 0.16), transparent 30%),
        linear-gradient(180deg, rgba(16, 185, 129, 0.05) 0%, var(--surface) 100%);
}

.lp-customers-title {
    color: var(--text-primary);
    font-size: clamp(1.65rem, 3vw, 2.25rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.lp-customers-title .gradient-text {
    display: block;
    background: linear-gradient(135deg, #10b981 0%, var(--brand) 60%, #8b5cf6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.lp-customers-lead {
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.65;
    margin-bottom: 1.25rem;
}

.lp-customer-card {
    height: 100%;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 1.25rem;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.lp-customer-card:hover {
    transform: translateY(-3px);
    border-color: rgba(16, 185, 129, 0.32);
    box-shadow: var(--shadow-md);
}

.lp-customer-icon {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    font-size: 1.05rem;
}

.lp-customer-icon.c1 { background: #ede9fe; color: #8b5cf6; }
.lp-customer-icon.c2 { background: #dbeafe; color: #3b82f6; }
.lp-customer-icon.c3 { background: #d1fae5; color: #10b981; }

[data-theme="dark"] .lp-customer-icon.c1 { background: rgba(139, 92, 246, 0.2); }
[data-theme="dark"] .lp-customer-icon.c2 { background: rgba(59, 130, 246, 0.2); }
[data-theme="dark"] .lp-customer-icon.c3 { background: rgba(16, 185, 129, 0.2); }

.lp-customer-card h3 {
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.lp-customer-card p {
    color: var(--text-muted);
    font-size: 0.88rem;
    line-height: 1.55;
    margin: 0;
}

.lp-customers-note {
    display: flex;
    align-items: flex-start;
    gap: 0.7rem;
    margin-top: 1rem;
    padding: 1rem 1.1rem;
    color: var(--text-secondary);
    background: rgba(99, 102, 241, 0.08);
    border: 1px solid rgba(99, 102, 241, 0.16);
    border-radius: 16px;
    font-size: 0.9rem;
    line-height: 1.55;
}

.lp-customers-note i {
    color: #10b981;
    margin-top: 0.2rem;
}

/* Content-rich websites — quick answers without page hunts */
.lp-rich-site {
    padding: 4.5rem 0;
    background:
        radial-gradient(circle at 12% 20%, rgba(99, 102, 241, 0.14), transparent 32%),
        radial-gradient(circle at 90% 80%, rgba(59, 130, 246, 0.1), transparent 28%),
        var(--surface);
    border-bottom: 1px solid var(--border);
}

[data-theme="dark"] .lp-rich-site {
    background:
        radial-gradient(circle at 12% 20%, rgba(99, 102, 241, 0.2), transparent 34%),
        radial-gradient(circle at 90% 80%, rgba(59, 130, 246, 0.14), transparent 30%),
        var(--surface);
}

.lp-rich-site-title {
    color: var(--text-primary);
    font-size: clamp(1.65rem, 3vw, 2.25rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.lp-rich-site-title .gradient-text {
    display: block;
    background: linear-gradient(135deg, #3b82f6 0%, var(--brand) 55%, #8b5cf6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.lp-rich-site-lead {
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.65;
    margin-bottom: 1.35rem;
}

.lp-rich-site-points {
    list-style: none;
    padding: 0;
    margin: 0 0 1.35rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.lp-rich-site-points li {
    display: flex;
    gap: 0.85rem;
    align-items: flex-start;
}

.lp-rich-site-points strong {
    display: block;
    color: var(--text-primary);
    font-size: 0.95rem;
    font-weight: 800;
    margin-bottom: 0.25rem;
}

.lp-rich-site-points p {
    color: var(--text-muted);
    font-size: 0.88rem;
    line-height: 1.55;
    margin: 0;
}

.lp-rich-site-point-icon {
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.lp-rich-site-point-icon.c1 { background: #dbeafe; color: #3b82f6; }
.lp-rich-site-point-icon.c2 { background: #fef3c7; color: #d97706; }
.lp-rich-site-point-icon.c3 { background: #d1fae5; color: #10b981; }
.lp-rich-site-point-icon.c4 { background: #ede9fe; color: #8b5cf6; }

[data-theme="dark"] .lp-rich-site-point-icon.c1 { background: rgba(59, 130, 246, 0.2); }
[data-theme="dark"] .lp-rich-site-point-icon.c2 { background: rgba(217, 119, 6, 0.2); }
[data-theme="dark"] .lp-rich-site-point-icon.c3 { background: rgba(16, 185, 129, 0.2); }
[data-theme="dark"] .lp-rich-site-point-icon.c4 { background: rgba(139, 92, 246, 0.2); }

.lp-rich-site-stats {
    margin-bottom: 0.25rem;
}

.lp-rich-site-stat {
    height: 100%;
    padding: 0.85rem 0.75rem;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: 14px;
    text-align: center;
}

.lp-rich-site-stat-value {
    display: block;
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.2;
}

.lp-rich-site-stat-label {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.68rem;
    font-weight: 600;
    color: var(--text-muted);
    line-height: 1.35;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.lp-rich-site-panel {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 18px;
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

.lp-rich-site-panel-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: var(--surface-2);
    border-bottom: 1px solid var(--border);
}

.lp-rich-site-panel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.25);
}

.lp-rich-site-panel-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.lp-rich-site-panel-body {
    padding: 1.15rem;
}

.lp-rich-site-compare {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

@media (max-width: 575.98px) {
    .lp-rich-site-compare {
        grid-template-columns: 1fr;
    }
}

.lp-rich-site-compare-col {
    border-radius: 14px;
    padding: 0.9rem;
    min-height: 220px;
}

.lp-rich-site-compare-col.is-before {
    background: rgba(239, 68, 68, 0.06);
    border: 1px dashed rgba(239, 68, 68, 0.28);
}

.lp-rich-site-compare-col.is-after {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(16, 185, 129, 0.08) 100%);
    border: 1px solid rgba(99, 102, 241, 0.22);
}

[data-theme="dark"] .lp-rich-site-compare-col.is-before {
    background: rgba(239, 68, 68, 0.1);
}

[data-theme="dark"] .lp-rich-site-compare-col.is-after {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.18) 0%, rgba(16, 185, 129, 0.12) 100%);
}

.lp-rich-site-compare-head {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.78rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.lp-rich-site-compare-col.is-before .lp-rich-site-compare-head {
    color: #b91c1c;
}

[data-theme="dark"] .lp-rich-site-compare-col.is-before .lp-rich-site-compare-head {
    color: #fca5a5;
}

.lp-rich-site-page-trail {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem;
}

.lp-rich-site-page-trail li {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--text-muted);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 0.25rem 0.45rem;
}

.lp-rich-site-page-trail li .fa-arrow-right {
    font-size: 0.55rem;
    color: #ef4444;
    border: none;
    background: transparent;
    padding: 0;
}

.lp-rich-site-compare-hint {
    margin: 0.85rem 0 0;
    font-size: 0.78rem;
    color: #b91c1c;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

[data-theme="dark"] .lp-rich-site-compare-hint {
    color: #fca5a5;
}

.lp-rich-site-chat {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.lp-rich-site-bubble {
    display: flex;
    gap: 0.5rem;
    align-items: flex-start;
    font-size: 0.76rem;
    line-height: 1.45;
    border-radius: 12px;
    padding: 0.65rem 0.7rem;
}

.lp-rich-site-bubble i {
    margin-top: 0.1rem;
    flex-shrink: 0;
}

.lp-rich-site-bubble.visitor {
    background: var(--surface-2);
    border: 1px solid var(--border);
    color: var(--text-secondary);
}

.lp-rich-site-bubble.bot {
    background: rgba(99, 102, 241, 0.12);
    border: 1px solid rgba(99, 102, 241, 0.2);
    color: var(--text-primary);
}

.lp-rich-site-bubble.bot p {
    margin: 0;
}

.lp-rich-site-sources {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem;
    margin-top: 0.75rem;
}

.lp-rich-site-sources-label {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-muted);
    margin-right: 0.15rem;
}

.lp-rich-site-source-chip {
    font-size: 0.68rem;
    font-weight: 600;
    padding: 0.2rem 0.5rem;
    border-radius: 999px;
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.25);
    color: #047857;
}

[data-theme="dark"] .lp-rich-site-source-chip {
    color: #6ee7b7;
}

.lp-rich-site-result {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    margin-top: 1rem;
    padding: 0.85rem 1rem;
    border-radius: 12px;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.22);
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-secondary);
    line-height: 1.5;
}

.lp-rich-site-result i {
    color: #10b981;
    margin-top: 0.15rem;
}

/* AI chat, SEO & dashboards   section after visitor intelligence */
.lp-growth {
    padding: 4.5rem 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
}

.lp-growth-title {
    font-size: clamp(1.65rem, 3vw, 2.25rem);
    font-weight: 800;
    line-height: 1.2;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.lp-growth-title .gradient-text {
    display: block;
    background: linear-gradient(135deg, #10b981 0%, var(--brand) 55%, #8b5cf6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.lp-growth-lead {
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.65;
    margin-bottom: 1.75rem;
    max-width: 34rem;
}

.lp-growth .lp-hero-cta--trial {
    margin-top: 0.25rem;
}

.lp-growth-points {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.lp-growth-points li {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.lp-growth-point-icon {
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    border-radius: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.lp-growth-point-icon.c1 { background: #dbeafe; color: #3b82f6; }
.lp-growth-point-icon.c2 { background: #ffedd5; color: #f59e0b; }
.lp-growth-point-icon.c3 { background: #d1fae5; color: #10b981; }
.lp-growth-point-icon.c4 { background: #ede9fe; color: #8b5cf6; }

[data-theme="dark"] .lp-growth-point-icon.c1 { background: rgba(59, 130, 246, 0.2); }
[data-theme="dark"] .lp-growth-point-icon.c2 { background: rgba(245, 158, 11, 0.2); }
[data-theme="dark"] .lp-growth-point-icon.c3 { background: rgba(16, 185, 129, 0.2); }
[data-theme="dark"] .lp-growth-point-icon.c4 { background: rgba(139, 92, 246, 0.2); }

.lp-growth-points strong {
    display: block;
    font-size: 0.95rem;
    color: var(--text-primary);
    margin-bottom: 0.15rem;
}

.lp-growth-points p {
    margin: 0;
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.lp-growth-cards {
    margin-bottom: 0.25rem;
}

.lp-growth-mini-card {
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 0.85rem 0.5rem;
    text-align: center;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    transition: border-color 0.2s, transform 0.2s;
}

.lp-growth-mini-card:hover {
    border-color: rgba(99, 102, 241, 0.35);
    transform: translateY(-2px);
}

.lp-growth-mini-card i {
    font-size: 1.15rem;
    color: var(--brand);
}

.lp-growth-mini-card span {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-secondary);
    line-height: 1.25;
}

.lp-growth-panel {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 18px;
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

.lp-growth-panel-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: var(--surface-2);
    border-bottom: 1px solid var(--border);
}

.lp-growth-panel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--brand);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.25);
}

.lp-growth-panel-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.lp-growth-panel-body {
    padding: 1.25rem;
}

.lp-growth-chat-preview {
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 0.9rem;
    margin-bottom: 0.85rem;
}

.lp-growth-chat-head {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text-secondary);
    margin-bottom: 0.65rem;
}

.lp-growth-chat-head i { color: var(--brand); }

.lp-growth-live {
    margin-left: auto;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #10b981;
    background: rgba(16, 185, 129, 0.12);
    padding: 0.15rem 0.45rem;
    border-radius: 50px;
}

.lp-growth-chat-bubble {
    font-size: 0.8rem;
    line-height: 1.45;
    padding: 0.55rem 0.75rem;
    border-radius: 10px;
    margin-bottom: 0.4rem;
    max-width: 92%;
}

.lp-growth-chat-bubble.visitor {
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text-primary);
    margin-right: auto;
}

.lp-growth-chat-bubble.bot {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.12) 0%, rgba(139, 92, 246, 0.08) 100%);
    border: 1px solid rgba(99, 102, 241, 0.2);
    color: var(--text-primary);
    margin-left: auto;
    margin-bottom: 0;
}

.lp-growth-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin-bottom: 0.85rem;
}

@media (max-width: 575.98px) {
    .lp-growth-split { grid-template-columns: 1fr; }
}

.lp-growth-seo-score {
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 0.85rem;
    text-align: center;
}

.lp-growth-seo-label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--text-muted);
    margin-bottom: 0.35rem;
}

.lp-growth-seo-label i { color: #10b981; }

.lp-growth-seo-value {
    display: block;
    font-size: 1.75rem;
    font-weight: 800;
    color: #10b981;
    line-height: 1;
    margin-bottom: 0.45rem;
}

.lp-growth-seo-bar {
    height: 6px;
    background: var(--border);
    border-radius: 50px;
    overflow: hidden;
}

.lp-growth-seo-bar span {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, #10b981, #3b82f6);
    border-radius: 50px;
}

.lp-growth-faq-chip {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    text-align: center;
    background: #fff7ed;
    border: 1px solid #fed7aa;
    border-radius: 12px;
    padding: 0.85rem 0.5rem;
    font-size: 0.72rem;
    font-weight: 600;
    color: #c2410c;
    height: 100%;
}

[data-theme="dark"] .lp-growth-faq-chip {
    background: rgba(245, 158, 11, 0.12);
    border-color: rgba(245, 158, 11, 0.3);
    color: #fdba74;
}

.lp-growth-faq-chip i { font-size: 1.25rem; }

.lp-growth-chart {
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 0.85rem 1rem 1rem;
}

.lp-growth-chart-head {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-secondary);
    margin-bottom: 0.65rem;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.lp-growth-chart-head i { color: var(--brand); }

.lp-growth-chart-bars {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 0.45rem;
    height: 72px;
}

.lp-growth-chart-bars span {
    flex: 1;
    height: var(--h, 50%);
    min-height: 12px;
    background: linear-gradient(180deg, var(--brand) 0%, #8b5cf6 100%);
    border-radius: 4px 4px 0 0;
    opacity: 0.85;
}

/* Knowledge base from your website */
.lp-knowledge {
    padding: 4.5rem 0;
    background: linear-gradient(180deg, var(--surface-2) 0%, var(--surface) 55%, var(--surface) 100%);
    border-bottom: 1px solid var(--border);
}

[data-theme="dark"] .lp-knowledge {
    background: linear-gradient(180deg, rgba(16, 185, 129, 0.05) 0%, var(--surface) 50%, var(--surface) 100%);
}

.lp-knowledge-title {
    font-size: clamp(1.65rem, 3vw, 2.25rem);
    font-weight: 800;
    line-height: 1.2;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.lp-knowledge-title .gradient-text {
    display: block;
    background: linear-gradient(135deg, #f59e0b 0%, var(--brand) 50%, #10b981 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.lp-knowledge-lead {
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.65;
    margin-bottom: 1.75rem;
    max-width: 34rem;
}

.lp-knowledge .lp-hero-cta--trial {
    margin-top: 0.25rem;
}

.lp-knowledge-points {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.lp-knowledge-points li {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.lp-knowledge-point-icon {
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    border-radius: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.lp-knowledge-point-icon.c1 { background: #dbeafe; color: #3b82f6; }
.lp-knowledge-point-icon.c2 { background: #ffedd5; color: #f59e0b; }
.lp-knowledge-point-icon.c3 { background: #d1fae5; color: #10b981; }
.lp-knowledge-point-icon.c4 { background: #ede9fe; color: #8b5cf6; }

[data-theme="dark"] .lp-knowledge-point-icon.c1 { background: rgba(59, 130, 246, 0.2); }
[data-theme="dark"] .lp-knowledge-point-icon.c2 { background: rgba(245, 158, 11, 0.2); }
[data-theme="dark"] .lp-knowledge-point-icon.c3 { background: rgba(16, 185, 129, 0.2); }
[data-theme="dark"] .lp-knowledge-point-icon.c4 { background: rgba(139, 92, 246, 0.2); }

.lp-knowledge-points strong {
    display: block;
    font-size: 0.95rem;
    color: var(--text-primary);
    margin-bottom: 0.15rem;
}

.lp-knowledge-points p {
    margin: 0;
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.lp-knowledge-cards {
    margin-bottom: 0.25rem;
}

.lp-knowledge-mini-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 0.85rem 0.5rem;
    text-align: center;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    box-shadow: var(--shadow-sm);
    transition: border-color 0.2s, transform 0.2s;
}

.lp-knowledge-mini-card:hover {
    border-color: rgba(16, 185, 129, 0.4);
    transform: translateY(-2px);
}

.lp-knowledge-mini-card i {
    font-size: 1.15rem;
    color: #10b981;
}

.lp-knowledge-mini-card span {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-secondary);
    line-height: 1.25;
}

.lp-knowledge-panel {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 18px;
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

.lp-knowledge-panel-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: var(--surface-2);
    border-bottom: 1px solid var(--border);
}

.lp-knowledge-panel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.25);
}

.lp-knowledge-panel-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.lp-knowledge-panel-body {
    padding: 1.25rem;
}

.lp-knowledge-crawl {
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 0.9rem 1rem;
    margin-bottom: 0.85rem;
}

.lp-knowledge-crawl-head {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text-secondary);
    margin-bottom: 0.55rem;
}

.lp-knowledge-crawl-head i { color: #f59e0b; }

.lp-knowledge-crawl-status {
    margin-left: auto;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #10b981;
    background: rgba(16, 185, 129, 0.12);
    padding: 0.15rem 0.45rem;
    border-radius: 50px;
}

.lp-knowledge-crawl-bar {
    height: 8px;
    background: var(--border);
    border-radius: 50px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.lp-knowledge-crawl-bar span {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, #f59e0b, #10b981);
    border-radius: 50px;
}

.lp-knowledge-crawl-meta {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.lp-knowledge-crawl-meta strong {
    color: var(--text-primary);
    font-weight: 800;
}

.lp-knowledge-page-list {
    list-style: none;
    padding: 0;
    margin: 0 0 0.85rem;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
}

.lp-knowledge-page-list li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.85rem;
    font-size: 0.78rem;
    border-bottom: 1px solid var(--border);
}

.lp-knowledge-page-list li:last-child { border-bottom: none; }

.lp-knowledge-page-list i {
    color: #10b981;
    font-size: 0.85rem;
}

.lp-knowledge-page-list span {
    font-family: ui-monospace, monospace;
    font-weight: 600;
    color: var(--text-primary);
    flex: 1;
}

.lp-knowledge-page-list em {
    font-style: normal;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-muted);
}

.lp-knowledge-answer {
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 12px;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.06) 0%, rgba(16, 185, 129, 0.05) 100%);
}

.lp-knowledge-answer-q {
    padding: 0.65rem 0.9rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
    background: var(--surface-2);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.lp-knowledge-answer-q i { color: var(--brand); }

.lp-knowledge-answer-a {
    display: flex;
    gap: 0.65rem;
    padding: 0.85rem 0.9rem;
    align-items: flex-start;
}

.lp-knowledge-answer-a > i {
    color: var(--brand);
    font-size: 1.1rem;
    margin-top: 0.15rem;
}

.lp-knowledge-answer-a p {
    margin: 0 0 0.4rem;
    font-size: 0.82rem;
    line-height: 1.5;
    color: var(--text-primary);
}

.lp-knowledge-answer-source {
    font-size: 0.7rem;
    font-weight: 600;
    color: #10b981;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

/* File-supported knowledge base */
.lp-knowledge-files {
    padding: 4.5rem 0;
    background:
        radial-gradient(circle at 88% 18%, rgba(245, 158, 11, 0.1), transparent 32%),
        linear-gradient(180deg, var(--surface) 0%, var(--surface-2) 100%);
    border-bottom: 1px solid var(--border);
}

[data-theme="dark"] .lp-knowledge-files {
    background:
        radial-gradient(circle at 88% 18%, rgba(245, 158, 11, 0.14), transparent 34%),
        linear-gradient(180deg, var(--surface) 0%, rgba(245, 158, 11, 0.04) 100%);
}

.lp-knowledge-files-title {
    font-size: clamp(1.65rem, 3vw, 2.25rem);
    font-weight: 800;
    line-height: 1.2;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.lp-knowledge-files-title .gradient-text {
    display: block;
    background: linear-gradient(135deg, #f59e0b 0%, var(--brand) 55%, #3b82f6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.lp-knowledge-files-lead {
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.65;
    margin-bottom: 1.75rem;
    max-width: 34rem;
}

.lp-knowledge-files .lp-hero-cta--trial {
    margin-top: 0.25rem;
}

.lp-knowledge-files-points {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.lp-knowledge-files-points li {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
}

.lp-knowledge-files-point-icon {
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.lp-knowledge-files-point-icon.c1 { background: #ffedd5; color: #f59e0b; }
.lp-knowledge-files-point-icon.c2 { background: #dbeafe; color: #3b82f6; }
.lp-knowledge-files-point-icon.c3 { background: #d1fae5; color: #10b981; }

[data-theme="dark"] .lp-knowledge-files-point-icon.c1 { background: rgba(245, 158, 11, 0.2); }
[data-theme="dark"] .lp-knowledge-files-point-icon.c2 { background: rgba(59, 130, 246, 0.2); }
[data-theme="dark"] .lp-knowledge-files-point-icon.c3 { background: rgba(16, 185, 129, 0.2); }

.lp-knowledge-files-points strong {
    display: block;
    color: var(--text-primary);
    font-size: 0.95rem;
    font-weight: 800;
    margin-bottom: 0.2rem;
}

.lp-knowledge-files-points p {
    color: var(--text-muted);
    font-size: 0.88rem;
    line-height: 1.55;
    margin: 0;
}

.lp-knowledge-files-formats-heading {
    color: var(--text-primary);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin: 0 0 0.75rem;
}

.lp-knowledge-files-types {
    margin-bottom: 0.25rem;
}

.lp-knowledge-file-type {
    height: 100%;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 0.85rem;
    box-shadow: var(--shadow-sm);
}

.lp-knowledge-file-type i {
    display: block;
    font-size: 1.1rem;
    margin-bottom: 0.45rem;
    color: #f59e0b;
}

.lp-knowledge-file-type i.fa-file-word { color: #3b82f6; }
.lp-knowledge-file-type i.fa-file-excel { color: #10b981; }
.lp-knowledge-file-type i.fa-file-csv { color: #8b5cf6; }
.lp-knowledge-file-type i.fa-file-code { color: #6366f1; }

.lp-knowledge-file-type strong {
    display: block;
    color: var(--text-primary);
    font-size: 0.82rem;
    font-weight: 800;
    margin-bottom: 0.2rem;
}

.lp-knowledge-file-type span {
    display: block;
    color: var(--text-muted);
    font-size: 0.72rem;
    line-height: 1.45;
}

.lp-knowledge-files-panel {
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: 18px;
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

.lp-knowledge-files-panel-header {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.85rem 1.1rem;
    border-bottom: 1px solid var(--border);
    background: var(--surface);
}

.lp-knowledge-files-panel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.18);
}

.lp-knowledge-files-panel-label {
    color: var(--text-muted);
    font-size: 0.78rem;
    font-weight: 700;
}

.lp-knowledge-files-panel-body {
    padding: 1.1rem;
}

.lp-knowledge-files-upload {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 0.85rem;
    margin-bottom: 0.85rem;
}

.lp-knowledge-files-upload-head {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.55rem;
}

.lp-knowledge-files-upload-head i { color: #f59e0b; }

.lp-knowledge-files-upload-status {
    margin-left: auto;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #10b981;
    background: rgba(16, 185, 129, 0.12);
    padding: 0.18rem 0.45rem;
    border-radius: 999px;
}

.lp-knowledge-files-upload-bar {
    height: 6px;
    background: var(--surface-2);
    border-radius: 999px;
    overflow: hidden;
    margin-bottom: 0.55rem;
}

.lp-knowledge-files-upload-bar span {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, #f59e0b 0%, var(--brand) 100%);
    border-radius: 999px;
}

.lp-knowledge-files-upload-meta {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.lp-knowledge-files-upload-meta strong {
    color: var(--text-primary);
}

.lp-knowledge-files-list {
    list-style: none;
    padding: 0;
    margin: 0 0 0.85rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
}

.lp-knowledge-files-list li {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.65rem 0.85rem;
    border-bottom: 1px solid var(--border);
    font-size: 0.8rem;
}

.lp-knowledge-files-list li:last-child { border-bottom: none; }

.lp-knowledge-files-list i {
    color: #f59e0b;
    width: 1rem;
    text-align: center;
}

.lp-knowledge-files-list i.fa-file-word { color: #3b82f6; }
.lp-knowledge-files-list i.fa-file-excel { color: #10b981; }

.lp-knowledge-files-list span {
    flex: 1;
    color: var(--text-primary);
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.lp-knowledge-files-list em {
    font-style: normal;
    font-size: 0.68rem;
    font-weight: 700;
    color: #10b981;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.lp-knowledge-files-answer {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 0.85rem;
}

.lp-knowledge-files-answer-q {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.65rem;
}

.lp-knowledge-files-answer-q i { color: var(--brand); }

.lp-knowledge-files-answer-a {
    display: flex;
    gap: 0.65rem;
    align-items: flex-start;
}

.lp-knowledge-files-answer-a > i {
    color: var(--brand);
    margin-top: 0.15rem;
}

.lp-knowledge-files-answer-a p {
    color: var(--text-muted);
    font-size: 0.82rem;
    line-height: 1.55;
    margin: 0 0 0.45rem;
}

.lp-knowledge-files-answer-source {
    font-size: 0.7rem;
    font-weight: 600;
    color: #f59e0b;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

/* Social knowledge base */
.lp-social-kb {
    padding: 4.5rem 0;
    background:
        radial-gradient(circle at 12% 22%, rgba(236, 72, 153, 0.1), transparent 32%),
        linear-gradient(180deg, var(--surface-2) 0%, var(--surface) 100%);
    border-bottom: 1px solid var(--border);
}

[data-theme="dark"] .lp-social-kb {
    background:
        radial-gradient(circle at 12% 22%, rgba(236, 72, 153, 0.14), transparent 34%),
        linear-gradient(180deg, var(--surface) 0%, rgba(236, 72, 153, 0.04) 100%);
}

.lp-social-kb-title {
    font-size: clamp(1.65rem, 3vw, 2.25rem);
    font-weight: 800;
    line-height: 1.2;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.lp-social-kb-title .gradient-text {
    display: block;
    background: linear-gradient(135deg, #ec4899 0%, var(--brand) 55%, #8b5cf6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.lp-social-kb-lead {
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.65;
    margin-bottom: 1.75rem;
    max-width: 34rem;
}

.lp-social-kb-points {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.lp-social-kb-points li {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
}

.lp-social-kb-point-icon {
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.lp-social-kb-point-icon.c1 { background: #fce7f3; color: #db2777; }
.lp-social-kb-point-icon.c2 { background: #ede9fe; color: #8b5cf6; }
.lp-social-kb-point-icon.c3 { background: #dbeafe; color: #3b82f6; }

[data-theme="dark"] .lp-social-kb-point-icon.c1 { background: rgba(236, 72, 153, 0.2); }
[data-theme="dark"] .lp-social-kb-point-icon.c2 { background: rgba(139, 92, 246, 0.2); }
[data-theme="dark"] .lp-social-kb-point-icon.c3 { background: rgba(59, 130, 246, 0.2); }

.lp-social-kb-points strong {
    display: block;
    color: var(--text-primary);
    font-size: 0.95rem;
    font-weight: 800;
    margin-bottom: 0.2rem;
}

.lp-social-kb-points p {
    color: var(--text-muted);
    font-size: 0.88rem;
    line-height: 1.55;
    margin: 0;
}

.lp-social-kb-platforms-heading {
    color: var(--text-primary);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin: 0 0 0.75rem;
}

.lp-social-kb-platform {
    height: 100%;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 0.85rem;
    box-shadow: var(--shadow-sm);
}

.lp-social-kb-platform i {
    display: block;
    font-size: 1.1rem;
    margin-bottom: 0.45rem;
}

.lp-social-kb-platform i.fa-facebook { color: #1877f2; }
.lp-social-kb-platform i.fa-instagram { color: #e4405f; }
.lp-social-kb-platform i.fa-linkedin { color: #0a66c2; }
.lp-social-kb-platform i.fa-x-twitter { color: var(--text-primary); }
.lp-social-kb-platform i.fa-youtube { color: #ff0000; }
.lp-social-kb-platform i.fa-google { color: #4285f4; }

.lp-social-kb-platform strong {
    display: block;
    color: var(--text-primary);
    font-size: 0.82rem;
    font-weight: 800;
    margin-bottom: 0.2rem;
}

.lp-social-kb-platform span {
    display: block;
    color: var(--text-muted);
    font-size: 0.72rem;
    line-height: 1.45;
}

.lp-social-kb-panel {
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: 18px;
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

.lp-social-kb-panel-header {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.85rem 1.1rem;
    border-bottom: 1px solid var(--border);
    background: var(--surface);
}

.lp-social-kb-panel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ec4899;
    box-shadow: 0 0 0 3px rgba(236, 72, 153, 0.18);
}

.lp-social-kb-panel-label {
    color: var(--text-muted);
    font-size: 0.78rem;
    font-weight: 700;
}

.lp-social-kb-panel-body {
    padding: 1.1rem;
}

.lp-social-kb-sync {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 0.85rem;
    margin-bottom: 0.85rem;
}

.lp-social-kb-sync-head {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.55rem;
}

.lp-social-kb-sync-head i { color: #ec4899; }

.lp-social-kb-sync-status {
    margin-left: auto;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #db2777;
    background: rgba(236, 72, 153, 0.12);
    padding: 0.18rem 0.45rem;
    border-radius: 999px;
}

.lp-social-kb-sync-bar {
    height: 6px;
    background: var(--surface-2);
    border-radius: 999px;
    overflow: hidden;
    margin-bottom: 0.55rem;
}

.lp-social-kb-sync-bar span {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, #ec4899 0%, var(--brand) 100%);
    border-radius: 999px;
}

.lp-social-kb-sync-meta {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.lp-social-kb-sync-meta strong {
    color: var(--text-primary);
}

.lp-social-kb-list {
    list-style: none;
    padding: 0;
    margin: 0 0 0.85rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
}

.lp-social-kb-list li {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.65rem 0.85rem;
    border-bottom: 1px solid var(--border);
    font-size: 0.8rem;
}

.lp-social-kb-list li:last-child { border-bottom: none; }

.lp-social-kb-list i {
    width: 1rem;
    text-align: center;
}

.lp-social-kb-list i.fa-instagram { color: #e4405f; }
.lp-social-kb-list i.fa-facebook { color: #1877f2; }
.lp-social-kb-list i.fa-google { color: #4285f4; }

.lp-social-kb-list span {
    flex: 1;
    color: var(--text-primary);
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.lp-social-kb-list em {
    font-style: normal;
    font-size: 0.68rem;
    font-weight: 700;
    color: #db2777;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.lp-social-kb-answer {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 0.85rem;
}

.lp-social-kb-answer-q {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.65rem;
}

.lp-social-kb-answer-q i { color: var(--brand); }

.lp-social-kb-answer-a {
    display: flex;
    gap: 0.65rem;
    align-items: flex-start;
}

.lp-social-kb-answer-a > i {
    color: var(--brand);
    margin-top: 0.15rem;
}

.lp-social-kb-answer-a p {
    color: var(--text-muted);
    font-size: 0.82rem;
    line-height: 1.55;
    margin: 0 0 0.45rem;
}

.lp-social-kb-answer-source {
    font-size: 0.7rem;
    font-weight: 600;
    color: #db2777;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

/* Lead conversion */
.lp-lead-conversion {
    padding: 4.5rem 0;
    background:
        radial-gradient(circle at 12% 20%, rgba(99, 102, 241, 0.1), transparent 30%),
        linear-gradient(180deg, var(--surface) 0%, var(--surface-2) 100%);
    border-bottom: 1px solid var(--border);
}

[data-theme="dark"] .lp-lead-conversion {
    background:
        radial-gradient(circle at 12% 20%, rgba(99, 102, 241, 0.16), transparent 32%),
        linear-gradient(180deg, var(--surface) 0%, rgba(99, 102, 241, 0.05) 100%);
}

.lp-lead-title {
    font-size: clamp(1.65rem, 3vw, 2.25rem);
    font-weight: 800;
    line-height: 1.2;
    color: var(--text-primary);
    margin: 0.85rem 0 1rem;
}

.lp-lead-title .gradient-text {
    display: block;
    background: linear-gradient(135deg, var(--brand) 0%, #ec4899 55%, #f59e0b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.lp-lead-copy {
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.65;
    margin-bottom: 1.5rem;
    max-width: 34rem;
}

.lp-lead-steps {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.lp-lead-conversion .lp-hero-cta--trial {
    margin-top: 0.25rem;
}

.lp-lead-step {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 1rem;
    box-shadow: var(--shadow-sm);
}

.lp-lead-step-icon {
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.lp-lead-step-icon.c1 { background: #ede9fe; color: var(--brand); }
.lp-lead-step-icon.c2 { background: #fce7f3; color: #ec4899; }
.lp-lead-step-icon.c3 { background: #ffedd5; color: #f59e0b; }

[data-theme="dark"] .lp-lead-step-icon.c1 { background: rgba(99, 102, 241, 0.2); }
[data-theme="dark"] .lp-lead-step-icon.c2 { background: rgba(236, 72, 153, 0.2); }
[data-theme="dark"] .lp-lead-step-icon.c3 { background: rgba(245, 158, 11, 0.2); }

.lp-lead-step strong {
    display: block;
    color: var(--text-primary);
    font-size: 0.95rem;
    margin-bottom: 0.15rem;
}

.lp-lead-step p {
    color: var(--text-muted);
    font-size: 0.88rem;
    line-height: 1.5;
    margin: 0;
}

.lp-lead-panel {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 18px;
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

.lp-lead-panel-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: var(--surface-2);
    border-bottom: 1px solid var(--border);
}

.lp-lead-panel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ec4899;
    box-shadow: 0 0 0 3px rgba(236, 72, 153, 0.25);
}

.lp-lead-panel-label {
    color: var(--text-secondary);
    font-size: 0.8rem;
    font-weight: 600;
}

.lp-lead-panel-body {
    padding: 1.25rem;
}

.lp-lead-chat {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    margin-bottom: 1rem;
}

.lp-lead-bubble {
    border-radius: 14px;
    padding: 0.75rem 0.9rem;
    font-size: 0.86rem;
    line-height: 1.45;
    max-width: 86%;
}

.lp-lead-bubble.visitor {
    align-self: flex-start;
    background: var(--surface-2);
    color: var(--text-secondary);
    border: 1px solid var(--border);
}

.lp-lead-bubble.bot {
    align-self: flex-end;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.12), rgba(236, 72, 153, 0.1));
    color: var(--text-primary);
    border: 1px solid rgba(99, 102, 241, 0.18);
}

.lp-lead-capture-card {
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.lp-lead-capture-head {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.85rem;
    color: var(--text-primary);
    font-size: 0.88rem;
    font-weight: 700;
}

.lp-lead-capture-head i { color: #ec4899; }

.lp-lead-capture-head strong {
    margin-left: auto;
    color: #fff;
    background: linear-gradient(135deg, #ec4899, #f59e0b);
    border-radius: 50px;
    padding: 0.2rem 0.55rem;
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.lp-lead-field {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.65rem 0;
    border-top: 1px solid var(--border);
    font-size: 0.82rem;
}

.lp-lead-field span {
    color: var(--text-muted);
}

.lp-lead-field strong {
    color: var(--text-primary);
    font-weight: 700;
    text-align: right;
}

.lp-lead-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.lp-lead-tags span {
    color: var(--brand);
    background: rgba(99, 102, 241, 0.12);
    border: 1px solid rgba(99, 102, 241, 0.18);
    border-radius: 50px;
    padding: 0.25rem 0.55rem;
    font-size: 0.7rem;
    font-weight: 700;
}

.lp-lead-routing {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    border: 1px solid rgba(16, 185, 129, 0.25);
    border-radius: 14px;
    background: rgba(16, 185, 129, 0.08);
    padding: 0.85rem 0.95rem;
}

.lp-lead-routing > i {
    color: #10b981;
    font-size: 1rem;
    margin-top: 0.2rem;
}

.lp-lead-routing strong {
    display: block;
    color: var(--text-primary);
    font-size: 0.86rem;
    margin-bottom: 0.15rem;
}

.lp-lead-routing p {
    color: var(--text-muted);
    font-size: 0.78rem;
    line-height: 1.45;
    margin: 0;
}

.lp-dashboard-mockup {
    position: relative;
    border-radius: var(--radius-lg);
    box-shadow: 0 25px 60px rgba(15, 23, 42, 0.15), 0 0 0 1px rgba(15, 23, 42, 0.06);
    overflow: hidden;
    background: var(--app-bg);
    transform: perspective(1200px) rotateY(-4deg) rotateX(2deg);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.lp-dashboard-mockup:hover {
    transform: perspective(1200px) rotateY(0deg) rotateX(0deg);
    box-shadow: 0 32px 70px rgba(99, 102, 241, 0.2), 0 0 0 1px rgba(99, 102, 241, 0.15);
}

.lp-mockup-expand {
    display: block;
    width: 100%;
    padding: 0;
    border: none;
    background: transparent;
    cursor: zoom-in;
    position: relative;
    line-height: 0;
}

.lp-mockup-expand:focus-visible {
    outline: 2px solid var(--brand);
    outline-offset: 3px;
    border-radius: var(--radius-lg);
}

.lp-mockup-img {
    width: 100%;
    height: auto;
    min-height: 280px;
    max-height: 420px;
    object-fit: cover;
    object-position: center center;
    display: block;
}

.lp-mockup-expand-hint {
    position: absolute;
    top: 0.85rem;
    right: 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.65rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: #fff;
    background: rgba(15, 23, 42, 0.72);
    backdrop-filter: blur(8px);
    border-radius: 999px;
    opacity: 0;
    transform: translateY(-4px);
    transition: opacity 0.2s ease, transform 0.2s ease;
    pointer-events: none;
}

.lp-dashboard-mockup:hover .lp-mockup-expand-hint,
.lp-mockup-expand:focus-visible .lp-mockup-expand-hint {
    opacity: 1;
    transform: translateY(0);
}

.lp-hero-image-modal .modal-content {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
}

.lp-hero-image-modal-img {
    display: block;
    width: 100%;
    max-height: min(85vh, 1024px);
    margin: 0 auto;
    object-fit: contain;
    border-radius: calc(var(--radius-lg) - 4px);
}

[data-theme="dark"] .lp-hero-image-modal .modal-content {
    background: var(--surface-2);
}

.lp-mockup-caption {
    position: absolute;
    left: 1rem;
    bottom: 1rem;
    pointer-events: none;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(8px);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.4rem 0.75rem;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

[data-theme="dark"] .lp-mockup-caption {
    background: rgba(99, 102, 241, 0.85);
}

.lp-hero-automation {
    margin-top: 1rem;
}

.lp-hero-automation-card {
    padding: 1.1rem 1.15rem 1.05rem;
    border-radius: 18px;
    border: 1px solid rgba(99, 102, 241, 0.16);
    background: linear-gradient(155deg, rgba(99, 102, 241, 0.09) 0%, var(--surface) 42%, rgba(16, 185, 129, 0.06) 100%);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.08) inset,
        0 14px 32px rgba(15, 23, 42, 0.08);
}

[data-theme="dark"] .lp-hero-automation-card {
    background: linear-gradient(155deg, rgba(99, 102, 241, 0.16) 0%, rgba(15, 23, 42, 0.55) 50%, rgba(16, 185, 129, 0.1) 100%);
    border-color: rgba(99, 102, 241, 0.28);
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.28);
}

.lp-hero-automation-title {
    margin: 0 0 0.4rem;
    font-size: 1.12rem;
    font-weight: 700;
    line-height: 1.35;
    color: var(--text-primary);
}

.lp-hero-automation-desc {
    margin: 0 0 0.85rem;
    font-size: 0.86rem;
    line-height: 1.55;
    color: var(--text-muted);
}

.lp-hero-automation-combo {
    display: flex;
    align-items: stretch;
    gap: 0;
    padding: 0.45rem;
    border-radius: 14px;
    border: 1px solid rgba(99, 102, 241, 0.14);
    background: var(--surface);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.06) inset,
        0 6px 18px rgba(15, 23, 42, 0.06);
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease;
}

.lp-hero-automation-combo:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 26px rgba(99, 102, 241, 0.12);
}

.lp-hero-automation-combo-item {
    display: flex;
    flex: 1 1 0;
    align-items: center;
    gap: 0.55rem;
    min-width: 0;
    padding: 0.55rem 0.65rem;
    border-radius: 10px;
}

.lp-hero-automation-combo-divider {
    width: 1px;
    align-self: stretch;
    margin: 0.35rem 0;
    background: linear-gradient(180deg, transparent, rgba(99, 102, 241, 0.22), transparent);
    flex-shrink: 0;
}

.lp-hero-automation-combo-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.15rem;
    height: 2.15rem;
    border-radius: 50%;
    font-size: 0.88rem;
    flex-shrink: 0;
}

.lp-hero-automation-combo-item--email .lp-hero-automation-combo-icon {
    background: rgba(245, 158, 11, 0.14);
    color: #d97706;
}

.lp-hero-automation-combo-item--calls .lp-hero-automation-combo-icon {
    background: rgba(16, 185, 129, 0.14);
    color: #059669;
}

.lp-hero-automation-combo-label {
    flex: 1;
    min-width: 0;
    font-size: 0.8rem;
    font-weight: 600;
    line-height: 1.35;
    color: var(--text-primary);
}

.lp-hero-automation-combo-check {
    color: #10b981;
    font-size: 1rem;
    flex-shrink: 0;
}

[data-theme="dark"] .lp-hero-automation-combo {
    background: rgba(15, 23, 42, 0.45);
    border-color: rgba(255, 255, 255, 0.08);
}

@media (max-width: 575.98px) {
    .lp-hero-automation-combo {
        flex-direction: column;
        gap: 0.25rem;
    }

    .lp-hero-automation-combo-divider {
        width: auto;
        height: 1px;
        margin: 0 0.35rem;
        background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.22), transparent);
    }
}

@media (max-width: 991.98px) {
    .lp-hero-automation {
        max-width: 560px;
        margin-left: auto;
        margin-right: auto;
    }
}

.lp-trusted {
    padding: 2.5rem 0;
    background: var(--surface-2);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.lp-trusted-heading {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 2rem;
}

/* Trusted brands carousel */
.lp-brands-carousel {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2.75rem 2.5rem;
    overflow: hidden;
}

.lp-brands-carousel .carousel-inner {
    overflow: hidden;
}

.lp-brand-row {
    min-height: 140px;
    align-items: stretch;
}

.lp-brand-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 1.35rem 1rem;
    text-align: center;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    box-shadow: var(--shadow-sm);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.lp-brand-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: rgba(99, 102, 241, 0.35);
}

.lp-brand-icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.lp-brand-icon.blue { background: #dbeafe; color: #3b82f6; }
.lp-brand-icon.green { background: #d1fae5; color: #10b981; }
.lp-brand-icon.orange { background: #ffedd5; color: #f59e0b; }
.lp-brand-icon.purple { background: #ede9fe; color: #8b5cf6; }
.lp-brand-icon.pink { background: #fce7f3; color: #ec4899; }
.lp-brand-icon.cyan { background: #e0f2fe; color: #0ea5e9; }

.lp-brand-name {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text-primary);
    letter-spacing: 0.01em;
}

.lp-brand-tag {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    background: var(--surface-2);
    padding: 0.2rem 0.55rem;
    border-radius: 50px;
}

.lp-carousel-indicators {
    margin-bottom: 1.25rem;
    position: static;
}

.lp-carousel-indicators [data-bs-target] {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    background: var(--border);
    opacity: 1;
    transition: width 0.25s, background 0.25s;
}

.lp-carousel-indicators .active {
    width: 24px;
    border-radius: 6px;
    background: var(--brand);
}

.lp-carousel-control {
    width: auto;
    opacity: 1;
    top: 50%;
    transform: translateY(-50%);
}

.lp-carousel-control.carousel-control-prev { left: 0; }
.lp-carousel-control.carousel-control-next { right: 0; }

.lp-carousel-arrow {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 50%;
    color: var(--text-secondary);
    box-shadow: var(--shadow-sm);
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.lp-carousel-control:hover .lp-carousel-arrow {
    background: var(--brand);
    border-color: var(--brand);
    color: #fff;
}

[data-theme="dark"] .lp-brand-icon.blue { background: rgba(59, 130, 246, 0.2); }
[data-theme="dark"] .lp-brand-icon.green { background: rgba(16, 185, 129, 0.2); }
[data-theme="dark"] .lp-brand-icon.orange { background: rgba(245, 158, 11, 0.2); }
[data-theme="dark"] .lp-brand-icon.purple { background: rgba(139, 92, 246, 0.2); }
[data-theme="dark"] .lp-brand-icon.pink { background: rgba(236, 72, 153, 0.2); }
[data-theme="dark"] .lp-brand-icon.cyan { background: rgba(14, 165, 233, 0.2); }

.lp-features { padding: 5rem 0; }

.lp-section-badge {
    display: inline-block;
    background: #eef2ff;
    color: var(--brand);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.35rem 0.75rem;
    border-radius: 50px;
    margin-bottom: 1rem;
}

[data-theme="dark"] .lp-section-badge { background: rgba(99, 102, 241, 0.15); }

.lp-features h2 {
    font-size: clamp(1.75rem, 3vw, 2.35rem);
    font-weight: 800;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.lp-features .section-lead { color: var(--text-muted); max-width: 600px; margin: 0 auto 3rem; }

.lp-feature-card {
    display: flex;
    flex-direction: column;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 1.5rem;
    height: 100%;
    color: inherit;
    text-decoration: none;
    cursor: pointer;
    transition: box-shadow 0.25s, transform 0.25s, border-color 0.2s ease;
}

.lp-feature-card:focus-visible {
    outline: 2px solid var(--brand);
    outline-offset: 2px;
}

.lp-feature-details {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    align-self: flex-start;
    width: auto;
    max-width: 100%;
    margin-top: 1rem;
    padding: 0.45rem 0.85rem;
    border: 1.5px solid var(--border);
    border-radius: 8px;
    background: var(--surface);
    color: var(--text-primary);
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
    line-height: 1.2;
    transition: border-color 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}

.lp-feature-card:hover .lp-feature-details,
.lp-feature-card:focus-visible .lp-feature-details {
    border-color: var(--border-focus);
    background: var(--surface-2);
}

.lp-feature-details i {
    font-size: 0.72rem;
    color: var(--brand);
    transition: transform 0.15s ease;
}

.lp-feature-card:hover .lp-feature-details i,
.lp-feature-card:focus-visible .lp-feature-details i {
    transform: translateX(2px);
}

.lp-feature-back-wrap {
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
}

.lp-feature-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.15rem;
    border: 1.5px solid var(--border);
    border-radius: 10px;
    background: var(--surface);
    color: var(--text-primary);
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
    box-shadow: var(--shadow-sm);
    transition: border-color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.lp-feature-back-btn:hover {
    border-color: var(--border-focus);
    background: var(--surface-2);
    color: var(--text-primary);
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}

.lp-feature-back-btn:focus-visible {
    outline: 2px solid var(--brand);
    outline-offset: 2px;
}

.lp-feature-back-btn i {
    font-size: 0.85rem;
    color: var(--brand);
}

.lp-feature-detail-block {
    max-width: 760px;
    margin: 0 auto 2.5rem;
}

.lp-feature-detail-block h2 {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.lp-feature-detail-lead {
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.75;
    margin: 0;
}

.lp-feature-steps {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.lp-feature-steps li {
    padding: 1.15rem 1.25rem;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
}

.lp-feature-steps li strong {
    display: block;
    color: var(--text-primary);
    font-size: 1rem;
    margin-bottom: 0.35rem;
}

.lp-feature-steps li span {
    display: block;
    color: var(--text-muted);
    font-size: 0.92rem;
    line-height: 1.6;
}

.lp-feature-helps {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.lp-feature-helps li {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.55;
}

.lp-feature-helps li i {
    color: var(--brand);
    margin-top: 0.2rem;
}

/* Feature detail: process flow layout (leads, sales pipeline) */
.lp-feature-process-layout {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 2.75rem;
}

.lp-feature-overview-card {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    padding: 1.5rem 1.65rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.06) 0%, var(--surface-2) 55%);
    box-shadow: var(--shadow-sm);
}

.lp-feature-overview-card-icon {
    flex-shrink: 0;
    width: 3.25rem;
    height: 3.25rem;
    font-size: 1.15rem;
}

.lp-feature-overview-card-body h2 {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.lp-feature-process-section-head h2 {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.lp-feature-process-section-lead {
    color: var(--text-muted);
    font-size: 1rem;
    max-width: 36rem;
    margin: 0 auto 2rem;
    line-height: 1.6;
}

.lp-feature-process-track {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    justify-content: center;
    gap: 0.65rem 0;
}

.lp-feature-process-card {
    flex: 1 1 10rem;
    max-width: 13.5rem;
    min-width: 9.25rem;
    padding: 1.15rem 1.1rem 1.25rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    background: var(--surface-2);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    position: relative;
}

.lp-feature-process-step-label {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--brand);
}

.lp-feature-process-card-icon {
    width: 2.5rem;
    height: 2.5rem;
    font-size: 0.95rem;
    margin-top: 0.15rem;
}

.lp-feature-process-card h3 {
    font-size: 0.98rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
    line-height: 1.35;
}

.lp-feature-process-card p {
    font-size: 0.86rem;
    color: var(--text-muted);
    line-height: 1.55;
    margin: 0;
}

.lp-feature-process-connector {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--brand);
    opacity: 0.55;
    padding: 0 0.15rem;
    align-self: center;
    min-height: 2rem;
}

.lp-feature-process-connector i {
    font-size: 0.85rem;
}

.lp-feature-benefits-section h2 {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 1.25rem;
}

.lp-feature-benefit-card {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    height: 100%;
    padding: 1rem 1.1rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    background: var(--surface-2);
}

.lp-feature-benefit-card-icon {
    flex-shrink: 0;
    width: 1.65rem;
    height: 1.65rem;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(16, 185, 129, 0.12);
    color: #10b981;
    font-size: 0.7rem;
}

.lp-feature-benefit-card p {
    color: var(--text-secondary);
    font-size: 0.92rem;
    line-height: 1.55;
}

.lp-feature-related-card {
    padding: 1.25rem;
    border-radius: var(--radius-md);
    border: 1px dashed rgba(99, 102, 241, 0.35);
    background: rgba(99, 102, 241, 0.04);
}

.lp-feature-related-label {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin: 0;
}

.lp-feature-related-link {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    text-align: left;
    text-decoration: none;
    color: var(--text-primary);
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius-md);
    transition: background 0.15s ease;
}

.lp-feature-related-link:hover {
    background: rgba(99, 102, 241, 0.08);
    color: var(--text-primary);
}

.lp-feature-social-layout {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.lp-feature-social-section-head h2 {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 0.45rem;
}

.lp-feature-social-section-lead {
    max-width: 42rem;
    margin: 0 auto 1.35rem;
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

.lp-feature-social-platform-card {
    height: 100%;
    padding: 1.1rem 1.15rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    background: var(--surface-2);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.lp-feature-social-platform-card:hover {
    border-color: rgba(99, 102, 241, 0.28);
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06);
}

.lp-feature-social-platform-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.35rem;
    height: 2.35rem;
    border-radius: 0.65rem;
    margin-bottom: 0.7rem;
    background: rgba(99, 102, 241, 0.1);
    color: var(--brand);
    font-size: 1.05rem;
}

.lp-feature-social-platform-card h3 {
    font-size: 0.98rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.35rem;
}

.lp-feature-social-platform-card p {
    color: var(--text-secondary);
    font-size: 0.88rem;
    line-height: 1.5;
}

.lp-feature-social-pipeline {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.lp-feature-social-pipeline-step {
    height: 100%;
    padding: 1.1rem 1.15rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    background: var(--surface);
}

.lp-feature-social-pipeline-step-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.lp-feature-social-pipeline-icon {
    width: 2.25rem;
    height: 2.25rem;
    font-size: 0.85rem;
}

.lp-feature-social-pipeline-step h3 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.4rem;
}

.lp-feature-social-pipeline-step p {
    color: var(--text-secondary);
    font-size: 0.88rem;
    line-height: 1.55;
}

.lp-feature-social-use-card {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    height: 100%;
    padding: 1.1rem 1.15rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    background: var(--surface-2);
}

.lp-feature-social-use-icon {
    flex-shrink: 0;
    width: 2.5rem;
    height: 2.5rem;
    font-size: 0.9rem;
}

.lp-feature-social-use-card h3 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.35rem;
}

.lp-feature-social-use-card p {
    color: var(--text-secondary);
    font-size: 0.88rem;
    line-height: 1.55;
}

.lp-feature-social-privacy-card {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.2rem 1.25rem;
    border-radius: var(--radius-md);
    border: 1px solid rgba(16, 185, 129, 0.22);
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.07), rgba(99, 102, 241, 0.05));
}

.lp-feature-social-privacy-icon {
    flex-shrink: 0;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.7rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(16, 185, 129, 0.14);
    color: #10b981;
    font-size: 1rem;
}

.lp-feature-social-privacy-card h2 {
    color: var(--text-primary);
}

.lp-feature-social-privacy-card p {
    color: var(--text-secondary);
    font-size: 0.92rem;
    line-height: 1.6;
}

[data-theme="dark"] .lp-feature-social-platform-card,
[data-theme="dark"] .lp-feature-social-pipeline-step,
[data-theme="dark"] .lp-feature-social-use-card {
    background: rgba(15, 23, 42, 0.45);
}

[data-theme="dark"] .lp-feature-social-privacy-card {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.12), rgba(99, 102, 241, 0.1));
    border-color: rgba(16, 185, 129, 0.28);
}

@media (max-width: 991.98px) {
    .lp-feature-social-pipeline {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 575.98px) {
    .lp-feature-social-pipeline {
        grid-template-columns: 1fr;
    }

    .lp-feature-social-privacy-card {
        flex-direction: column;
    }
}

.lp-feature-related-link .lp-feature-icon {
    width: 2.75rem;
    height: 2.75rem;
    font-size: 1rem;
}

.lp-feature-related-link strong {
    display: block;
    font-size: 1rem;
}

.lp-feature-related-arrow {
    color: var(--brand);
    margin-left: 0.25rem;
}

[data-theme="dark"] .lp-feature-related-label {
    color: rgba(255, 255, 255, 0.72);
}

[data-theme="dark"] .lp-feature-related-link .text-muted {
    color: #ffffff !important;
}

@media (max-width: 1199.98px) {
    .lp-feature-process-layout {
        max-width: 100%;
    }

    .lp-feature-process-track {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 1rem;
    }

    .lp-feature-process-connector {
        display: none;
    }

    .lp-feature-process-card {
        max-width: none;
        min-width: 0;
    }
}

@media (max-width: 991.98px) {
    .lp-feature-process-track {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 575.98px) {
    .lp-feature-overview-card {
        flex-direction: column;
    }

    .lp-feature-process-track {
        grid-template-columns: 1fr;
    }

    .lp-feature-related-link {
        flex-wrap: wrap;
        justify-content: center;
        text-align: center;
    }
}

.lp-feature-card:hover,
.lp-feature-card:focus-visible {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
    border-color: rgba(99, 102, 241, 0.35);
}

.lp-feature-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.lp-feature-icon.c1 { background: #dbeafe; color: #3b82f6; }
.lp-feature-icon.c2 { background: #d1fae5; color: #10b981; }
.lp-feature-icon.c3 { background: #ede9fe; color: #8b5cf6; }
.lp-feature-icon.c4 { background: #ffedd5; color: #f59e0b; }
.lp-feature-icon.c5 { background: #fce7f3; color: #ec4899; }
.lp-feature-icon.c6 { background: #e0f2fe; color: #0ea5e9; }

.lp-feature-card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 0.5rem; color: var(--text-primary); }
.lp-feature-card p { color: var(--text-muted); font-size: 0.9rem; line-height: 1.6; margin: 0; }

.lp-badge-new {
    font-size: 0.65rem;
    background: var(--brand);
    color: #fff;
    padding: 2px 7px;
    border-radius: 4px;
    margin-left: 6px;
    vertical-align: middle;
}

.lp-feedback {
    padding: 1rem 0 0.75rem;
}

.lp-feedback-shell {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 18px;
    box-shadow: var(--shadow-md);
    padding: 1.35rem 1.2rem 1.15rem;
}

.lp-feedback-header {
    margin-bottom: 1.25rem;
}

.lp-feedback-header h2 {
    margin: 0.4rem 0 0.45rem;
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    font-weight: 800;
    color: var(--text-primary);
}

.lp-feedback-header p {
    margin: 0 auto;
    max-width: 780px;
    color: var(--text-muted);
    line-height: 1.6;
}

.lp-feedback-carousel {
    position: relative;
    padding: 0 2.5rem;
}

.lp-feedback-card {
    position: relative;
    max-width: 920px;
    margin: 0 auto;
    padding: 1.4rem 1.5rem 1.3rem;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: var(--surface);
    box-shadow: var(--shadow-sm);
}

.lp-feedback-stars {
    display: inline-flex;
    gap: 0.2rem;
    margin-bottom: 0.55rem;
    color: #cbd5e1;
    font-size: 0.88rem;
}

.lp-feedback-stars .is-active {
    color: #f59e0b;
}

.lp-feedback-message {
    margin: 0;
    color: var(--text-primary);
    line-height: 1.68;
    font-size: 1rem;
}

.lp-feedback-meta {
    margin-top: 0.9rem;
}

.lp-feedback-sender {
    font-weight: 700;
    color: var(--text-primary);
}

.lp-feedback-company {
    font-size: 0.87rem;
    color: var(--text-muted);
}

.lp-feedback-demo {
    position: absolute;
    top: 0.9rem;
    right: 0.9rem;
    font-size: 0.68rem;
    font-weight: 700;
    border-radius: 999px;
    padding: 0.16rem 0.5rem;
    color: var(--brand);
    background: color-mix(in srgb, var(--brand) 14%, transparent);
    border: 1px solid color-mix(in srgb, var(--brand) 38%, transparent);
}

[data-theme="dark"] .lp-feedback-card {
    border-color: var(--border);
    background: var(--surface);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.32);
}

[data-theme="dark"] .lp-feedback-shell {
    border-color: var(--border);
    background: var(--surface);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
}

@media (max-width: 768px) {
    .lp-feedback-carousel {
        padding: 0;
    }

    .lp-feedback-shell {
        border-radius: 14px;
        padding: 1rem 0.85rem 0.9rem;
    }

    .lp-feedback-card {
        padding: 1.15rem 1rem 1rem;
    }
}

.lp-cta {
    padding: 4rem 0 5rem;
    background: var(--app-bg);
}

.lp-cta-card {
    max-width: 720px;
    margin: 0 auto;
    padding: 2.85rem 2.25rem;
    text-align: center;
    background: linear-gradient(160deg, var(--surface) 0%, rgba(99, 102, 241, 0.04) 100%);
    border: 1px solid rgba(99, 102, 241, 0.14);
    border-radius: 22px;
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.06) inset,
        var(--shadow-md),
        0 20px 50px rgba(99, 102, 241, 0.08);
}

.lp-cta-card::before {
    content: '';
    display: block;
    width: 3.5rem;
    height: 4px;
    margin: 0 auto 1.35rem;
    border-radius: 999px;
    background: var(--brand-gradient);
    box-shadow: 0 0 14px rgba(99, 102, 241, 0.45);
}

.lp-cta h2 {
    font-weight: 800;
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.lp-cta p {
    color: var(--text-muted);
    max-width: 520px;
    margin: 0 auto 1.5rem;
    line-height: 1.65;
    font-size: 1rem;
}

.lp-cta-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.85rem 1.25rem 0.85rem 1.5rem;
    font-size: 0.98rem;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    color: #fff;
    border-radius: 999px;
    background: var(--brand-gradient);
    border: 1px solid rgba(255, 255, 255, 0.22);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.22) inset,
        0 12px 32px rgba(99, 102, 241, 0.38);
    transition:
        transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.lp-cta-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: var(--brand-gradient);
    opacity: 0;
    filter: blur(14px);
    z-index: -1;
    transition: opacity 0.4s ease;
}

.lp-cta-btn:hover {
    color: #fff;
    transform: translateY(-3px) scale(1.02);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.28) inset,
        0 18px 40px rgba(99, 102, 241, 0.48);
}

.lp-cta-btn:hover::before {
    opacity: 0.75;
}

.lp-cta-btn:focus-visible {
    outline: 2px solid var(--brand);
    outline-offset: 4px;
}

.lp-cta-btn-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.1rem;
    height: 2.1rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.22);
    font-size: 0.82rem;
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), background 0.35s ease;
}

.lp-cta-btn:hover .lp-cta-btn-arrow {
    transform: translateX(4px);
    background: rgba(255, 255, 255, 0.3);
}

@media (prefers-reduced-motion: reduce) {
    .lp-cta-btn,
    .lp-cta-btn-arrow {
        transition: none;
    }

    .lp-cta-btn:hover {
        transform: none;
    }
}

[data-theme="dark"] .lp-cta-card {
    background: linear-gradient(160deg, var(--surface) 0%, rgba(99, 102, 241, 0.1) 100%);
    border-color: rgba(99, 102, 241, 0.22);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.04) inset,
        var(--shadow-sm),
        0 16px 40px rgba(0, 0, 0, 0.35);
}

.lp-btn-white {
    background: #fff;
    color: var(--brand);
    font-weight: 700;
    padding: 0.75rem 1.75rem;
    border-radius: 10px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.lp-btn-white:hover { color: var(--brand-dark); box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15); }

.lp-footer {
    flex-shrink: 0;
    margin-top: auto;
    font-size: 0.9rem;
    color: var(--text-muted);
    background:
        radial-gradient(circle at 10% 0%, rgba(99, 102, 241, 0.12), transparent 42%),
        radial-gradient(circle at 90% 100%, rgba(16, 185, 129, 0.08), transparent 38%),
        var(--surface-2);
    border-top: 1px solid var(--border);
}

[data-theme="dark"] .lp-footer {
    background:
        radial-gradient(circle at 10% 0%, rgba(99, 102, 241, 0.18), transparent 45%),
        radial-gradient(circle at 90% 100%, rgba(16, 185, 129, 0.1), transparent 40%),
        var(--surface);
}

.lp-footer-main {
    padding: 3.5rem 0 2.75rem;
}

.lp-footer-brand {
    display: inline-flex;
    align-items: center;
    color: var(--text-primary);
    text-decoration: none;
    margin-bottom: 0.65rem;
}

.lp-footer-brand .app-brand-mark__name {
    color: var(--text-primary);
}

.lp-footer-brand:hover {
    color: var(--brand);
}

.lp-footer-tagline {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin: 0 0 0.75rem;
    line-height: 1.45;
}

.lp-footer-about {
    font-size: 0.88rem;
    line-height: 1.65;
    color: var(--text-muted);
    margin: 0 0 1.25rem;
    max-width: 22rem;
}

.lp-footer-cta {
    font-size: 0.9rem;
    padding: 0.7rem 1.15rem 0.7rem 1.25rem;
    margin-bottom: 1.35rem;
}

.lp-footer-cta .lp-hero-cta-arrow {
    width: 1.85rem;
    height: 1.85rem;
    font-size: 0.75rem;
}

.lp-footer-social-wrap {
    margin-top: 0.15rem;
    max-width: 22rem;
}

.lp-footer-social-label {
    margin: 0 0 0.65rem;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.lp-footer-social {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.45rem;
    padding: 0.45rem 0.55rem;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.08) 0%, rgba(255, 255, 255, 0.04) 50%, rgba(16, 185, 129, 0.06) 100%);
    border: 1px solid rgba(99, 102, 241, 0.14);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.06) inset,
        0 8px 24px rgba(15, 23, 42, 0.06);
    backdrop-filter: blur(8px);
}

[data-theme="dark"] .lp-footer-social {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.14) 0%, rgba(15, 23, 42, 0.5) 55%, rgba(16, 185, 129, 0.08) 100%);
    border-color: rgba(99, 102, 241, 0.22);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.04) inset,
        0 10px 28px rgba(0, 0, 0, 0.25);
}

.lp-footer-social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    border: 1px solid transparent;
    background: var(--surface);
    color: var(--text-secondary);
    text-decoration: none;
    position: relative;
    transition:
        color 0.35s cubic-bezier(0.22, 1, 0.36, 1),
        background 0.35s cubic-bezier(0.22, 1, 0.36, 1),
        border-color 0.35s ease,
        transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.lp-footer-social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    font-size: 0.95rem;
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.lp-footer-social-link::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: inherit;
    opacity: 0;
    transition: opacity 0.35s ease;
    background: inherit;
    filter: blur(8px);
    z-index: -1;
}

.lp-footer-social-link:hover,
.lp-footer-social-link:focus-visible {
    color: #fff;
    border-color: transparent;
    transform: translateY(-3px) scale(1.06);
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.18);
}

.lp-footer-social-link:hover::before,
.lp-footer-social-link:focus-visible::before {
    opacity: 0.55;
}

.lp-footer-social-link:hover .lp-footer-social-icon,
.lp-footer-social-link:focus-visible .lp-footer-social-icon {
    transform: scale(1.08);
}

.lp-footer-social-link:focus-visible {
    outline: 2px solid var(--brand);
    outline-offset: 3px;
}

.lp-footer-social-link[data-social="linkedin"]:hover,
.lp-footer-social-link[data-social="linkedin"]:focus-visible {
    background: #0a66c2;
    box-shadow: 0 10px 24px rgba(10, 102, 194, 0.4);
}

.lp-footer-social-link[data-social="x"]:hover,
.lp-footer-social-link[data-social="x"]:focus-visible {
    background: #0f1419;
    box-shadow: 0 10px 24px rgba(15, 20, 25, 0.45);
}

.lp-footer-social-link[data-social="facebook"]:hover,
.lp-footer-social-link[data-social="facebook"]:focus-visible {
    background: #1877f2;
    box-shadow: 0 10px 24px rgba(24, 119, 242, 0.4);
}

.lp-footer-social-link[data-social="youtube"]:hover,
.lp-footer-social-link[data-social="youtube"]:focus-visible {
    background: #ff0000;
    box-shadow: 0 10px 24px rgba(255, 0, 0, 0.35);
}

.lp-footer-social-link[data-social="instagram"]:hover,
.lp-footer-social-link[data-social="instagram"]:focus-visible {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
    box-shadow: 0 10px 24px rgba(220, 39, 67, 0.35);
}

.lp-footer-social-link.is-placeholder {
    opacity: 0.38;
    cursor: default;
    pointer-events: none;
    background: transparent;
    border: 1px dashed rgba(99, 102, 241, 0.25);
}

[data-theme="dark"] .lp-footer-social-link:not(.is-placeholder) {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.08);
}

@media (prefers-reduced-motion: reduce) {
    .lp-footer-social-link,
    .lp-footer-social-icon {
        transition: none;
    }

    .lp-footer-social-link:hover,
    .lp-footer-social-link:focus-visible {
        transform: none;
    }
}

.lp-footer-heading {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-primary);
    margin: 0 0 1rem;
}

.lp-footer-links-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.lp-footer-links-list a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.88rem;
    line-height: 1.4;
    transition: color 0.15s ease, padding-left 0.15s ease;
}

.lp-footer-links-list a:hover {
    color: var(--brand);
    padding-left: 0.15rem;
}

.lp-footer-bottom {
    padding: 1.15rem 0;
    border-top: 1px solid var(--border);
    background: rgba(15, 23, 42, 0.03);
}

[data-theme="dark"] .lp-footer-bottom {
    background: rgba(0, 0, 0, 0.2);
}

.lp-footer-bottom-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem 1.5rem;
}

.lp-footer-copy {
    font-size: 0.82rem;
    color: var(--text-muted);
}

.lp-footer-bottom-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 0.85rem;
}

.lp-footer-bottom-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.82rem;
}

.lp-footer-bottom-links a:hover {
    color: var(--brand);
}

.lp-footer-divider {
    width: 1px;
    height: 0.85rem;
    background: var(--border);
    display: inline-block;
}

.lp-footer-cookie-settings {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin: 0;
    padding: 0.38rem 0.82rem;
    font-family: inherit;
    font-size: 0.78rem;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: 0.01em;
    color: var(--text-muted);
    background: linear-gradient(180deg, var(--surface) 0%, color-mix(in srgb, var(--surface) 88%, var(--border)) 100%);
    border: 1px solid color-mix(in srgb, var(--border) 80%, var(--brand) 20%);
    border-radius: 999px;
    box-shadow: 0 1px 2px color-mix(in srgb, var(--text) 6%, transparent);
    cursor: pointer;
    transition:
        color 0.2s ease,
        border-color 0.2s ease,
        background 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.2s ease;
}

.lp-footer-cookie-settings-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.35rem;
    height: 1.35rem;
    border-radius: 50%;
    background: color-mix(in srgb, var(--brand) 12%, transparent);
    color: var(--brand);
    font-size: 0.62rem;
    flex-shrink: 0;
}

.lp-footer-cookie-settings-label {
    white-space: nowrap;
}

.lp-footer-cookie-settings:hover {
    color: var(--brand);
    border-color: color-mix(in srgb, var(--brand) 42%, var(--border));
    background: linear-gradient(180deg, color-mix(in srgb, var(--brand) 7%, var(--surface)) 0%, var(--surface) 100%);
    box-shadow: 0 4px 14px color-mix(in srgb, var(--brand) 14%, transparent);
    transform: translateY(-1px);
}

.lp-footer-cookie-settings:hover .lp-footer-cookie-settings-icon {
    background: color-mix(in srgb, var(--brand) 18%, transparent);
}

.lp-footer-cookie-settings:focus-visible {
    outline: 2px solid var(--brand);
    outline-offset: 2px;
}

.lp-footer-cookie-settings:active {
    transform: translateY(0);
    box-shadow: 0 1px 4px color-mix(in srgb, var(--brand) 10%, transparent);
}

@media (max-width: 767.98px) {
    .lp-footer-main {
        padding: 2.5rem 0 2rem;
    }

    .lp-footer-bottom-inner {
        flex-direction: column;
        align-items: flex-start;
    }
}

.lp-newsletter {
    flex-shrink: 0;
    padding: 2.75rem 0 3rem;
    background: var(--app-bg);
    border-top: 1px solid var(--border);
}

.lp-newsletter-card {
    position: relative;
    overflow: hidden;
    padding: 2rem 2.25rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 20px;
    box-shadow: var(--shadow-md);
}

.lp-newsletter-glow {
    position: absolute;
    top: -40%;
    right: -8%;
    width: min(420px, 55vw);
    height: min(420px, 55vw);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.2) 0%, transparent 68%);
    pointer-events: none;
}

.lp-newsletter-glow::after {
    content: '';
    position: absolute;
    bottom: -60%;
    left: -20%;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.12) 0%, transparent 70%);
}

[data-theme="dark"] .lp-newsletter-card {
    background: linear-gradient(145deg, var(--surface) 0%, rgba(15, 23, 42, 0.6) 100%);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

[data-theme="dark"] .lp-newsletter-glow {
    background: radial-gradient(circle, rgba(99, 102, 241, 0.28) 0%, transparent 68%);
}

.lp-newsletter-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    align-items: center;
    gap: 2rem 2.5rem;
}

.lp-newsletter-copy {
    display: flex;
    align-items: flex-start;
    gap: 1.15rem;
}

.lp-newsletter-icon {
    flex-shrink: 0;
    width: 3.25rem;
    height: 3.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: rgba(99, 102, 241, 0.12);
    color: var(--brand);
    font-size: 1.2rem;
}

[data-theme="dark"] .lp-newsletter-icon {
    background: rgba(99, 102, 241, 0.2);
}

.lp-newsletter-title {
    font-size: clamp(1.2rem, 2.2vw, 1.5rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--text-primary);
    margin: 0 0 0.4rem;
    line-height: 1.2;
}

.lp-newsletter-subtitle {
    font-size: 0.94rem;
    color: var(--text-muted);
    margin: 0;
    max-width: 26rem;
    line-height: 1.6;
}

.lp-newsletter-action {
    min-width: 0;
}

.lp-newsletter-form {
    margin: 0;
}

.lp-newsletter-combo {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.4rem 0.45rem 0.4rem 0.15rem;
    background: var(--app-bg);
    border: 1px solid var(--border);
    border-radius: 999px;
    box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.04);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.lp-newsletter-combo:focus-within {
    border-color: var(--border-focus);
    box-shadow:
        inset 0 1px 2px rgba(15, 23, 42, 0.04),
        0 0 0 4px rgba(99, 102, 241, 0.12);
}

.lp-newsletter-combo.is-invalid {
    border-color: #dc3545;
    box-shadow: 0 0 0 4px rgba(220, 53, 69, 0.12);
}

[data-theme="dark"] .lp-newsletter-combo {
    background: rgba(0, 0, 0, 0.25);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.lp-newsletter-combo-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    flex-shrink: 0;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.lp-newsletter-input {
    flex: 1 1 auto;
    min-width: 0;
    padding: 0.65rem 0.25rem;
    font-size: 0.95rem;
    border: none;
    background: transparent;
    color: var(--text-primary);
}

.lp-newsletter-input::placeholder {
    color: var(--text-muted);
    opacity: 0.85;
}

.lp-newsletter-input:focus {
    outline: none;
}

.lp-newsletter-submit {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    flex-shrink: 0;
    padding: 0.7rem 1.25rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: #fff;
    background: var(--brand-gradient);
    border: none;
    border-radius: 999px;
    cursor: pointer;
    white-space: nowrap;
    transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.35);
}

.lp-newsletter-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.45);
}

.lp-newsletter-submit:active {
    transform: translateY(0);
}

.lp-newsletter-submit i {
    font-size: 0.8rem;
    transition: transform 0.15s ease;
}

.lp-newsletter-submit:hover i {
    transform: translateX(2px);
}

.lp-newsletter-submit.is-loading {
    opacity: 0.92;
    cursor: wait;
    pointer-events: none;
}

.lp-newsletter-submit-default,
.lp-newsletter-submit-loading {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

.lp-newsletter-form-error {
    margin: 0.65rem 0 0 0.65rem;
    font-size: 0.82rem;
    color: #dc3545;
    line-height: 1.45;
}

.lp-newsletter-feedback {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    padding: 1rem 1.1rem;
    border-radius: 14px;
    border: 1px solid var(--border);
    background: var(--app-bg);
    animation: lp-newsletter-fade-in 0.35s ease;
}

@keyframes lp-newsletter-fade-in {
    from {
        opacity: 0;
        transform: translateY(6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.lp-newsletter-feedback.is-success {
    border-color: rgba(16, 185, 129, 0.35);
    background: rgba(16, 185, 129, 0.08);
}

.lp-newsletter-feedback.is-info {
    border-color: rgba(99, 102, 241, 0.35);
    background: rgba(99, 102, 241, 0.08);
}

.lp-newsletter-feedback.is-error {
    border-color: rgba(220, 53, 69, 0.35);
    background: rgba(220, 53, 69, 0.06);
}

.lp-newsletter-feedback-icon {
    flex-shrink: 0;
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 1.35rem;
}

.lp-newsletter-feedback.is-success .lp-newsletter-feedback-icon {
    color: #10b981;
    background: rgba(16, 185, 129, 0.15);
}

.lp-newsletter-feedback.is-info .lp-newsletter-feedback-icon {
    color: var(--brand);
    background: rgba(99, 102, 241, 0.15);
}

.lp-newsletter-feedback-title {
    font-size: 0.98rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 0.25rem;
    line-height: 1.3;
}

.lp-newsletter-feedback-message {
    font-size: 0.88rem;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.55;
}

.lp-newsletter-honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.lp-newsletter-note {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin: 0.9rem 0 0 0.65rem;
    font-size: 0.78rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.lp-newsletter-note > i {
    flex-shrink: 0;
    margin-top: 0.15rem;
    font-size: 0.72rem;
    color: rgba(16, 185, 129, 0.9);
}

.lp-newsletter-note a {
    color: var(--brand);
    text-decoration: none;
    font-weight: 500;
}

.lp-newsletter-note a:hover {
    text-decoration: underline;
}

@media (max-width: 991.98px) {
    .lp-newsletter-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

@media (max-width: 575.98px) {
    .lp-newsletter {
        padding: 2rem 0 2.25rem;
    }

    .lp-newsletter-card {
        padding: 1.5rem 1.25rem;
        border-radius: 16px;
    }

    .lp-newsletter-copy {
        flex-direction: column;
        gap: 0.85rem;
    }

    .lp-newsletter-combo {
        flex-wrap: wrap;
        border-radius: 16px;
        padding: 0.5rem;
    }

    .lp-newsletter-combo-icon {
        display: none;
    }

    .lp-newsletter-input {
        width: 100%;
        padding: 0.5rem 0.65rem;
    }

    .lp-newsletter-submit {
        width: 100%;
        justify-content: center;
        border-radius: 12px;
    }

    .lp-newsletter-note {
        margin-left: 0;
    }
}

/* Landing inner pages */
.lp-page-hero {
    padding: 2.5rem 0 1.5rem;
}

.lp-page-hero-card {
    position: relative;
    overflow: hidden;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 2.5rem 2rem;
    box-shadow: var(--shadow-sm);
}

.lp-page-hero-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--brand-gradient);
}

.lp-page-hero-card::after {
    content: '';
    position: absolute;
    top: -40%;
    right: -8%;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.12) 0%, transparent 70%);
    pointer-events: none;
}

.lp-page-hero-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 1.25rem;
    border-radius: 14px;
    background: rgba(99, 102, 241, 0.12);
    color: var(--brand);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
}

.lp-page-hero-card h1 {
    position: relative;
    font-weight: 800;
    font-size: clamp(1.75rem, 4vw, 2.35rem);
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.lp-page-hero-lead {
    position: relative;
    color: var(--text-muted);
    font-size: 1.05rem;
    max-width: 620px;
    margin: 0 auto;
    line-height: 1.7;
}

[data-theme="dark"] .lp-page-hero-card {
    background: var(--surface);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
}

[data-theme="dark"] .lp-page-hero-card::after {
    background: radial-gradient(circle, rgba(99, 102, 241, 0.18) 0%, transparent 70%);
}

.lp-page-section {
    padding: 2rem 0 3rem;
}

.lp-legal-section {
    padding-top: 0.5rem;
}

.lp-legal-updated {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin: 0 0 1.25rem;
}

.lp-legal-doc {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 1.75rem 1.85rem;
    margin-bottom: 1.5rem;
}

.lp-legal-doc-section + .lp-legal-doc-section {
    margin-top: 1.75rem;
    padding-top: 1.75rem;
    border-top: 1px solid var(--border);
}

.lp-legal-doc h2 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 0.75rem;
}

.lp-legal-doc p {
    font-size: 0.92rem;
    line-height: 1.7;
    color: var(--text-secondary);
    margin: 0 0 0.85rem;
}

.lp-legal-doc p:last-child {
    margin-bottom: 0;
}

.lp-legal-doc ul {
    margin: 0.5rem 0 0;
    padding-left: 1.25rem;
    color: var(--text-secondary);
    font-size: 0.92rem;
    line-height: 1.65;
}

.lp-legal-doc li + li {
    margin-top: 0.35rem;
}

.lp-legal-contact-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 1.5rem 1.65rem;
}

.lp-legal-contact-card h3 {
    font-size: 1rem;
    font-weight: 700;
    margin: 0 0 0.5rem;
    color: var(--text-primary);
}

.lp-legal-contact-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0 0 1rem;
}

.lp-legal-contact-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    align-items: center;
}

.lp-legal-contact-actions .lp-btn-outline,
.lp-legal-contact-actions .lp-hero-cta {
    font-size: 0.88rem;
}

.lp-solution-card,
.lp-resource-card {
    height: 100%;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    transition: box-shadow 0.2s, transform 0.2s;
}

.lp-solution-card:hover,
.lp-resource-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.lp-solution-icon,
.lp-resource-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(99, 102, 241, 0.12);
    color: var(--brand);
    font-size: 1.15rem;
    margin-bottom: 1rem;
}

.lp-solution-card h3,
.lp-resource-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.lp-solution-card p,
.lp-resource-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0;
}

.lp-resource-type {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--brand);
    background: rgba(99, 102, 241, 0.1);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    margin-bottom: 0.75rem;
}

.lp-resource-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-top: 1rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    text-decoration: none;
}

.lp-resource-link.is-active {
    color: var(--brand);
}

.lp-resource-link.is-active:hover {
    color: var(--brand-dark, var(--brand));
    text-decoration: underline;
}

.lp-pricing-billing-toggle-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.65rem;
    margin-bottom: 2rem;
}

.lp-pricing-billing-toggle-label {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.lp-pricing-billing-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    padding: 0.28rem;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: 999px;
    box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.04);
}

.lp-pricing-billing-toggle-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.48rem 1rem;
    border: none;
    border-radius: 999px;
    background: transparent;
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    transition: color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.lp-pricing-billing-toggle-btn:hover {
    color: var(--text-primary);
    background: var(--surface);
}

.lp-pricing-billing-toggle-btn.active {
    color: #fff;
    background: var(--brand-gradient);
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.3);
}

.lp-pricing-billing-save {
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.03em;
    padding: 0.2rem 0.45rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.22);
    color: inherit;
}

.lp-pricing-billing-toggle-btn:not(.active) .lp-pricing-billing-save {
    background: rgba(99, 102, 241, 0.12);
    color: var(--brand);
}

.lp-pricing-card {
    height: 100%;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 2rem 1.75rem;
    display: flex;
    flex-direction: column;
    position: relative;
}

.lp-pricing-card.featured {
    border-color: var(--brand);
    box-shadow: 0 12px 40px rgba(99, 102, 241, 0.15);
}

.lp-pricing-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--brand-gradient);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    white-space: nowrap;
}

.lp-pricing-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.lp-pricing-price {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.lp-pricing-price .lp-pricing-amount {
    display: inline;
}

.lp-pricing-price small {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-muted);
}

.lp-pricing-desc {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1.25rem;
}

.lp-pricing-features {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem;
    flex: 1;
}

.lp-pricing-features li {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.lp-pricing-features i {
    color: var(--brand);
    margin-top: 0.2rem;
}

.lp-pricing-card .lp-hero-cta {
    display: inline-flex;
    text-align: center;
}

.lp-pricing-model .lp-pricing-how-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.lp-pricing-model .lp-pricing-how-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    margin-bottom: 0.65rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
}

[data-theme="dark"] body.landing-page .lp-pricing-model .text-muted,
[data-theme="dark"] body.landing-page .lp-page-section .text-center.text-muted {
    color: var(--text-primary) !important;
}

[data-theme="dark"] body.landing-page .lp-pricing-model .lp-pricing-how-list li {
    color: var(--text-secondary);
}

.lp-pricing-chunks-callout {
    margin-top: 1.5rem;
    padding: 1.15rem 1.2rem 1.1rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-left: 3px solid var(--brand-blue, #3b82f6);
    border-radius: var(--radius-md, 12px);
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.lp-pricing-chunks-callout-head {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin-bottom: 0.65rem;
}

.lp-pricing-chunks-callout-icon {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 0.65rem;
    background: color-mix(in srgb, var(--brand-blue, #3b82f6) 12%, var(--surface-2, #f1f5f9) 88%);
    color: var(--brand-blue, #3b82f6);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 0.95rem;
}

.lp-pricing-chunks-callout-title {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.25;
    color: var(--text-primary);
}

.lp-pricing-chunks-callout-lead {
    margin: 0 0 0.75rem;
    font-size: 0.875rem;
    line-height: 1.55;
    color: var(--text-secondary);
}

.lp-pricing-chunks-callout-list {
    margin: 0 0 0.85rem;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.lp-pricing-chunks-callout-list li {
    position: relative;
    padding-left: 1.15rem;
    font-size: 0.8125rem;
    line-height: 1.45;
    color: var(--text-secondary);
}

.lp-pricing-chunks-callout-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.45rem;
    width: 0.35rem;
    height: 0.35rem;
    border-radius: 50%;
    background: var(--brand-blue, #3b82f6);
    opacity: 0.85;
}

.lp-pricing-chunks-callout-action {
    margin: 0;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border);
    font-size: 0.78rem;
    font-weight: 600;
    line-height: 1.45;
    color: var(--text-muted);
    display: flex;
    align-items: flex-start;
    gap: 0.45rem;
}

.lp-pricing-chunks-callout-action i {
    color: var(--brand-blue, #3b82f6);
    margin-top: 0.15rem;
    flex-shrink: 0;
}

[data-theme="dark"] body.landing-page .lp-pricing-chunks-callout {
    background: var(--surface-2);
    border-color: var(--border);
    border-left-color: var(--brand-blue, #60a5fa);
    box-shadow: none;
}

[data-theme="dark"] body.landing-page .lp-pricing-chunks-callout-icon {
    background: rgba(59, 130, 246, 0.18);
    color: #93c5fd;
}

.lp-pricing-model .lp-pricing-how-list i {
    color: var(--brand);
    margin-top: 0.2rem;
    width: 1rem;
    text-align: center;
    flex-shrink: 0;
}

.lp-pricing-unit-table.data-table-card {
    margin-bottom: 0;
    max-width: 100%;
    min-width: 0;
}

.lp-pricing-unit-table .data-table-responsive {
    max-width: 100%;
}

.lp-pricing-unit-table .data-table-responsive .ui-data-table {
    min-width: 0;
}

.lp-pricing-unit-table .data-table-footer .data-table-showing {
    max-width: none;
    line-height: 1.5;
}

.lp-accordion .accordion-item {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm) !important;
    margin-bottom: 0.5rem;
    overflow: hidden;
}

.lp-accordion .accordion-button {
    background: var(--surface);
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.95rem;
    box-shadow: none;
}

.lp-accordion .accordion-button:not(.collapsed) {
    background: var(--surface-2);
    color: var(--brand);
}

.lp-accordion .accordion-body {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
}

.lp-contact-form-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 2rem;
    height: 100%;
}

.lp-contact-form-card h2 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.lp-contact-info-sidebar {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.lp-contact-info-heading {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    color: var(--text-primary);
}

.lp-contact-info-stack {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    flex: 1;
}

.lp-contact-info-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 1.35rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    text-decoration: none;
    color: inherit;
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.lp-contact-info-item.is-interactive:hover {
    border-color: rgba(99, 102, 241, 0.45);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.lp-contact-info-item.is-interactive:hover .lp-contact-info-item-value {
    color: var(--brand);
}

.lp-contact-info-item.is-interactive:hover .lp-contact-info-item-chevron {
    color: var(--brand);
    opacity: 1;
}

.lp-contact-info-item-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.lp-contact-info-item-icon.tone-blue {
    background: #dbeafe;
    color: #3b82f6;
}

.lp-contact-info-item-icon.tone-green {
    background: #d1fae5;
    color: #10b981;
}

.lp-contact-info-item-icon.tone-purple {
    background: #ede9fe;
    color: #8b5cf6;
}

.lp-contact-info-item-body {
    flex: 1;
    min-width: 0;
}

.lp-contact-info-item-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 0.35rem;
    letter-spacing: 0.01em;
}

.lp-contact-info-item-value {
    display: block;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.45;
    word-break: break-word;
    transition: color 0.2s;
}

.lp-contact-info-item-chevron {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: var(--surface-2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    color: var(--text-muted);
    opacity: 0.7;
    transition: color 0.2s, opacity 0.2s, background 0.2s;
}

.lp-contact-info-item.is-interactive:hover .lp-contact-info-item-chevron {
    background: rgba(99, 102, 241, 0.12);
}

[data-theme="dark"] .lp-contact-info-item-icon.tone-blue { background: rgba(59, 130, 246, 0.2); }
[data-theme="dark"] .lp-contact-info-item-icon.tone-green { background: rgba(16, 185, 129, 0.2); }
[data-theme="dark"] .lp-contact-info-item-icon.tone-purple { background: rgba(139, 92, 246, 0.2); }

.lp-contact-form-card .row .ui-field {
    margin-bottom: 0;
}

.lp-contact-form-card .lp-btn-primary {
    margin-top: 1.25rem;
}

/* Dark: icon/stat tints */
[data-theme="dark"] .stat-icon.blue,
[data-theme="dark"] .chatbot-icon.blue { background: rgba(59, 130, 246, 0.2); }
[data-theme="dark"] .stat-icon.green,
[data-theme="dark"] .chatbot-icon.green { background: rgba(16, 185, 129, 0.2); }
[data-theme="dark"] .stat-icon.purple,
[data-theme="dark"] .chatbot-icon.purple { background: rgba(139, 92, 246, 0.2); }
[data-theme="dark"] .stat-icon.orange,
[data-theme="dark"] .chatbot-icon.orange { background: rgba(245, 158, 11, 0.2); }

[data-theme="dark"] .lp-navbar { background: rgba(12, 18, 34, 0.92); }

/* Toastr */
#toast-container > div {
    opacity: 1;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
    border-radius: 10px;
}

/* Page header panel (dashboard inner pages) */
.page-header-panel {
    background: var(--surface);
    border: 1px solid var(--card-border);
    border-radius: 14px;
    box-shadow: var(--shadow-sm);
    overflow: visible;
    position: relative;
    z-index: 5;
}

.page-header-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--brand-gradient);
}

.page-header-panel-body {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    gap: 1.25rem;
    padding: 1.5rem 1.75rem;
}

.page-header-panel-text {
    grid-column: 1;
    grid-row: 1;
    min-width: 0;
}

.page-header-panel-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--brand-blue);
    margin-bottom: 0.5rem;
}

.page-header-panel-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
    margin: 0 0 0.5rem;
    line-height: 1.2;
}

.page-header-panel-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin: 0;
    max-width: 640px;
    line-height: 1.6;
}

.page-header-panel-context {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 0.85rem;
    font-size: 0.8rem;
    color: var(--text-secondary);
    background: rgba(59, 130, 246, 0.08);
    border: 1px solid rgba(59, 130, 246, 0.2);
    padding: 0.35rem 0.65rem;
    border-radius: 8px;
}

.page-header-panel-context i {
    color: var(--brand-blue);
}

.page-header-panel-actions {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
    align-self: start;
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 0.5rem;
    flex-shrink: 0;
    position: relative;
    z-index: 2;
    padding: 0.35rem 0.4rem;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.06) 0%, var(--surface) 50%, rgba(16, 185, 129, 0.04) 100%);
    border: 1px solid rgba(99, 102, 241, 0.14);
    border-radius: 999px;
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.06) inset,
        0 6px 18px rgba(15, 23, 42, 0.06);
}

.page-header-panel-actions.w-100 {
    grid-column: 1 / -1;
    width: 100%;
    max-width: 100%;
    justify-self: stretch;
}

.page-header-panel-actions > form {
    margin: 0;
    display: inline-flex;
    flex: 0 0 auto;
}

.page-header-panel-actions-divider {
    width: 1px;
    height: 1.65rem;
    margin: 0 0.1rem;
    background: rgba(99, 102, 241, 0.18);
    flex-shrink: 0;
}

[data-theme="dark"] .page-header-panel-actions {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.12) 0%, rgba(15, 23, 42, 0.55) 50%, rgba(16, 185, 129, 0.06) 100%);
    border-color: rgba(99, 102, 241, 0.22);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.22);
}

.page-header-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 1rem 0.55rem 0.55rem;
    border-radius: 999px;
    font-size: 0.84rem;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    border: 1px solid transparent;
    cursor: pointer;
    font-family: inherit;
    appearance: none;
    -webkit-appearance: none;
    transition:
        transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 0.35s cubic-bezier(0.22, 1, 0.36, 1),
        background 0.35s ease,
        border-color 0.35s ease,
        color 0.35s ease;
}

.page-header-action-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.85rem;
    height: 1.85rem;
    border-radius: 50%;
    font-size: 0.78rem;
    flex-shrink: 0;
    transition: background 0.35s ease, transform 0.35s ease;
}

.page-header-action-btn--secondary {
    color: var(--text-primary);
    background: var(--surface);
    border-color: rgba(99, 102, 241, 0.2);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08) inset;
}

.page-header-action-btn--secondary .page-header-action-icon {
    background: rgba(99, 102, 241, 0.12);
    color: var(--brand);
}

.page-header-action-btn--secondary:hover {
    color: var(--text-primary);
    border-color: rgba(99, 102, 241, 0.38);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.14);
}

.page-header-action-btn--secondary:hover .page-header-action-icon {
    background: var(--brand-gradient);
    color: #fff;
}

.page-header-action-btn--primary {
    color: #fff;
    background: var(--brand-gradient);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 6px 18px rgba(99, 102, 241, 0.32);
    padding-right: 1.05rem;
}

.page-header-action-btn--primary .page-header-action-icon {
    background: rgba(255, 255, 255, 0.22);
    color: #fff;
}

.page-header-action-btn--primary:hover {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 10px 26px rgba(99, 102, 241, 0.42);
}

.page-header-action-btn--muted {
    color: var(--text-primary);
    background: var(--surface);
    border-color: var(--card-border);
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.04);
}

.page-header-action-btn--muted .page-header-action-icon {
    background: rgba(100, 116, 139, 0.12);
    color: var(--text-muted);
}

.page-header-action-btn--muted:hover:not(:disabled) {
    color: var(--text-primary);
    border-color: rgba(100, 116, 139, 0.35);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.08);
}

.page-header-action-btn--muted:hover:not(:disabled) .page-header-action-icon {
    background: rgba(100, 116, 139, 0.2);
    color: var(--text-primary);
}

.page-header-action-btn--warning {
    color: #92400e;
    background: var(--surface);
    border-color: rgba(245, 158, 11, 0.35);
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.12);
}

.page-header-action-btn--warning .page-header-action-icon {
    background: rgba(245, 158, 11, 0.16);
    color: #d97706;
}

.page-header-action-btn--warning:hover:not(:disabled) {
    color: #78350f;
    border-color: rgba(245, 158, 11, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 7px 18px rgba(245, 158, 11, 0.18);
}

.page-header-action-btn--danger {
    color: #b91c1c;
    background: var(--surface);
    border-color: rgba(220, 38, 38, 0.25);
    box-shadow: 0 2px 8px rgba(220, 38, 38, 0.08);
}

.page-header-action-btn--danger .page-header-action-icon {
    background: rgba(220, 38, 38, 0.1);
    color: #dc2626;
}

.page-header-action-btn--danger:hover:not(:disabled) {
    color: #fff;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 7px 18px rgba(220, 38, 38, 0.28);
}

.page-header-action-btn--danger:hover:not(:disabled) .page-header-action-icon {
    background: rgba(255, 255, 255, 0.22);
    color: #fff;
}

.page-header-action-btn--success {
    color: var(--text-primary);
    background: rgba(16, 185, 129, 0.1);
    border-color: rgba(16, 185, 129, 0.28);
    box-shadow: 0 1px 4px rgba(16, 185, 129, 0.08);
}

.page-header-action-btn--success .page-header-action-icon {
    background: rgba(16, 185, 129, 0.16);
    color: #059669;
}

.page-header-action-btn--success:hover:not(:disabled) {
    color: var(--text-primary);
    border-color: rgba(16, 185, 129, 0.45);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(16, 185, 129, 0.12);
}

.page-header-action-badge {
    min-width: 1.35rem;
    height: 1.35rem;
    padding: 0 0.4rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 700;
    line-height: 1;
    flex-shrink: 0;
    background: #f59e0b;
    color: #78350f;
    box-shadow: 0 2px 6px rgba(245, 158, 11, 0.25);
}

.page-header-action-btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    transform: none;
}

[data-theme="dark"] .page-header-action-btn--muted,
[data-theme="dark"] .page-header-action-btn--warning,
[data-theme="dark"] .page-header-action-btn--danger {
    background: rgba(15, 23, 42, 0.55);
}

[data-theme="dark"] .page-header-action-btn--warning {
    color: #fcd34d;
}

.page-header-action-btn:focus-visible {
    outline: 2px solid var(--brand);
    outline-offset: 3px;
}

/* Legacy Bootstrap buttons inside page header actions */
.page-header-panel-actions > .btn:not(.page-header-action-btn),
.page-header-panel-actions > a.btn:not(.page-header-action-btn) {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1rem;
    border-radius: 999px;
    font-size: 0.84rem;
    font-weight: 600;
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease;
}

.page-header-panel-actions > .btn-primary:not(.page-header-action-btn),
.page-header-panel-actions > a.btn-primary:not(.page-header-action-btn) {
    border: 0;
    box-shadow: 0 6px 18px rgba(99, 102, 241, 0.28);
}

.page-header-panel-actions > .btn-primary:not(.page-header-action-btn):hover,
.page-header-panel-actions > a.btn-primary:not(.page-header-action-btn):hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(99, 102, 241, 0.38);
}

.page-header-panel-actions > .btn-outline-primary:not(.page-header-action-btn),
.page-header-panel-actions > a.btn-outline-primary:not(.page-header-action-btn) {
    background: var(--surface);
}

.page-header-panel-actions > .btn-outline-primary:not(.page-header-action-btn):hover,
.page-header-panel-actions > a.btn-outline-primary:not(.page-header-action-btn):hover {
    transform: translateY(-2px);
}

@media (max-width: 575.98px) {
    .page-header-panel-body {
        gap: 0.75rem 1rem;
        padding: 1rem 1.15rem;
    }

    .page-header-panel-actions:not(.w-100) {
        justify-self: end;
        align-self: start;
    }

    .page-header-action-btn {
        flex: 1;
        justify-content: center;
        padding-left: 0.85rem;
        padding-right: 0.85rem;
    }
}

.page-header-panel-actions .dropdown-menu {
    z-index: 1060;
}

.page-header-panel-actions .dropdown-menu .knowledge-sample-dropdown-icon {
    color: #fff;
    opacity: 0.95;
}

.page-header-panel-actions .dropdown-menu .dropdown-item:hover .knowledge-sample-dropdown-icon,
.page-header-panel-actions .dropdown-menu .dropdown-item:focus .knowledge-sample-dropdown-icon {
    color: #fff;
    opacity: 1;
}

[data-theme="light"] .page-header-panel-actions .dropdown-menu .knowledge-sample-dropdown-icon {
    color: var(--brand);
}

[data-theme="light"] .page-header-panel-actions .dropdown-menu .dropdown-item:hover .knowledge-sample-dropdown-icon,
[data-theme="light"] .page-header-panel-actions .dropdown-menu .dropdown-item:focus .knowledge-sample-dropdown-icon {
    color: var(--brand-dark);
}

.stat-card .stat-trend.text-muted {
    color: var(--text-muted) !important;
}

.stat-card .stat-trend.text-muted i {
    color: var(--text-muted);
}

/* Data tables */
.data-table-card {
    padding: 0;
    overflow: hidden;
    height: auto;
    align-self: flex-start;
    width: 100%;
}

.data-table-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.25rem 1.35rem;
    border-bottom: 1px solid var(--card-border);
}

.data-table-toolbar-start {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.data-table-per-page {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
}

.data-table-per-page-label {
    margin: 0;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-muted);
    white-space: nowrap;
}

.data-table-per-page .form-select {
    width: auto;
    min-width: 4.5rem;
    border-color: var(--card-border);
    background: var(--surface-2);
    font-size: 0.82rem;
    font-weight: 600;
}

.data-table-toolbar-end {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.65rem;
    flex-wrap: wrap;
    flex: 1 1 auto;
    min-width: 0;
}

.data-table-toolbar-filters,
.data-table-toolbar-end > form {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-end;
    gap: 0.5rem;
    margin: 0;
    min-width: 0;
    flex: 1 1 auto;
}

.data-table-toolbar-filters .form-select,
.data-table-toolbar-end > form .form-select {
    width: auto;
    min-width: 0;
    max-width: 9.5rem;
    flex: 0 1 auto;
    border-color: var(--card-border);
    background: var(--surface-2);
    font-size: 0.8rem;
    padding-top: 0.3rem;
    padding-bottom: 0.3rem;
}

.data-table-toolbar-filters select[name="status"],
.data-table-toolbar-end > form select[name="status"] {
    max-width: 7.25rem;
}

.data-table-toolbar-filters .data-table-search,
.data-table-toolbar-end > form .data-table-search {
    flex: 1 1 6.5rem;
    min-width: 5.5rem;
    max-width: 9.5rem;
}

.data-table-toolbar-filters .data-table-search .form-control,
.data-table-toolbar-end > form .data-table-search .form-control {
    font-size: 0.8rem;
    padding-top: 0.3rem;
    padding-bottom: 0.3rem;
}

.data-table-toolbar-filters .btn,
.data-table-toolbar-end > form .btn {
    flex: 0 0 auto;
    white-space: nowrap;
    padding-left: 0.75rem;
    padding-right: 0.75rem;
}

.data-table-search {
    position: relative;
    min-width: 0;
}

.data-table-search i {
    position: absolute;
    left: 0.65rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 0.8rem;
    pointer-events: none;
}

.data-table-search .form-control {
    padding-left: 2rem;
    width: 100%;
    min-width: 0;
    border-color: var(--card-border);
    background: var(--surface-2);
}

.data-table-toolbar-end:not(:has(form)) .data-table-search .form-control {
    min-width: 200px;
}

.data-table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.data-table-responsive-padded {
    padding: 0.5rem 1.35rem 1rem;
}

.data-table-responsive .ui-data-table {
    min-width: 720px;
}

.data-table-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.85rem 1.35rem;
    border-top: 1px solid var(--card-border);
    background: var(--surface-2);
}

.data-table-showing {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.data-table-showing strong {
    color: var(--text-primary);
    font-weight: 600;
}

.data-table-pagination {
    margin-left: auto;
}

.ui-pagination-list {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.ui-pagination-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    padding: 0 0.5rem;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-secondary);
    background: var(--surface);
    border: 1px solid var(--card-border);
    border-radius: 8px;
    text-decoration: none;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
}

a.ui-pagination-btn:hover {
    background: var(--surface-2);
    border-color: rgba(59, 130, 246, 0.35);
    color: var(--brand-blue);
}

.ui-pagination-item.active .ui-pagination-btn {
    background: var(--brand-blue);
    border-color: var(--brand-blue);
    color: #fff;
}

.ui-pagination-item.disabled .ui-pagination-btn {
    opacity: 0.45;
    cursor: not-allowed;
    pointer-events: none;
}

.ui-pagination-ellipsis {
    border: none;
    background: transparent;
    min-width: auto;
    padding: 0 0.25rem;
    color: var(--text-muted);
}

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

.ui-data-table thead th {
    padding: 0.45rem 1rem;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-muted);
    background: var(--surface-2);
    border-bottom: 1px solid var(--card-border);
    white-space: nowrap;
}

.ui-data-table tbody td {
    padding: 0.45rem 1rem;
    line-height: 1.35;
    vertical-align: middle;
    border-bottom: 1px solid var(--card-border);
    color: var(--text-primary);
}

.data-table-responsive-padded .ui-data-table thead th,
.data-table-responsive-padded .ui-data-table tbody td {
    padding: 0.65rem 1rem;
}

.ui-data-table tbody tr:hover td {
    background: rgba(59, 130, 246, 0.04);
}

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

.ui-data-table tbody td.table-empty-message {
    color: var(--text-muted);
}

.data-table-cell-main {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 0;
}

.data-table-avatar {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    font-size: 0.82rem;
    background: #dbeafe;
    color: var(--brand-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.data-table-primary {
    display: block;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.25;
}

a.data-table-name-link {
    color: var(--text-primary);
    text-decoration: none;
}

a.data-table-name-link:hover {
    color: var(--brand-blue);
}

.data-table-secondary {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 2px;
}

.data-table-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--brand-blue);
    text-decoration: none;
    font-weight: 500;
    white-space: nowrap;
}

.data-table-link:hover {
    text-decoration: underline;
}

.data-table-link i {
    font-size: 0.75rem;
}

.data-table-muted {
    color: var(--text-muted);
    font-size: 0.8rem;
}

.ui-data-table tbody td a.data-table-muted {
    text-decoration: none;
}

.ui-data-table tbody td a.data-table-muted:hover {
    color: var(--brand-blue, #3b82f6);
}

.lead-table-email-cell {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 0;
}

.lead-table-intent-hint {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 0.35rem;
    color: var(--text-muted);
    font-size: 0.78rem;
    line-height: 1;
    vertical-align: middle;
    cursor: help;
}

.lead-table-intent-hint:hover,
.lead-table-intent-hint:focus-visible {
    color: var(--brand-blue);
}

.ui-data-table tbody td[data-label="Lead"] {
    white-space: nowrap;
}

.ui-data-table tbody td[data-label="Lead"] .data-table-cell-main > div {
    min-width: 0;
}

.ui-data-table tbody td[data-label="Lead"] .data-table-primary {
    display: inline-flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0.35rem;
    white-space: nowrap;
    max-width: 100%;
}

.ui-data-table tbody td[data-label="Lead"] .data-table-primary .badge {
    flex-shrink: 0;
}

.lead-table-email-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.75rem;
    height: 1.75rem;
    flex-shrink: 0;
    border: none;
    border-radius: 8px;
    padding: 0;
    cursor: pointer;
    color: var(--brand-blue, #3b82f6);
    background: rgba(59, 130, 246, 0.1);
    text-decoration: none;
    transition: background 0.15s ease, color 0.15s ease;
}

.lead-table-email-icon:hover {
    color: #fff;
    background: var(--brand-blue, #3b82f6);
}

.ui-data-table .website-status {
    font-size: 0.65rem;
    padding: 0.12rem 0.4rem;
}

.ui-data-table .website-context-badge {
    margin-left: 0.25rem;
    font-size: 0.6rem;
    padding: 0.1rem 0.35rem;
}

.ui-data-table tbody td:nth-child(2),
.ui-data-table tbody td[data-label="URL"] {
    white-space: nowrap;
}

.ui-data-table tbody td:nth-child(3) {
    white-space: nowrap;
}

.ui-data-table tbody td[data-label="Created"],
.ui-data-table tbody td[data-label="Date"],
.ui-data-table tbody td[data-label="When"],
.ui-data-table tbody td[data-label="Joined"],
.ui-data-table tbody td[data-label="Sent"],
.ui-data-table tbody td[data-label="Started"] {
    white-space: nowrap;
}

.ui-data-table tbody td[data-label="Stage"] {
    white-space: nowrap;
}

.ui-data-table tbody td[data-label="Stage"] .website-status,
.ui-data-table tbody td[data-label="Stage"] .badge {
    display: inline-flex;
    align-items: center;
    vertical-align: middle;
}

.data-table-actions {
    display: inline-flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0.35rem;
    justify-content: flex-end;
    padding: 0.28rem 0.32rem;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.06) 0%, var(--surface-2) 55%, var(--surface) 100%);
    border: 1px solid rgba(99, 102, 241, 0.12);
    border-radius: 999px;
    box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.04);
    max-width: 100%;
}

.data-table-actions > form,
.data-table-actions .d-inline,
.data-table-actions .d-inline-block {
    display: inline-flex;
    margin: 0;
    flex: 0 0 auto;
}

[data-theme="dark"] .data-table-actions {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.12) 0%, rgba(15, 23, 42, 0.45) 100%);
    border-color: rgba(99, 102, 241, 0.2);
}

.data-table-actions .data-table-action-form {
    margin: 0;
    display: inline-flex;
    flex: 0 0 auto;
}

.ui-data-table thead th.text-end:last-child,
.ui-data-table tbody td.text-end[data-label="Actions"] {
    width: 1%;
    white-space: nowrap;
}

.data-table-responsive .ui-data-table#websitesTable {
    min-width: 860px;
}

.data-table-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.1rem;
    height: 2.1rem;
    padding: 0;
    flex: 0 0 auto;
    flex-shrink: 0;
    border: 1px solid var(--card-border);
    border-radius: 50%;
    background: var(--surface);
    color: var(--text-secondary);
    font-size: 0.8rem;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
    transition:
        transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 0.35s cubic-bezier(0.22, 1, 0.36, 1),
        background 0.35s ease,
        border-color 0.35s ease,
        color 0.35s ease;
}

.data-table-action-btn:hover {
    transform: translateY(-2px);
}

.data-table-action-btn:focus-visible {
    outline: 2px solid var(--brand);
    outline-offset: 2px;
}

.data-table-action-btn--view {
    color: #fff;
    background: var(--brand-gradient);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 3px 12px rgba(99, 102, 241, 0.28);
}

.data-table-action-btn--view:hover {
    color: #fff;
    box-shadow: 0 6px 18px rgba(99, 102, 241, 0.38);
}

.data-table-action-btn--edit {
    color: var(--brand);
    border-color: rgba(99, 102, 241, 0.25);
    background: rgba(99, 102, 241, 0.08);
}

.data-table-action-btn--edit:hover {
    color: #fff;
    background: var(--brand-gradient);
    border-color: transparent;
    box-shadow: 0 6px 16px rgba(99, 102, 241, 0.3);
}

.data-table-action-btn--delete {
    color: #dc2626;
    border-color: rgba(220, 38, 38, 0.25);
    background: rgba(220, 38, 38, 0.08);
}

.data-table-action-btn--delete:hover {
    color: #fff;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    border-color: transparent;
    box-shadow: 0 6px 16px rgba(220, 38, 38, 0.28);
}

/* Legacy Bootstrap icon buttons in data tables */
.data-table-actions .btn-sm {
    width: 2.1rem;
    height: 2.1rem;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    font-size: 0.8rem;
    line-height: 1;
    border-radius: 50% !important;
    transition:
        transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.data-table-actions .btn-sm:hover {
    transform: translateY(-2px);
}

.data-table-actions .btn-sm.btn-primary {
    color: #fff;
    background: var(--brand-gradient);
    border: 0;
    box-shadow: 0 3px 12px rgba(99, 102, 241, 0.28);
}

.data-table-actions .btn-sm.btn-outline-primary {
    color: var(--brand);
    border-color: rgba(99, 102, 241, 0.25);
    background: rgba(99, 102, 241, 0.08);
}

.data-table-actions .btn-sm.btn-outline-danger {
    color: #dc2626;
    border-color: rgba(220, 38, 38, 0.25);
    background: rgba(220, 38, 38, 0.08);
}

.data-table-actions .btn-sm.btn-outline-danger:hover {
    color: #fff;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    border-color: transparent;
}

/* Data table — responsive toolbar; table stays tabular with horizontal scroll */
@media (max-width: 991.98px) {
    .data-table-toolbar {
        align-items: center;
        gap: 0.65rem 0.75rem;
        padding: 1rem 1.15rem;
    }

    .data-table-toolbar-start {
        flex: 0 0 auto;
        width: auto;
    }

    .data-table-toolbar-end {
        flex: 1 1 0;
        min-width: 0;
        width: auto;
        flex-direction: row;
        align-items: center;
    }

    .data-table-toolbar-filters,
    .data-table-toolbar-end > form {
        flex-wrap: nowrap;
        justify-content: flex-end;
        width: auto;
        max-width: 100%;
    }

    .data-table-toolbar-filters select[name="chatbot_id"],
    .data-table-toolbar-end > form select[name="chatbot_id"] {
        max-width: 8.5rem;
    }

    .data-table-toolbar-filters select[name="status"],
    .data-table-toolbar-end > form select[name="status"] {
        max-width: 6.75rem;
    }

    .data-table-toolbar-filters .data-table-search,
    .data-table-toolbar-end > form .data-table-search {
        flex: 1 1 5.5rem;
        min-width: 4.75rem;
        max-width: 8rem;
    }

    .data-table-toolbar-end > .btn:not(.page-header-action-btn) {
        width: auto;
    }

    .data-table-toolbar-end > .data-table-search {
        width: auto;
        flex: 1 1 8rem;
        max-width: 100%;
    }

    .data-table-toolbar-end > .data-table-search .form-control {
        width: 100%;
        min-width: 0;
    }
}

@media (max-width: 767.98px) {
    .data-table-toolbar {
        padding: 1rem;
        gap: 0.75rem;
    }

    .data-table-toolbar-start {
        display: flex;
        align-items: center;
        gap: 0.65rem;
    }

    .data-table-per-page {
        width: auto;
    }

    .data-table-per-page .form-select {
        flex: 0 0 auto;
        width: auto;
        max-width: 8rem;
    }

    .data-table-toolbar-end:not(:has(form)) .data-table-search {
        width: 100%;
        flex: 1 1 100%;
    }

    .data-table-toolbar-end:not(:has(form)) .data-table-search .form-control {
        min-width: 0;
        width: 100%;
    }

    .data-table-footer {
        flex-direction: column;
        align-items: stretch;
        padding: 0.85rem 1rem;
        text-align: center;
    }

    .data-table-pagination {
        margin-left: 0;
        display: flex;
        justify-content: center;
    }

    .data-table-responsive {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .data-table-responsive .ui-data-table {
        min-width: 720px;
    }

    .data-table-responsive .ui-data-table#websitesTable {
        min-width: 860px;
    }
}

@media (max-width: 575.98px) {
    .data-table-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .data-table-toolbar-start,
    .data-table-toolbar-end {
        width: 100%;
    }

    .data-table-toolbar-end {
        flex-direction: column;
        align-items: stretch;
    }

    .data-table-toolbar-filters,
    .data-table-toolbar-end > form {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        width: 100%;
        gap: 0.5rem;
    }

    .data-table-toolbar-filters .data-table-search,
    .data-table-toolbar-end > form .data-table-search,
    .data-table-toolbar-filters .btn[type="submit"],
    .data-table-toolbar-end > form .btn[type="submit"] {
        grid-column: 1 / -1;
    }

    .data-table-toolbar-filters .form-select,
    .data-table-toolbar-end > form .form-select,
    .data-table-toolbar-filters .data-table-search,
    .data-table-toolbar-end > form .data-table-search,
    .data-table-toolbar-filters .btn,
    .data-table-toolbar-end > form .btn {
        width: 100%;
        min-width: 0;
        max-width: none;
        flex: none;
    }

    .data-table-per-page {
        width: 100%;
    }

    .data-table-per-page .form-select {
        width: 100%;
        max-width: none;
    }
}

.data-table-empty {
    text-align: center;
    padding: 0.5rem 1.5rem;
    max-width: 32rem;
    margin: 0 auto;
}

.data-table-empty .website-empty-icon {
    flex-shrink: 0;
    margin-bottom: 0.15rem;
}

.data-table-empty .website-empty-icon i {
    display: block;
    font-size: 1.65rem;
    line-height: 1;
    color: inherit;
}

.data-table-empty h4 {
    font-size: 1.05rem;
    font-weight: 700;
    margin: 0.75rem 0 0.35rem;
}

.data-table-empty p {
    color: var(--text-muted);
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.ui-modal-content {
    background-color: var(--surface);
    color: var(--text-primary);
    border: 1px solid var(--card-border);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.ui-modal-content .modal-header {
    border-bottom: 1px solid var(--card-border);
    padding: 1rem 1.25rem;
    background: var(--surface);
}

.ui-modal-content .modal-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary);
}

.ui-modal-content .modal-body {
    padding: 1.25rem;
    background: var(--surface);
}

.ui-modal-content .modal-footer {
    border-top: 1px solid var(--card-border);
    padding: 1rem 1.25rem;
    background: var(--surface-2);
}

.ui-modal-content .btn-close {
    opacity: 0.55;
}

.ui-modal-content .btn-close:hover {
    opacity: 0.85;
}

[data-theme="dark"] .modal-backdrop.show {
    --bs-backdrop-opacity: 0.72;
}

[data-theme="dark"] .ui-modal-content {
    border-color: var(--border);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.04);
}

[data-theme="dark"] .ui-modal-content .modal-header,
[data-theme="dark"] .ui-modal-content .modal-body {
    background: var(--surface);
}

[data-theme="dark"] .ui-modal-content .modal-footer {
    background: var(--surface-2);
}

[data-theme="dark"] .ui-modal-content .btn-close {
    filter: invert(1) grayscale(100%) brightness(200%);
    opacity: 0.65;
}

[data-theme="dark"] .ui-modal-content .btn-close:hover {
    opacity: 0.9;
}

[data-theme="dark"] .ui-modal-content .btn-outline-secondary {
    color: var(--text-secondary);
    border-color: var(--border);
    background: transparent;
}

[data-theme="dark"] .ui-modal-content .btn-outline-secondary:hover,
[data-theme="dark"] .ui-modal-content .btn-outline-secondary:focus {
    color: var(--text-primary);
    background: var(--surface-hover);
    border-color: #475569;
}

[data-theme="dark"] .ui-modal-content .ui-label {
    color: var(--text-secondary);
}

[data-theme="dark"] .ui-modal-content .ui-hint,
[data-theme="dark"] .ui-modal-content .ui-invalid-feedback {
    color: var(--text-muted);
}

[data-theme="dark"] #websiteBranchActivitiesModal .ui-modal-content .website-branch-activities-section-label {
    color: #ffffff !important;
}

.team-member-permissions-grid {
    margin-top: 0.15rem;
}

.team-member-permission-card {
    display: block;
    margin: 0;
    cursor: pointer;
}

.team-member-permission-input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
    pointer-events: none;
}

.team-member-permission-card-body {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.65rem;
    min-height: 3.25rem;
    padding: 0.65rem 0.75rem;
    border: 1px solid var(--card-border);
    border-radius: 12px;
    background: var(--surface);
    box-shadow: var(--shadow-sm);
    transition:
        border-color 0.15s ease,
        background 0.15s ease,
        box-shadow 0.15s ease;
}

.team-member-permission-card:hover .team-member-permission-card-body {
    border-color: rgba(59, 130, 246, 0.35);
    background: var(--surface-hover, rgba(59, 130, 246, 0.04));
}

.team-member-permission-card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 10px;
    background: rgba(59, 130, 246, 0.1);
    color: var(--brand-blue, #3b82f6);
    font-size: 0.82rem;
    flex-shrink: 0;
}

.team-member-permission-card-label {
    flex: 1;
    min-width: 0;
    font-size: 0.8125rem;
    font-weight: 600;
    line-height: 1.3;
    color: var(--text-primary);
}

.team-member-permission-card-check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.25rem;
    height: 1.25rem;
    border-radius: 50%;
    border: 1px solid var(--card-border);
    background: var(--surface-2, #f8fafc);
    color: transparent;
    font-size: 0.62rem;
    flex-shrink: 0;
    transition:
        background 0.15s ease,
        border-color 0.15s ease,
        color 0.15s ease;
}

.team-member-permission-input:checked + .team-member-permission-card-body {
    border-color: rgba(59, 130, 246, 0.45);
    background: rgba(59, 130, 246, 0.06);
    box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.12);
}

.team-member-permission-input:checked + .team-member-permission-card-body .team-member-permission-card-icon {
    background: var(--brand-blue, #3b82f6);
    color: #fff;
}

.team-member-permission-input:checked + .team-member-permission-card-body .team-member-permission-card-check {
    background: var(--brand-blue, #3b82f6);
    border-color: var(--brand-blue, #3b82f6);
    color: #fff;
}

.team-member-permission-input:focus-visible + .team-member-permission-card-body {
    outline: 2px solid var(--border-focus, #3b82f6);
    outline-offset: 2px;
}

.team-member-agreement-card-body {
    align-items: flex-start;
    min-height: 0;
    padding: 0.85rem 0.9rem;
}

.team-member-agreement-card-icon {
    background: rgba(245, 158, 11, 0.14);
    color: #d97706;
    margin-top: 0.1rem;
}

.team-member-agreement-card-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.team-member-agreement-card-desc {
    font-size: 0.75rem;
    line-height: 1.45;
    color: var(--text-muted);
    font-weight: 400;
}

.team-member-permission-input:checked + .team-member-agreement-card-body .team-member-agreement-card-icon {
    background: #d97706;
    color: #fff;
}

[data-theme="dark"] #teamMemberModal .team-member-agreement-card-desc {
    color: rgba(248, 250, 252, 0.72);
}

[data-theme="dark"] #teamMemberModal .team-member-agreement-card-icon {
    background: rgba(245, 158, 11, 0.18);
    color: #fbbf24;
}

[data-theme="dark"] #teamMemberModal .team-member-permission-card-body {
    background: rgba(15, 23, 42, 0.55);
}

[data-theme="dark"] #teamMemberModal .team-member-permission-card:hover .team-member-permission-card-body {
    background: rgba(59, 130, 246, 0.08);
}

[data-theme="dark"] #teamMemberModal .team-member-permission-input:checked + .team-member-permission-card-body {
    background: rgba(59, 130, 246, 0.14);
    border-color: rgba(96, 165, 250, 0.45);
}

[data-theme="dark"] #teamMemberModal .team-member-permission-card-icon {
    background: rgba(59, 130, 246, 0.18);
    color: #93c5fd;
}

[data-theme="dark"] #teamMemberModal .team-member-permission-card-check {
    background: rgba(15, 23, 42, 0.65);
    border-color: rgba(148, 163, 184, 0.25);
}

@media (max-width: 575.98px) {
    .team-member-permission-card-body {
        min-height: 2.85rem;
        padding: 0.55rem 0.65rem;
        gap: 0.5rem;
    }

    .team-member-permission-card-icon {
        width: 1.75rem;
        height: 1.75rem;
        font-size: 0.74rem;
    }

    .team-member-permission-card-label {
        font-size: 0.78rem;
    }
}

/* Scrollable body + pinned header/footer */
#teamMemberModal .modal-dialog.modal-dialog-scrollable {
    max-height: calc(100vh - 1rem);
}

#teamMemberModal .modal-dialog-scrollable .modal-content {
    max-height: calc(100vh - 1rem);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

#teamMemberModal #teamMemberForm {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
    max-height: 100%;
}

#teamMemberModal .modal-header,
#teamMemberModal .modal-footer {
    flex-shrink: 0;
}

#teamMemberModal .modal-dialog-scrollable .modal-body {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
}

@media (max-width: 575.98px) {
    #teamMemberModal .modal-dialog {
        width: calc(100% - 1rem);
        max-width: none;
        margin: 0.5rem auto;
    }

    #teamMemberModal .modal-dialog-scrollable .modal-content {
        max-height: calc(100vh - 1rem);
    }

    #teamMemberModal .modal-header {
        padding: 0.85rem 1rem;
    }

    #teamMemberModal .modal-body {
        padding: 1rem;
    }

    #teamMemberModal .modal-footer {
        display: flex;
        flex-wrap: wrap;
        gap: 0.5rem;
        padding: 0.85rem 1rem;
    }

    #teamMemberModal .modal-footer .btn {
        flex: 1 1 auto;
        min-width: 0;
    }
}

[data-theme="dark"] #teamMemberModal #teamMemberEmailHint {
    color: #fff !important;
    opacity: 0.92;
}

[data-theme="dark"] .data-table-avatar {
    background: rgba(59, 130, 246, 0.2);
}

[data-theme="dark"] .ui-data-table tbody tr:hover td {
    background: rgba(59, 130, 246, 0.08);
}

[data-theme="dark"] .ui-data-table tbody td.table-empty-message,
[data-theme="dark"] .ui-data-table tbody td.text-muted[colspan],
[data-theme="dark"] .data-table tbody td.text-muted[colspan] {
    color: var(--text-primary) !important;
}

[data-theme="dark"] .data-table-empty h4 {
    color: var(--text-primary);
}

[data-theme="dark"] .data-table-empty p {
    color: var(--text-secondary);
}

/* Websites */
.website-empty-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto;
    border-radius: 18px;
    background: rgba(99, 102, 241, 0.12);
    color: var(--brand);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
}

[data-theme="dark"] .website-empty-icon {
    background: rgba(99, 102, 241, 0.2);
    color: #c7d2fe;
}

.ui-data-table tbody tr.data-table-empty-row td[colspan] {
    vertical-align: middle;
    padding: 2.75rem 2.5rem !important;
    background: color-mix(in srgb, var(--surface-2) 65%, var(--surface-1) 35%);
    border-bottom: none;
}

[data-theme="dark"] .ui-data-table tbody tr.data-table-empty-row td[colspan] {
    background: color-mix(in srgb, var(--surface-2) 80%, var(--surface-1) 20%);
}

.website-card {
    height: 100%;
    background: var(--surface);
    border: 1px solid var(--card-border);
    border-radius: 14px;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.website-card:hover {
    border-color: rgba(59, 130, 246, 0.35);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.website-card-head {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.website-card-icon {
    width: 44px;
    height: 44px;
    border-radius: 11px;
    background: #dbeafe;
    color: var(--brand-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.website-card-info {
    flex: 1;
    min-width: 0;
}

.website-card-name {
    font-size: 1rem;
    font-weight: 700;
    margin: 0 0 0.25rem;
    color: var(--text-primary);
    line-height: 1.3;
}

.website-card-url {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.78rem;
    color: var(--brand-blue);
    text-decoration: none;
    word-break: break-all;
}

.website-card-url:hover {
    text-decoration: underline;
}

.website-card-url i {
    font-size: 0.65rem;
    flex-shrink: 0;
}

.website-status {
    flex-shrink: 0;
    font-size: 0.68rem;
    font-weight: 700;
    padding: 0.2rem 0.5rem;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.website-status-active {
    color: #047857;
    background: rgba(16, 185, 129, 0.12);
}

.website-status-pending {
    color: #b45309;
    background: rgba(245, 158, 11, 0.15);
}

.website-status-inactive {
    color: #64748b;
    background: rgba(148, 163, 184, 0.2);
}

.website-widget-mode {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.45rem;
}

.website-widget-mode-badge {
    font-size: 0.68rem;
    font-weight: 700;
    padding: 0.2rem 0.5rem;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.website-widget-mode-active {
    color: #047857;
    background: rgba(16, 185, 129, 0.12);
}

.website-widget-mode-paused {
    color: #b45309;
    background: rgba(245, 158, 11, 0.15);
}

.website-widget-mode-stopped {
    color: #b91c1c;
    background: rgba(239, 68, 68, 0.12);
}

.website-widget-mode-buttons .btn.active {
    pointer-events: none;
}

.website-card-desc {
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin: 0 0 0.75rem;
    flex: 1;
}

.website-card-meta {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.website-card-meta i {
    margin-right: 0.25rem;
    color: var(--text-muted);
}

.website-card-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: auto;
    padding-top: 0.75rem;
    border-top: 1px solid var(--surface-2);
}

[data-theme="dark"] .website-card-icon {
    background: rgba(59, 130, 246, 0.2);
}

[data-theme="dark"] .website-status-active {
    color: #34d399;
    background: rgba(16, 185, 129, 0.18);
}

/* Settings — Company | Website segmented tabs */
.settings-tabs {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.25rem;
    padding: 0.3rem;
    border: 1px solid var(--card-border);
    border-radius: var(--radius-md);
    background: var(--surface-2);
    border-bottom: none;
    max-width: 100%;
}

.settings-tabs .nav-item {
    flex: 1 1 auto;
    min-width: 0;
}

.settings-tabs .nav-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    width: 100%;
    min-width: 9rem;
    padding: 0.55rem 1.15rem;
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.25;
    color: var(--text-muted);
    background: transparent;
    border: 1px solid transparent;
    border-radius: calc(var(--radius-md) - 4px);
    transition: color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.settings-tabs .nav-link i {
    font-size: 0.9rem;
    opacity: 0.75;
}

.settings-tabs .nav-link:hover:not(.disabled):not(:disabled) {
    color: var(--text-primary);
    background: var(--surface-hover);
    border-color: transparent;
}

.settings-tabs .nav-link:hover:not(.disabled):not(:disabled) i {
    opacity: 1;
}

.settings-tabs .nav-link.active {
    color: var(--text-primary);
    background: var(--surface);
    border-color: var(--card-border);
    box-shadow: var(--shadow-sm);
}

.settings-tabs .nav-link.active i {
    color: var(--brand-blue, var(--bs-primary));
    opacity: 1;
}

.settings-tabs .nav-link.disabled,
.settings-tabs .nav-link:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    pointer-events: none;
}

.settings-tabs .nav-link:focus-visible {
    outline: 2px solid var(--border-focus);
    outline-offset: 2px;
}

[data-theme="dark"] .settings-tabs {
    background: rgba(15, 23, 42, 0.55);
    border-color: var(--card-border);
}

[data-theme="dark"] .settings-tabs .nav-link.active {
    background: var(--surface);
    border-color: rgba(148, 163, 184, 0.25);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
}

[data-theme="dark"] .settings-tabs .nav-link.active i {
    color: #a5b4fc;
}

@media (max-width: 575.98px) {
    .settings-tabs {
        display: flex;
        width: 100%;
    }

    .settings-tabs .nav-link {
        min-width: 0;
        padding: 0.5rem 0.75rem;
        font-size: 0.8125rem;
    }

    .settings-tabs .nav-link span {
        display: none;
    }

    .settings-tabs .nav-link i {
        font-size: 1rem;
        opacity: 0.85;
    }

    .settings-tabs .nav-link.active i {
        opacity: 1;
    }
}

.chatbot-detail-tabs {
    border-bottom: 1px solid var(--card-border);
    gap: 0.25rem;
}

.chatbot-detail-tabs .nav-link {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-muted);
    border: none;
    border-bottom: 2px solid transparent;
    border-radius: var(--radius-sm) var(--radius-sm) 0 0;
    padding: 0.65rem 1rem;
    background: transparent;
}

.chatbot-detail-tabs .nav-link:hover {
    color: var(--text-primary);
    border-color: transparent;
}

.chatbot-detail-tabs .nav-link.active {
    color: var(--brand-blue);
    background: transparent;
    border-bottom-color: var(--brand-blue);
}

.settings-card .card-title {
    font-size: 1rem;
}

.settings-card-desc {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-bottom: 1.15rem;
}

.settings-call-actions {
    align-self: flex-start;
}

.settings-call-actions-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 0.5rem;
    padding: 0.4rem 0.45rem;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.07) 0%, var(--surface) 50%, rgba(59, 130, 246, 0.06) 100%);
    border: 1px solid rgba(99, 102, 241, 0.12);
    border-radius: 999px;
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.06) inset,
        0 6px 18px rgba(15, 23, 42, 0.05);
}

[data-theme="dark"] .settings-call-actions-toolbar {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.12) 0%, rgba(15, 23, 42, 0.5) 50%, rgba(59, 130, 246, 0.1) 100%);
    border-color: rgba(99, 102, 241, 0.2);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.2);
}

.settings-call-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.52rem 0.95rem 0.52rem 0.5rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
    line-height: 1.2;
    border: 1px solid transparent;
    cursor: pointer;
    font-family: inherit;
    text-decoration: none;
    background: transparent;
    transition:
        transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 0.35s cubic-bezier(0.22, 1, 0.36, 1),
        background 0.35s ease,
        border-color 0.35s ease,
        color 0.35s ease;
}

.settings-call-action-btn:hover {
    transform: translateY(-2px);
}

.settings-call-action-btn:focus-visible {
    outline: 2px solid var(--brand);
    outline-offset: 3px;
}

.settings-call-action-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 50%;
    font-size: 0.76rem;
    flex-shrink: 0;
    transition: background 0.35s ease, color 0.35s ease;
}

.settings-call-action-btn--logs {
    color: var(--text-primary);
    background: var(--surface);
    border-color: rgba(99, 102, 241, 0.22);
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.08);
}

.settings-call-action-btn--logs .settings-call-action-icon {
    background: rgba(99, 102, 241, 0.12);
    color: var(--brand);
}

.settings-call-action-btn--logs:hover {
    color: var(--text-primary);
    border-color: rgba(99, 102, 241, 0.38);
    box-shadow: 0 7px 18px rgba(99, 102, 241, 0.14);
}

.settings-call-action-btn--logs:hover .settings-call-action-icon {
    background: var(--brand-gradient);
    color: #fff;
}

.settings-call-action-btn--help {
    color: var(--text-muted);
    background: var(--surface);
    border-color: var(--card-border);
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.04);
}

.settings-call-action-btn--help .settings-call-action-icon {
    background: rgba(100, 116, 139, 0.12);
    color: var(--text-muted);
}

.settings-call-action-btn--help:hover {
    color: var(--text-primary);
    border-color: rgba(100, 116, 139, 0.35);
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.08);
}

.settings-call-action-btn--help:hover .settings-call-action-icon {
    background: rgba(100, 116, 139, 0.2);
    color: var(--text-primary);
}

.settings-call-action-btn--add {
    color: #fff;
    background: var(--brand-gradient);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 5px 16px rgba(99, 102, 241, 0.3);
    padding-right: 1rem;
}

.settings-call-action-btn--add .settings-call-action-icon {
    background: rgba(255, 255, 255, 0.22);
    color: #fff;
}

.settings-call-action-btn--add:hover {
    color: #fff;
    box-shadow: 0 8px 22px rgba(99, 102, 241, 0.4);
}

[data-theme="dark"] .settings-call-action-btn--logs,
[data-theme="dark"] .settings-call-action-btn--help {
    background: rgba(15, 23, 42, 0.55);
}

@media (max-width: 991.98px) {
    .settings-call-actions {
        width: 100%;
    }

    .settings-call-actions-toolbar {
        width: 100%;
        justify-content: flex-start;
        border-radius: 14px;
        gap: 0.35rem;
        padding: 0.32rem 0.38rem;
    }

    .settings-call-action-btn {
        padding: 0.42rem 0.72rem 0.42rem 0.38rem;
        font-size: 0.74rem;
        gap: 0.35rem;
    }

    .settings-call-action-btn:hover {
        transform: none;
    }

    .settings-call-action-icon {
        width: 1.45rem;
        height: 1.45rem;
        font-size: 0.68rem;
    }

    .settings-call-action-btn--add {
        padding-right: 0.72rem;
    }
}

@media (max-width: 575.98px) {
    .settings-call-actions-toolbar {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        justify-content: flex-start;
        gap: 0.28rem;
        padding: 0.26rem 0.3rem;
        border-radius: 12px;
    }

    .settings-call-action-btn {
        width: auto;
        flex: 1 1 calc(50% - 0.28rem);
        min-width: 0;
        justify-content: flex-start;
        padding: 0.34rem 0.5rem 0.34rem 0.28rem;
        font-size: 0.68rem;
        gap: 0.28rem;
    }

    .settings-call-action-btn--add {
        flex: 1 1 100%;
        justify-content: center;
        padding: 0.38rem 0.55rem;
    }

    .settings-call-action-icon {
        width: 1.2rem;
        height: 1.2rem;
        font-size: 0.58rem;
    }

    .settings-call-action-btn > span:not(.settings-call-action-icon) {
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
}

.settings-call-active-provider {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 0.75rem;
    padding: 0.65rem 0.85rem;
    border-radius: 10px;
    border: 1px solid var(--card-border);
    background: var(--surface-muted, rgba(0, 0, 0, 0.02));
    font-size: 0.875rem;
}

.settings-call-active-provider-badge {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--bs-success);
    background: rgba(25, 135, 84, 0.12);
    border: 1px solid rgba(25, 135, 84, 0.28);
    border-radius: 999px;
    padding: 0.15rem 0.5rem;
}

.settings-call-active-provider-type,
.settings-call-active-provider-meta {
    color: var(--text-muted);
    font-size: 0.82rem;
}

[data-theme="dark"] .settings-call-active-provider-type,
[data-theme="dark"] .settings-call-active-provider-meta {
    color: #fff;
    opacity: 0.88;
}

.settings-call-outbound-summary,
.settings-call-outbound-warning {
    font-size: 0.875rem;
    line-height: 1.55;
    border-radius: 10px;
    padding: 0.75rem 1rem;
}

.settings-call-outbound-summary {
    color: var(--text-secondary);
    background: rgba(59, 130, 246, 0.08);
    border: 1px solid rgba(59, 130, 246, 0.22);
}

.settings-call-outbound-summary strong {
    color: var(--text-primary);
    font-weight: 600;
}

.settings-call-outbound-summary a {
    color: var(--brand-blue);
    font-weight: 600;
    text-decoration: none;
}

.settings-call-outbound-summary a:hover {
    text-decoration: underline;
}

.settings-call-outbound-summary-meta {
    display: block;
    margin-top: 0.35rem;
    font-size: 0.8125rem;
    color: var(--text-muted);
}

.settings-call-outbound-warning {
    color: var(--text-secondary);
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.28);
}

.settings-call-outbound-warning a {
    color: var(--brand-blue);
    font-weight: 600;
    text-decoration: none;
}

.settings-call-outbound-warning a:hover {
    text-decoration: underline;
}

.settings-call-demo-preview {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.65rem 1rem;
}

.settings-call-demo-preview-hint {
    font-size: 0.8125rem;
    color: var(--text-muted);
}

[data-theme="dark"] .settings-call-outbound-summary {
    background: rgba(59, 130, 246, 0.14);
    border-color: rgba(96, 165, 250, 0.3);
    color: rgba(255, 255, 255, 0.82);
}

[data-theme="dark"] .settings-call-outbound-summary strong {
    color: #ffffff;
}

[data-theme="dark"] .settings-call-outbound-summary-meta {
    color: rgba(255, 255, 255, 0.65);
}

[data-theme="dark"] .settings-call-outbound-warning {
    background: rgba(245, 158, 11, 0.14);
    border-color: rgba(251, 191, 36, 0.32);
    color: rgba(255, 255, 255, 0.82);
}

/* Billing — summary stat cards */
@media (max-width: 767.98px) {
    .billing-summary-stats .stat-card {
        padding: 0.95rem 1rem;
    }

    .billing-summary-stats .stat-label {
        font-size: 0.72rem;
        line-height: 1.3;
    }

    .billing-summary-stats .stat-value {
        font-size: 1.35rem;
    }

    .billing-summary-stats .stat-value.fs-4 {
        font-size: 1.15rem !important;
    }

    .billing-summary-stats .stat-trend {
        font-size: 0.68rem;
        line-height: 1.35;
        margin-top: 0.35rem;
    }
}

/* Billing — knowledge chunk quota notice */
.billing-chunk-quota-alert {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    padding: 0.9rem 1.15rem;
    font-size: 0.875rem;
    line-height: 1.5;
    border-radius: var(--radius-md);
    border: 1px solid transparent;
    box-shadow: var(--shadow-sm);
}

.billing-chunk-quota-alert-icon {
    flex-shrink: 0;
    width: 2.35rem;
    height: 2.35rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.55rem;
    font-size: 1rem;
}

.billing-chunk-quota-alert-title {
    margin: 0 0 0.2rem;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.billing-chunk-quota-alert-text {
    color: inherit;
}

.billing-chunk-quota-alert-text strong {
    font-weight: 700;
    color: var(--text-primary);
}

.billing-chunk-quota-alert-meta {
    color: var(--text-muted);
    font-weight: 500;
}

.billing-chunk-quota-alert--info {
    color: var(--text-secondary);
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(99, 102, 241, 0.06));
    border-color: rgba(59, 130, 246, 0.28);
}

.billing-chunk-quota-alert--info .billing-chunk-quota-alert-icon {
    background: rgba(59, 130, 246, 0.14);
    color: var(--brand-blue, #2563eb);
    box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.2);
}

.billing-chunk-quota-alert--info .billing-chunk-quota-alert-title {
    color: var(--brand-blue, #2563eb);
}

.billing-chunk-quota-alert--warning {
    color: var(--text-secondary);
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.12), rgba(234, 88, 12, 0.06));
    border-color: rgba(245, 158, 11, 0.35);
}

.billing-chunk-quota-alert--warning .billing-chunk-quota-alert-icon {
    background: rgba(245, 158, 11, 0.16);
    color: #d97706;
    box-shadow: 0 0 0 1px rgba(245, 158, 11, 0.25);
}

.billing-chunk-quota-alert--warning .billing-chunk-quota-alert-title {
    color: #b45309;
}

[data-theme="dark"] .billing-chunk-quota-alert--info {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.18), rgba(99, 102, 241, 0.1));
    border-color: rgba(96, 165, 250, 0.32);
    color: rgba(255, 255, 255, 0.85);
}

[data-theme="dark"] .billing-chunk-quota-alert--info .billing-chunk-quota-alert-icon {
    background: rgba(59, 130, 246, 0.22);
    color: #93c5fd;
    box-shadow: 0 0 0 1px rgba(96, 165, 250, 0.28);
}

[data-theme="dark"] .billing-chunk-quota-alert--info .billing-chunk-quota-alert-title {
    color: #93c5fd;
}

[data-theme="dark"] .billing-chunk-quota-alert--info .billing-chunk-quota-alert-text strong {
    color: #ffffff;
}

[data-theme="dark"] .billing-chunk-quota-alert--info .billing-chunk-quota-alert-meta {
    color: rgba(255, 255, 255, 0.62);
}

[data-theme="dark"] .billing-chunk-quota-alert--warning {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.16), rgba(234, 88, 12, 0.1));
    border-color: rgba(251, 191, 36, 0.38);
    color: rgba(255, 255, 255, 0.88);
}

[data-theme="dark"] .billing-chunk-quota-alert--warning .billing-chunk-quota-alert-icon {
    background: rgba(245, 158, 11, 0.22);
    color: #fbbf24;
    box-shadow: 0 0 0 1px rgba(251, 191, 36, 0.3);
}

[data-theme="dark"] .billing-chunk-quota-alert--warning .billing-chunk-quota-alert-title {
    color: #fcd34d;
}

[data-theme="dark"] .billing-chunk-quota-alert--warning .billing-chunk-quota-alert-text strong {
    color: #ffffff;
}

[data-theme="dark"] .billing-chunk-quota-alert--warning .billing-chunk-quota-alert-meta {
    color: rgba(255, 255, 255, 0.65);
}

.billing-pay-actions {
    margin-bottom: 0.25rem;
}

.billing-pay-actions-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.45rem;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.07) 0%, var(--surface) 45%, rgba(245, 158, 11, 0.06) 100%);
    border: 1px solid rgba(99, 102, 241, 0.12);
    border-radius: 999px;
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.06) inset,
        0 6px 18px rgba(15, 23, 42, 0.05);
}

[data-theme="dark"] .billing-pay-actions-toolbar {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.12) 0%, rgba(15, 23, 42, 0.5) 50%, rgba(245, 158, 11, 0.08) 100%);
    border-color: rgba(99, 102, 241, 0.2);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.2);
}

.billing-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.52rem 0.95rem 0.52rem 0.5rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
    line-height: 1.2;
    border: 1px solid transparent;
    cursor: pointer;
    font-family: inherit;
    text-decoration: none;
    transition:
        transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 0.35s cubic-bezier(0.22, 1, 0.36, 1),
        background 0.35s ease,
        border-color 0.35s ease,
        color 0.35s ease;
}

.billing-action-btn:hover:not(.billing-action-btn--disabled) {
    transform: translateY(-2px);
}

.billing-action-btn:focus-visible {
    outline: 2px solid var(--brand);
    outline-offset: 3px;
}

.billing-action-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 50%;
    font-size: 0.76rem;
    flex-shrink: 0;
    transition: background 0.35s ease, color 0.35s ease;
}

.billing-action-btn--stripe {
    color: #fff;
    background: linear-gradient(135deg, #635bff, #4f46e5);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 5px 16px rgba(99, 91, 255, 0.3);
}

.billing-action-btn--stripe .billing-action-icon {
    background: rgba(255, 255, 255, 0.22);
    color: #fff;
}

.billing-action-btn--stripe:hover {
    color: #fff;
    box-shadow: 0 8px 22px rgba(99, 91, 255, 0.4);
}

.billing-action-btn--paypal {
    color: #1e40af;
    background: var(--surface);
    border-color: rgba(37, 99, 235, 0.28);
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.08);
}

.billing-action-btn--paypal .billing-action-icon {
    background: rgba(37, 99, 235, 0.1);
    color: #2563eb;
}

.billing-action-btn--paypal:hover:not(.billing-action-btn--disabled) {
    color: #fff;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    border-color: transparent;
    box-shadow: 0 7px 20px rgba(37, 99, 235, 0.32);
}

.billing-action-btn--paypal:hover:not(.billing-action-btn--disabled) .billing-action-icon {
    background: rgba(255, 255, 255, 0.22);
    color: #fff;
}

.billing-action-btn--coins {
    color: #b45309;
    background: var(--surface);
    border-color: rgba(245, 158, 11, 0.35);
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.1);
}

.billing-action-btn--coins .billing-action-icon {
    background: rgba(245, 158, 11, 0.14);
    color: #d97706;
}

.billing-action-btn--coins:hover {
    color: #fff;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    border-color: transparent;
    box-shadow: 0 7px 20px rgba(245, 158, 11, 0.32);
}

.billing-action-btn--coins:hover .billing-action-icon {
    background: rgba(255, 255, 255, 0.22);
    color: #fff;
}

.billing-action-btn--disabled {
    opacity: 0.55;
    cursor: not-allowed;
    transform: none;
    color: var(--text-muted);
    background: var(--surface-2, #f1f5f9);
    border-color: var(--card-border, #e2e8f0);
    box-shadow: none;
}

.billing-action-btn--disabled .billing-action-icon {
    background: rgba(100, 116, 139, 0.12);
    color: var(--text-muted);
}

[data-theme="dark"] .billing-action-btn--paypal:not(.billing-action-btn--disabled) {
    background: rgba(15, 23, 42, 0.55);
    color: #93c5fd;
}

[data-theme="dark"] .billing-action-btn--coins {
    background: rgba(15, 23, 42, 0.55);
    color: #fcd34d;
}

[data-theme="dark"] .billing-action-btn--disabled {
    background: rgba(15, 23, 42, 0.4);
    border-color: var(--card-border);
}

.billing-action-text--short {
    display: none;
}

@media (max-width: 767.98px) {
    .billing-pay-actions-toolbar {
        width: 100%;
        gap: 0.35rem;
        padding: 0.35rem;
        border-radius: 0.85rem;
    }

    .billing-action-btn {
        flex: 1 1 auto;
        justify-content: center;
        min-width: 0;
        gap: 0.35rem;
        padding: 0.4rem 0.65rem 0.4rem 0.4rem;
        font-size: 0.74rem;
    }

    .billing-action-icon {
        width: 1.45rem;
        height: 1.45rem;
        font-size: 0.64rem;
    }
}

@media (max-width: 575.98px) {
    .billing-pay-actions-toolbar {
        gap: 0.3rem;
        padding: 0.3rem;
        border-radius: 0.7rem;
    }

    .billing-action-btn {
        padding: 0.32rem 0.5rem 0.32rem 0.32rem;
        font-size: 0.68rem;
        gap: 0.28rem;
    }

    .billing-action-icon {
        width: 1.25rem;
        height: 1.25rem;
        font-size: 0.58rem;
    }

    .billing-action-text--full {
        display: none;
    }

    .billing-action-text--short {
        display: inline;
    }
}

.billing-usage-desc {
    color: var(--text-muted);
}

.billing-chunk-usage-panel {
    padding: 1rem 1.15rem;
    border-radius: var(--radius-md);
    border: 1px solid rgba(59, 130, 246, 0.28);
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.08), rgba(99, 102, 241, 0.05));
}

.billing-chunk-usage-panel--at-limit {
    border-color: rgba(245, 158, 11, 0.38);
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1), rgba(234, 88, 12, 0.05));
}

.billing-chunk-usage-panel-head {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.85rem;
}

.billing-chunk-usage-panel-icon {
    flex-shrink: 0;
    width: 2.25rem;
    height: 2.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.5rem;
    font-size: 0.95rem;
    background: rgba(59, 130, 246, 0.14);
    color: var(--brand-blue, #2563eb);
}

.billing-chunk-usage-panel--at-limit .billing-chunk-usage-panel-icon {
    background: rgba(245, 158, 11, 0.16);
    color: #d97706;
}

.billing-chunk-usage-panel-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
}

.billing-chunk-usage-panel-subtitle {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-top: 0.15rem;
}

.billing-chunk-usage-progress-wrap {
    margin-bottom: 0.85rem;
}

.billing-chunk-usage-progress-label {
    display: flex;
    justify-content: space-between;
    gap: 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 0.35rem;
}

.billing-chunk-usage-progress {
    height: 0.5rem;
    border-radius: 999px;
    background: var(--surface-2);
    border: 1px solid var(--card-border);
    overflow: hidden;
}

.billing-chunk-usage-progress-bar {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--brand-blue, #3b82f6), #6366f1);
    transition: width 0.25s ease;
}

.billing-chunk-usage-panel--at-limit .billing-chunk-usage-progress-bar {
    background: linear-gradient(90deg, #f59e0b, #ea580c);
}

.billing-chunk-usage-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

@media (max-width: 575.98px) {
    .billing-chunk-usage-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.billing-chunk-usage-stat {
    padding: 0.45rem 0.55rem;
    border-radius: 0.45rem;
    background: var(--surface);
    border: 1px solid var(--card-border);
    text-align: center;
}

.billing-chunk-usage-stat-label {
    display: block;
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-muted);
    margin-bottom: 0.15rem;
}

.billing-chunk-usage-stat-value {
    display: block;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-primary);
}

.billing-chunk-usage-panel-foot {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.billing-chunk-usage-panel-foot strong {
    color: var(--text-primary);
}

.billing-usage-row-chunks td {
    background: color-mix(in srgb, rgba(59, 130, 246, 0.08) 70%, transparent 30%);
}

.billing-usage-row-chunks td:first-child {
    border-left: 3px solid var(--brand-blue, #3b82f6);
}

.billing-chunk-limit-increase {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid color-mix(in srgb, var(--card-border) 80%, transparent 20%);
}

.billing-chunk-limit-increase-label {
    display: block;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-primary);
    margin-bottom: 0.35rem;
}

.billing-chunk-limit-increase-hint,
.billing-chunk-limit-increase-foot {
    font-size: 0.8125rem;
    color: var(--text-muted);
}

.billing-chunk-limit-increase-hint {
    margin-bottom: 0.65rem;
}

.billing-chunk-limit-increase-controls {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 0.75rem;
}

.billing-chunk-limit-input {
    min-width: 9rem;
    max-width: 12rem;
    font-variant-numeric: tabular-nums;
}

#billingQuantitiesForm .ui-data-table {
    table-layout: fixed;
    width: 100%;
}

#billingQuantitiesForm .ui-data-table th:first-child,
#billingQuantitiesForm .ui-data-table td:first-child {
    width: 46%;
}

#billingQuantitiesForm .ui-data-table th:nth-child(2),
#billingQuantitiesForm .ui-data-table td:nth-child(2) {
    width: 18%;
}

#billingQuantitiesForm .ui-data-table th:nth-child(3),
#billingQuantitiesForm .ui-data-table td:nth-child(3) {
    width: 18%;
}

#billingQuantitiesForm .ui-data-table th:nth-child(4),
#billingQuantitiesForm .ui-data-table td:nth-child(4) {
    width: 18%;
}

#billingQuantitiesForm .billing-usage-qty-cell {
    vertical-align: middle;
}

#billingQuantitiesForm .billing-usage-qty-cell .billing-quantity-input {
    width: 5.25rem;
    max-width: 100%;
    min-width: 0;
    height: 1.85rem;
    padding: 0.15rem 0.4rem;
    font-size: 0.78rem;
}

.billing-chunk-limit-bump-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.billing-usage-qty-cell--chunk {
    min-width: 10rem;
}

#billingQuantitiesForm .billing-usage-qty-cell--chunk {
    min-width: 0;
}

.billing-usage-card-actions {
    margin-top: 1rem;
}

.billing-usage-card-actions-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 0.35rem;
    padding: 0.35rem;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.06) 0%, var(--surface-2) 48%, rgba(16, 185, 129, 0.05) 100%);
    border: 1px solid rgba(99, 102, 241, 0.12);
    border-radius: 0.85rem;
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.05) inset,
        0 4px 14px rgba(15, 23, 42, 0.04);
}

.billing-usage-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.38rem 0.65rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 600;
    line-height: 1;
    border: 1px solid transparent;
    cursor: pointer;
    font-family: inherit;
    white-space: nowrap;
    flex: 0 0 auto;
    transition:
        transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 0.35s cubic-bezier(0.22, 1, 0.36, 1),
        background 0.35s ease,
        border-color 0.35s ease,
        color 0.35s ease;
}

.billing-usage-action-btn:hover {
    transform: translateY(-2px);
}

.billing-usage-action-btn:focus-visible {
    outline: 2px solid var(--brand);
    outline-offset: 3px;
}

.billing-usage-action-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 50%;
    font-size: 0.68rem;
    flex-shrink: 0;
    transition: background 0.35s ease, color 0.35s ease;
}

.billing-usage-action-text--short {
    display: none;
}

.billing-usage-action-btn--pdf {
    color: var(--text-primary);
    background: var(--surface);
    border-color: rgba(148, 163, 184, 0.35);
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.05);
}

.billing-usage-action-btn--pdf .billing-usage-action-icon {
    background: rgba(239, 68, 68, 0.12);
    color: #dc2626;
}

.billing-usage-action-btn--pdf:hover {
    color: var(--text-primary);
    border-color: rgba(239, 68, 68, 0.35);
    box-shadow: 0 6px 16px rgba(239, 68, 68, 0.12);
}

.billing-usage-action-btn--pdf:hover .billing-usage-action-icon {
    background: rgba(239, 68, 68, 0.18);
}

.billing-usage-action-btn--save {
    color: #fff;
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 5px 16px rgba(99, 102, 241, 0.28);
}

.billing-usage-action-btn--save .billing-usage-action-icon {
    background: rgba(255, 255, 255, 0.22);
    color: #fff;
}

.billing-usage-action-btn--save:hover {
    color: #fff;
    box-shadow: 0 8px 22px rgba(99, 102, 241, 0.38);
}

[data-theme="dark"] .billing-usage-card-actions-toolbar {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.12) 0%, rgba(15, 23, 42, 0.45) 48%, rgba(16, 185, 129, 0.08) 100%);
    border-color: rgba(99, 102, 241, 0.2);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
}

[data-theme="dark"] .billing-usage-action-btn--pdf {
    background: rgba(15, 23, 42, 0.55);
    border-color: rgba(148, 163, 184, 0.25);
    color: rgba(255, 255, 255, 0.92);
}

[data-theme="dark"] .billing-usage-action-btn--pdf .billing-usage-action-icon {
    background: rgba(239, 68, 68, 0.2);
    color: #fca5a5;
}

@media (max-width: 767.98px) {
    .billing-usage-card-actions-toolbar {
        justify-content: flex-end;
    }

    .billing-usage-action-btn {
        padding: 0.34rem 0.55rem;
        font-size: 0.72rem;
        gap: 0.25rem;
    }

    .billing-usage-action-icon {
        width: 1.35rem;
        height: 1.35rem;
        font-size: 0.62rem;
    }
}

@media (max-width: 575.98px) {
    .billing-usage-card-actions-toolbar {
        gap: 0.28rem;
        padding: 0.28rem;
        border-radius: 0.7rem;
    }

    .billing-usage-action-btn {
        padding: 0.3rem 0.45rem;
        font-size: 0.66rem;
        gap: 0.22rem;
    }

    .billing-usage-action-icon {
        width: 1.2rem;
        height: 1.2rem;
        font-size: 0.56rem;
    }

    .billing-usage-action-text--full {
        display: none;
    }

    .billing-usage-action-text--short {
        display: inline;
    }
}

.billing-chunk-limit-table-value {
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.billing-chunk-usage-panel--at-limit .billing-chunk-limit-increase {
    border-top-color: color-mix(in srgb, rgba(245, 158, 11, 0.45) 60%, var(--card-border) 40%);
}

.billing-chunk-usage-panel--at-limit .billing-chunk-limit-increase-label {
    color: #b45309;
}

[data-theme="dark"] .billing-chunk-usage-panel--at-limit .billing-chunk-limit-increase-label {
    color: #fbbf24;
}

[data-theme="dark"] .billing-chunk-usage-panel {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.16), rgba(99, 102, 241, 0.08));
    border-color: rgba(96, 165, 250, 0.32);
}

[data-theme="dark"] .billing-chunk-usage-panel--at-limit {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.14), rgba(234, 88, 12, 0.08));
    border-color: rgba(251, 191, 36, 0.35);
}

[data-theme="dark"] .billing-chunk-usage-panel-icon {
    background: rgba(59, 130, 246, 0.22);
    color: #93c5fd;
}

[data-theme="dark"] .billing-chunk-usage-panel--at-limit .billing-chunk-usage-panel-icon {
    background: rgba(245, 158, 11, 0.22);
    color: #fbbf24;
}

[data-theme="dark"] .billing-chunk-usage-stat {
    background: rgba(15, 23, 42, 0.45);
    border-color: rgba(148, 163, 184, 0.2);
}

[data-theme="dark"] .billing-chunk-usage-stat-value {
    color: #ffffff;
}

[data-theme="dark"] .billing-chunk-usage-progress-bar {
    background: linear-gradient(90deg, #60a5fa, #818cf8);
}

[data-theme="dark"] .billing-chunk-usage-panel--at-limit .billing-chunk-usage-progress-bar {
    background: linear-gradient(90deg, #fbbf24, #f97316);
}

[data-theme="dark"] .billing-usage-row-chunks td {
    background: rgba(59, 130, 246, 0.12);
}

/* Billing — usage meter (pay subscription card) */
.billing-usage-meter-item {
    padding: 0.65rem 0.75rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--card-border);
    background: var(--surface-2);
}

.billing-usage-meter-item--unused {
    opacity: 0.55;
}

.billing-usage-meter-item--chunks {
    border-color: rgba(59, 130, 246, 0.28);
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.08), rgba(99, 102, 241, 0.04));
}

.billing-usage-meter-item--chunks.billing-usage-meter-item--at-limit {
    border-color: rgba(245, 158, 11, 0.35);
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1), rgba(234, 88, 12, 0.04));
}

.billing-usage-meter-item-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.45rem;
}

.billing-usage-meter-item-label {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-primary);
}

.billing-usage-meter-item-icon {
    width: 1.5rem;
    height: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.35rem;
    font-size: 0.7rem;
    background: rgba(99, 102, 241, 0.12);
    color: var(--brand-blue, #2563eb);
}

.billing-usage-meter-item--chunks .billing-usage-meter-item-icon {
    background: rgba(59, 130, 246, 0.14);
}

.billing-usage-meter-item--chunks.billing-usage-meter-item--at-limit .billing-usage-meter-item-icon {
    background: rgba(245, 158, 11, 0.16);
    color: #d97706;
}

.billing-usage-meter-item-count {
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.15rem 0.45rem;
    border-radius: 999px;
    color: var(--brand-blue, #2563eb);
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    white-space: nowrap;
}

.billing-usage-meter-item--chunks.billing-usage-meter-item--at-limit .billing-usage-meter-item-count {
    color: #b45309;
    background: rgba(245, 158, 11, 0.12);
    border-color: rgba(245, 158, 11, 0.28);
}

.billing-usage-meter-item-track {
    height: 7px;
    border-radius: 999px;
    background: var(--surface);
    border: 1px solid var(--card-border);
    overflow: hidden;
}

.billing-usage-meter-item-bar {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--brand-blue, #3b82f6), #6366f1);
    transition: width 0.25s ease;
}

.billing-usage-meter-item--chunks.billing-usage-meter-item--at-limit .billing-usage-meter-item-bar {
    background: linear-gradient(90deg, #f59e0b, #ea580c);
}

.billing-usage-meter-item-foot {
    display: flex;
    justify-content: space-between;
    gap: 0.35rem;
    margin-top: 0.35rem;
    font-size: 0.72rem;
    color: var(--text-muted);
}

[data-theme="dark"] .billing-usage-meter-item {
    background: rgba(15, 23, 42, 0.35);
    border-color: rgba(148, 163, 184, 0.2);
}

[data-theme="dark"] .billing-usage-meter-item-label {
    color: #ffffff;
}

[data-theme="dark"] .billing-usage-meter-item--chunks {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.14), rgba(99, 102, 241, 0.08));
    border-color: rgba(96, 165, 250, 0.3);
}

[data-theme="dark"] .billing-usage-meter-item--chunks.billing-usage-meter-item--at-limit {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.14), rgba(234, 88, 12, 0.08));
    border-color: rgba(251, 191, 36, 0.32);
}

[data-theme="dark"] .billing-usage-meter-item-icon {
    background: rgba(99, 102, 241, 0.22);
    color: #a5b4fc;
}

[data-theme="dark"] .billing-usage-meter-item-count {
    color: #93c5fd;
    background: rgba(59, 130, 246, 0.18);
    border-color: rgba(96, 165, 250, 0.28);
}

[data-theme="dark"] .billing-usage-meter-item--chunks.billing-usage-meter-item--at-limit .billing-usage-meter-item-count {
    color: #fcd34d;
    background: rgba(245, 158, 11, 0.18);
    border-color: rgba(251, 191, 36, 0.3);
}

[data-theme="dark"] .billing-usage-meter-item-bar {
    background: linear-gradient(90deg, #60a5fa, #818cf8);
}

[data-theme="dark"] .billing-usage-meter-item--chunks.billing-usage-meter-item--at-limit .billing-usage-meter-item-bar {
    background: linear-gradient(90deg, #fbbf24, #f97316);
}

.settings-call-providers-table-wrap {
    border: 1px solid var(--card-border);
    border-radius: 10px;
    overflow: hidden;
}

.settings-call-providers-table {
    margin-bottom: 0;
}

.settings-call-providers-table .data-table-empty p.settings-call-providers-empty-text {
    color: var(--text-primary);
}

.settings-call-providers-table .data-table-empty p.settings-call-providers-empty-text strong {
    color: inherit;
}

[data-theme="dark"] .settings-call-providers-table .data-table-empty p.settings-call-providers-empty-text {
    color: #fff;
}

.settings-call-providers-table tbody tr.settings-call-provider-row--active {
    background: rgba(var(--bs-success-rgb), 0.06);
}

.settings-call-provider-fields-title {
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-muted);
    margin: 0.5rem 0 0.85rem;
}

.settings-call-credentials-info-btn {
    width: 1.75rem;
    height: 1.75rem;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    vertical-align: middle;
}

.settings-call-credentials-help-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.settings-call-credentials-help-block {
    border: 1px solid var(--card-border);
    border-radius: 12px;
    padding: 1rem 1.1rem;
    background: var(--surface-muted, rgba(0, 0, 0, 0.02));
}

.settings-call-credentials-help-head {
    display: flex;
    gap: 0.85rem;
    align-items: flex-start;
    margin-bottom: 0.75rem;
}

.settings-call-credentials-help-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(var(--bs-primary-rgb), 0.12);
    color: var(--brand-blue, var(--bs-primary));
    flex-shrink: 0;
}

.settings-call-credentials-help-head h6 {
    font-weight: 700;
    color: var(--text-primary);
}

.settings-call-credentials-help-steps {
    margin: 0;
    padding-left: 1.15rem;
    color: var(--text-muted);
}

.settings-call-credentials-help-steps li + li {
    margin-top: 0.35rem;
}

.settings-call-credentials-help-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.settings-call-credentials-help-fields {
    color: var(--text-muted);
}

[data-theme="dark"] #companyCallCredentialsHelpModal .settings-card-desc,
[data-theme="dark"] #companyCallCredentialsHelpModal .text-muted,
[data-theme="dark"] #companyCallCredentialsHelpModal .settings-call-credentials-help-steps,
[data-theme="dark"] #companyCallCredentialsHelpModal .settings-call-credentials-help-fields {
    color: #fff !important;
    opacity: 0.92;
}

.settings-tab-panels .row,
.chatbot-detail-tab-panels .row {
    align-items: flex-start;
}

.widget-setup-tabs {
    display: inline-flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0.15rem;
    width: auto;
    max-width: 100%;
    padding: 0.15rem;
    border: 1px solid var(--card-border);
    border-radius: 12px;
    background: var(--surface-2);
}

.widget-setup-tabs .nav-item {
    flex: 0 0 auto;
}

.widget-setup-tabs .nav-link {
    width: auto;
    border: 1px solid transparent;
    border-radius: 8px;
    padding: 0.3rem 0.65rem;
    font-size: 0.72rem;
    font-weight: 600;
    line-height: 1.2;
    color: var(--text-muted);
    background: transparent;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.widget-setup-tabs .nav-link:hover {
    color: var(--text-primary);
    border-color: rgba(59, 130, 246, 0.3);
    background: rgba(59, 130, 246, 0.08);
}

.widget-setup-tabs .nav-link.active {
    color: #ffffff;
    border-color: var(--brand-blue);
    background: var(--brand-blue);
    box-shadow: 0 1px 2px rgba(59, 130, 246, 0.25);
}

[data-theme="dark"] .widget-setup-tabs {
    background: rgba(15, 23, 42, 0.65);
    border-color: rgba(148, 163, 184, 0.3);
}

[data-theme="dark"] .widget-setup-tabs .nav-link:hover {
    border-color: rgba(96, 165, 250, 0.45);
    background: rgba(59, 130, 246, 0.2);
}

.settings-tab-panels .dash-card,
.chatbot-detail-tab-panels .dash-card {
    height: auto;
}

.settings-tab-panels form.dash-card {
    display: flex;
    flex-direction: column;
}

.settings-card-footer {
    display: flex;
    justify-content: flex-end;
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid var(--surface-2);
}

.settings-website-picker .ui-select {
    max-width: 100%;
}

.opening-hours-grid {
    border: 1px solid var(--card-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--surface-2);
}

.opening-hours-grid.is-disabled {
    opacity: 0.55;
    pointer-events: none;
}

.opening-hours-head,
.opening-hours-row {
    display: grid;
    grid-template-columns: 1fr 52px 1fr 1fr;
    gap: 0.5rem;
    align-items: center;
    padding: 0.45rem 0.65rem;
}

.opening-hours-head {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-muted);
    background: var(--surface);
    border-bottom: 1px solid var(--card-border);
}

.opening-hours-row {
    border-bottom: 1px solid var(--card-border);
    background: var(--surface);
}

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

.opening-hours-day {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.opening-hours-closed {
    display: flex;
    justify-content: center;
    margin: 0;
}

.opening-hours-time {
    min-width: 0;
    border-color: var(--card-border);
    background: var(--surface-2);
    font-size: 0.8rem;
    height: 2rem;
    padding: 0 0.4rem;
}

.opening-hours-time:disabled {
    opacity: 0.45;
}

@media (max-width: 575.98px) {
    .opening-hours-head,
    .opening-hours-row {
        grid-template-columns: 1fr 44px 1fr 1fr;
        gap: 0.35rem;
        padding: 0.4rem 0.5rem;
    }
}

/* Website detail */
.website-detail-back {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-muted);
    text-decoration: none;
}

.website-detail-back:hover {
    color: var(--brand-blue);
}

.website-detail-panel-body {
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

.website-detail-header-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem 1rem;
    width: 100%;
}

.website-detail-panel-body .website-detail-hero {
    width: 100%;
}

.website-detail-panel-body .website-detail-hero-meta {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
}

.website-detail-hero {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    min-width: 0;
    width: 100%;
}

.website-detail-hero-main {
    display: flex;
    align-items: center;
    gap: 1rem;
    min-width: 0;
    width: 100%;
}

.website-detail-hero-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.website-detail-hero-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.45rem 1rem;
}

.website-detail-hero-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 0.85rem;
    min-width: 0;
}

.website-detail-hero-toolbar-sep {
    width: 1px;
    align-self: stretch;
    min-height: 1.5rem;
    background: var(--card-border);
    flex-shrink: 0;
}

.website-detail-hero-widgets {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.45rem 0.65rem;
    min-width: 0;
}

.website-detail-hero-widgets-label {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--text-muted);
    white-space: nowrap;
    flex-shrink: 0;
}

.website-detail-hero-widgets-label i {
    font-size: 0.72rem;
    color: var(--text-muted);
}

.website-detail-hero-widgets .website-widget-mode {
    flex-direction: row;
    align-items: center;
    gap: 0.45rem;
}

.website-detail-hero-title-block {
    min-width: 0;
}

.website-detail-hero-title-row {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.45rem 0.85rem;
}

.website-detail-hero-title.page-header-panel-title {
    margin: 0;
    font-size: 1.5rem;
    line-height: 1.2;
}

.website-detail-hero-company {
    margin-top: 0;
    font-size: 0.88rem;
    color: var(--text-secondary);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem 0.65rem;
}

.website-detail-hero-company-id {
    font-size: 0.78rem;
    color: var(--text-muted);
    padding: 0.1rem 0.45rem;
    border-radius: 999px;
    background: var(--surface-2);
    border: 1px solid var(--card-border);
}

.website-detail-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(145deg, rgba(59, 130, 246, 0.18) 0%, rgba(99, 102, 241, 0.1) 100%);
    color: var(--brand-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.website-detail-url-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    width: fit-content;
    max-width: 100%;
    padding: 0.4rem 0.75rem;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--brand-blue);
    text-decoration: none;
    background: rgba(59, 130, 246, 0.08);
    border: 1px solid rgba(59, 130, 246, 0.22);
    transition: background 0.15s ease, border-color 0.15s ease;
}

.website-detail-url-pill span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.website-detail-url-pill:hover {
    color: var(--brand-blue);
    background: rgba(59, 130, 246, 0.14);
    border-color: rgba(59, 130, 246, 0.35);
}

.website-detail-url-pill-external {
    font-size: 0.7rem;
    opacity: 0.75;
    flex-shrink: 0;
}

.website-detail-url {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--brand-blue);
    text-decoration: none;
}

.website-detail-url:hover {
    text-decoration: underline;
}

.website-detail-badges {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem;
    flex-shrink: 0;
}

.website-detail-hero-meta-scroll {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    max-width: 100%;
    scrollbar-width: thin;
    scrollbar-color: rgba(99, 102, 241, 0.35) transparent;
}

.website-detail-hero-meta-scroll::-webkit-scrollbar {
    height: 6px;
}

.website-detail-hero-meta-scroll::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: rgba(99, 102, 241, 0.35);
}

.website-detail-hero-meta-scroll:focus-visible {
    outline: 2px solid var(--brand);
    outline-offset: 2px;
    border-radius: 10px;
}

.website-detail-hero-meta-grid {
    display: flex;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 0.85rem;
    margin: 0;
    min-width: 100%;
    width: max-content;
    padding-bottom: 0.15rem;
}

.website-detail-hero-meta-cell {
    flex: 1 0 10.5rem;
    min-width: 10.5rem;
    max-width: 14rem;
}

.website-detail-hero-meta-cell--user {
    flex-basis: 12.5rem;
    min-width: 12.5rem;
    max-width: 16rem;
}

.website-detail-hero-meta-cell--industries {
    flex: 2 0 15rem;
    min-width: 15rem;
    max-width: 24rem;
}

.website-detail-hero-meta-item {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    height: 100%;
    min-width: 0;
    padding: 0.75rem 1rem;
    border-radius: 10px;
    background: var(--surface-2);
    border: 1px solid var(--card-border);
}

.website-detail-hero-meta-icon {
    flex-shrink: 0;
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    color: var(--brand-blue);
    background: rgba(59, 130, 246, 0.12);
}

.website-detail-hero-meta-text {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    min-width: 0;
}

.website-detail-hero-meta-label {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
}

.website-detail-hero-meta-value {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.website-detail-hero-meta-sub,
.website-detail-hero-meta-link {
    font-size: 0.78rem;
    color: var(--text-muted);
    line-height: 1.35;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.website-detail-hero-meta-link {
    text-decoration: none;
    display: block;
    max-width: 100%;
}

.website-detail-hero-meta-industries-empty,
.website-detail-hero-meta-industries-actions {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0.5rem 0.75rem;
    min-width: 0;
}

.website-detail-hero-meta-industries-empty .btn,
.website-detail-hero-meta-industries-actions .btn {
    flex-shrink: 0;
}

.website-detail-hero-meta-industries-empty .website-detail-hero-meta-value-muted {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
}

.website-detail-hero-meta-industries-actions {
    justify-content: flex-start;
}

.website-detail-hero-meta-link:hover {
    color: var(--brand-blue);
    text-decoration: underline;
}

.website-detail-hero-meta-value-muted {
    color: var(--text-muted);
    font-weight: 500;
}

#websiteModal.website-modal--industries-only .website-form-general {
    display: none !important;
}

/* Scrollable body + pinned header/footer (form wraps all three) */
#websiteModal .modal-dialog.modal-dialog-scrollable {
    max-height: calc(100vh - 1rem);
}

#websiteModal .modal-dialog-scrollable .modal-content {
    max-height: calc(100vh - 1rem);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

#websiteModal #websiteForm {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
    max-height: 100%;
}

#websiteModal .modal-header,
#websiteModal .modal-footer {
    flex-shrink: 0;
}

#websiteModal .modal-dialog-scrollable .modal-body {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
}

#websiteModal .modal-footer {
    border-top: 1px solid var(--card-border);
    background: var(--surface-2);
}

@media (max-width: 767.98px) {
    #websiteModal .modal-dialog.modal-dialog-centered {
        min-height: calc(100% - 1rem);
        align-items: flex-start;
    }

    #websiteModal .modal-dialog-scrollable .modal-content {
        max-height: calc(100vh - 1rem);
    }
}

@media (max-width: 575.98px) {
    #websiteModal .modal-dialog {
        width: calc(100% - 1rem);
        max-width: none;
        margin: 0.5rem auto;
    }

    #websiteModal .modal-dialog.modal-dialog-centered {
        min-height: calc(100% - 1rem);
        align-items: flex-start;
    }

    #websiteModal .modal-dialog-scrollable .modal-content {
        max-height: calc(100vh - 1rem);
    }

    #websiteModal .modal-header {
        padding: 0.85rem 1rem;
    }

    #websiteModal .modal-body {
        padding: 1rem;
    }

    #websiteModal .modal-footer {
        display: flex;
        flex-wrap: wrap;
        gap: 0.5rem;
        padding: 0.75rem 1rem;
    }

    #websiteModal .modal-footer .btn {
        flex: 1 1 calc(50% - 0.25rem);
        min-width: 0;
    }
}

.website-form-industries-section {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.website-form-section-divider {
    height: 1px;
    margin: 0.15rem 0 0.35rem;
    background: var(--card-border);
}

.website-form-section-label {
    margin: 0;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-muted);
}

[data-theme="dark"] .website-form-section-label {
    color: rgba(255, 255, 255, 0.72);
}

#websiteModal.website-modal--industries-only .website-form-section-divider,
#websiteModal.website-modal--industries-only .website-form-section-label {
    display: none;
}

/* Set industries: narrower modal, more vertical space */
#websiteModal.website-modal--industries-only .modal-dialog {
    max-width: 34rem;
    width: calc(100% - 2rem);
    margin-top: 1.25rem;
    margin-bottom: 1.25rem;
}

#websiteModal.website-modal--industries-only .modal-content {
    max-height: calc(100vh - 2.5rem);
}

#websiteModal.website-modal--industries-only .modal-body {
    flex: 1 1 auto;
    min-height: 0;
    max-height: none;
    overflow-y: auto;
}

#websiteModal.website-modal--industries-only .modal-body > .row.g-3 {
    --bs-gutter-y: 1rem;
}

#websiteModal.website-modal--industries-only .industry-card-grid {
    grid-template-columns: 1fr;
}

#websiteModal.website-modal--industries-only .industry-card-select-scroll {
    max-height: min(26rem, 52vh);
}

[data-theme="dark"] .website-detail-hero-meta-item {
    background: rgba(255, 255, 255, 0.04);
}

[data-theme="dark"] .website-detail-hero-company-id {
    background: rgba(255, 255, 255, 0.06);
}

[data-theme="dark"] .website-detail-icon {
    background: linear-gradient(145deg, rgba(59, 130, 246, 0.25) 0%, rgba(99, 102, 241, 0.12) 100%);
}

.website-detail-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    justify-content: flex-end;
    width: auto;
}

.website-detail-layout {
    align-items: flex-start;
}

.knowledge-panel-full {
    width: 100%;
}

/* Knowledge area: Crawled pages | Your knowledge library (segmented tabs) */
.knowledge-nav-tabs {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.25rem;
    padding: 0.3rem;
    border: 1px solid var(--card-border);
    border-radius: var(--radius-md);
    background: var(--surface-2);
    border-bottom: none;
    max-width: 100%;
}

.knowledge-nav-tabs .nav-item {
    flex: 1 1 auto;
    min-width: 0;
}

.knowledge-nav-tabs .nav-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    width: 100%;
    min-width: 9.5rem;
    padding: 0.55rem 1.15rem;
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.25;
    color: var(--text-muted);
    text-decoration: none;
    background: transparent;
    border: 1px solid transparent;
    border-radius: calc(var(--radius-md) - 4px);
    transition: color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.knowledge-nav-tabs .nav-link i {
    font-size: 0.9rem;
    opacity: 0.75;
}

.knowledge-nav-tabs .nav-link:hover {
    color: var(--text-primary);
    background: var(--surface-hover);
    border-color: transparent;
    text-decoration: none;
}

.knowledge-nav-tabs .nav-link:hover i {
    opacity: 1;
}

.knowledge-nav-tabs .nav-link.active {
    color: var(--text-primary);
    background: var(--surface);
    border-color: var(--card-border);
    box-shadow: var(--shadow-sm);
}

.knowledge-nav-tabs .nav-link.active i {
    color: var(--brand-blue, var(--bs-primary));
    opacity: 1;
}

.knowledge-nav-tabs .nav-link:focus-visible {
    outline: 2px solid var(--border-focus);
    outline-offset: 2px;
}

[data-theme="dark"] .knowledge-nav-tabs {
    background: rgba(15, 23, 42, 0.55);
    border-color: var(--card-border);
}

[data-theme="dark"] .knowledge-nav-tabs .nav-link.active {
    background: var(--surface);
    border-color: rgba(148, 163, 184, 0.25);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
}

[data-theme="dark"] .knowledge-nav-tabs .nav-link.active i {
    color: #a5b4fc;
}

@media (max-width: 575.98px) {
    .knowledge-nav-tabs {
        display: flex;
        width: 100%;
    }

    .knowledge-nav-tabs .nav-link {
        min-width: 0;
        padding: 0.5rem 0.65rem;
        font-size: 0.8125rem;
    }

    .knowledge-nav-tabs .nav-link span {
        display: none;
    }

    .knowledge-nav-tabs .nav-link i {
        font-size: 1rem;
        opacity: 0.85;
    }

    .knowledge-nav-tabs .nav-link.active i {
        opacity: 1;
    }
}

.knowledge-library-formats-note {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0;
    padding: 0.85rem 1.1rem;
    font-size: 0.875rem;
    line-height: 1.5;
    color: var(--text-secondary);
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.08), rgba(99, 102, 241, 0.06));
    border: 1px solid rgba(59, 130, 246, 0.28);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.knowledge-library-formats-note-icon {
    flex-shrink: 0;
    margin-top: 0.15rem;
    font-size: 1.1rem;
    color: var(--brand-blue);
}

.knowledge-library-formats-note strong {
    color: var(--text-primary);
    font-weight: 600;
}

.knowledge-library-formats-note code {
    padding: 0.1rem 0.35rem;
    font-size: 0.8em;
    color: var(--brand-dark, #4f46e5);
    background: rgba(99, 102, 241, 0.12);
    border-radius: 4px;
}

[data-theme="dark"] .knowledge-library-formats-note {
    color: var(--text-secondary);
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.14), rgba(99, 102, 241, 0.1));
    border-color: rgba(96, 165, 250, 0.35);
}

[data-theme="dark"] .knowledge-library-formats-note-icon {
    color: #93c5fd;
}

[data-theme="dark"] .knowledge-library-formats-note code {
    color: #c4b5fd;
    background: rgba(139, 92, 246, 0.2);
}

.knowledge-library-summary-input {
    min-height: 4.5rem;
    max-height: 8rem;
    resize: vertical;
    line-height: 1.45;
}

/* Knowledge library: Write | Upload segmented tabs (no blue) */
.knowledge-library-content-tabs {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.25rem;
    padding: 0.3rem;
    border: 1px solid var(--card-border);
    border-radius: var(--radius-md);
    background: var(--surface-2);
    max-width: 100%;
}

.knowledge-library-content-tabs .nav-item {
    flex: 1 1 auto;
    min-width: 0;
}

.knowledge-library-content-tabs .nav-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    width: 100%;
    min-width: 8.5rem;
    padding: 0.55rem 1.15rem;
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.25;
    color: var(--text-muted);
    background: transparent;
    border: 1px solid transparent;
    border-radius: calc(var(--radius-md) - 4px);
    transition: color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.knowledge-library-content-tabs .nav-link i {
    font-size: 0.9rem;
    opacity: 0.75;
}

.knowledge-library-content-tabs .nav-link:hover {
    color: var(--text-primary);
    background: var(--surface-hover);
}

.knowledge-library-content-tabs .nav-link:hover i {
    opacity: 1;
}

.knowledge-library-content-tabs .nav-link.active {
    color: var(--text-primary);
    background: var(--surface);
    border-color: var(--card-border);
    box-shadow: var(--shadow-sm);
}

.knowledge-library-content-tabs .nav-link.active i {
    color: var(--brand);
    opacity: 1;
}

.knowledge-library-content-tabs .nav-link:focus-visible {
    outline: 2px solid var(--border-focus);
    outline-offset: 2px;
}

[data-theme="dark"] .knowledge-library-content-tabs {
    background: rgba(15, 23, 42, 0.55);
    border-color: var(--card-border);
}

[data-theme="dark"] .knowledge-library-content-tabs .nav-link.active {
    background: var(--surface);
    border-color: rgba(148, 163, 184, 0.25);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
}

[data-theme="dark"] .knowledge-library-content-tabs .nav-link.active i {
    color: #a5b4fc;
}

/* Sales tools segmented sub-nav (matches knowledge library tabs, no blue fill) */
.sales-tools-nav {
    display: inline-flex;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 0.2rem;
    width: fit-content;
    max-width: 100%;
    padding: 0.28rem;
    border: 1px solid var(--card-border);
    border-radius: var(--radius-md);
    background: var(--surface-2);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.sales-tools-nav::-webkit-scrollbar {
    display: none;
}

.sales-tools-nav-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    flex: 0 0 auto;
    padding: 0.5rem 0.85rem;
    font-size: 0.8125rem;
    font-weight: 600;
    line-height: 1.2;
    color: var(--text-muted);
    text-decoration: none;
    background: transparent;
    border: 1px solid transparent;
    border-radius: calc(var(--radius-md) - 4px);
    transition: color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.sales-tools-nav-link span {
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sales-tools-nav-link i {
    flex-shrink: 0;
    font-size: 0.82rem;
    opacity: 0.8;
}

.sales-tools-nav-link:hover {
    color: var(--text-primary);
    background: var(--surface-hover);
    text-decoration: none;
}

.sales-tools-nav-link:hover i {
    opacity: 1;
}

.sales-tools-nav-link.active {
    color: var(--text-primary);
    background: var(--surface);
    border-color: var(--card-border);
    box-shadow: var(--shadow-sm);
}

.sales-tools-nav-link.active i {
    color: var(--brand);
    opacity: 1;
}

.sales-tools-nav-link:focus-visible {
    outline: 2px solid var(--border-focus);
    outline-offset: 2px;
}

[data-theme="dark"] .sales-tools-nav {
    background: rgba(15, 23, 42, 0.55);
    border-color: var(--card-border);
}

[data-theme="dark"] .sales-tools-nav-link.active {
    background: var(--surface);
    border-color: rgba(148, 163, 184, 0.25);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
}

[data-theme="dark"] .sales-tools-nav-link.active i {
    color: #a5b4fc;
}

@media (max-width: 767.98px) {
    .sales-tools-nav {
        gap: 0.15rem;
        padding: 0.22rem;
    }

    .sales-tools-nav-link {
        flex: 0 0 auto;
        padding: 0.38rem 0.55rem;
        font-size: 0.64rem;
        gap: 0.22rem;
    }

    .sales-tools-nav-link i {
        font-size: 0.72rem;
    }
}

@media (max-width: 575.98px) {
    .sales-tools-nav-link {
        padding: 0.32rem 0.18rem;
        font-size: 0.56rem;
        gap: 0.18rem;
    }

    .sales-tools-nav-link i {
        font-size: 0.68rem;
    }
}

.sales-tools-lead-card {
    position: relative;
    padding: 0.95rem 1rem 0.95rem 1.1rem;
    margin-bottom: 0.65rem;
    border: 1px solid var(--card-border);
    border-radius: 12px;
    background: linear-gradient(135deg, var(--surface-2) 0%, var(--surface) 100%);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.sales-tools-lead-card:last-child {
    margin-bottom: 0;
}

.sales-tools-lead-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--brand-blue);
}

.sales-tools-lead-card--hot::before {
    background: #ef4444;
}

.sales-tools-lead-card--warm::before {
    background: #f59e0b;
}

.sales-tools-lead-card--cold::before {
    background: #94a3b8;
}

.sales-tools-lead-card:hover {
    border-color: rgba(99, 102, 241, 0.28);
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}

.sales-tools-lead-card-main {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    min-width: 0;
}

.sales-tools-lead-card-avatar {
    width: 40px;
    height: 40px;
    border-radius: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: rgba(99, 102, 241, 0.12);
    color: var(--brand);
    font-size: 0.9rem;
}

.sales-tools-lead-card--hot .sales-tools-lead-card-avatar {
    background: rgba(239, 68, 68, 0.12);
    color: #ef4444;
}

.sales-tools-lead-card--warm .sales-tools-lead-card-avatar {
    background: rgba(245, 158, 11, 0.14);
    color: #d97706;
}

.sales-tools-lead-card-content {
    flex: 1;
    min-width: 0;
}

.sales-tools-lead-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.65rem;
    margin-bottom: 0.35rem;
}

.sales-tools-lead-card-title-wrap {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    min-width: 0;
    flex: 1;
}

.sales-tools-lead-name {
    color: var(--text-primary);
    font-size: 0.92rem;
    font-weight: 700;
    line-height: 1.3;
    min-width: 0;
}

.sales-tools-lead-card-score {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    padding: 0.22rem 0.55rem;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.sales-tools-lead-card-score--hot {
    color: #b91c1c;
    background: rgba(239, 68, 68, 0.12);
}

.sales-tools-lead-card-score--warm {
    color: #b45309;
    background: rgba(245, 158, 11, 0.15);
}

.sales-tools-lead-card-score--cold {
    color: #475569;
    background: rgba(148, 163, 184, 0.18);
}

.sales-tools-lead-card-score--neutral {
    color: var(--brand-blue);
    background: rgba(59, 130, 246, 0.12);
}

.sales-tools-lead-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 0.85rem;
    font-size: 0.75rem;
    color: var(--text-muted);
    line-height: 1.35;
}

.sales-tools-lead-card-meta span {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    min-width: 0;
}

.sales-tools-lead-card-meta i {
    color: var(--brand-blue);
    font-size: 0.68rem;
    opacity: 0.85;
}

.sales-tools-lead-card-summary {
    margin: 0.55rem 0 0;
    font-size: 0.78rem;
    line-height: 1.45;
    color: var(--text-secondary);
}

.sales-tools-lead-card-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem 0.75rem;
    margin-top: 0.65rem;
    padding-top: 0.65rem;
    border-top: 1px solid var(--card-border);
}

.sales-tools-lead-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.sales-tools-lead-card-tag {
    display: inline-flex;
    align-items: center;
    padding: 0.15rem 0.45rem;
    border-radius: 999px;
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--brand-blue);
    background: rgba(59, 130, 246, 0.1);
}

[data-theme="dark"] .sales-tools-lead-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.06) 100%);
}

[data-theme="dark"] .sales-tools-lead-name {
    color: #f8fafc;
}

[data-theme="dark"] .sales-tools-lead-card-meta {
    color: rgba(255, 255, 255, 0.72);
}

[data-theme="dark"] .sales-tools-lead-card-summary {
    color: rgba(255, 255, 255, 0.82);
}

[data-theme="dark"] .sales-tools-lead-card-score--hot {
    color: #fca5a5;
    background: rgba(239, 68, 68, 0.18);
}

[data-theme="dark"] .sales-tools-lead-card-score--warm {
    color: #fcd34d;
    background: rgba(245, 158, 11, 0.18);
}

[data-theme="dark"] .sales-tools-lead-card-score--cold {
    color: #cbd5e1;
    background: rgba(148, 163, 184, 0.16);
}

[data-theme="dark"] .sales-tools-lead-card-score--neutral {
    color: #93c5fd;
    background: rgba(59, 130, 246, 0.18);
}

@media (max-width: 575.98px) {
    .sales-tools-lead-card {
        padding: 0.85rem 0.85rem 0.85rem 0.95rem;
    }

    .sales-tools-lead-card-avatar {
        width: 36px;
        height: 36px;
        font-size: 0.82rem;
    }

    .sales-tools-lead-card-head {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.35rem;
    }

    .sales-tools-lead-card-score {
        align-self: flex-start;
    }
}

.sales-tools-planner-card {
    display: flex;
    flex-direction: column;
    padding: 0;
    overflow: hidden;
}

.sales-tools-planner-card-head {
    padding: 1rem 1.1rem 0.95rem;
    border-bottom: 1px solid var(--card-border);
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05) 0%, var(--surface) 55%, rgba(59, 130, 246, 0.04) 100%);
}

.sales-tools-planner-card-head-main {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    min-width: 0;
}

.sales-tools-planner-card-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 0.95rem;
    border: 1px solid transparent;
}

.sales-tools-planner-card-icon--scheduled {
    color: var(--brand-blue);
    background: rgba(59, 130, 246, 0.12);
    border-color: rgba(59, 130, 246, 0.18);
}

.sales-tools-planner-card-icon--suggested {
    color: var(--success);
    background: rgba(16, 185, 129, 0.12);
    border-color: rgba(16, 185, 129, 0.18);
}

.sales-tools-planner-card-head-text {
    flex: 1;
    min-width: 0;
}

.sales-tools-planner-card-title-row {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    flex-wrap: wrap;
    margin-bottom: 0.2rem;
}

.sales-tools-planner-card-title {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.3;
}

.sales-tools-planner-card-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.55rem;
    height: 1.55rem;
    padding: 0 0.45rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--brand-blue);
    background: rgba(59, 130, 246, 0.12);
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.sales-tools-planner-card-desc {
    font-size: 0.8125rem;
    line-height: 1.45;
    color: var(--text-muted);
}

.sales-tools-planner-card-body {
    padding: 1rem 1.1rem 1.1rem;
    flex: 1;
}

.sales-tools-planner-date-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    flex-shrink: 0;
    padding: 0.28rem 0.55rem;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--brand-blue);
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.18);
    white-space: nowrap;
}

.sales-tools-planner-date-chip i {
    font-size: 0.62rem;
    opacity: 0.85;
}

.sales-tools-planner-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 180px;
    padding: 1.5rem 1rem;
    border: 1px dashed var(--card-border);
    border-radius: var(--radius-md);
    background: var(--surface-2);
}

.sales-tools-planner-empty-icon {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.85rem;
    color: var(--text-muted);
    background: var(--surface);
    border: 1px solid var(--card-border);
    box-shadow: var(--shadow-sm);
    font-size: 1.1rem;
}

.sales-tools-planner-empty-title {
    margin: 0 0 0.35rem;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
}

.sales-tools-planner-empty-text {
    max-width: 26rem;
    font-size: 0.8125rem;
    line-height: 1.5;
    color: var(--text-muted);
}

[data-theme="dark"] .sales-tools-planner-card-head {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.12) 0%, var(--surface) 55%, rgba(59, 130, 246, 0.08) 100%);
    border-bottom-color: var(--card-border);
}

[data-theme="dark"] .sales-tools-planner-card-icon--scheduled {
    color: #93c5fd;
    background: rgba(59, 130, 246, 0.18);
    border-color: rgba(96, 165, 250, 0.28);
}

[data-theme="dark"] .sales-tools-planner-card-icon--suggested {
    color: #6ee7b7;
    background: rgba(16, 185, 129, 0.16);
    border-color: rgba(52, 211, 153, 0.28);
}

[data-theme="dark"] .sales-tools-planner-card-count,
[data-theme="dark"] .sales-tools-planner-date-chip {
    color: #93c5fd;
    background: rgba(59, 130, 246, 0.16);
    border-color: rgba(96, 165, 250, 0.28);
}

[data-theme="dark"] .sales-tools-planner-empty {
    background: rgba(15, 23, 42, 0.35);
    border-color: var(--card-border);
}

[data-theme="dark"] .sales-tools-planner-empty-icon {
    background: var(--surface-2);
    color: #cbd5e1;
}

.sales-tools-follow-up-card {
    display: flex;
    flex-direction: column;
    padding: 0;
    overflow: hidden;
}

.sales-tools-follow-up-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 1rem 1.1rem 0.95rem;
    border-bottom: 1px solid var(--card-border);
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05) 0%, var(--surface) 55%, rgba(139, 92, 246, 0.04) 100%);
}

.sales-tools-follow-up-card-lead {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    min-width: 0;
    flex: 1;
}

.sales-tools-follow-up-card-avatar {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.03em;
    color: var(--brand);
    background: rgba(99, 102, 241, 0.12);
    border: 1px solid rgba(99, 102, 241, 0.18);
}

.sales-tools-follow-up-card--hot .sales-tools-follow-up-card-avatar {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.12);
    border-color: rgba(239, 68, 68, 0.2);
}

.sales-tools-follow-up-card--warm .sales-tools-follow-up-card-avatar {
    color: #d97706;
    background: rgba(245, 158, 11, 0.14);
    border-color: rgba(245, 158, 11, 0.22);
}

.sales-tools-follow-up-card--cold .sales-tools-follow-up-card-avatar {
    color: #64748b;
    background: rgba(148, 163, 184, 0.16);
    border-color: rgba(148, 163, 184, 0.24);
}

.sales-tools-follow-up-card-lead-text {
    min-width: 0;
    flex: 1;
}

.sales-tools-follow-up-card-title-row {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    max-width: 100%;
    margin-bottom: 0.2rem;
}

.sales-tools-follow-up-card-name {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.3;
    min-width: 0;
}

.sales-tools-follow-up-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem 0.85rem;
    font-size: 0.78rem;
    color: var(--text-muted);
}

.sales-tools-follow-up-card-meta span {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    min-width: 0;
}

.sales-tools-follow-up-card-meta i {
    font-size: 0.72rem;
    opacity: 0.75;
}

.sales-tools-follow-up-card-body {
    padding: 1rem 1.1rem;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    flex: 1;
}

.sales-tools-follow-up-field {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    min-width: 0;
}

.sales-tools-follow-up-field-label {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.sales-tools-follow-up-field-value {
    padding: 0.7rem 0.8rem;
    border: 1px solid var(--card-border);
    border-radius: var(--radius-sm);
    background: var(--surface-2);
    color: var(--text-primary);
    font-size: 0.84rem;
    line-height: 1.45;
    word-break: break-word;
}

.sales-tools-follow-up-field-value--draft {
    min-height: 9.5rem;
    max-height: 12.5rem;
    overflow: auto;
    white-space: pre-wrap;
    font-size: 0.8125rem;
}

.sales-tools-follow-up-card-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.65rem;
    padding: 0.9rem 1.1rem 1rem;
    border-top: 1px solid var(--card-border);
    background: var(--surface-2);
}

.sales-tools-follow-up-schedule-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.32rem 0.6rem;
    border-radius: 999px;
    font-size: 0.74rem;
    font-weight: 600;
    color: var(--brand-blue);
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.18);
}

.sales-tools-follow-up-schedule-chip.is-unscheduled {
    color: var(--text-muted);
    background: var(--surface);
    border-color: var(--card-border);
}

.sales-tools-follow-up-schedule-chip i {
    font-size: 0.68rem;
    opacity: 0.85;
}

[data-theme="dark"] .sales-tools-follow-up-card-head {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.12) 0%, var(--surface) 55%, rgba(139, 92, 246, 0.08) 100%);
}

[data-theme="dark"] .sales-tools-follow-up-card--hot .sales-tools-follow-up-card-avatar {
    color: #fca5a5;
}

[data-theme="dark"] .sales-tools-follow-up-card--warm .sales-tools-follow-up-card-avatar {
    color: #fcd34d;
}

[data-theme="dark"] .sales-tools-follow-up-field-value {
    background: rgba(15, 23, 42, 0.35);
    border-color: var(--card-border);
    color: var(--text-secondary);
}

[data-theme="dark"] .sales-tools-follow-up-card-footer {
    background: rgba(15, 23, 42, 0.35);
}

[data-theme="dark"] .sales-tools-follow-up-schedule-chip {
    color: #93c5fd;
    background: rgba(59, 130, 246, 0.16);
    border-color: rgba(96, 165, 250, 0.28);
}

[data-theme="dark"] .sales-tools-follow-up-schedule-chip.is-unscheduled {
    color: var(--text-muted);
    background: var(--surface-2);
}

[data-theme="dark"] .sales-tools-stats .text-muted.small {
    color: #fff !important;
    opacity: 0.92;
}

@media (max-width: 767.98px) {
    .sales-tools-stats {
        --bs-gutter-x: 0.65rem;
        --bs-gutter-y: 0.65rem;
    }

    .sales-tools-stats .dash-card {
        padding: 0.8rem 0.85rem;
    }

    .sales-tools-stats .dash-card h3 {
        font-size: 1.2rem;
        line-height: 1.15;
    }

    .sales-tools-stats .text-muted.small {
        font-size: 0.68rem;
        line-height: 1.25;
        margin-bottom: 0.15rem !important;
    }

    .sales-tools-stats .data-table-avatar {
        width: 28px;
        height: 28px;
        font-size: 0.72rem;
        flex-shrink: 0;
    }

    .sales-tools-stats .d-flex.align-items-center.justify-content-between {
        gap: 0.35rem;
    }

    .sales-tools-stats .d-flex.align-items-center.justify-content-between > div {
        min-width: 0;
    }
}

@media (max-width: 575.98px) {
    .sales-tools-stats .dash-card h3 {
        font-size: 1.05rem;
    }

    .sales-tools-stats .text-muted.small {
        font-size: 0.62rem;
    }
}

.billing-invoice-totals {
    display: inline-flex;
    align-items: stretch;
    flex-wrap: wrap;
    gap: 0;
    padding: 0.35rem 0.45rem;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.06) 0%, var(--surface-2) 52%, rgba(245, 158, 11, 0.05) 100%);
    border: 1px solid rgba(99, 102, 241, 0.12);
    border-radius: 0.75rem;
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.05) inset,
        0 4px 14px rgba(15, 23, 42, 0.04);
}

.billing-invoice-totals-item {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.15rem 0.5rem;
}

.billing-invoice-totals-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.65rem;
    height: 1.65rem;
    border-radius: 0.45rem;
    font-size: 0.68rem;
    flex-shrink: 0;
}

.billing-invoice-totals-item--primary .billing-invoice-totals-icon {
    background: rgba(99, 102, 241, 0.14);
    color: var(--brand);
}

.billing-invoice-totals-item--invoices .billing-invoice-totals-icon {
    background: rgba(59, 130, 246, 0.12);
    color: #3b82f6;
}

.billing-invoice-totals-item--coins .billing-invoice-totals-icon {
    background: rgba(245, 158, 11, 0.14);
    color: #d97706;
}

.billing-invoice-totals-body {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
    gap: 0.05rem;
}

.billing-invoice-totals-label {
    font-size: 0.62rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.billing-invoice-totals-value {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text-primary);
    white-space: nowrap;
}

.billing-invoice-totals-item--primary .billing-invoice-totals-value {
    font-size: 0.9rem;
    color: var(--brand);
}

.billing-invoice-totals-divider {
    width: 1px;
    align-self: stretch;
    margin: 0.3rem 0.05rem;
    background: var(--card-border);
    opacity: 0.8;
}

[data-theme="dark"] .billing-invoice-totals {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.12) 0%, rgba(15, 23, 42, 0.45) 52%, rgba(245, 158, 11, 0.08) 100%);
    border-color: rgba(99, 102, 241, 0.2);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
}

[data-theme="dark"] .billing-invoice-totals-label {
    color: rgba(255, 255, 255, 0.58);
}

[data-theme="dark"] .billing-invoice-totals-value {
    color: rgba(255, 255, 255, 0.92);
}

[data-theme="dark"] .billing-invoice-totals-item--primary .billing-invoice-totals-value {
    color: #c7d2fe;
}

[data-theme="dark"] .billing-invoice-totals-item--primary .billing-invoice-totals-icon {
    background: rgba(99, 102, 241, 0.22);
    color: #a5b4fc;
}

[data-theme="dark"] .billing-invoice-totals-item--invoices .billing-invoice-totals-icon {
    background: rgba(59, 130, 246, 0.2);
    color: #93c5fd;
}

[data-theme="dark"] .billing-invoice-totals-item--coins .billing-invoice-totals-icon {
    background: rgba(245, 158, 11, 0.2);
    color: #fcd34d;
}

@media (max-width: 767.98px) {
    .billing-invoice-totals {
        width: 100%;
        justify-content: space-between;
        padding: 0.3rem 0.35rem;
        border-radius: 0.65rem;
    }

    .billing-invoice-totals-item {
        flex: 1 1 auto;
        min-width: 0;
        gap: 0.3rem;
        padding: 0.1rem 0.3rem;
    }

    .billing-invoice-totals-icon {
        width: 1.4rem;
        height: 1.4rem;
        font-size: 0.6rem;
        border-radius: 0.35rem;
    }

    .billing-invoice-totals-label {
        font-size: 0.55rem;
    }

    .billing-invoice-totals-value {
        font-size: 0.72rem;
    }

    .billing-invoice-totals-item--primary .billing-invoice-totals-value {
        font-size: 0.78rem;
    }

    .billing-invoice-totals-divider {
        display: none;
    }
}

@media (max-width: 575.98px) {
    .billing-invoice-totals {
        padding: 0.25rem 0.28rem;
        border-radius: 0.6rem;
    }

    .billing-invoice-totals-item {
        gap: 0.22rem;
        padding: 0.08rem 0.2rem;
    }

    .billing-invoice-totals-icon {
        width: 1.2rem;
        height: 1.2rem;
        font-size: 0.52rem;
    }

    .billing-invoice-totals-label {
        font-size: 0.5rem;
        letter-spacing: 0.02em;
    }

    .billing-invoice-totals-value {
        font-size: 0.65rem;
    }

    .billing-invoice-totals-item--primary .billing-invoice-totals-value {
        font-size: 0.7rem;
    }
}

/* Knowledge library: modern file upload */
.knowledge-library-file-input {
    position: absolute;
    width: 0.1px;
    height: 0.1px;
    opacity: 0;
    overflow: hidden;
    z-index: -1;
}

.knowledge-library-dropzone {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    min-height: 168px;
    padding: 1.5rem 1.25rem;
    margin: 0;
    border: 2px dashed var(--card-border);
    border-radius: var(--radius-md);
    background: linear-gradient(180deg, var(--surface-2) 0%, var(--surface) 100%);
    cursor: pointer;
    text-align: center;
    transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}

.knowledge-library-dropzone:hover {
    border-color: var(--brand-blue);
    background: linear-gradient(180deg, rgba(59, 130, 246, 0.06) 0%, var(--surface) 100%);
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.08);
}

.knowledge-library-dropzone.is-dragover {
    border-color: var(--brand-blue);
    background: rgba(59, 130, 246, 0.1);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.14);
    transform: scale(1.005);
}

.knowledge-library-dropzone.has-file {
    min-height: 132px;
    border-style: solid;
    border-color: rgba(59, 130, 246, 0.45);
    background: rgba(59, 130, 246, 0.06);
}

.knowledge-library-dropzone-icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: var(--brand-blue);
    background: var(--surface);
    border: 1px solid var(--card-border);
    box-shadow: var(--shadow-sm);
    margin-bottom: 0.25rem;
}

.knowledge-library-dropzone-title {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-secondary);
    max-width: 28rem;
    line-height: 1.45;
}

.knowledge-library-dropzone-title strong {
    color: var(--brand-blue);
    font-weight: 700;
}

.knowledge-library-dropzone-hint {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.knowledge-library-dropzone-filename {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    padding: 0 0.5rem;
}

.knowledge-library-dropzone-meta {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--brand-blue);
}

.knowledge-library-dropzone.has-file .knowledge-library-dropzone-hint,
.knowledge-library-dropzone.has-file .knowledge-library-dropzone-title {
    display: none;
}

.knowledge-library-dropzone.has-file .knowledge-library-dropzone-icon {
    width: 44px;
    height: 44px;
    font-size: 1rem;
    color: var(--success);
    border-color: rgba(16, 185, 129, 0.35);
}

.knowledge-library-format-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 0.85rem;
}

.knowledge-library-format-chip {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.55rem;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    color: var(--text-muted);
    background: var(--surface-2);
    border: 1px solid var(--card-border);
    border-radius: 999px;
}

.knowledge-library-file-clear {
    margin-top: 0.75rem;
}

.knowledge-library-current-file {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    padding: 0.85rem 1rem;
    border: 1px solid var(--card-border);
    border-radius: var(--radius-md);
    background: var(--surface-2);
}

.knowledge-library-current-file-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--brand-blue);
    background: rgba(59, 130, 246, 0.1);
}

.knowledge-library-current-file-label {
    display: block;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-muted);
    margin-bottom: 0.15rem;
}

.knowledge-library-current-file-name {
    display: block;
    font-size: 0.9rem;
    color: var(--text-primary);
    word-break: break-all;
}

.knowledge-library-current-file-hint {
    display: block;
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-top: 0.2rem;
}

.knowledge-library-detail-card {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.knowledge-library-detail-head {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.knowledge-library-detail-head-icon {
    width: 2.35rem;
    height: 2.35rem;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--brand-blue);
    background: rgba(59, 130, 246, 0.12);
    font-size: 0.95rem;
}

.knowledge-library-detail-head-copy {
    min-width: 0;
}

.knowledge-library-detail-status {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.55rem 0.75rem;
    padding: 0.75rem 0.85rem;
    border: 1px solid var(--card-border);
    border-radius: var(--radius-md);
    background: linear-gradient(180deg, var(--surface-2) 0%, color-mix(in srgb, var(--surface-2) 90%, var(--surface-1)) 100%);
}

.knowledge-library-detail-status-note {
    font-size: 0.78rem;
    color: var(--text-muted);
}

.knowledge-library-detail-status-note.is-error {
    color: var(--danger);
    font-weight: 600;
}

.knowledge-library-detail-file-card .website-detail-stat-body {
    position: relative;
    padding-right: 2.5rem;
}

.knowledge-library-detail-file-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-top: 0.45rem;
}

.knowledge-library-detail-file-actions .btn {
    padding: 0.2rem 0.5rem;
    font-size: 0.72rem;
}

.knowledge-library-file-preview-card {
    scroll-margin-top: 5rem;
}

.knowledge-library-file-preview-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.85rem;
}

.knowledge-library-file-preview-frame-wrap {
    border: 1px solid var(--card-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    background: #f8fafc;
    min-height: 28rem;
}

.knowledge-library-file-preview-frame {
    display: block;
    width: 100%;
    min-height: 28rem;
    height: 70vh;
    max-height: 42rem;
    border: 0;
    background: #fff;
}

.knowledge-library-file-preview-text,
.knowledge-raw-preview {
    max-height: 28rem;
    overflow: auto;
    padding: 0.85rem 1rem;
    border: 1px solid var(--card-border);
    border-radius: var(--radius-md);
    background: var(--surface-2);
    font-size: 0.78rem;
    line-height: 1.45;
    white-space: pre-wrap;
    word-break: break-word;
}

.knowledge-library-file-preview-note {
    margin-top: 0.15rem;
}

.knowledge-library-show-row > [class*="col-"] > .dash-card {
    height: auto;
}

.knowledge-library-summary-card {
    padding: 0.85rem 1rem;
}

.knowledge-library-summary-text {
    font-size: 0.88rem;
    line-height: 1.5;
    color: var(--text-secondary);
}

[data-theme="dark"] .knowledge-library-file-preview-frame-wrap {
    background: rgba(255, 255, 255, 0.03);
}

.knowledge-library-detail-file-ext {
    position: absolute;
    top: 0;
    right: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2rem;
    padding: 0.15rem 0.4rem;
    border-radius: 6px;
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    color: var(--purple);
    background: rgba(139, 92, 246, 0.12);
}

.knowledge-library-detail-error {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    padding: 0.75rem 0.85rem;
    border: 1px solid rgba(239, 68, 68, 0.28);
    border-radius: var(--radius-md);
    background: rgba(239, 68, 68, 0.06);
}

.knowledge-library-detail-error-icon {
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--danger);
    background: rgba(239, 68, 68, 0.12);
    font-size: 0.82rem;
}

.knowledge-library-detail-error-label {
    display: block;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--danger);
    margin-bottom: 0.2rem;
}

.knowledge-library-detail-error-text {
    font-size: 0.82rem;
    line-height: 1.45;
    color: var(--text-primary);
    word-break: break-word;
}

[data-theme="dark"] .knowledge-library-detail-head-icon {
    background: rgba(96, 165, 250, 0.16);
    color: #93c5fd;
}

[data-theme="dark"] .knowledge-library-detail-status {
    background: rgba(255, 255, 255, 0.03);
}

[data-theme="dark"] .knowledge-library-detail-error {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(248, 113, 113, 0.35);
}

[data-theme="dark"] .knowledge-library-dropzone {
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.5) 0%, var(--surface) 100%);
}

[data-theme="dark"] .knowledge-library-dropzone:hover,
[data-theme="dark"] .knowledge-library-dropzone.is-dragover {
    border-color: #60a5fa;
}

[data-theme="dark"] .knowledge-library-dropzone-title strong {
    color: #93c5fd;
}

[data-theme="dark"] .knowledge-library-format-chip {
    background: rgba(15, 23, 42, 0.45);
}

.knowledge-panel-domain {
    color: var(--text-muted);
}

.app-content .knowledge-panel-actions {
    container-type: inline-size;
    container-name: knowledge-panel-actions;
    min-width: 0;
    max-width: 100%;
}

@container knowledge-panel-actions (min-width: 901px) {
    .app-content .knowledge-panel-actions .page-header-panel-actions.w-100 {
        width: auto;
        max-width: 100%;
        justify-content: flex-start;
    }
}

@container knowledge-panel-actions (max-width: 900px) {
    .app-content .knowledge-panel-actions .page-header-panel-actions {
        --dash-action-font: 0.65rem;
        --dash-action-pad-y: 0.32rem;
        --dash-action-pad-end: 0.35rem;
        --dash-action-pad-start: 0.32rem;
        --dash-action-gap: 0.22rem;
        --dash-action-icon: 1.15rem;
        --dash-action-icon-font: 0.55rem;
        --dash-action-toolbar-pad: 0.28rem;
        --dash-action-toolbar-gap: 0.22rem;
        --dash-action-toolbar-radius: 10px;
        display: flex;
        flex-wrap: nowrap;
        align-items: stretch;
        justify-content: stretch;
        width: 100%;
        max-width: 100%;
        overflow: hidden;
        padding: var(--dash-action-toolbar-pad);
        gap: var(--dash-action-toolbar-gap);
        border-radius: var(--dash-action-toolbar-radius);
    }

    .app-content .knowledge-panel-actions .page-header-panel-actions-divider {
        display: none;
    }

    .app-content .knowledge-panel-actions .page-header-panel-actions > :is(form, a) {
        flex: 1 1 0;
        min-width: 0;
        margin: 0;
    }

    .app-content .knowledge-panel-actions .page-header-panel-actions > form {
        display: flex;
    }

    .app-content .knowledge-panel-actions .page-header-action-btn {
        flex: 1 1 auto;
        min-width: 0;
        width: 100%;
        justify-content: center;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        padding: var(--dash-action-pad-y) var(--dash-action-pad-end) var(--dash-action-pad-y) var(--dash-action-pad-start);
        font-size: var(--dash-action-font);
        gap: var(--dash-action-gap);
    }

    .app-content .knowledge-panel-actions .page-header-action-btn > span:not(.page-header-action-icon) {
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .app-content .knowledge-panel-actions .page-header-action-icon {
        width: var(--dash-action-icon);
        height: var(--dash-action-icon);
        font-size: var(--dash-action-icon-font);
        flex-shrink: 0;
    }
}

@container knowledge-panel-actions (max-width: 720px) {
    .app-content .knowledge-panel-actions .page-header-panel-actions {
        --dash-action-font: 0.62rem;
        --dash-action-pad-y: 0.3rem;
        --dash-action-pad-end: 0.28rem;
        --dash-action-pad-start: 0.28rem;
        --dash-action-gap: 0.2rem;
        --dash-action-icon: 1.05rem;
        --dash-action-icon-font: 0.52rem;
        --dash-action-toolbar-pad: 0.25rem;
        --dash-action-toolbar-gap: 0.2rem;
    }
}

@container knowledge-panel-actions (max-width: 520px) {
    .app-content .knowledge-panel-actions .page-header-panel-actions {
        --dash-action-font: 0.56rem;
        --dash-action-pad-y: 0.26rem;
        --dash-action-pad-end: 0.18rem;
        --dash-action-pad-start: 0.18rem;
        --dash-action-gap: 0.15rem;
        --dash-action-icon: 0.95rem;
        --dash-action-icon-font: 0.48rem;
        --dash-action-toolbar-pad: 0.2rem;
        --dash-action-toolbar-gap: 0.15rem;
    }
}

@container knowledge-panel-actions (max-width: 360px) {
    .app-content .knowledge-panel-actions .page-header-panel-actions {
        --dash-action-font: 0.5rem;
        --dash-action-pad-y: 0.22rem;
        --dash-action-pad-end: 0.12rem;
        --dash-action-pad-start: 0.12rem;
        --dash-action-gap: 0.1rem;
        --dash-action-icon: 0.85rem;
        --dash-action-icon-font: 0.42rem;
        --dash-action-toolbar-pad: 0.18rem;
        --dash-action-toolbar-gap: 0.12rem;
    }
}

.website-voice-actions {
    min-width: 0;
    max-width: 100%;
}

/* Dashboard action buttons — scale via .app-content variables above */
.app-content :is(
    .page-header-action-btn,
    .page-header-panel-actions > .btn
) {
    gap: var(--dash-action-gap);
    padding: var(--dash-action-pad-y) var(--dash-action-pad-end) var(--dash-action-pad-y) var(--dash-action-pad-start);
    font-size: var(--dash-action-font);
}

.app-content .page-header-action-btn--primary {
    padding-right: var(--dash-action-pad-end);
}

.app-content .page-header-action-icon {
    width: var(--dash-action-icon);
    height: var(--dash-action-icon);
    font-size: var(--dash-action-icon-font);
}

.app-content :is(
    .page-header-action-btn,
    .page-header-panel-actions > .btn
) {
    flex: 0 0 auto;
    white-space: nowrap;
}

.app-content .website-voice-actions .page-header-action-icon {
    flex-shrink: 0;
}

/* Voice settings — inherit app action scale; shrink only in narrow columns */
.app-content .website-voice-actions {
    --dash-action-toolbar-radius: 12px;
}

@container dash-action-area (max-width: 399px) {
    .app-content .website-voice-actions {
        --dash-action-font: 0.62rem;
        --dash-action-pad-y: 0.3rem;
        --dash-action-pad-end: 0.28rem;
        --dash-action-pad-start: 0.28rem;
        --dash-action-gap: 0.2rem;
        --dash-action-icon: 1.05rem;
        --dash-action-icon-font: 0.52rem;
        --dash-action-toolbar-pad: 0.25rem;
        --dash-action-toolbar-gap: 0.2rem;
        --dash-action-toolbar-radius: 10px;
    }
}

@container dash-action-area (min-width: 400px) {
    .app-content .website-voice-actions {
        --dash-action-font: 0.78rem;
        --dash-action-pad-y: 0.48rem;
        --dash-action-pad-end: 0.85rem;
        --dash-action-pad-start: 0.45rem;
        --dash-action-gap: 0.42rem;
        --dash-action-icon: 1.6rem;
        --dash-action-icon-font: 0.72rem;
        --dash-action-toolbar-pad: 0.4rem;
        --dash-action-toolbar-gap: 0.42rem;
        --dash-action-toolbar-radius: 14px;
    }
}

@media (min-width: 1200px) {
    .app-content .website-voice-actions {
        --dash-action-font: 0.82rem;
        --dash-action-pad-y: 0.52rem;
        --dash-action-pad-end: 0.95rem;
        --dash-action-pad-start: 0.5rem;
        --dash-action-gap: 0.48rem;
        --dash-action-icon: 1.75rem;
        --dash-action-icon-font: 0.76rem;
        --dash-action-toolbar-pad: 0.45rem;
        --dash-action-toolbar-gap: 0.48rem;
    }
}

@media (min-width: 1400px) {
    .app-content .website-voice-actions {
        --dash-action-font: 0.86rem;
        --dash-action-pad-y: 0.56rem;
        --dash-action-pad-end: 1rem;
        --dash-action-pad-start: 0.52rem;
        --dash-action-gap: 0.5rem;
        --dash-action-icon: 1.85rem;
        --dash-action-icon-font: 0.8rem;
        --dash-action-toolbar-pad: 0.5rem;
        --dash-action-toolbar-gap: 0.5rem;
    }
}

.app-content .website-voice-actions .page-header-panel-actions--compact {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    width: auto;
    max-width: 100%;
    padding: var(--dash-action-toolbar-pad);
    gap: var(--dash-action-toolbar-gap);
    border-radius: var(--dash-action-toolbar-radius);
}

.app-content .website-voice-actions .page-header-panel-actions--compact > :is(form, a, button) {
    flex: 0 0 auto;
    min-width: 0;
    margin: 0;
}

.app-content .website-voice-actions .page-header-panel-actions--compact > form {
    display: inline-flex;
}

.app-content .website-voice-actions .page-header-panel-actions--compact .page-header-action-btn {
    flex: 0 0 auto;
    width: auto;
    justify-content: flex-start;
}

@container dash-action-area (max-width: 400px) {
    .app-content .website-voice-actions .page-header-panel-actions--compact {
        display: flex;
        flex-wrap: nowrap;
        align-items: stretch;
        justify-content: stretch;
        width: 100%;
        overflow: hidden;
    }

    .app-content .website-voice-actions .page-header-panel-actions--compact > :is(form, a, button) {
        flex: 1 1 0;
    }

    .app-content .website-voice-actions .page-header-panel-actions--compact > form {
        display: flex;
    }

    .app-content .website-voice-actions .page-header-panel-actions--compact .page-header-action-btn {
        flex: 1 1 auto;
        width: 100%;
        justify-content: center;
    }

    .app-content .website-voice-actions .page-header-panel-actions--compact .page-header-action-btn > span:not(.page-header-action-icon) {
        overflow: hidden;
        text-overflow: ellipsis;
    }
}

@container dash-action-area (max-width: 360px) {
    .app-content .website-voice-actions {
        --dash-action-font: 0.56rem;
        --dash-action-pad-y: 0.26rem;
        --dash-action-pad-end: 0.18rem;
        --dash-action-pad-start: 0.18rem;
        --dash-action-gap: 0.15rem;
        --dash-action-icon: 0.95rem;
        --dash-action-icon-font: 0.48rem;
        --dash-action-toolbar-pad: 0.2rem;
        --dash-action-toolbar-gap: 0.15rem;
    }
}

/* Website detail header — compact equal-width row only when the bar is narrow */
.app-content .website-detail-header-bar .website-detail-back {
    flex-shrink: 0;
}

.app-content .website-detail-header-bar .website-detail-actions {
    flex: 1 1 auto;
    min-width: 0;
    max-width: 100%;
    container-type: inline-size;
    container-name: website-detail-actions;
}

@container website-detail-actions (max-width: 900px) {
    .app-content .website-detail-header-bar .website-detail-actions {
        --dash-action-font: 0.65rem;
        --dash-action-pad-y: 0.32rem;
        --dash-action-pad-end: 0.35rem;
        --dash-action-pad-start: 0.32rem;
        --dash-action-gap: 0.22rem;
        --dash-action-icon-font: 0.55rem;
        --dash-action-toolbar-pad: 0.28rem;
        --dash-action-toolbar-gap: 0.22rem;
        flex-wrap: nowrap;
        overflow: hidden;
        justify-content: stretch;
        width: 100%;
        gap: var(--dash-action-toolbar-gap);
        padding: var(--dash-action-toolbar-pad);
    }

    .app-content .website-detail-header-bar .website-detail-actions > :is(a.btn, form, button.btn) {
        flex: 1 1 0;
        min-width: 0;
        margin: 0;
    }

    .app-content .website-detail-header-bar .website-detail-actions > form {
        display: flex;
    }

    .app-content .website-detail-header-bar .website-detail-actions .btn {
        flex: 1 1 auto;
        min-width: 0;
        width: 100%;
        justify-content: center;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        gap: var(--dash-action-gap);
        padding: var(--dash-action-pad-y) var(--dash-action-pad-end) var(--dash-action-pad-y) var(--dash-action-pad-start);
        font-size: var(--dash-action-font);
        line-height: 1.2;
    }

    .app-content .website-detail-header-bar .website-detail-actions .btn i {
        flex-shrink: 0;
        margin-right: 0 !important;
        font-size: var(--dash-action-icon-font);
    }
}

@container website-detail-actions (max-width: 720px) {
    .app-content .website-detail-header-bar .website-detail-actions {
        --dash-action-font: 0.62rem;
        --dash-action-pad-y: 0.3rem;
        --dash-action-pad-end: 0.28rem;
        --dash-action-pad-start: 0.28rem;
        --dash-action-gap: 0.2rem;
        --dash-action-icon-font: 0.52rem;
        --dash-action-toolbar-pad: 0.25rem;
        --dash-action-toolbar-gap: 0.2rem;
    }
}

@container website-detail-actions (max-width: 520px) {
    .app-content .website-detail-header-bar .website-detail-actions {
        --dash-action-font: 0.56rem;
        --dash-action-pad-y: 0.26rem;
        --dash-action-pad-end: 0.18rem;
        --dash-action-pad-start: 0.18rem;
        --dash-action-gap: 0.15rem;
        --dash-action-icon-font: 0.48rem;
        --dash-action-toolbar-pad: 0.2rem;
        --dash-action-toolbar-gap: 0.15rem;
    }
}

[data-theme="dark"] #knowledge-panel .knowledge-panel-domain,
[data-theme="dark"] #knowledge-panel .knowledge-panel-domain strong {
    color: #fff;
}

.knowledge-panel-stats-scroll {
    display: flex;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 0.75rem;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 0.4rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: rgba(99, 102, 241, 0.35) transparent;
}

.knowledge-panel-stats-scroll::-webkit-scrollbar {
    height: 6px;
}

.knowledge-panel-stats-scroll::-webkit-scrollbar-thumb {
    background: rgba(99, 102, 241, 0.35);
    border-radius: 999px;
}

.knowledge-panel-stats-scroll::-webkit-scrollbar-track {
    background: transparent;
}

.knowledge-panel-stats .knowledge-stat-tile {
    background: var(--surface-2);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-sm);
    padding: 0.85rem 1rem;
    flex: 0 0 auto;
    min-width: 9.25rem;
    width: 9.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.knowledge-panel-stats .knowledge-stat-tile--wide {
    min-width: 11.5rem;
    width: 11.5rem;
}

.knowledge-stat-label {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-muted);
}

.knowledge-stat-value {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
}

.knowledge-stat-value-sm {
    font-size: 0.95rem;
    font-weight: 600;
}

.knowledge-stat-meta {
    font-size: 0.72rem;
    color: var(--text-muted);
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.knowledge-stat-code {
    font-size: 0.8rem;
    word-break: break-all;
}

.knowledge-panel-probe .form-control,
.knowledge-panel-probe .form-select {
    min-height: 42px;
}

.knowledge-crawl-activity {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.08), rgba(99, 102, 241, 0.06));
    border: 1px solid rgba(59, 130, 246, 0.25);
    border-radius: var(--radius-sm);
    padding: 1rem 1.1rem;
}

.knowledge-crawl-activity-header {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.knowledge-crawl-spinner {
    width: 1.25rem;
    height: 1.25rem;
    flex-shrink: 0;
    margin-top: 0.15rem;
    border: 2px solid rgba(59, 130, 246, 0.25);
    border-top-color: var(--brand-blue, #3b82f6);
    border-radius: 50%;
    animation: knowledge-spin 0.75s linear infinite;
}

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

.knowledge-crawl-message {
    display: block;
    font-size: 0.9rem;
    color: var(--text-primary);
}

.knowledge-crawl-detail,
.knowledge-crawl-progress-label {
    color: var(--text-muted);
}

.knowledge-crawl-detail {
    margin-top: 0.15rem;
}

[data-theme="dark"] .knowledge-crawl-activity .knowledge-crawl-detail,
[data-theme="dark"] .knowledge-crawl-activity .knowledge-crawl-progress-label,
[data-theme="dark"] #knowledge-crawl-detail,
[data-theme="dark"] #knowledge-crawl-progress-label {
    color: #fff !important;
}

.knowledge-crawl-progress .progress-bar-indeterminate {
    background-image: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.35),
        transparent
    );
    background-size: 200% 100%;
    animation: knowledge-progress-indeterminate 1.2s ease-in-out infinite;
}

@keyframes knowledge-progress-indeterminate {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

.knowledge-status-pulse {
    animation: knowledge-badge-pulse 1.5s ease-in-out infinite;
}

@keyframes knowledge-badge-pulse {
    0%,
    100% {
        opacity: 1;
    }
    50% {
        opacity: 0.65;
    }
}

.knowledge-panel-is-busy .knowledge-stat-value {
    color: var(--brand-blue, #3b82f6);
}

.knowledge-raw-text {
    max-height: 400px;
    overflow-y: auto;
    white-space: pre-wrap;
    background: var(--surface-2);
    border: 1px solid var(--card-border);
    color: var(--text-primary);
}

[data-theme="dark"] .knowledge-page-meta {
    color: #e2e8f0 !important;
    opacity: 0.95;
}

/* Knowledge indexed page detail */
.knowledge-page-layout {
    align-items: start;
}

.knowledge-page-card-head {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--surface-2);
}

.knowledge-page-card-icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: rgba(59, 130, 246, 0.1);
    color: var(--brand-blue);
    font-size: 1rem;
}

.knowledge-page-card-icon--chunks {
    background: rgba(139, 92, 246, 0.12);
    color: var(--purple);
}

.knowledge-page-url-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: inherit;
    text-decoration: none;
    word-break: break-all;
}

.knowledge-page-url-link:hover {
    color: var(--brand-blue);
}

.knowledge-page-url-link i {
    font-size: 0.72rem;
    flex-shrink: 0;
}

.knowledge-page-hash {
    font-size: 0.72rem;
    color: var(--text-secondary);
    background: var(--surface-2);
    padding: 0.1rem 0.35rem;
    border-radius: 4px;
    word-break: break-all;
}

.knowledge-page-raw-text {
    max-height: 520px;
    border-radius: var(--radius-md);
    padding: 1rem 1.1rem;
    font-size: 0.88rem;
    line-height: 1.7;
}

.knowledge-page-meta-desc {
    font-size: 0.85rem;
    line-height: 1.55;
    color: var(--text-secondary);
}

.knowledge-page-chunk {
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--surface-2);
}

.knowledge-page-chunk:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.knowledge-page-chunk:first-of-type {
    padding-top: 0;
}

.knowledge-page-chunk-index {
    display: inline-flex;
    align-items: center;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: var(--brand-blue);
    background: rgba(59, 130, 246, 0.12);
    border-radius: 999px;
    padding: 0.18rem 0.5rem;
    margin-bottom: 0.45rem;
}

.knowledge-page-chunk-text {
    margin: 0;
    font-size: 0.84rem;
    line-height: 1.6;
    color: var(--text-primary);
}

.knowledge-page-chunks-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    text-align: center;
    padding: 1.5rem 1rem;
    border: 1px dashed var(--card-border);
    border-radius: var(--radius-md);
    background: var(--surface-2);
    color: var(--text-muted);
}

.knowledge-page-chunks-empty i {
    font-size: 1.25rem;
    color: var(--text-muted);
    opacity: 0.75;
}

.knowledge-page-chunks-empty p {
    margin: 0;
    font-size: 0.82rem;
    line-height: 1.5;
    max-width: 18rem;
}

[data-theme="dark"] .knowledge-page-card-icon {
    background: rgba(59, 130, 246, 0.18);
    color: #93c5fd;
}

[data-theme="dark"] .knowledge-page-card-icon--chunks {
    background: rgba(139, 92, 246, 0.2);
    color: #c4b5fd;
}

[data-theme="dark"] .knowledge-page-hash {
    color: #e2e8f0;
    background: var(--surface-hover);
}

[data-theme="dark"] .knowledge-page-layout .website-detail-muted,
[data-theme="dark"] .knowledge-page-meta-desc {
    color: #e2e8f0;
}

[data-theme="dark"] .knowledge-page-chunk-index {
    color: #93c5fd;
    background: rgba(59, 130, 246, 0.18);
}

/* Knowledge gaps (unanswered questions) */
.knowledge-gaps-card {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.knowledge-gaps-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem 1.25rem;
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--surface-2);
}

.knowledge-gaps-head-main {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    min-width: 0;
    flex: 1 1 18rem;
}

.knowledge-gaps-head-icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: rgba(245, 158, 11, 0.14);
    color: var(--orange);
    font-size: 1rem;
}

.knowledge-gaps-head-action {
    flex-shrink: 0;
}

.knowledge-gaps-toolbar {
    margin-bottom: 1rem;
    padding-top: 0;
}

.knowledge-gaps-count {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-muted);
}

.knowledge-gaps-list {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.knowledge-gap-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.85rem;
    padding: 0.95rem 1rem;
    border: 1px solid var(--card-border);
    border-radius: var(--radius-md);
    background: var(--surface-2);
    text-decoration: none;
    color: inherit;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.knowledge-gap-card:hover {
    border-color: rgba(59, 130, 246, 0.35);
    background: var(--surface-hover);
    box-shadow: var(--shadow-sm);
}

.knowledge-gap-card-icon {
    width: 2.15rem;
    height: 2.15rem;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: rgba(59, 130, 246, 0.1);
    color: var(--brand-blue);
    font-size: 0.85rem;
}

.knowledge-gap-card-body {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    min-width: 0;
}

.knowledge-gap-card-question {
    display: block;
    font-size: 0.92rem;
    font-weight: 600;
    line-height: 1.45;
    color: var(--text-primary);
    word-break: break-word;
}

.knowledge-gap-card-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.45rem 0.75rem;
    font-size: 0.76rem;
    color: var(--text-muted);
}

.knowledge-gap-card-meta .website-status {
    font-size: 0.62rem;
    padding: 0.15rem 0.45rem;
}

.knowledge-gap-card-chevron {
    color: var(--text-muted);
    font-size: 0.72rem;
    opacity: 0.7;
    transition: transform 0.15s ease, color 0.15s ease, opacity 0.15s ease;
}

.knowledge-gap-card:hover .knowledge-gap-card-chevron {
    color: var(--brand-blue);
    opacity: 1;
    transform: translateX(2px);
}

.knowledge-gaps-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.55rem;
    text-align: center;
    padding: 2rem 1.25rem;
    border: 1px dashed var(--card-border);
    border-radius: var(--radius-md);
    background: var(--surface-2);
    color: var(--text-muted);
}

.knowledge-gaps-empty i {
    font-size: 1.35rem;
    color: var(--success);
}

.knowledge-gaps-empty p {
    margin: 0;
    font-size: 0.86rem;
    line-height: 1.55;
    max-width: 28rem;
}

[data-theme="dark"] .knowledge-gaps-head-icon {
    background: rgba(245, 158, 11, 0.2);
    color: #fbbf24;
}

[data-theme="dark"] .knowledge-gaps-card .website-detail-muted,
[data-theme="dark"] .knowledge-gaps-count,
[data-theme="dark"] .knowledge-gap-card-meta {
    color: #e2e8f0;
}

[data-theme="dark"] .knowledge-gap-card {
    background: var(--surface);
}

[data-theme="dark"] .knowledge-gap-card:hover {
    background: var(--surface-hover);
}

[data-theme="dark"] .knowledge-gap-card-icon {
    background: rgba(59, 130, 246, 0.18);
    color: #93c5fd;
}

.knowledge-crawl-log-wrap {
    background: var(--surface-2);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-sm);
    padding: 0.75rem 1rem;
    max-height: 280px;
    overflow-y: auto;
}

.knowledge-crawl-log-title {
    color: var(--text-primary);
}

.knowledge-crawl-log {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.knowledge-crawl-log-item {
    display: flex;
    gap: 0.5rem;
    align-items: flex-start;
    font-size: 0.8rem;
    padding: 0.4rem 0.5rem;
    border-radius: var(--radius-sm);
    background: var(--surface);
    border: 1px solid var(--card-border);
}

.knowledge-crawl-log-item-done .knowledge-crawl-log-icon {
    color: var(--brand-blue, #3b82f6);
    flex-shrink: 0;
    margin-top: 0.1rem;
}

.knowledge-crawl-log-item-muted {
    color: var(--text-muted);
    border-style: dashed;
    background: transparent;
}

.knowledge-crawl-log-item-error .knowledge-crawl-log-icon {
    color: var(--danger);
}

.knowledge-crawl-log-text {
    display: block;
    font-size: 0.78rem;
    line-height: 1.4;
    color: var(--text-primary);
    word-break: break-word;
}

.knowledge-library-processing-activity,
.knowledge-library-processing-log {
    margin-top: 0.15rem;
}

.knowledge-library-detail-card--busy .website-detail-stat-value {
    opacity: 0.85;
}

.knowledge-crawl-log-body {
    flex: 1;
    min-width: 0;
}

.knowledge-crawl-log-link {
    display: block;
    font-weight: 600;
    color: var(--text-primary);
    text-decoration: none;
    word-break: break-all;
}

.knowledge-crawl-log-link:hover {
    color: var(--brand-blue, #3b82f6);
}

.knowledge-crawl-log-meta {
    display: block;
    color: var(--text-muted);
    font-size: 0.72rem;
    margin-top: 0.15rem;
}

[data-theme="dark"] .knowledge-crawl-log-meta,
[data-theme="dark"] .knowledge-crawl-log-item-muted {
    color: #e2e8f0;
}

[data-theme="dark"] .knowledge-crawl-log-item-muted code {
    color: #fff;
}

.website-detail-layout .website-detail-card {
    height: auto;
}

.website-detail-overview-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.65;
}

.website-detail-overview-desc.is-muted {
    color: var(--text-muted);
}

.website-detail-card .card-title {
    font-size: 1rem;
}

.website-detail-dl {
    margin: 0;
}

.website-detail-row {
    display: grid;
    grid-template-columns: minmax(120px, 34%) 1fr;
    gap: 0.75rem 1rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--surface-2);
}

.website-detail-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.website-detail-row:first-child {
    padding-top: 0;
}

.website-detail-row dt {
    margin: 0;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-muted);
}

.website-detail-row dd {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-primary);
    word-break: break-word;
}

.website-detail-muted {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.15rem;
}

.website-voice-form-hint {
    color: var(--text-primary);
}

[data-theme="dark"] .website-voice-form-hint {
    color: #fff;
}

/* Blog detail */
.blog-detail-layout {
    align-items: start;
}

.blog-detail-card-head,
.blog-detail-sidebar-head {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--surface-2);
}

.blog-detail-card-icon,
.blog-detail-sidebar-icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: rgba(59, 130, 246, 0.1);
    color: var(--brand-blue);
    font-size: 1rem;
}

.blog-detail-body {
    color: var(--text-primary);
    font-size: 0.95rem;
    line-height: 1.75;
    white-space: pre-wrap;
    word-break: break-word;
}

.blog-detail-slug code {
    font-size: 0.78rem;
    color: var(--text-secondary);
    background: var(--surface-2);
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    word-break: break-all;
}

.blog-detail-sidebar-links {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--surface-2);
}

.blog-detail-source-link {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--brand-blue);
    text-decoration: none;
}

.blog-detail-source-link:hover {
    color: var(--brand-dark);
}

[data-theme="dark"] .blog-detail-card-icon,
[data-theme="dark"] .blog-detail-sidebar-icon {
    background: rgba(59, 130, 246, 0.18);
    color: #93c5fd;
}

[data-theme="dark"] .blog-detail-slug code {
    color: #e2e8f0;
    background: var(--surface-hover);
}

[data-theme="dark"] .blog-detail-layout .website-detail-muted {
    color: #e2e8f0;
}

.website-feedback-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.website-feedback-title-count {
    flex-shrink: 0;
    font-size: 0.75rem;
    font-weight: 600;
    color: #b45309;
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 999px;
    padding: 0.15rem 0.55rem;
    line-height: 1.3;
    white-space: nowrap;
}

[data-theme="dark"] .website-feedback-title-count {
    color: #fbbf24;
    background: rgba(245, 158, 11, 0.12);
    border-color: rgba(251, 191, 36, 0.32);
}

.website-feedback-list {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.website-feedback-pagination {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
}

.website-feedback-pagination-meta {
    margin: 0;
    font-size: 0.78rem;
    color: var(--text-muted);
    text-align: center;
}

.website-feedback-card {
    border: 1px solid #fde68a;
    border-radius: 12px;
    background: #fffbeb;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(245, 158, 11, 0.08);
}

.website-feedback-card-head {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.7rem 0.85rem;
    border-bottom: 1px solid rgba(253, 230, 138, 0.85);
    background: rgba(255, 255, 255, 0.55);
}

.website-feedback-card-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.85rem;
    height: 1.85rem;
    border-radius: 9px;
    background: #f59e0b;
    color: #fff;
    font-size: 0.78rem;
    flex-shrink: 0;
}

.website-feedback-card-head-copy {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.65rem;
    flex: 1;
    min-width: 0;
}

.website-feedback-card-stars {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.15rem;
    color: #f59e0b;
    font-size: 0.82rem;
}

.website-feedback-star-muted {
    opacity: 0.28;
}

.website-feedback-card-rating {
    margin-left: 0.3rem;
    font-size: 0.75rem;
    font-weight: 700;
    color: #92400e;
    line-height: 1;
}

.website-feedback-card-time {
    font-size: 0.68rem;
    color: #b45309;
    white-space: nowrap;
    flex-shrink: 0;
}

.website-feedback-card-comment {
    margin: 0;
    padding: 0.75rem 0.85rem 0;
    font-size: 0.84rem;
    line-height: 1.5;
    color: #78350f;
    white-space: pre-wrap;
    overflow-wrap: break-word;
    word-break: break-word;
}

.website-feedback-card-footer {
    padding: 0.65rem 0.85rem 0.75rem;
}

.website-feedback-card-link,
.website-feedback-card-visitor {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.78rem;
    font-weight: 600;
    line-height: 1.2;
}

.website-feedback-card-link {
    color: var(--brand-blue, #2563eb);
    text-decoration: none;
}

.website-feedback-card-link:hover {
    color: var(--brand-dark, #1d4ed8);
    text-decoration: underline;
}

.website-feedback-card-visitor {
    color: var(--text-muted, #64748b);
}

[data-theme="dark"] .website-feedback-card {
    background: rgba(245, 158, 11, 0.1);
    border-color: rgba(251, 191, 36, 0.35);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
}

[data-theme="dark"] .website-feedback-card-head {
    background: rgba(15, 23, 42, 0.22);
    border-bottom-color: rgba(251, 191, 36, 0.22);
}

[data-theme="dark"] .website-feedback-card-rating,
[data-theme="dark"] .website-feedback-card-time {
    color: #fbbf24;
}

[data-theme="dark"] .website-feedback-card-comment {
    color: var(--text-primary, #f1f5f9);
}

[data-theme="dark"] .website-feedback-card-link {
    color: #93c5fd;
}

[data-theme="dark"] .website-feedback-card-link:hover {
    color: #bfdbfe;
}

.website-detail-stat-grid {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.website-detail-stat-grid--overview {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
}

.website-detail-stat-grid--sidebar {
    gap: 0.85rem;
}

.website-detail-stat-grid--compact {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
}

.website-detail-stat-card {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    padding: 0.95rem 1rem;
    background: linear-gradient(180deg, var(--surface-2) 0%, color-mix(in srgb, var(--surface-2) 88%, var(--surface-1)) 100%);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-xs, 0 1px 2px rgba(15, 23, 42, 0.04));
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.website-detail-stat-card--wide,
.website-detail-stat-card--full {
    grid-column: 1 / -1;
}

.website-org-accordion {
    padding: 0;
    overflow: hidden;
    container-type: inline-size;
    container-name: website-org-accordion;
}

.website-org-accordion-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.5rem 0.65rem;
    padding: 0.85rem 1rem;
    border-bottom: 1px solid var(--card-border);
    background: var(--surface);
}

.website-org-accordion-toggle {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    min-width: 0;
    width: 100%;
    margin: 0;
    padding: 0.35rem 0.45rem;
    border: none;
    border-radius: var(--radius-md);
    background: transparent;
    color: var(--text-primary);
    text-align: left;
    cursor: pointer;
    transition: background 0.15s ease;
}

.website-org-accordion-toggle:hover {
    background: var(--surface-2);
}

.website-org-accordion-toggle:focus-visible {
    outline: 2px solid var(--brand);
    outline-offset: 2px;
}

.website-org-accordion-chevron {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.35rem;
    height: 1.35rem;
    color: var(--text-muted);
    font-size: 0.68rem;
    transition: transform 0.2s ease;
}

.website-org-accordion-toggle.collapsed .website-org-accordion-chevron {
    transform: rotate(-90deg);
}

.website-org-accordion-heading {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.website-org-accordion-heading .card-title {
    font-size: 0.95rem;
    line-height: 1.25;
}

.website-org-accordion-subtitle {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-top: 0 !important;
    line-height: 1.3;
}

.website-org-accordion-count {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.35rem;
    height: 1.35rem;
    padding: 0 0.4rem;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 700;
    background: rgba(99, 102, 241, 0.12);
    color: var(--brand);
}

.website-org-accordion-add {
    flex: 0 0 auto;
    align-self: center;
    white-space: nowrap;
}

.website-org-accordion #websiteOrgBody {
    padding: 0.85rem 1rem 1rem;
}

.website-org-accordion .data-table-responsive .website-org-table {
    min-width: 640px;
}

.website-org-actions {
    flex-wrap: nowrap;
}

@container website-org-accordion (max-width: 480px) {
    .website-org-accordion-header {
        grid-template-columns: 1fr;
    }

    .website-org-accordion-add {
        width: 100%;
        justify-content: center;
    }
}

@container website-org-accordion (max-width: 360px) {
    .website-org-accordion-add-label {
        display: none;
    }

    .website-org-accordion-add .me-1 {
        margin-right: 0 !important;
    }
}

.website-org-default-contact {
    padding: 0.85rem 1rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--card-border);
    background: var(--surface-2);
}

.website-org-default-contact-label {
    display: block;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-muted);
    margin-bottom: 0.35rem;
}

.website-org-default-contact-values {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.25rem;
    font-size: 0.9rem;
}

.website-org-default-contact-values i {
    color: var(--brand);
    margin-right: 0.35rem;
}

.website-org-default-contact-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.65rem 1rem;
    margin-top: 0.75rem;
}

.website-org-table .website-org-row--branch td:first-child {
    padding-left: 1.75rem;
}

.website-org-type-badge {
    display: inline-block;
    padding: 0.15rem 0.5rem;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.website-org-type-badge--company {
    background: rgba(99, 102, 241, 0.12);
    color: var(--brand);
}

.website-org-type-badge--branch {
    background: rgba(16, 185, 129, 0.12);
    color: #10b981;
}

.website-org-row--company {
    background: color-mix(in srgb, var(--surface-2) 70%, transparent);
}

.website-branch-calendar-badge {
    font-size: 0.7rem;
    padding: 0.25rem 0.4rem;
}

.website-branch-activity-count {
    margin-left: 0.15rem;
    font-size: 0.65rem;
    font-weight: 700;
}

.website-branch-activities-list {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.website-branch-activity-item {
    padding: 0.55rem 0.65rem;
    border-radius: 8px;
    border: 1px solid var(--card-border);
    background: var(--surface-2);
}

.website-branch-activity-type-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.55rem;
}

.website-branch-activity-type-card {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.65rem 0.75rem;
    border-radius: 10px;
    border: 1px solid var(--card-border);
    background: var(--surface-2);
    color: var(--text-primary);
    cursor: pointer;
    user-select: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.website-branch-activity-type-icon {
    width: 26px;
    height: 26px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(59, 130, 246, 0.12);
    color: var(--brand-blue);
    flex-shrink: 0;
}

.website-branch-activity-type-label {
    font-weight: 600;
    font-size: 0.82rem;
}

/* Scrollable body + pinned header/footer (form wraps all three) */
#leadScheduleActivityModal .modal-dialog.modal-dialog-scrollable {
    max-height: calc(100vh - 1rem);
}

#leadScheduleActivityModal .modal-dialog-scrollable .modal-content {
    max-height: calc(100vh - 1rem);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

#leadScheduleActivityModal #leadScheduleActivityForm {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
    max-height: 100%;
}

#leadScheduleActivityModal .modal-header,
#leadScheduleActivityModal .modal-footer {
    flex-shrink: 0;
}

#leadScheduleActivityModal .modal-dialog-scrollable .modal-body {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
}

#leadScheduleActivityModal .modal-footer {
    position: sticky;
    bottom: 0;
    z-index: 2;
    border-top: 1px solid var(--card-border);
    background: var(--surface-2);
    box-shadow: 0 -8px 20px rgba(15, 23, 42, 0.06);
}

[data-theme="dark"] #leadScheduleActivityModal .modal-footer {
    box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.35);
}

@media (max-width: 767.98px) {
    #leadScheduleActivityModal .modal-dialog.modal-dialog-centered {
        min-height: calc(100% - 1rem);
        align-items: flex-start;
    }

    #leadScheduleActivityModal .modal-dialog-scrollable .modal-content {
        max-height: calc(100vh - 1rem);
    }
}

#websiteBranchActivitiesModal .btn-check:checked + .website-branch-activity-type-card,
#leadScheduleActivityModal .btn-check:checked + .website-branch-activity-type-card {
    border-color: var(--brand-blue);
    background: rgba(59, 130, 246, 0.12);
    color: var(--text-primary);
    box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.2);
}

#websiteBranchActivitiesModal .btn-check:checked + .website-branch-activity-type-card .website-branch-activity-type-icon,
#leadScheduleActivityModal .btn-check:checked + .website-branch-activity-type-card .website-branch-activity-type-icon {
    background: var(--brand-blue);
    color: #ffffff;
}

[data-theme="dark"] #websiteBranchActivitiesModal .website-branch-activities-section-label,
[data-theme="dark"] #websiteBranchActivitiesModal .modal-body > h6.text-muted,
[data-theme="dark"] #websiteBranchActivitiesModal #websiteBranchActivitiesSubtitle,
[data-theme="dark"] #websiteBranchActivitiesModal .website-branch-activities-list .text-muted {
    color: #ffffff !important;
}

[data-theme="dark"] #websiteBranchActivitiesModal .website-branch-activity-item strong {
    color: #ffffff;
}

[data-theme="dark"] #websiteBranchActivitiesModal .website-branch-activity-item .text-muted {
    color: rgba(255, 255, 255, 0.72) !important;
}

[data-theme="dark"] #websiteBranchActivitiesModal .website-branch-activity-item a {
    color: var(--brand-blue);
}

[data-theme="dark"] #websiteBranchActivitiesModal .website-branch-activity-item .badge.bg-light {
    background: rgba(255, 255, 255, 0.12) !important;
    color: #ffffff !important;
}

[data-theme="dark"] #websiteBranchActivitiesModal hr {
    border-color: var(--card-border);
    opacity: 1;
}

[data-theme="dark"] #websiteBranchActivitiesModal .website-branch-activity-type-card,
[data-theme="dark"] #leadScheduleActivityModal .website-branch-activity-type-card {
    background: rgba(15, 23, 42, 0.65);
    border-color: rgba(148, 163, 184, 0.35);
    color: #ffffff;
}

[data-theme="dark"] #websiteBranchActivitiesModal .btn-check:checked + .website-branch-activity-type-card,
[data-theme="dark"] #leadScheduleActivityModal .btn-check:checked + .website-branch-activity-type-card {
    background: rgba(59, 130, 246, 0.2);
    border-color: rgba(96, 165, 250, 0.9);
    color: #ffffff;
}

.website-org-primary-badge {
    display: inline-block;
    margin-left: 0.35rem;
    padding: 0.1rem 0.45rem;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 600;
    background: rgba(16, 185, 129, 0.12);
    color: #10b981;
    vertical-align: middle;
}

.website-branch-view-subtitle {
    color: var(--text-muted);
}

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

.website-branch-view-card {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    padding: 0.75rem 0.85rem;
    border-radius: 10px;
    background: var(--surface-2);
    border: 1px solid var(--card-border);
}

.website-branch-view-card--wide {
    grid-column: 1 / -1;
}

.website-branch-view-card-icon {
    flex-shrink: 0;
    width: 2rem;
    height: 2rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    color: var(--brand-blue);
    background: rgba(59, 130, 246, 0.12);
}

.website-branch-view-card-body {
    min-width: 0;
}

.website-branch-view-card-label {
    display: block;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-bottom: 0.15rem;
}

.website-branch-view-card-value {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-primary);
    line-height: 1.4;
    word-break: break-word;
}

.website-branch-view-hours-source {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.website-branch-view-hours-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0.25rem;
}

.website-branch-view-hours-list li {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    font-size: 0.85rem;
}

.website-branch-view-hours-day {
    color: var(--text-secondary);
    font-weight: 500;
}

@media (max-width: 575.98px) {
    .website-branch-view-details {
        grid-template-columns: 1fr;
    }
}

[data-theme="dark"] .website-branch-view-card {
    background: rgba(255, 255, 255, 0.04);
}

[data-theme="dark"] .website-org-default-contact {
    background: rgba(255, 255, 255, 0.03);
}

[data-theme="dark"] .website-org-row--company {
    background: rgba(255, 255, 255, 0.04);
}

.website-detail-stat-card:hover {
    border-color: rgba(59, 130, 246, 0.28);
    box-shadow: var(--shadow-sm);
    transform: translateY(-1px);
}

.website-detail-stat-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 0.95rem;
}

.website-detail-stat-icon--green {
    background: rgba(16, 185, 129, 0.12);
    color: var(--success);
}

.website-detail-stat-icon--blue {
    background: rgba(59, 130, 246, 0.12);
    color: var(--brand-blue);
}

.website-detail-stat-icon--purple {
    background: rgba(139, 92, 246, 0.12);
    color: var(--purple);
}

.website-detail-stat-icon--orange {
    background: rgba(245, 158, 11, 0.12);
    color: var(--orange);
}

.website-detail-stat-body {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.website-detail-stat-label {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-muted);
}

.website-detail-stat-value {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.35;
    word-break: break-word;
}

.website-detail-stat-value.is-empty {
    color: var(--text-muted);
    font-weight: 500;
}

.website-detail-stat-value.is-muted {
    color: var(--text-muted);
    font-weight: 500;
}

.website-detail-stat-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--brand-blue);
    text-decoration: none;
    line-height: 1.35;
    word-break: break-word;
}

.website-detail-stat-link:hover {
    color: var(--brand-dark);
    text-decoration: underline;
}

.website-detail-stat-link i {
    font-size: 0.72rem;
    flex-shrink: 0;
}

.website-detail-stat-meta {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.4;
    word-break: break-word;
}

[data-theme="dark"] .website-detail-stat-card {
    background: color-mix(in srgb, var(--surface-2) 92%, #fff);
    box-shadow: none;
}

[data-theme="dark"] .website-detail-stat-card:hover {
    box-shadow: var(--shadow-sm);
}

[data-theme="dark"] .website-detail-stat-link {
    color: #93c5fd;
}

[data-theme="dark"] .website-detail-stat-link:hover {
    color: #bfdbfe;
}

[data-theme="dark"] .website-detail-stat-icon--green {
    background: rgba(16, 185, 129, 0.18);
    color: #6ee7b7;
}

[data-theme="dark"] .website-detail-stat-icon--blue {
    background: rgba(59, 130, 246, 0.2);
    color: #93c5fd;
}

[data-theme="dark"] .website-detail-stat-icon--purple {
    background: rgba(139, 92, 246, 0.2);
    color: #c4b5fd;
}

[data-theme="dark"] .website-detail-stat-icon--orange {
    background: rgba(245, 158, 11, 0.18);
    color: #fcd34d;
}

.competitor-found-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--success);
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.22);
}

.competitor-research-summary {
    font-size: 0.92rem;
    line-height: 1.55;
    color: var(--text-secondary);
}

.competitor-research-toolbar {
    flex-shrink: 0;
}

.data-table-bulk-toolbar {
    gap: 0.5rem;
}

.data-table-select-all-check .form-check-label {
    font-size: 0.875rem;
    white-space: nowrap;
}

.data-table-question-select .data-table-row-checkbox {
    width: 1rem;
    height: 1rem;
    margin-top: 0.15rem;
}

.competitor-bulk-toolbar {
    padding-right: 0.35rem;
    border-right: 1px solid var(--card-border);
}

.competitor-select-all-check .form-check-label {
    font-size: 0.86rem;
    font-weight: 600;
    color: var(--text-secondary);
    user-select: none;
}

.competitor-card-select {
    display: flex;
    align-items: flex-start;
    padding-top: 0.55rem;
    flex-shrink: 0;
}

.competitor-card-select .form-check-input {
    margin: 0;
    cursor: pointer;
}

.competitor-research-grid {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.competitor-card {
    background: var(--surface-2);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-md);
    padding: 1rem 1.1rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.competitor-card:hover {
    border-color: rgba(59, 130, 246, 0.35);
    box-shadow: var(--shadow-sm);
}

.competitor-card-header {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    margin-bottom: 0.9rem;
}

.competitor-card-icon {
    width: 42px;
    height: 42px;
    border-radius: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1rem;
    color: var(--brand-blue);
    background: rgba(59, 130, 246, 0.12);
}

.competitor-card-heading {
    flex: 1;
    min-width: 0;
}

.competitor-card-name {
    margin: 0 0 0.35rem;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.35;
}

.competitor-card-reason {
    margin: 0;
    font-size: 0.86rem;
    line-height: 1.5;
    color: var(--text-secondary);
}

.competitor-card-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    flex-shrink: 0;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--brand-blue);
    text-decoration: none;
    white-space: nowrap;
}

.competitor-card-link:hover {
    color: var(--brand-dark);
    text-decoration: underline;
}

.competitor-seo-fields {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.competitor-seo-label {
    display: block;
    margin-bottom: 0.35rem;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-muted);
}

.competitor-seo-value {
    background: var(--surface);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-sm);
    padding: 0.75rem 0.85rem;
    font-size: 0.86rem;
    line-height: 1.5;
    color: var(--text-primary);
    word-break: break-word;
}

.competitor-seo-value.is-empty {
    color: var(--text-muted);
    font-style: italic;
}

.competitor-research-empty {
    padding: 0.95rem 1rem;
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    line-height: 1.55;
    color: var(--text-secondary);
    background: rgba(59, 130, 246, 0.08);
    border: 1px solid rgba(59, 130, 246, 0.22);
}

.competitor-research-empty strong {
    display: block;
    margin-bottom: 0.25rem;
    color: var(--text-primary);
}

.competitor-research-progress {
    margin-bottom: 1rem;
    padding: 0.85rem 1rem;
    background: var(--surface-2);
    border: 1px solid rgba(59, 130, 246, 0.25);
    border-radius: var(--radius-md);
}

.competitor-research-progress.is-error {
    background: rgba(239, 68, 68, 0.08);
    border-color: rgba(239, 68, 68, 0.28);
}

.competitor-research-progress-title {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-primary);
}

.competitor-research-progress-percent {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--brand-blue);
}

.competitor-research-progress.is-error .competitor-research-progress-percent {
    color: var(--danger);
}

.competitor-research-progress-bar {
    height: 8px;
    border-radius: 999px;
    background: var(--progress-bg);
}

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

.competitor-research-progress.is-error .competitor-research-progress-bar .progress-bar {
    background: var(--danger);
}

.competitor-research-progress-message {
    font-size: 0.78rem;
    color: var(--text-muted);
}

.competitor-research-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-top: 1rem;
    padding-top: 0.85rem;
    border-top: 1px solid var(--card-border);
}

.competitor-research-page-info {
    font-size: 0.8rem;
    color: var(--text-muted);
}

[data-theme="dark"] .competitor-found-badge {
    background: rgba(16, 185, 129, 0.18);
    border-color: rgba(16, 185, 129, 0.32);
    color: #6ee7b7;
}

[data-theme="dark"] .competitor-card {
    background: color-mix(in srgb, var(--surface-2) 92%, #fff);
}

[data-theme="dark"] .competitor-card:hover {
    border-color: rgba(96, 165, 250, 0.4);
}

[data-theme="dark"] .competitor-card-icon {
    background: rgba(59, 130, 246, 0.2);
    color: #93c5fd;
}

[data-theme="dark"] .competitor-card-link {
    color: #93c5fd;
}

[data-theme="dark"] .competitor-card-link:hover {
    color: #bfdbfe;
}

[data-theme="dark"] .competitor-seo-value {
    background: var(--surface);
    border-color: var(--card-border);
    color: var(--text-primary);
}

[data-theme="dark"] .competitor-seo-value.is-empty {
    color: var(--text-muted);
}

[data-theme="dark"] .competitor-research-empty {
    background: rgba(59, 130, 246, 0.14);
    border-color: rgba(96, 165, 250, 0.28);
    color: var(--text-secondary);
}

[data-theme="dark"] .competitor-research-progress {
    background: color-mix(in srgb, var(--surface-2) 90%, #000);
    border-color: rgba(96, 165, 250, 0.28);
}

[data-theme="dark"] .competitor-research-progress.is-error {
    background: rgba(239, 68, 68, 0.12);
    border-color: rgba(248, 113, 113, 0.32);
}

[data-theme="dark"] .competitor-research-progress-percent {
    color: #93c5fd;
}

[data-theme="dark"] .website-detail-icon {
    background: rgba(59, 130, 246, 0.2);
}

@media (min-width: 1200px) {
    .website-detail-hero-meta-grid {
        width: 100%;
    }

    .website-detail-hero-meta-cell {
        flex: 1 1 0;
        min-width: 0;
        max-width: none;
    }

    .website-detail-hero-meta-cell--user {
        flex: 1.15 1 0;
        min-width: 0;
        max-width: none;
    }

    .website-detail-hero-meta-cell--industries {
        flex: 1.6 1 0;
        min-width: 0;
        max-width: none;
    }
}

@media (max-width: 767.98px) {
    .website-detail-hero-main {
        flex-direction: column;
        align-items: flex-start;
    }

    .website-detail-hero-head {
        flex-direction: column;
        align-items: stretch;
    }

    .website-detail-hero-toolbar-sep {
        display: none;
    }

    .website-detail-hero-toolbar {
        flex-direction: column;
        align-items: flex-start;
    }

    .website-detail-hero-title.page-header-panel-title {
        font-size: 1.35rem;
    }

    .website-detail-hero-meta-item {
        padding: 0.75rem 0.85rem;
    }

    .website-detail-stat-grid--overview,
    .website-detail-stat-grid--compact {
        grid-template-columns: 1fr;
    }

    .website-detail-row {
        grid-template-columns: 1fr;
        gap: 0.25rem;
    }

    .website-detail-actions {
        width: 100%;
        margin-left: 0;
        flex-wrap: nowrap;
        overflow: hidden;
        justify-content: stretch;
    }

    .website-detail-actions > :is(a.btn, form, button.btn) {
        flex: 1 1 0;
        min-width: 0;
    }

    .website-detail-actions > form {
        display: flex;
    }

    .website-detail-actions .btn {
        flex: 1 1 auto;
        min-width: 0;
        width: 100%;
        justify-content: center;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        padding: 0.3rem 0.28rem;
        font-size: 0.62rem;
        gap: 0.2rem;
    }

    .website-detail-actions .btn i {
        flex-shrink: 0;
        margin-right: 0 !important;
        font-size: 0.52rem;
    }

    .competitor-card-header {
        flex-wrap: wrap;
    }

    .competitor-card-link {
        width: 100%;
        margin-top: 0.25rem;
    }
}

/* Sidebar plan + support: sidebar on xxl+, profile dropdown on laptop and below */
@media (max-width: 1399.98px) {
    .sidebar-desktop-only {
        display: none !important;
    }

    .user-dropdown-mobile-extras {
        display: block;
    }
}

/* Responsive */
@media (max-width: 991.98px) {
    .app-sidebar {
        width: min(280px, 88vw);
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        box-shadow: none;
    }

    .app-sidebar.show {
        transform: translateX(0);
        box-shadow: 8px 0 32px rgba(0, 0, 0, 0.35);
    }

    [data-theme="light"] .app-sidebar.show {
        box-shadow: 8px 0 28px rgba(15, 23, 42, 0.12);
    }

    .app-main { margin-left: 0; }

    .sidebar-brand {
        padding: 1rem 0.85rem;
    }

    .sidebar-brand h5 {
        font-size: 0.95rem;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .sidebar-tenant-wrap {
        padding: 0.65rem 0.85rem;
    }

    .tenant-box {
        min-height: 56px;
        padding: 0.75rem;
    }

    .tenant-box-avatar {
        width: 40px;
        height: 40px;
        font-size: 0.8rem;
    }

    .sidebar-nav .nav-link {
        min-height: 44px;
        padding: 0.65rem 0.85rem;
    }

    .sidebar-plan-card,
    .sidebar-footer-link,
    .sidebar-footer-support {
        margin-left: 0.85rem;
        margin-right: 0.85rem;
    }
    .lp-nav-center { display: none !important; }
    .lp-dashboard-mockup { transform: none; margin-top: 2rem; }
    .lp-hero { padding-top: 2rem; }
    .lp-brands-carousel { padding: 0 0 2rem; }
    .lp-carousel-control { display: none; }
}

/* Platform support requests */
.support-type-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}

.support-type-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
    width: 100%;
    padding: 1rem;
    border: 1px solid var(--border-color, #e5e7eb);
    border-radius: 14px;
    background: var(--surface-elevated, #fff);
    text-align: left;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.support-type-card:hover {
    border-color: var(--brand-blue, #3b82f6);
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.12);
    transform: translateY(-1px);
}

.support-type-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.support-type-icon-bug { background: rgba(239, 68, 68, 0.12); color: #ef4444; }
.support-type-icon-feature { background: rgba(245, 158, 11, 0.14); color: #d97706; }
.support-type-icon-complaint { background: rgba(168, 85, 247, 0.12); color: #9333ea; }
.support-type-icon-feedback { background: rgba(59, 130, 246, 0.12); color: #3b82f6; }

.support-type-label {
    font-weight: 600;
    color: var(--text-primary, #111827);
}

.support-type-desc {
    font-size: 0.8125rem;
    color: var(--text-muted, #6b7280);
}

.support-star-rating {
    display: inline-flex;
    gap: 0.35rem;
}

.support-star-btn {
    border: 0;
    background: transparent;
    padding: 0.15rem;
    font-size: 1.5rem;
    line-height: 1;
    color: #f59e0b;
    cursor: pointer;
}

.support-star-btn.is-active,
.support-star-btn:hover {
    transform: scale(1.05);
}

.support-success-icon {
    font-size: 3rem;
    color: #22c55e;
}

.support-success-state .support-success-title,
.support-success-state .support-success-text {
    color: var(--text-primary);
}

[data-theme="dark"] .support-success-state .support-success-title,
[data-theme="dark"] .support-success-state .support-success-text,
[data-theme="dark"] .support-modal-subtitle,
[data-theme="dark"] .support-modal-muted {
    color: #ffffff;
}

.support-modal-tabs {
    border-bottom-color: var(--card-border, #e5e7eb);
}

.support-modal-tabs .nav-link {
    color: var(--text-muted, #6b7280);
    font-weight: 600;
    font-size: 0.9rem;
    border: none;
    border-bottom: 2px solid transparent;
    padding: 0.5rem 0.85rem;
}

.support-modal-tabs .nav-link:hover {
    color: var(--text-primary, #111827);
    border-color: transparent;
}

.support-modal-tabs .nav-link.active {
    color: var(--brand-blue, #3b82f6);
    background: transparent;
    border-color: transparent transparent var(--brand-blue, #3b82f6);
}

[data-theme="dark"] .support-modal-tabs .nav-link {
    color: rgba(255, 255, 255, 0.65);
}

[data-theme="dark"] .support-modal-tabs .nav-link:hover,
[data-theme="dark"] .support-modal-tabs .nav-link.active {
    color: #ffffff;
}

.support-sent-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-height: 420px;
    overflow-y: auto;
}

.support-sent-item {
    padding: 0.85rem 1rem;
    border-radius: 12px;
    border: 1px solid var(--border-color, #e5e7eb);
    background: var(--surface-muted, #f9fafb);
}

.support-sent-item-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.support-sent-type {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-primary, #111827);
}

.support-sent-message {
    margin: 0 0 0.5rem;
    white-space: pre-wrap;
    font-size: 0.9rem;
    color: var(--text-primary, #111827);
}

.support-sent-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem 1rem;
}

.support-sent-stars {
    color: #f59e0b;
}

[data-theme="dark"] .support-sent-item {
    background: rgba(255, 255, 255, 0.04);
    border-color: var(--border-color);
}

[data-theme="dark"] .support-sent-type,
[data-theme="dark"] .support-sent-message {
    color: #ffffff;
}

.support-list-stars {
    color: #f59e0b;
    letter-spacing: 0.05em;
}

.support-detail-field {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.support-detail-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-muted, #6b7280);
}

.support-detail-value {
    font-weight: 500;
    color: var(--text-primary, #111827);
}

.support-detail-message {
    white-space: pre-wrap;
    padding: 0.85rem 1rem;
    border-radius: 12px;
    background: var(--surface-muted, #f9fafb);
    border: 1px solid var(--border-color, #e5e7eb);
    color: var(--text-primary, #111827);
}

[data-theme="dark"] .support-type-card {
    background: var(--surface-elevated);
    border-color: var(--border-color);
}

[data-theme="dark"] .support-detail-message {
    background: rgba(255, 255, 255, 0.04);
    border-color: var(--border-color);
}

.system-health-checks {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.system-health-check-row {
    display: flex;
    gap: 0.85rem;
    padding: 0.85rem 1rem;
    border-radius: 12px;
    border: 1px solid var(--border-color, #e5e7eb);
    background: var(--surface-muted, #f9fafb);
}

.system-health-check-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(59, 130, 246, 0.12);
    color: var(--brand-blue, #3b82f6);
    flex-shrink: 0;
}

.system-health-check-name {
    color: var(--text-primary, #111827);
}

.system-health-check-message {
    font-size: 0.875rem;
    color: var(--text-muted, #6b7280);
    margin-top: 0.25rem;
}

.system-health-snapshot-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.system-health-env-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.65rem;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: 1px solid transparent;
    white-space: nowrap;
}

.system-health-env-badge--blue {
    background: rgba(59, 130, 246, 0.12);
    color: var(--brand-blue, #3b82f6);
    border-color: rgba(59, 130, 246, 0.22);
}

.system-health-env-badge--green {
    background: rgba(16, 185, 129, 0.12);
    color: var(--success, #10b981);
    border-color: rgba(16, 185, 129, 0.22);
}

.system-health-env-badge--orange {
    background: rgba(245, 158, 11, 0.12);
    color: var(--orange, #f59e0b);
    border-color: rgba(245, 158, 11, 0.22);
}

.system-health-runtime {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.system-health-runtime-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 0.7rem;
    border-radius: 10px;
    background: var(--surface-muted, #f3f4f6);
    border: 1px solid var(--border-color, #e5e7eb);
    font-size: 0.8rem;
    min-width: 0;
}

.system-health-runtime-chip i {
    color: var(--brand-blue, #3b82f6);
    font-size: 0.75rem;
}

.system-health-runtime-label {
    color: var(--text-muted, #6b7280);
    font-weight: 600;
}

.system-health-runtime-value {
    color: var(--text-primary, #111827);
    font-weight: 700;
}

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

.system-health-snapshot-stat {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.2rem;
    padding: 0.85rem 0.9rem;
    border-radius: 12px;
    border: 1px solid var(--border-color, #e5e7eb);
    background: linear-gradient(180deg, var(--surface-muted, #f9fafb) 0%, var(--surface, #fff) 100%);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.system-health-snapshot-stat.is-highlight {
    border-color: rgba(245, 158, 11, 0.45);
    box-shadow: 0 0 0 1px rgba(245, 158, 11, 0.12);
}

.system-health-snapshot-stat-icon {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    margin-bottom: 0.15rem;
}

.system-health-snapshot-stat-icon--blue {
    background: rgba(59, 130, 246, 0.12);
    color: var(--brand-blue, #3b82f6);
}

.system-health-snapshot-stat-icon--green {
    background: rgba(16, 185, 129, 0.12);
    color: var(--success, #10b981);
}

.system-health-snapshot-stat-icon--purple {
    background: rgba(139, 92, 246, 0.12);
    color: var(--purple, #8b5cf6);
}

.system-health-snapshot-stat-icon--orange {
    background: rgba(245, 158, 11, 0.12);
    color: var(--orange, #f59e0b);
}

.system-health-snapshot-stat-value {
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1.1;
    color: var(--text-primary, #111827);
}

.system-health-snapshot-stat-label {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--text-muted, #6b7280);
    line-height: 1.3;
}

.system-health-snapshot-foot {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    margin-top: 0.85rem;
    padding-top: 0.85rem;
    border-top: 1px solid var(--border-color, #e5e7eb);
    font-size: 0.8rem;
    color: var(--text-muted, #6b7280);
}

.system-health-snapshot-foot i {
    color: var(--brand-blue, #3b82f6);
}

.system-health-snapshot-foot strong {
    margin-left: auto;
    color: var(--text-primary, #111827);
    font-size: 0.95rem;
}

.system-health-app-list {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.system-health-app-row {
    display: grid;
    grid-template-columns: minmax(5.5rem, 38%) 1fr;
    align-items: center;
    gap: 0.65rem;
    padding: 0.55rem 0.65rem;
    border-radius: 10px;
    background: var(--surface-muted, #f9fafb);
    border: 1px solid var(--border-color, #e5e7eb);
}

.system-health-app-row dt {
    margin: 0;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-muted, #6b7280);
}

.system-health-app-row dd {
    margin: 0;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary, #111827);
    text-align: right;
}

.system-health-app-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--brand-blue, #3b82f6);
    text-decoration: none;
    font-weight: 600;
}

.system-health-app-link:hover {
    text-decoration: underline;
}

.system-health-app-link i {
    font-size: 0.7rem;
}

[data-theme="dark"] .system-health-check-row {
    background: rgba(255, 255, 255, 0.04);
    border-color: var(--border-color);
}

[data-theme="dark"] .system-health-check-name,
[data-theme="dark"] .system-health-snapshot-stat-value,
[data-theme="dark"] .system-health-runtime-value,
[data-theme="dark"] .system-health-snapshot-foot strong,
[data-theme="dark"] .system-health-app-row dd {
    color: #ffffff;
}

[data-theme="dark"] .system-health-check-message,
[data-theme="dark"] .system-health-snapshot-stat-label,
[data-theme="dark"] .system-health-runtime-label,
[data-theme="dark"] .system-health-snapshot-foot,
[data-theme="dark"] .system-health-app-row dt {
    color: rgba(255, 255, 255, 0.72);
}

[data-theme="dark"] .system-health-runtime-chip,
[data-theme="dark"] .system-health-snapshot-stat,
[data-theme="dark"] .system-health-app-row {
    background: rgba(255, 255, 255, 0.04);
    border-color: var(--border-color);
}

[data-theme="dark"] .system-health-snapshot-stat {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.02) 100%);
}

.admin-dashboard-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}

.admin-dashboard-year-select .form-select,
.admin-dashboard-year-select .form-select.form-select-sm {
    min-width: 7.5rem;
    color: #ffffff;
    background-color: var(--sidebar-bg, #0b1426);
    border-color: rgba(255, 255, 255, 0.2);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23ffffff' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
}

.admin-dashboard-year-select .form-select:hover:not(:disabled),
.admin-dashboard-year-select .form-select:focus,
.admin-dashboard-year-select .form-select.form-select-sm:hover:not(:disabled),
.admin-dashboard-year-select .form-select.form-select-sm:focus {
    color: #ffffff;
    background-color: var(--sidebar-hover, #152238);
    border-color: rgba(255, 255, 255, 0.35);
}

.admin-dashboard-year-select .form-select option {
    color: var(--text-primary);
    background-color: var(--dropdown-bg);
}

.admin-dashboard-chart-card {
    height: auto;
}

.admin-dashboard-chart-card .card-header-row {
    align-items: flex-start;
    margin-bottom: 0;
}

.admin-dashboard-chart-subtitle {
    font-size: 0.8rem;
    color: var(--text-muted, #6b7280);
    margin-top: 0.15rem;
}

.admin-dashboard-chart-area {
    position: relative;
    height: 220px;
    max-height: 220px;
    margin-top: 0.75rem;
    overflow: hidden;
}

.admin-dashboard-chart-area--combined {
    height: 280px;
    max-height: 280px;
}

.admin-dashboard-chart-area canvas {
    display: block;
    width: 100% !important;
    height: 100% !important;
    max-height: 100%;
}

[data-theme="dark"] .admin-dashboard-chart-subtitle {
    color: rgba(255, 255, 255, 0.72);
}

@media (max-width: 575.98px) {
    .support-type-grid {
        grid-template-columns: 1fr;
    }

    .admin-dashboard-chart-area--combined {
        height: 240px;
        max-height: 240px;
    }
}

/* Industry tag multi-select (website modal) */
.industry-tag-select {
    position: relative;
}

.industry-tag-select.is-disabled {
    opacity: 0.65;
    pointer-events: none;
}

.industry-tag-select-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    min-height: 2rem;
    margin-bottom: 0.5rem;
}

.industry-tag-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.2rem 0.5rem 0.2rem 0.65rem;
    border-radius: 999px;
    font-size: 0.8125rem;
    line-height: 1.3;
    background: rgba(var(--bs-primary-rgb, 13, 110, 253), 0.12);
    border: 1px solid rgba(var(--bs-primary-rgb, 13, 110, 253), 0.25);
    color: var(--text-primary, #111827);
}

[data-theme="dark"] .industry-tag-chip {
    background: rgba(96, 165, 250, 0.15);
    border-color: rgba(96, 165, 250, 0.35);
    color: rgba(255, 255, 255, 0.92);
}

.industry-tag-chip-remove {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.25rem;
    height: 1.25rem;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: transparent;
    color: inherit;
    opacity: 0.75;
    line-height: 1;
    cursor: pointer;
}

.industry-tag-chip-remove:hover {
    opacity: 1;
    background: rgba(0, 0, 0, 0.08);
}

[data-theme="dark"] .industry-tag-chip-remove:hover {
    background: rgba(255, 255, 255, 0.12);
}

.industry-tag-select-input-wrap {
    position: relative;
}

.industry-tag-select-dropdown {
    position: absolute;
    z-index: 1060;
    left: 0;
    right: 0;
    top: 100%;
    margin-top: 0.25rem;
    max-height: 12rem;
    overflow-y: auto;
    border-radius: 0.375rem;
    border: 1px solid var(--border-color, #dee2e6);
    background: var(--surface-elevated, #fff);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.12);
}

[data-theme="dark"] .industry-tag-select-dropdown {
    background: var(--surface-elevated, #1e293b);
    border-color: rgba(255, 255, 255, 0.12);
}

.industry-tag-select-option {
    display: block;
    width: 100%;
    text-align: left;
    padding: 0.5rem 0.75rem;
    border: none;
    background: transparent;
    color: inherit;
    font-size: 0.875rem;
    cursor: pointer;
}

.industry-tag-select-option:hover,
.industry-tag-select-option:focus {
    background: rgba(var(--bs-primary-rgb, 13, 110, 253), 0.08);
}

.website-detail-industries {
    display: grid;
    gap: 0.65rem;
}

.website-detail-industries-row dt {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-muted, #6b7280);
    margin-bottom: 0.15rem;
}

.website-detail-industries-row dd {
    margin: 0;
    font-size: 0.9rem;
}

/* Industry card multi-select (sub-industries in website modal) */
.industry-card-select-scroll {
    max-height: min(14rem, 32vh);
    margin-top: 0.25rem;
    padding: 0.65rem 0.75rem;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    border: 1px solid var(--border-color, #dee2e6);
    border-radius: 0.5rem;
    background: var(--surface-2, #f8f9fa);
    -webkit-overflow-scrolling: touch;
}

[data-theme="dark"] .industry-card-select-scroll {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .industry-card-select-empty.text-muted {
    color: #ffffff !important;
}

#websiteModal .industry-card-select-scroll {
    max-height: min(13.5rem, 28vh);
}

.industry-card-select.is-disabled .industry-card-select-groups {
    display: none;
}

.industry-card-group-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-muted, #6b7280);
    margin: 0.75rem 0 0.5rem;
}

.industry-card-group-label:first-child {
    margin-top: 0;
}

.industry-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(10.5rem, 1fr));
    gap: 0.5rem;
}

.industry-card {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    width: 100%;
    min-height: 3rem;
    padding: 0.65rem 0.75rem;
    border: 1px solid var(--border-color, #dee2e6);
    border-radius: 0.5rem;
    background: var(--surface-elevated, #fff);
    color: var(--text-primary, #111827);
    font-size: 0.875rem;
    line-height: 1.35;
    text-align: left;
    cursor: pointer;
    transition: border-color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}

[data-theme="dark"] .industry-card {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.92);
}

.industry-card:hover {
    border-color: rgba(var(--bs-primary-rgb, 13, 110, 253), 0.45);
}

.industry-card.is-selected {
    border-color: rgba(var(--bs-primary-rgb, 13, 110, 253), 0.65);
    background: rgba(var(--bs-primary-rgb, 13, 110, 253), 0.1);
    box-shadow: 0 0 0 1px rgba(var(--bs-primary-rgb, 13, 110, 253), 0.2);
}

[data-theme="dark"] .industry-card.is-selected {
    background: rgba(96, 165, 250, 0.14);
    border-color: rgba(96, 165, 250, 0.5);
}

.industry-card-check {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.125rem;
    height: 1.125rem;
    margin-top: 0.1rem;
    border-radius: 0.25rem;
    border: 1px solid var(--border-color, #ced4da);
    color: transparent;
    font-size: 0.65rem;
}

.industry-card.is-selected .industry-card-check {
    border-color: transparent;
    background: var(--bs-primary, #0d6efd);
    color: #fff;
}

.industry-card-label {
    flex: 1;
    min-width: 0;
}

/* Click-to-call modal */
.call-to-customer-modal-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.call-to-customer-modal-title-icon {
    color: var(--bs-success);
}

.call-to-customer-demo-badge {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--brand-blue);
    background: rgba(59, 130, 246, 0.12);
    border: 1px solid rgba(59, 130, 246, 0.28);
    border-radius: 999px;
    padding: 0.15rem 0.5rem;
}

[data-theme="dark"] .call-to-customer-modal .call-to-customer-status-hint,
[data-theme="dark"] .call-to-customer-modal .call-to-customer-status-hint.text-muted {
    color: #fff !important;
    opacity: 0.92;
}

.call-to-customer-avatar {
    width: 4rem;
    height: 4rem;
    margin: 0 auto 0.5rem;
    border-radius: 50%;
    background: var(--bs-primary-bg-subtle, #e7f1ff);
    color: var(--bs-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1.25rem;
}

.call-to-customer-pulse {
    width: 5rem;
    height: 5rem;
    margin: 0 auto 0.75rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    position: relative;
}

.call-to-customer-pulse--dialing {
    color: var(--bs-primary);
    box-shadow: 0 0 0 0 rgba(13, 110, 253, 0.35);
    animation: call-pulse-blue 1.5s ease-out infinite;
}

.call-to-customer-pulse--ringing {
    color: var(--bs-success);
    animation: call-pulse-green 1.2s ease-out infinite;
}

.call-to-customer-pulse--answered {
    background: var(--bs-success);
    color: #fff;
}

.call-to-customer-pulse--ended {
    background: var(--bs-secondary);
    color: #fff;
}

@keyframes call-pulse-blue {
    0% { box-shadow: 0 0 0 0 rgba(13, 110, 253, 0.45); }
    70% { box-shadow: 0 0 0 18px rgba(13, 110, 253, 0); }
    100% { box-shadow: 0 0 0 0 rgba(13, 110, 253, 0); }
}

@keyframes call-pulse-green {
    0% { box-shadow: 0 0 0 0 rgba(25, 135, 84, 0.45); }
    70% { box-shadow: 0 0 0 18px rgba(25, 135, 84, 0); }
    100% { box-shadow: 0 0 0 0 rgba(25, 135, 84, 0); }
}

.call-to-customer-steps .call-to-customer-step {
    color: var(--bs-secondary);
    flex: 1;
    text-align: center;
    position: relative;
}

.call-to-customer-steps .call-to-customer-step.is-active {
    color: var(--bs-primary);
    font-weight: 600;
}

.call-to-customer-steps .call-to-customer-step.is-done {
    color: var(--bs-success);
}

.call-to-customer-control-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    border: none;
    background: transparent;
    color: var(--bs-secondary);
    font-size: 0.75rem;
    opacity: 0.45;
    cursor: not-allowed;
    min-width: 3.5rem;
    padding: 0.25rem;
}

.call-to-customer-control-btn:not(:disabled) {
    opacity: 1;
    cursor: pointer;
}

.call-to-customer-control-btn:not(:disabled):hover {
    color: var(--bs-primary);
}

.call-to-customer-control-btn.is-active {
    color: var(--bs-primary);
}

.call-to-customer-keypad-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    max-width: 14rem;
    margin: 0 auto;
}

.call-to-customer-keypad-key {
    border: 1px solid var(--bs-border-color);
    background: var(--bs-body-bg);
    border-radius: 0.5rem;
    padding: 0.65rem 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--bs-body-color);
}

.call-to-customer-keypad-key:hover:not(:disabled) {
    background: var(--bs-primary-bg-subtle, #e7f1ff);
    border-color: var(--bs-primary);
}

.call-to-customer-keypad-key:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.settings-call-demo-test-phone {
    min-width: min(100%, 14rem);
    flex: 1;
}

.settings-call-demo-test-phone .form-control-sm {
    max-width: 16rem;
}

.call-log-transcript-thread {
    max-height: 20rem;
    overflow-y: auto;
}

.platform-agreement-render,
.platform-agreement-doc {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--text-primary);
}

.platform-agreement-render h2,
.platform-agreement-doc h2 {
    font-size: 1.15rem;
    font-weight: 700;
    margin: 0 0 0.75rem;
}

.platform-agreement-render h3,
.platform-agreement-doc h3 {
    font-size: 1rem;
    font-weight: 700;
    margin: 1.25rem 0 0.5rem;
}

.platform-agreement-notice {
    padding: 0.65rem 0.85rem;
    border-radius: 10px;
    background: rgba(245, 158, 11, 0.12);
    border: 1px solid rgba(245, 158, 11, 0.28);
    margin-bottom: 1rem;
}

.platform-agreement-render ul,
.platform-agreement-doc ul {
    padding-left: 1.25rem;
    margin-bottom: 0.75rem;
}

.company-agreements-card {
    padding: 0;
    height: auto;
}

.company-agreements-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--card-border);
}

.company-agreements-card-desc {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.2rem;
}

.company-agreements-pending-pill {
    flex-shrink: 0;
    padding: 0.3rem 0.7rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: #b45309;
    background: rgba(245, 158, 11, 0.14);
    border: 1px solid rgba(245, 158, 11, 0.28);
    border-radius: 999px;
}

.company-agreements-table-wrap {
    padding: 0;
}

.company-agreements-table {
    min-width: 0;
}

.company-agreements-table thead th {
    padding: 0.55rem 1.15rem;
}

.company-agreements-table tbody td {
    padding: 0.7rem 1.15rem;
}

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

.company-agreements-row--pending td {
    background: rgba(245, 158, 11, 0.04);
}

[data-theme="dark"] .company-agreements-row--pending td {
    background: rgba(245, 158, 11, 0.08);
}

.company-agreement-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 10px;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.company-agreement-icon--purple {
    background: rgba(139, 92, 246, 0.14);
    color: #7c3aed;
}

.company-agreement-icon--blue {
    background: rgba(59, 130, 246, 0.14);
    color: #2563eb;
}

.company-agreement-icon--orange {
    background: rgba(245, 158, 11, 0.14);
    color: #d97706;
}

.company-agreement-tag {
    display: inline-block;
    margin-top: 0.15rem;
    padding: 0.1rem 0.45rem;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #b45309;
    background: rgba(245, 158, 11, 0.12);
    border-radius: 4px;
}

.company-agreement-version {
    display: inline-flex;
    padding: 0.2rem 0.55rem;
    font-size: 0.78rem;
    font-weight: 700;
    font-family: ui-monospace, monospace;
    color: var(--brand);
    background: rgba(99, 102, 241, 0.1);
    border-radius: 6px;
}

.company-agreement-status {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.25rem 0.55rem;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 999px;
}

.company-agreement-status--pending {
    color: #b91c1c;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.company-agreement-status--accepted {
    color: #047857;
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.22);
}

.company-agreements-table .data-table-secondary {
    margin-top: 0.35rem;
}

.company-agreements-table .data-table-actions {
    justify-content: flex-end;
}

@media (max-width: 767.98px) {
    .company-agreements-table thead {
        display: none;
    }

    .company-agreements-table tbody tr {
        display: block;
        padding: 0.85rem 1.15rem;
        border-bottom: 1px solid var(--card-border);
    }

    .company-agreements-table tbody tr:last-child {
        border-bottom: none;
    }

    .company-agreements-table tbody td {
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        gap: 0.75rem;
        padding: 0.35rem 0;
        border: none;
    }

    .company-agreements-table tbody td::before {
        content: attr(data-label);
        font-size: 0.68rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.04em;
        color: var(--text-muted);
        flex-shrink: 0;
    }

    .company-agreements-table tbody td.text-end {
        justify-content: flex-end;
    }

    .company-agreements-table tbody td.text-end::before {
        display: none;
    }
}
