:root {
    --navy: #0D1B2A;
    --navy-mid: #1B2838;
    --navy-light: #E8EDF2;
    --steel: #415A77;
    --teal: #1B7A6E;
    --teal-light: #E6F5F2;
    --accent: #D4A843;
    --accent-light: #FDF5E6;
    --accent-hover: #C4972E;
    --white: #FFFFFF;
    --gray-50: #F8F9FA;
    --gray-100: #E9ECEF;
    --gray-600: #6C757D;
    --shadow: 0 2px 12px rgba(13, 27, 42, 0.08);
    --shadow-lg: 0 8px 30px rgba(13, 27, 42, 0.12);
    --radius: 12px;
    --radius-lg: 16px;
    /* Design-system aliases */
    --gold: var(--accent);
    --gold-soft: var(--accent-light);
    --teal-soft: var(--teal-light);
    --ink: var(--navy);
    --muted: var(--gray-600);
    --bg: var(--gray-50);
    --success: #198754;
    --danger: #DC3545;
    --warning: #FF9800;
}

/* ===== Dark Mode ===== */
[data-theme="dark"] {
    --navy-light: #1E293B;
    --gray-50: #0F172A;
    --gray-100: #1E293B;
    --gray-600: #94A3B8;
    --shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.4);
    --teal-light: #0F2D2A;
    --accent-light: #2A2210;
    --bg: #0F172A;
    --ink: #E2E8F0;
    --muted: #94A3B8;
    --gold-soft: #2A2210;
    --teal-soft: #0F2D2A;
}
[data-theme="dark"] body {
    color: #E2E8F0;
    background: #0F172A;
}
[data-theme="dark"] .bg-white,
[data-theme="dark"] .bg-light {
    background-color: #1E293B !important;
    color: #E2E8F0;
}
[data-theme="dark"] .text-dark,
[data-theme="dark"] .text-navy {
    color: #E2E8F0 !important;
}
[data-theme="dark"] .text-muted {
    color: #94A3B8 !important;
}
[data-theme="dark"] .card,
[data-theme="dark"] .fb-card {
    background: #1E293B;
    border-color: #334155;
    color: #E2E8F0;
}
[data-theme="dark"] .card-header {
    border-bottom-color: #334155;
}
[data-theme="dark"] .card-body {
    color: #E2E8F0;
}
[data-theme="dark"] .border,
[data-theme="dark"] .border-bottom,
[data-theme="dark"] .border-top {
    border-color: #334155 !important;
}
[data-theme="dark"] .shadow-sm,
[data-theme="dark"] .shadow {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3) !important;
}

/* Navbar stays dark in both modes */

/* Sidebar */
[data-theme="dark"] .fb-sidebar-left {
    background: #0F172A;
}
[data-theme="dark"] .fb-sidebar-right {
    background: #0F172A;
}
[data-theme="dark"] .fb-sidebar-item {
    color: #CBD5E1;
}
[data-theme="dark"] .fb-sidebar-item:hover {
    background: #1E293B;
    color: #F1F5F9;
}
[data-theme="dark"] .fb-sidebar-item.active {
    background: #1E293B;
    color: #F1F5F9;
}
[data-theme="dark"] .fb-sidebar-label {
    color: #64748B;
}

/* Feed */
[data-theme="dark"] .fb-feed {
    background: transparent;
}
[data-theme="dark"] .fb-card-header {
    border-bottom-color: #334155;
}
[data-theme="dark"] .fb-action-input {
    background: #334155;
    color: #94A3B8;
}
[data-theme="dark"] .fb-action-input:hover {
    background: #3E4C63;
}
[data-theme="dark"] .fb-feed-action {
    color: #94A3B8;
}
[data-theme="dark"] .fb-feed-action:hover {
    background: #1E293B;
    color: #F1F5F9;
}

/* Right sidebar */
[data-theme="dark"] .fb-right-item {
    color: #CBD5E1;
}
[data-theme="dark"] .fb-right-item:hover {
    background: #1E293B;
    color: #F1F5F9;
}
[data-theme="dark"] .fb-right-title {
    color: #64748B;
}
[data-theme="dark"] .fb-stat-item {
    background: #1E293B;
    box-shadow: none;
}
[data-theme="dark"] .fb-tip-card {
    background: #1E293B;
    box-shadow: none;
}

/* Forms */
[data-theme="dark"] .form-control,
[data-theme="dark"] .form-select {
    background-color: #1E293B;
    border-color: #334155;
    color: #E2E8F0;
}
[data-theme="dark"] .form-control::placeholder {
    color: #64748B;
}
[data-theme="dark"] .form-control:focus,
[data-theme="dark"] .form-select:focus {
    background-color: #233044;
    border-color: var(--accent);
    color: #F1F5F9;
}
[data-theme="dark"] .form-check-input {
    background-color: #334155;
    border-color: #475569;
}
[data-theme="dark"] .form-check-input:checked {
    background-color: var(--accent);
    border-color: var(--accent);
}
[data-theme="dark"] .input-group-text {
    background-color: #1E293B;
    border-color: #334155;
    color: #94A3B8;
}

/* Tables */
[data-theme="dark"] .table {
    color: #E2E8F0;
    --bs-table-bg: #1E293B;
    --bs-table-striped-bg: #233044;
    --bs-table-hover-bg: #2A3A52;
    border-color: #334155;
}
[data-theme="dark"] .table-light,
[data-theme="dark"] .table thead {
    --bs-table-bg: #162032;
    color: #94A3B8;
}
[data-theme="dark"] .table-dark,
[data-theme="dark"] thead.table-dark {
    --bs-table-bg: #0F172A;
    color: #E2E8F0;
}
[data-theme="dark"] .table-hover > tbody > tr:hover {
    --bs-table-hover-bg: #2A3A52;
    color: #F1F5F9;
}

/* Buttons */
[data-theme="dark"] .btn-light {
    background: #1E293B;
    border-color: #334155;
    color: #E2E8F0;
}
[data-theme="dark"] .btn-light:hover {
    background: #334155;
    color: #F1F5F9;
}
[data-theme="dark"] .btn-outline-secondary {
    border-color: #475569;
    color: #94A3B8;
}
[data-theme="dark"] .btn-outline-secondary:hover {
    background: #334155;
    color: #F1F5F9;
}
[data-theme="dark"] .btn-outline-navy {
    border-color: #475569;
    color: #CBD5E1;
}
[data-theme="dark"] .btn-outline-navy:hover {
    background: var(--navy);
    color: #fff;
}

/* Dropdowns & Modals */
[data-theme="dark"] .dropdown-menu {
    background-color: #1E293B;
    border-color: #334155;
    color: #E2E8F0;
}
[data-theme="dark"] .dropdown-item {
    color: #CBD5E1;
}
[data-theme="dark"] .dropdown-item:hover,
[data-theme="dark"] .dropdown-item:focus {
    background-color: #334155;
    color: #F1F5F9;
}
[data-theme="dark"] .dropdown-item.active {
    background-color: var(--accent);
    color: var(--navy);
}
[data-theme="dark"] .dropdown-divider {
    border-color: #334155;
}
[data-theme="dark"] .modal-content {
    background-color: #1E293B;
    border-color: #334155;
    color: #E2E8F0;
}
[data-theme="dark"] .modal-header {
    border-bottom-color: #334155;
}
[data-theme="dark"] .modal-footer {
    border-top-color: #334155;
}

/* Alerts */
[data-theme="dark"] .alert-success { background: rgba(25, 135, 84, 0.15); color: #6EE7B7; border-color: rgba(25, 135, 84, 0.3); }
[data-theme="dark"] .alert-danger { background: rgba(220, 53, 69, 0.15); color: #FCA5A5; border-color: rgba(220, 53, 69, 0.3); }
[data-theme="dark"] .alert-warning { background: rgba(255, 152, 0, 0.15); color: #FCD34D; border-color: rgba(255, 152, 0, 0.3); }
[data-theme="dark"] .alert-info { background: rgba(13, 110, 253, 0.15); color: #93C5FD; border-color: rgba(13, 110, 253, 0.3); }

/* Badges */
[data-theme="dark"] .badge.bg-light {
    background-color: #334155 !important;
    color: #CBD5E1 !important;
}

/* Pagination */
[data-theme="dark"] .page-link {
    background-color: #1E293B;
    border-color: #334155;
    color: #CBD5E1;
}
[data-theme="dark"] .page-item.active .page-link {
    background-color: var(--accent);
    border-color: var(--accent);
    color: var(--navy);
}

/* Stat cards */
[data-theme="dark"] .stat-card {
    background: #1E293B;
}
[data-theme="dark"] .stat-icon {
    opacity: 0.9;
}

/* Service hub cards */
[data-theme="dark"] .service-hub-card {
    background: #1E293B;
    border-color: #334155;
}
[data-theme="dark"] .service-hub-card:hover {
    border-color: var(--accent);
}

/* Calendar */
[data-theme="dark"] .calendar-day {
    color: #CBD5E1;
}
[data-theme="dark"] .calendar-day.other-month {
    color: #475569;
}
[data-theme="dark"] .calendar-day:hover:not(.other-month) {
    background: #1E293B;
}
[data-theme="dark"] .calendar-day-name {
    color: #64748B;
}

/* Provider cards */
[data-theme="dark"] .provider-result-card {
    background: #1E293B;
    border-color: #334155;
}

/* User type cards */
[data-theme="dark"] .user-type-card {
    background: #1E293B;
}

/* Feature / step cards */
[data-theme="dark"] .feature-card,
[data-theme="dark"] .step-card {
    background: #1E293B;
}

/* Plan cards */
[data-theme="dark"] .plan-card {
    background: #1E293B;
    border-color: #334155;
}
[data-theme="dark"] .plan-featured {
    border-color: var(--accent);
}

/* Chat */
[data-theme="dark"] .ai-bubble {
    background: #1E293B;
    color: #E2E8F0;
}

/* KPI / Dashboard cards */
[data-theme="dark"] .kpi-card {
    background: #1E293B;
    border-color: #334155;
}
[data-theme="dark"] .kpi-label {
    color: #94A3B8;
}
[data-theme="dark"] .qa-btn {
    background: #1E293B;
    border-color: #334155;
    color: #CBD5E1;
}
[data-theme="dark"] .qa-btn:hover {
    background: var(--navy);
    color: #fff;
    border-color: var(--navy);
}
[data-theme="dark"] .dash-welcome {
    border-color: #334155;
}

/* Upcoming items */
[data-theme="dark"] .upcoming-service-item {
    background: #1E293B;
}
[data-theme="dark"] .upcoming-service-item:hover {
    background: #233044;
}

/* Admin */
[data-theme="dark"] .admin-stat-card {
    background: #1E293B;
}

/* Auth card */
[data-theme="dark"] .auth-card {
    background: #1E293B;
}
[data-theme="dark"] .auth-section {
    background: linear-gradient(135deg, #0F172A, #1E293B);
}

/* Footer */
[data-theme="dark"] .footer {
    background: #0B1120 !important;
}

/* Mobile bottom nav */
[data-theme="dark"] .mobile-bottom-nav {
    background: #0B1120;
    box-shadow: 0 -2px 16px rgba(0, 0, 0, 0.4);
}

/* Invoice print styles override - keep print always white */
@media print {
    [data-theme="dark"] body { color: #000 !important; background: #fff !important; }
}

/* Carol widget */
[data-theme="dark"] .onitly-panel {
    background: #1E293B;
}
[data-theme="dark"] .onitly-panel-footer {
    background: #162032;
    border-top-color: #334155;
}
[data-theme="dark"] .onitly-bubble-ai {
    background: #0F172A;
    color: #E2E8F0;
}

/* Portfolio */
[data-theme="dark"] .portfolio-card {
    background: #1E293B;
    border-color: #334155;
}

/* Scrollbar */
[data-theme="dark"] ::-webkit-scrollbar-track {
    background: #0F172A;
}
[data-theme="dark"] ::-webkit-scrollbar-thumb {
    background: #334155;
}

/* List group */
[data-theme="dark"] .list-group-item {
    background-color: #1E293B;
    border-color: #334155;
    color: #E2E8F0;
}

/* Accordion */
[data-theme="dark"] .accordion-item {
    background-color: #1E293B;
    border-color: #334155;
}
[data-theme="dark"] .accordion-button {
    background-color: #1E293B;
    color: #E2E8F0;
}
[data-theme="dark"] .accordion-button:not(.collapsed) {
    background-color: #233044;
    color: #F1F5F9;
}

/* Nav tabs/pills */
[data-theme="dark"] .nav-tabs .nav-link {
    color: #94A3B8;
}
[data-theme="dark"] .nav-tabs .nav-link.active {
    background-color: #1E293B;
    border-color: #334155;
    color: #F1F5F9;
}
[data-theme="dark"] .nav-pills .nav-link {
    color: #94A3B8;
}
[data-theme="dark"] .nav-pills .nav-link.active {
    background-color: var(--accent);
    color: var(--navy);
}

/* Breadcrumb */
[data-theme="dark"] .breadcrumb {
    color: #94A3B8;
}
[data-theme="dark"] .breadcrumb-item a {
    color: var(--accent);
}

/* Text on bg-white sections */
[data-theme="dark"] h1, [data-theme="dark"] h2, [data-theme="dark"] h3,
[data-theme="dark"] h4, [data-theme="dark"] h5, [data-theme="dark"] h6 {
    color: #F1F5F9;
}
[data-theme="dark"] p {
    color: #CBD5E1;
}
[data-theme="dark"] label,
[data-theme="dark"] .form-label {
    color: #CBD5E1;
}
[data-theme="dark"] strong {
    color: #F1F5F9;
}
[data-theme="dark"] code {
    color: #F59E0B;
    background: #1E293B;
}
[data-theme="dark"] hr {
    border-color: #334155;
    opacity: 0.5;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: #2D3748;
    background: var(--gray-50);
    -webkit-font-smoothing: antialiased;
}

.main-content {
    padding-top: 72px;
    min-height: calc(100vh - 80px);
}

.main-content:has(.fb-layout) {
    padding-top: 0;
    min-height: auto;
}

.main-content:has(.hero-section),
.main-content:has(.pro-hero) {
    padding-top: 0;
}

/* ===== Colors ===== */
.text-navy { color: var(--navy) !important; }
.text-accent { color: var(--accent) !important; }
.text-teal { color: var(--teal) !important; }
.text-white-75 { color: rgba(255,255,255,0.75) !important; }
.text-white-50 { color: rgba(255,255,255,0.5) !important; }

.bg-navy { background-color: var(--navy) !important; }
.bg-navy-light { background-color: var(--navy-light) !important; }
.bg-accent-light { background-color: var(--accent-light) !important; }
.bg-teal-light { background-color: var(--teal-light) !important; }

.bg-gradient-navy {
    background: linear-gradient(135deg, var(--navy) 0%, var(--steel) 100%) !important;
}

/* ===== Navbar ===== */
.navbar {
    padding: 0.75rem 0;
    backdrop-filter: blur(12px);
    transition: all 0.3s ease;
}

.brand-text {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.navbar .nav-link {
    font-weight: 500;
    padding: 0.5rem 0.75rem !important;
    border-radius: 8px;
    transition: all 0.2s ease;
    font-size: 0.9rem;
}

.navbar .nav-link:hover {
    background: rgba(255,255,255,0.1);
}

.avatar-sm {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--navy-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.avatar-md {
    width: 48px;
    height: 48px;
}

.avatar-lg {
    width: 120px;
    height: 120px;
}

/* ===== Facebook-style Navbar ===== */
.fb-navbar {
    padding: 0 !important;
    height: 56px;
}

.fb-nav-left {
    flex: 0 0 auto;
}

.fb-search-form {
    width: 240px;
}

.fb-search-form .input-group {
    background: rgba(255,255,255,0.1);
    border-radius: 20px;
    overflow: hidden;
}

.fb-search-input {
    background: transparent !important;
    border: none !important;
    color: white !important;
    font-size: 0.85rem;
    padding: 6px 12px 6px 0;
    box-shadow: none !important;
}

.fb-search-input::placeholder {
    color: rgba(255,255,255,0.5);
}

.fb-nav-center {
    display: flex;
    gap: 4px;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.fb-nav-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 110px;
    height: 48px;
    border-radius: 8px;
    color: rgba(255,255,255,0.6);
    font-size: 1.3rem;
    transition: all 0.2s ease;
    text-decoration: none;
    position: relative;
}

.fb-nav-icon:hover {
    background: rgba(255,255,255,0.1);
    color: white;
}

.fb-nav-icon.active {
    color: var(--accent);
}

.fb-nav-icon.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 8px;
    right: 8px;
    height: 3px;
    background: var(--accent);
    border-radius: 2px 2px 0 0;
}

.fb-nav-right {
    flex: 0 0 auto;
}

.fb-action-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.12);
    border: none;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.fb-action-btn:hover {
    background: rgba(255,255,255,0.2);
}

.fb-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    background: #dc3545;
    color: white;
    font-size: 0.65rem;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.fb-profile-btn {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
}

.fb-avatar-placeholder {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1rem;
}

/* ===== Facebook-style Layout ===== */
.fb-layout {
    display: flex;
    gap: 0;
    max-width: 100%;
    margin: 0;
    padding-top: 56px;
    min-height: 100vh;
}

.fb-sidebar-left {
    position: fixed;
    top: 56px;
    left: 0;
    width: 280px;
    height: calc(100vh - 56px);
    overflow: hidden;
    padding: 8px 0;
    background: var(--gray-50);
    z-index: 100;
}

.fb-sidebar-scroll {
    height: 100%;
    overflow-y: auto;
    padding-bottom: 40px;
}

.fb-sidebar-scroll::-webkit-scrollbar { width: 6px; }
.fb-sidebar-scroll::-webkit-scrollbar-track { background: transparent; }
.fb-sidebar-scroll::-webkit-scrollbar-thumb { background: transparent; border-radius: 3px; }
.fb-sidebar-scroll:hover::-webkit-scrollbar-thumb { background: var(--gray-100); }

.fb-sidebar-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    margin: 1px 8px;
    border-radius: 8px;
    color: var(--navy);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.15s ease;
}

.fb-sidebar-item:hover {
    background: var(--gray-100);
    color: var(--navy);
}

.fb-sidebar-item.active {
    background: var(--navy-light);
    font-weight: 600;
}

.fb-sidebar-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.fb-sidebar-section {
    padding: 4px 16px;
}

.fb-sidebar-label {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--steel);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Feed */
.fb-feed {
    flex: 1;
    max-width: 680px;
    margin: 0 auto;
    padding: 16px;
    margin-left: 280px;
    margin-right: 280px;
}

.fb-card {
    background: white;
    border-radius: var(--radius);
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    overflow: hidden;
}

.fb-card-header {
    padding: 12px 16px;
    border-bottom: 1px solid var(--gray-100);
}

.fb-action-input {
    flex: 1;
    background: var(--gray-50);
    border: none;
    border-radius: 20px;
    padding: 10px 16px;
    color: var(--gray-600);
    font-size: 0.9rem;
    text-align: left;
    cursor: pointer;
    transition: background 0.2s ease;
}

.fb-action-input:hover {
    background: var(--gray-100);
}

.fb-feed-action {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--gray-600);
    text-decoration: none;
    background: none;
    border: none;
    cursor: pointer;
    transition: background 0.2s ease;
}

.fb-feed-action:hover {
    background: var(--gray-50);
    color: var(--navy);
}

.fb-feed-action i {
    font-size: 1.1rem;
}

/* Stories */
.fb-stories-scroll {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
}

.fb-stories-scroll::-webkit-scrollbar { display: none; }

.fb-story-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    text-decoration: none;
    flex-shrink: 0;
}

.fb-story-img {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    overflow: hidden;
    position: relative;
    border: 3px solid var(--accent);
    padding: 2px;
}

.fb-story-img img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.fb-story-placeholder {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: var(--navy-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--navy);
}

.fb-story-name {
    font-size: 0.72rem;
    color: var(--navy);
    font-weight: 500;
    max-width: 68px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-align: center;
}

/* Service items */
.fb-service-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--gray-100);
}

.fb-service-item:last-child {
    border-bottom: none;
}

.fb-service-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--navy-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--navy);
    font-size: 1rem;
    flex-shrink: 0;
}

.fb-mini-stat {
    padding: 8px 4px;
    border-radius: 8px;
    background: var(--gray-50);
}

/* Right Sidebar */
.fb-sidebar-right {
    position: fixed;
    top: 56px;
    right: 0;
    width: 280px;
    height: calc(100vh - 56px);
    overflow-y: auto;
    padding: 16px 12px;
    background: var(--gray-50);
    z-index: 100;
}

.fb-sidebar-right::-webkit-scrollbar { width: 6px; }
.fb-sidebar-right::-webkit-scrollbar-track { background: transparent; }
.fb-sidebar-right::-webkit-scrollbar-thumb { background: transparent; border-radius: 3px; }
.fb-sidebar-right:hover::-webkit-scrollbar-thumb { background: var(--gray-100); }

.fb-right-section {
    margin-bottom: 4px;
}

.fb-right-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--steel);
    margin-bottom: 8px;
}

.fb-right-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px;
    border-radius: 8px;
    text-decoration: none;
    color: var(--navy);
    transition: background 0.15s ease;
    margin-bottom: 2px;
}

.fb-right-item:hover {
    background: var(--gray-100);
    color: var(--navy);
}

.fb-right-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.fb-stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.fb-stat-item {
    text-align: center;
    padding: 8px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.fb-stat-value {
    font-size: 1.1rem;
    font-weight: 700;
}

.fb-stat-label {
    font-size: 0.7rem;
    color: var(--gray-600);
}

.fb-tip-card {
    background: white;
    border-radius: 8px;
    padding: 12px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

/* ===== Mobile Bottom Navigation ===== */
.mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: var(--navy);
    display: flex;
    align-items: center;
    justify-content: space-around;
    z-index: 1040;
    box-shadow: 0 -2px 16px rgba(13, 27, 42, 0.18);
    padding: 0 4px;
    padding-bottom: env(safe-area-inset-bottom, 0);
}

.mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    flex: 1;
    padding: 6px 0;
    color: rgba(255,255,255,0.5);
    text-decoration: none;
    font-size: 0.65rem;
    font-weight: 500;
    transition: color 0.2s ease;
    position: relative;
    -webkit-tap-highlight-color: transparent;
}

.mobile-nav-item i {
    font-size: 1.25rem;
    line-height: 1;
}

.mobile-nav-item.active {
    color: var(--accent);
}

.mobile-nav-item:hover {
    color: rgba(255,255,255,0.85);
}

.mobile-nav-item.active::before {
    content: '';
    position: absolute;
    top: 0;
    left: 25%;
    right: 25%;
    height: 3px;
    background: var(--accent);
    border-radius: 0 0 3px 3px;
}

.mobile-nav-badge {
    position: absolute;
    top: 2px;
    right: calc(50% - 18px);
    background: #dc3545;
    color: white;
    font-size: 0.6rem;
    min-width: 16px;
    height: 16px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    padding: 0 4px;
}

/* ===== FB Layout Responsive ===== */
@media (max-width: 1200px) {
    .fb-sidebar-right { display: none; }
    .fb-feed { margin-right: 0; }
}

@media (max-width: 992px) {
    .fb-sidebar-left { display: none; }
    .fb-feed {
        margin-left: 0;
        margin-right: 0;
        max-width: 680px;
        margin-left: auto;
        margin-right: auto;
    }
    .fb-nav-center { display: none !important; }
    .fb-search-form { width: 180px; }

    .main-content {
        padding-bottom: 68px;
    }

    .onitly-widget {
        bottom: 72px;
    }
}

@media (max-width: 576px) {
    .fb-search-form { width: 120px; }
    .fb-feed { padding: 8px; }
}

/* Hide footer on fb-layout pages */
body:has(.fb-layout) .footer { display: none; }
body:has(.fb-layout) .main-content { padding-top: 0; min-height: auto; }

@media (max-width: 991.98px) {
    body:has(.mobile-bottom-nav) .footer {
        padding-bottom: 68px;
    }
}

/* ===== Buttons ===== */
.btn-accent {
    background: var(--accent);
    color: var(--navy);
    border: none;
    font-weight: 600;
    transition: all 0.2s ease;
}

.btn-accent:hover {
    background: var(--accent-hover);
    color: var(--navy);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(212, 168, 67, 0.3);
}

.btn-accent:active, .btn-accent:disabled {
    transform: none;
    box-shadow: none;
}

.btn-navy {
    background: var(--navy);
    color: var(--white);
    border: none;
    font-weight: 600;
}

.btn-navy:hover {
    background: var(--navy-mid);
    color: var(--white);
}

.btn-teal {
    background: var(--teal);
    color: var(--white);
    border: none;
    font-weight: 600;
}

.btn-teal:hover {
    background: #156B5F;
    color: var(--white);
}

.btn-outline-navy {
    border: 2px solid var(--navy);
    color: var(--navy);
    font-weight: 600;
}

.btn-outline-navy:hover {
    background: var(--navy);
    color: var(--white);
}

.btn-check:checked + .btn-outline-navy {
    background: var(--navy);
    color: var(--white);
    border-color: var(--navy);
}

/* Submit button states */
.submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* ===== Hero Section ===== */
.hero-section {
    background: linear-gradient(135deg, var(--navy) 0%, #162232 50%, var(--steel) 100%);
    position: relative;
    overflow: hidden;
    padding-top: 56px;
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-badge {
    display: inline-block;
    background: rgba(212, 168, 67, 0.15);
    color: var(--accent);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid rgba(212, 168, 67, 0.3);
}

.fw-800 { font-weight: 800; }

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    padding: 20px 10px;
}

.hero-tile {
    background: #fff;
    border-radius: 18px;
    padding: 20px 16px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    box-shadow: 0 4px 24px rgba(0,0,0,0.08);
    transition: transform 0.35s cubic-bezier(.4,0,.2,1), box-shadow 0.35s cubic-bezier(.4,0,.2,1);
    cursor: default;
}

.hero-tile:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.15);
}

.hero-tile-img {
    width: 90px;
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
}

.hero-tile-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 3px 8px rgba(0,0,0,0.15));
}

.hero-tile-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.hero-tile-name {
    font-weight: 700;
    font-size: 0.95rem;
    color: #0A1628;
}

.hero-tile-status {
    font-size: 0.72rem;
    font-weight: 500;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.hero-tile-status i {
    font-size: 0.65rem;
    color: var(--accent);
}

.hero-ai-tag {
    display: inline-block;
    background: linear-gradient(135deg, #F4A300, #f59e0b);
    color: #fff;
    font-size: 0.5rem;
    font-weight: 800;
    padding: 1px 6px;
    border-radius: 6px;
    vertical-align: middle;
    margin-left: 4px;
    letter-spacing: 0.5px;
}

.hero-tile-carol {
    border: 2px solid rgba(244,163,0,0.25);
}

.hero-tile-carol .hero-tile-status i { color: #6366f1; }

[data-theme="dark"] .hero-tile {
    background: #1a2236;
}
[data-theme="dark"] .hero-tile-name { color: #e2e8f0; }
[data-theme="dark"] .hero-tile-status { color: #94a3b8; }

/* ===== Steps ===== */
.step-card {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    position: relative;
}

.step-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.step-number {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent);
    color: var(--navy);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.85rem;
}

.step-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: var(--navy-light);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    font-size: 2rem;
    color: var(--navy);
}

/* ===== Features ===== */
.feature-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.feature-card__icon--mrs {
    border-radius: 50%;
    overflow: hidden;
}

.feature-card__icon--mrs img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ===== User Type Cards ===== */
.user-type-card {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    border-top: 4px solid transparent;
}

.client-card { border-top-color: var(--accent); }
.provider-card { border-top-color: var(--teal); }

.user-type-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.user-type-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--navy-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    color: var(--navy);
}

/* ===== CTA ===== */
.cta-section {
    background: linear-gradient(135deg, var(--navy) 0%, var(--steel) 100%);
}

/* ===== Auth ===== */
.auth-section {
    background: linear-gradient(135deg, var(--gray-50), var(--navy-light));
}

.auth-card {
    background: white;
    border-radius: var(--radius-lg);
    max-width: 100%;
}

.step-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
}

.step-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--gray-100);
    transition: all 0.3s ease;
}

.step-dot.active {
    background: var(--accent);
}

.step-line {
    width: 40px;
    height: 2px;
    background: var(--gray-100);
}

.step-line.active {
    background: var(--accent);
}

.avatar-upload {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--navy-light);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}

/* ===== Dashboard ===== */
.service-hub-card {
    background: white;
    border-radius: var(--radius);
    border: 2px solid var(--gray-100);
    cursor: pointer;
    transition: all 0.2s ease;
}

.service-hub-card:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.service-hub-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--navy-light);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    color: var(--navy);
}

.service-hub-card:hover .service-hub-icon {
    background: var(--accent-light);
    color: var(--accent);
}

/* ===== Calendar ===== */
.calendar-grid {
    width: 100%;
}

.calendar-header-row {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
    margin-bottom: 8px;
}

.calendar-day-name {
    text-align: center;
    font-weight: 600;
    font-size: 0.8rem;
    color: var(--steel);
    padding: 8px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.calendar-body {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
}

.calendar-day {
    aspect-ratio: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 500;
    position: relative;
    cursor: default;
    transition: all 0.15s ease;
    min-height: 48px;
}

.calendar-day.other-month {
    color: #CBD5E0;
}

.calendar-day.today {
    background: var(--accent);
    color: var(--navy);
    font-weight: 700;
    border-radius: 10px;
}

.calendar-day.has-event {
    cursor: pointer;
}

.calendar-day.has-event::after {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
    position: absolute;
    bottom: 4px;
}

.calendar-day.today.has-event::after {
    background: var(--navy);
}

.calendar-day:hover:not(.other-month) {
    background: var(--navy-light);
}

.calendar-day.today:hover {
    background: var(--accent-hover);
}

/* ===== Stats ===== */
.stat-card {
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.stat-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    font-size: 1.1rem;
}

/* ===== Upcoming Service ===== */
.upcoming-service-item {
    background: var(--gray-50);
    border-left: 3px solid var(--accent);
    transition: all 0.2s ease;
}

.upcoming-service-item:hover {
    background: var(--navy-light);
}

/* ===== Provider Card ===== */
.provider-result-card {
    border-radius: var(--radius-lg) !important;
    transition: all 0.3s ease;
}

.provider-result-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

/* ===== Portfolio ===== */
.portfolio-card {
    border: 1px solid var(--gray-100);
    transition: all 0.3s ease;
}

.portfolio-card:hover {
    box-shadow: var(--shadow);
}

/* ===== Plan Cards ===== */
.plan-card {
    border-radius: var(--radius-lg) !important;
    transition: all 0.3s ease;
}

.plan-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.plan-featured {
    border: 2px solid var(--accent);
}

/* ===== Chat ===== */
.ai-avatar, .ai-welcome-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--gold-soft, #FDF5E6);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.ai-avatar img, .ai-welcome-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.ai-welcome-avatar {
    width: 80px;
    height: 80px;
    margin: 0 auto;
    background: var(--gold-soft, #FDF5E6);
}

.chat-avatar-sm {
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.ai-msg-avatar {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: var(--navy-light);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--navy);
    font-size: 0.85rem;
}

.chat-bubble {
    max-width: 80%;
    font-size: 0.95rem;
    line-height: 1.5;
}

.ai-bubble {
    background: var(--navy-light);
    color: var(--navy);
    border-bottom-left-radius: 4px !important;
}

.user-bubble {
    background: var(--accent);
    color: var(--navy);
    border-bottom-right-radius: 4px !important;
}

/* ===== Footer ===== */
.footer {
    background: var(--navy) !important;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .hero-section .display-3 {
        font-size: 2rem;
    }

    .calendar-day {
        font-size: 0.75rem;
        min-height: 36px;
    }

    .calendar-day-name {
        font-size: 0.7rem;
    }

    .service-hub-card {
        padding: 0.5rem !important;
    }

    .service-hub-icon {
        width: 36px;
        height: 36px;
    }

    .chat-bubble {
        max-width: 90%;
    }

    .hero-section .row,
    .hero-section [style*="min-height"] {
        min-height: auto !important;
    }

    .hero-section .col-lg-6,
    .hero-section .col-lg-7 {
        text-align: center;
    }

    .hero-section .display-3 {
        line-height: 1.15 !important;
    }

    .hero-section .d-flex.gap-3,
    .hero-section .d-flex.gap-4 {
        justify-content: center;
    }

    .hero-section .lead {
        font-size: 0.95rem;
    }

    .display-5 {
        font-size: 1.6rem !important;
    }

    .display-6 {
        font-size: 1.3rem !important;
    }

    .container {
        padding-left: 16px;
        padding-right: 16px;
    }

    .card {
        border-radius: var(--radius) !important;
    }

    h2 { font-size: 1.4rem; }
    h3 { font-size: 1.2rem; }

    .btn {
        min-height: 44px;
        padding: 0.5rem 1rem;
    }

    .btn-sm {
        min-height: 36px;
    }

    .form-control, .form-select {
        min-height: 44px;
        font-size: 16px !important;
    }

    .table {
        font-size: 0.85rem;
    }
}

@media (max-width: 576px) {
    .main-content {
        padding-top: 60px;
    }

    .container {
        padding-left: 12px;
        padding-right: 12px;
    }

    .fb-navbar .container-fluid {
        padding-left: 8px;
        padding-right: 8px;
    }

    .brand-text {
        font-size: 1.25rem;
    }

    .stat-card {
        padding: 0.75rem !important;
    }

    .stat-card .stat-icon {
        width: 32px;
        height: 32px;
        font-size: 0.9rem;
    }

    .dropdown-menu {
        width: calc(100vw - 24px) !important;
        max-width: 320px;
        right: 4px !important;
    }

    .modal-dialog {
        margin: 0.75rem;
    }

    .modal-body {
        padding: 1rem;
    }

    .fb-action-btn {
        width: 32px;
        height: 32px;
        font-size: 0.9rem;
    }
}

/* ===== Admin ===== */
.admin-stat-card {
    border-left: 4px solid var(--navy);
    transition: all 0.3s ease;
}

.admin-stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.admin-stat-card:nth-child(2) { border-left-color: var(--teal); }
.admin-stat-card:nth-child(3) { border-left-color: var(--accent); }
.admin-stat-card:nth-child(4) { border-left-color: var(--steel); }

.table th {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--steel);
    font-weight: 600;
}

.page-link {
    color: var(--navy);
    border-color: var(--gray-100);
}

.page-item.active .page-link {
    background: var(--navy);
    border-color: var(--navy);
}

/* ===== Carol Floating Widget ===== */
.onitly-widget {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 1050;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.onitly-fab {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--navy) 0%, var(--steel) 100%);
    border: 3px solid var(--accent);
    color: white;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(13, 27, 42, 0.35);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 2;
}

.onitly-fab:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 28px rgba(13, 27, 42, 0.45);
}

.onitly-fab-active {
    background: var(--accent) !important;
    color: var(--navy) !important;
    border-color: var(--navy) !important;
}

.onitly-fab-pulse {
    position: absolute;
    top: -4px;
    right: -4px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--accent);
    border: 2px solid white;
    animation: fabPulse 2s ease-in-out infinite;
}

@keyframes fabPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.3); opacity: 0.7; }
}

.onitly-fab__avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    background: #FFF;
}

.onitly-fab-active .onitly-fab-pulse { display: none; }

/* Panel */
.onitly-panel {
    position: absolute;
    bottom: 72px;
    right: 0;
    width: 380px;
    max-height: 520px;
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: 0 12px 48px rgba(13, 27, 42, 0.2);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: panelSlideUp 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes panelSlideUp {
    from { opacity: 0; transform: translateY(16px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.onitly-panel-header {
    background: linear-gradient(135deg, var(--navy) 0%, var(--steel) 100%);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.onitly-panel-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--gold-soft, #FDF5E6);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.onitly-panel-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.onitly-panel-body {
    flex: 1;
    overflow-y: auto;
    padding: 12px;
    max-height: 350px;
    min-height: 200px;
}

.onitly-panel-body::-webkit-scrollbar { width: 4px; }
.onitly-panel-body::-webkit-scrollbar-track { background: transparent; }
.onitly-panel-body::-webkit-scrollbar-thumb { background: var(--gray-100); border-radius: 2px; }

.onitly-panel-footer {
    padding: 10px 12px;
    border-top: 1px solid var(--gray-100);
    background: var(--gray-50);
}

.onitly-welcome-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto;
    border-radius: 50%;
    overflow: hidden;
    background: var(--gold-soft, #FDF5E6);
    display: flex;
    align-items: center;
    justify-content: center;
}

.onitly-welcome-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Messages */
.onitly-msg {
    display: flex;
    gap: 6px;
    margin-bottom: 10px;
    animation: fadeIn 0.2s ease;
}

.onitly-msg-user {
    justify-content: flex-end;
}

.onitly-msg-avatar {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    background: var(--navy-light);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--navy);
    font-size: 0.7rem;
}

.onitly-msg-bubble {
    max-width: 80%;
    padding: 8px 12px;
    border-radius: 12px;
    font-size: 0.85rem;
    line-height: 1.45;
}

.onitly-bubble-ai {
    background: var(--navy-light);
    color: var(--navy);
    border-bottom-left-radius: 4px;
}

.onitly-bubble-user {
    background: var(--accent);
    color: var(--navy);
    border-bottom-right-radius: 4px;
}

/* Typing indicator */
.onitly-typing {
    display: flex;
    gap: 4px;
    align-items: center;
    padding: 10px 16px;
}

.onitly-typing span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--steel);
    animation: typingBounce 1.4s infinite;
}

.onitly-typing span:nth-child(2) { animation-delay: 0.2s; }
.onitly-typing span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typingBounce {
    0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
    30% { transform: translateY(-6px); opacity: 1; }
}

/* Voice button */
.onitly-voice-btn {
    width: 32px;
    height: 32px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.onitly-voice-active {
    background: rgba(220, 53, 69, 0.1) !important;
    border-color: #dc3545 !important;
    animation: voicePulse 1s ease-in-out infinite;
}

@keyframes voicePulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(220, 53, 69, 0.3); }
    50% { box-shadow: 0 0 0 8px rgba(220, 53, 69, 0); }
}

.onitly-send-btn {
    width: 32px;
    height: 32px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 0.8rem;
}

/* Responsive */
@media (max-width: 480px) {
    .onitly-panel {
        width: calc(100vw - 24px);
        right: -8px;
        max-height: calc(100vh - 160px);
    }

    .onitly-widget {
        right: 12px;
    }

    .onitly-fab {
        width: 52px;
        height: 52px;
        font-size: 1.3rem;
    }
}

/* ===== Animations ===== */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.card { animation: fadeIn 0.3s ease; }

/* ===== Form Focus ===== */
.form-control:focus, .form-select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(212, 168, 67, 0.15);
}

/* ===== Password Strength ===== */
.password-strength .progress {
    border-radius: 4px;
    overflow: hidden;
}

/* ===== Scrollbar ===== */
#chatArea::-webkit-scrollbar {
    width: 6px;
}

#chatArea::-webkit-scrollbar-track {
    background: transparent;
}

#chatArea::-webkit-scrollbar-thumb {
    background: var(--gray-100);
    border-radius: 3px;
}

#chatArea::-webkit-scrollbar-thumb:hover {
    background: var(--steel);
}
