/* EstateDoc Custom Styles */

:root {
    /* Professional Color Palette */
    --primary-color: #1e3a5f;
    --primary-dark: #15294a;
    --primary-light: #e8f0fe;
    --secondary-color: #64748b;
    --success-color: #059669;
    --warning-color: #d97706;
    --danger-color: #dc2626;
    --info-color: #2563eb;
    
    /* Neutral Palette */
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --gray-900: #0f172a;
    
    /* Accent Colors */
    --accent-teal: #0d9488;
    --accent-blue: #3b82f6;
    --accent-indigo: #6366f1;
    
    /* Semantic Tokens (Light Theme) */
    --surface: #ffffff;
    --surface-muted: #f8fafc;
    --surface-raised: #f1f5f9;
    --surface-focus: #e2e8f0;
    --border-subtle: #e9ecef;
    --text-primary: #1e293b;
    --text-body: #212529;
    --text-emphasis: #111827;
    --text-secondary: #64748b;
    --text-tertiary: #94a3b8;
    --text-on-accent: #ffffff;
    --link-color: #1e3a5f;
    --link-hover: #15294a;
    --success-fg: #065f46;
    --danger-fg: #991b1b;
    --warning-fg: #92400e;
    --info-fg: #1e40af;

    /* Brass & Gold Brand Accent (estate & legacy) */
    --gold: #b8860b;
    --gold-fg: #8a5a00;
    --gold-bg: #fde68a;

    /* Default icon/stat chips use the gold accent */
    --chip-bg: var(--gold-bg);
    --chip-fg: var(--gold-fg);

    /* Bootstrap brand overrides: unify default blues to navy + gold accents */
    --bs-primary: #1e3a5f;
    --bs-primary-rgb: 30, 58, 95;
    --bs-primary-bg-subtle: var(--gold-bg);
    --bs-primary-text-emphasis: var(--primary-color);
    --bs-primary-border-subtle: var(--gold-bg);
    --bs-link-color: var(--primary-color);
    --bs-link-hover-color: var(--gold-fg);
    --bs-focus-ring-color: rgba(184, 134, 11, 0.45);
    
    color-scheme: light;
}

/* Brand selection + keyboard focus accents */
::selection {
    background-color: var(--gold-bg);
    color: var(--text-emphasis);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
    outline: 2px solid var(--gold-fg);
    outline-offset: 2px;
}

/* ========================================
   PROFESSIONAL DASHBOARD STYLES
   ======================================== */

/* Tab Navigation */
.nav-pills .nav-link {
    border-radius: 0.5rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: all 0.2s ease;
    padding: 0.75rem 1.5rem;
}

.nav-pills .nav-link:hover {
    background-color: var(--surface-raised);
    color: var(--primary-color);
}

.nav-pills .nav-link.active {
    background-color: var(--gold-bg);
    color: var(--primary-color);
    box-shadow: inset 0 -2px 0 0 var(--gold);
}

/* Hero Card */
.hero-card,
.hero-gradient {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    border-radius: 0.75rem;
    color: white;
    box-shadow: inset 0 3px 0 0 var(--gold);
}

.hero-card .hero-value {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
}

.hero-card .hero-label {
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.8;
}

/* Card Improvements */
.card {
    border-radius: 0.75rem;
    border: none;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    transition: all 0.2s ease;
}

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

.card-header {
    background: transparent;
    border-bottom: 1px solid var(--gray-100);
}

/* Stat Cards */
.stat-card-modern {
    background: white;
    border-radius: 0.75rem;
    padding: 1.25rem;
    border-left: 4px solid var(--primary-color);
}

.stat-card-modern .stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
}

.stat-card-modern .stat-label {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

/* Progress Indicators */
.progress-modern {
    height: 8px;
    border-radius: 4px;
    background: var(--surface-raised);
    overflow: hidden;
}

.progress-modern .progress-bar {
    border-radius: 4px;
    transition: width 0.3s ease;
}

/* Activity Feed */
.activity-item {
    display: flex;
    align-items: flex-start;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-subtle);
}

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

.activity-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    flex-shrink: 0;
}

.activity-content {
    flex: 1;
    min-width: 0;
}

.activity-title {
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.activity-detail {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.activity-time {
    font-size: 0.75rem;
    color: var(--text-secondary);
    white-space: nowrap;
}

/* Milestone Cards */
.milestone-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-subtle);
}

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

.milestone-item:hover,
.activity-item:hover {
    background-color: var(--surface-raised);
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.milestone-title {
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.milestone-type {
    font-size: 0.8125rem;
    color: var(--text-secondary);
}

.milestone-date {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--info-color);
}

/* Empty States */
.empty-state-modern {
    text-align: center;
    padding: 3rem 1rem;
}

.empty-state-modern .empty-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--surface-raised);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.empty-state-modern .empty-icon i {
    font-size: 2rem;
    color: var(--text-secondary);
}

.empty-state-modern h6 {
    color: var(--text-secondary);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.empty-state-modern p {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

/* Responsive Utilities */
@media (max-width: 767.98px) {
    .nav-pills .nav-link {
        padding: 0.5rem 0.75rem;
        font-size: 0.8125rem;
    }
    
    .hero-card .hero-value {
        font-size: 1.75rem;
    }
}

/* Base Styles */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    min-height: 60vh;
    display: flex;
    align-items: center;
}

.min-vh-50 {
    min-height: 50vh;
}

/* Feature Icons */
.feature-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Cards */
.card {
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1) !important;
}

/* Stat Cards */
.stat-card {
    border-left: 4px solid var(--primary-color);
}

.stat-card .stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary-color);
}

.stat-card .stat-label {
    font-size: 0.875rem;
    color: var(--secondary-color);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Sidebar */
.sidebar {
    width: 240px;
    background-color: #f8f9fa;
    border-right: 1px solid #e9ecef;
    min-height: calc(100vh - 56px);
}

.sidebar .nav-link {
    color: #495057;
    padding: 0.75rem 1rem;
    border-radius: 0.375rem;
    margin: 0.25rem 0.5rem;
}

.sidebar .nav-link:hover {
    background-color: #e9ecef;
    color: var(--primary-color);
}

.sidebar .nav-link.active {
    background-color: var(--primary-light);
    color: var(--primary-color);
    font-weight: 500;
}

.sidebar .nav-link i {
    width: 24px;
    text-align: center;
    margin-right: 0.5rem;
}

/* Tables */
.table th {
    font-weight: 600;
    color: #374151;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
}

.table td {
    vertical-align: middle;
}

/* Badges */
.badge {
    font-weight: 500;
    padding: 0.5em 0.75em;
}

/* Bootstrap's .badge defaults to white text, which fails WCAG AA on the
   light warning/info fills (yellow/cyan). Dark text passes in both themes
   (dark mode uses lighter fills, so these still hold). */
.badge.bg-warning {
    color: #78350f !important;
}

.badge.bg-info {
    color: #0c4a6e !important;
}

/* Forms */
.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(13, 148, 136, 0.25);
}

.form-label {
    font-weight: 500;
    color: #374151;
    margin-bottom: 0.5rem;
}

/* Buttons */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

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

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

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

/* Alert */
.alert {
    border: none;
    border-radius: 0.5rem;
}

.alert-success {
    background-color: #d1fae5;
    color: var(--success-fg);
}

.alert-danger {
    background-color: #fee2e2;
    color: var(--danger-fg);
}

.alert-warning {
    background-color: #fef3c7;
    color: var(--warning-fg);
}

.alert-info {
    background-color: #dbeafe;
    color: var(--info-fg);
}

/* Modal */
.modal-content {
    border: none;
    border-radius: 1rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.modal-header {
    border-bottom: 1px solid #e9ecef;
    padding: 1.5rem;
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    border-top: 1px solid #e9ecef;
    padding: 1rem 1.5rem;
}

/* ========================================
   LOADING STATES
   ======================================== */

/* --- Skeleton Base --- */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.5s ease-in-out infinite;
    border-radius: 0.375rem;
}

@keyframes skeleton-shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* --- Skeleton Sizes --- */
.skeleton-text {
    height: 1rem;
    margin-bottom: 0.5rem;
}

.skeleton-text-sm {
    height: 0.75rem;
    margin-bottom: 0.375rem;
}

.skeleton-text-lg {
    height: 1.25rem;
    margin-bottom: 0.625rem;
}

.skeleton-title {
    height: 1.5rem;
    width: 60%;
    margin-bottom: 1rem;
}

.skeleton-title-lg {
    height: 2rem;
    width: 40%;
    margin-bottom: 1rem;
}

/* --- Skeleton Shapes --- */
.skeleton-circle {
    border-radius: 50%;
}

.skeleton-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    flex-shrink: 0;
}

.skeleton-avatar-sm {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    flex-shrink: 0;
}

.skeleton-avatar-lg {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    flex-shrink: 0;
}

.skeleton-icon {
    width: 40px;
    height: 40px;
    border-radius: 0.5rem;
}

.skeleton-badge {
    width: 60px;
    height: 1.5rem;
    border-radius: 1rem;
}

.skeleton-button {
    width: 120px;
    height: 2.5rem;
    border-radius: 0.375rem;
}

.skeleton-stat-value {
    height: 2rem;
    width: 100px;
    margin-bottom: 0.5rem;
}

.skeleton-th {
    height: 0.75rem;
    width: 80%;
    border-radius: 0.25rem;
}

.skeleton-td {
    height: 1rem;
    width: 100%;
    border-radius: 0.25rem;
}

.skeleton-td-badge {
    height: 1.25rem;
    width: 60px;
    border-radius: 1rem;
}

/* --- Skeleton Card --- */
.skeleton-card .card {
    border: none;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

/* --- Skeleton Table --- */
.skeleton-table .card {
    border: none;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

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

.skeleton-table .table th {
    font-weight: 600;
    color: #374151;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
}

/* --- Skeleton List --- */
.skeleton-list .card {
    border: none;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.skeleton-list .list-group-item {
    padding: 1rem 1.25rem;
}

/* --- Spinner Components --- */
.loading-spinner {
    min-height: 200px;
}

.spinner-overlay {
    position: relative;
    min-height: 200px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 0.5rem;
}

[data-bs-theme="dark"] .spinner-overlay {
    background: rgba(26, 26, 26, 0.8);
}

/* --- Button Loading State --- */
.btn-loading {
    position: relative;
    pointer-events: none;
    opacity: 0.8;
}

.btn-loading::after {
    content: '';
    display: inline-block;
    width: 1rem;
    height: 1rem;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: btn-spin 0.75s linear infinite;
    margin-left: 0.5rem;
    vertical-align: middle;
}

@keyframes btn-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* --- Page Loading Bar --- */
.page-loading-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    z-index: 9999;
    animation: loading-indeterminate 1.5s ease-in-out infinite;
}

@keyframes loading-indeterminate {
    0% { transform: translateX(-100%); }
    50% { transform: translateX(0%); }
    100% { transform: translateX(100%); }
}

/* ========================================
   EMPTY STATES
   ======================================== */

.empty-state {
    padding: 3rem;
    text-align: center;
}

.empty-state i {
    font-size: 4rem;
    color: #6b7280;
    margin-bottom: 1rem;
}

.empty-state h4 {
    color: #374151;
    margin-bottom: 0.5rem;
}

.empty-state p {
    color: #6b7280;
    max-width: 400px;
    margin: 0 auto;
}

/* --- Enhanced Empty States --- */
.empty-state-wrapper {
    padding: 3rem 1rem;
}

.empty-state-icon {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.empty-state-icon i {
    font-size: 3.5rem;
    color: #6b7280;
    margin-bottom: 0;
}

.empty-state-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.5rem;
}

.empty-state-description {
    font-size: 1rem;
    color: #6b7280;
    max-width: 400px;
    margin: 0 auto 1.5rem;
    line-height: 1.5;
}

/* --- Compact Empty State --- */
.empty-state-compact {
    padding: 2rem 1rem;
}

.empty-state-compact i {
    font-size: 2.5rem;
}

.empty-state-compact p {
    font-size: 0.9375rem;
}

/* --- Empty State Dark Mode --- */
[data-bs-theme="dark"] .empty-state-icon {
    background: linear-gradient(135deg, var(--surface-raised) 0%, var(--surface-focus) 100%);
}

[data-bs-theme="dark"] .empty-state-icon i {
    color: var(--text-tertiary);
}

[data-bs-theme="dark"] .empty-state-title {
    color: var(--text-body);
}

[data-bs-theme="dark"] .empty-state-description {
    color: var(--text-tertiary);
}

[data-bs-theme="dark"] .skeleton {
    background: linear-gradient(90deg, var(--surface-raised) 25%, var(--surface-focus) 50%, var(--surface-raised) 75%);
    background-size: 200% 100%;
}

[data-bs-theme="dark"] .loading-spinner {
    color: var(--text-body);
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    bottom: 1rem;
    right: 1rem;
    z-index: 1050;
}

.toast {
    border: none;
    border-radius: 0.5rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

/* Dropdown */
.dropdown-menu {
    border: none;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    border-radius: 0.5rem;
}

.dropdown-item {
    padding: 0.5rem 1rem;
}

.dropdown-item:hover {
    background-color: #f3f4f6;
}

/* Dark Mode Support */
[data-bs-theme="dark"] {
    --bs-body-bg: var(--surface-muted);
    --bs-body-color: var(--text-body);
    color-scheme: dark;

    /* Semantic Tokens (Dark Theme) */
    --surface: #1f2937;
    --surface-muted: #111827;
    --surface-raised: #374151;
    --surface-focus: #4b5563;
    --border-subtle: #374151;
    --text-primary: #f1f5f9;
    --text-body: #e5e7eb;
    --text-emphasis: #f9fafb;
    --text-secondary: #cbd5e1;
    --text-tertiary: #9ca3af;
    --text-on-accent: #ffffff;
    --link-color: #60a5fa;
    --link-hover: var(--gold);
    --success-fg: #6ee7b7;
    --danger-fg: #fca5a5;
    --warning-fg: #fcd34d;
    --info-fg: #93c5fd;

    /* Brass & Gold Brand Accent (estate & legacy) */
    --gold: #fbbf24;
    --gold-fg: #fcd34d;
    --gold-bg: rgba(251, 191, 36, 0.12);

    /* Default icon/stat chips use the gold accent */
    --chip-bg: var(--gold-bg);
    --chip-fg: var(--gold-fg);

    /* Bootstrap brand overrides (dark) */
    --bs-primary-bg-subtle: var(--gold-bg);
    --bs-primary-text-emphasis: var(--gold-fg);
    --bs-primary-border-subtle: rgba(251, 191, 36, 0.25);
    --bs-link-hover-color: var(--gold);
    --bs-focus-ring-color: rgba(251, 191, 36, 0.45);
}

[data-bs-theme="dark"] .sidebar {
    background-color: var(--surface-muted);
    border-right-color: var(--border-subtle);
}

[data-bs-theme="dark"] .sidebar .nav-link {
    color: var(--text-secondary);
}

[data-bs-theme="dark"] .sidebar .nav-link:hover {
    background-color: var(--surface);
}

[data-bs-theme="dark"] .card {
    background-color: var(--surface);
    border-color: var(--border-subtle);
}

/* Print Styles */
@media print {
    .sidebar,
    .navbar,
    .footer,
    .btn,
    .no-print {
        display: none !important;
    }
    
    main {
        margin: 0;
        padding: 0;
    }
    
    .card {
        border: 1px solid #ddd;
        page-break-inside: avoid;
    }
}

/* ========================================
   ESTATE SIDEBAR
   ======================================== */

.estate-sidebar {
    background-color: #f8f9fa;
    border-right: 1px solid #e9ecef;
    border-radius: 0.5rem;
    display: flex;
    flex-direction: column;
    min-height: 400px;
}

.estate-sidebar .sidebar-header {
    border-bottom: 1px solid #e9ecef;
}

.estate-sidebar .sidebar-estate-name {
    font-weight: 600;
    color: #374151;
}

/* Navigation Sections */
.nav-section {
    padding: 0.5rem 0 0.25rem;
    margin-top: 0.5rem;
}

/* Navigation Links */
.estate-sidebar .nav-link {
    color: #495057;
    padding: 0.5rem 0.75rem;
    border-radius: 0.375rem;
    margin: 0.125rem 0;
    display: flex;
    align-items: center;
    font-size: 0.875rem;
    transition: all 0.15s ease;
}

.estate-sidebar .nav-link:hover {
    background-color: #e9ecef;
    color: var(--primary-color);
    transform: translateX(2px);
}

.estate-sidebar .nav-link.active {
    background-color: var(--gold-bg);
    color: var(--primary-color);
    font-weight: 500;
    border-left: 3px solid var(--gold);
    margin-left: -3px;
}

.estate-sidebar .nav-link i {
    width: 20px;
    text-align: center;
    margin-right: 0.5rem;
    font-size: 0.9375rem;
}

.estate-sidebar .nav-link .badge {
    font-size: 0.625rem;
    padding: 0.25em 0.5em;
    font-weight: 500;
}

/* Sidebar Footer */
.estate-sidebar .sidebar-footer {
    border-top: 1px solid #e9ecef;
}

/* Sidebar Animations */
[x-transition] {
    transition: all 0.2s ease-in-out;
}

/* Sidebar Scrollbar */
.estate-sidebar .sidebar-nav {
    overflow-y: auto;
    flex: 1;
}

.estate-sidebar .sidebar-nav::-webkit-scrollbar {
    width: 4px;
}

.estate-sidebar .sidebar-nav::-webkit-scrollbar-track {
    background: transparent;
}

.estate-sidebar .sidebar-nav::-webkit-scrollbar-thumb {
    background: var(--gray-300);
    border-radius: 2px;
}

.estate-sidebar .sidebar-nav::-webkit-scrollbar-thumb:hover {
    background: var(--gray-400);
}

/* ========================================
   ERROR PAGES
   ======================================== */

.error-page {
    padding: 4rem 0;
    min-height: 60vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.error-icon {
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-bottom: 2rem;
}

.error-icon i {
    font-size: 4rem;
}

.error-code {
    font-size: 7rem;
    font-weight: 800;
    color: var(--primary-color);
    line-height: 1;
    margin-bottom: 0.5rem;
    letter-spacing: -0.05em;
}

.error-title {
    font-size: 1.75rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 1rem;
}

.error-message {
    font-size: 1.1rem;
    max-width: 500px;
}

/* ========================================
   TOUCH-FRIENDLY STYLES (ALL MOBILE DEVICES)
   ======================================== */

@media (pointer: coarse) {
    .btn:not(.btn-group .btn) {
        min-height: 44px;
        min-width: 44px;
    }
    
    .nav-link {
        padding: 0.75rem 1rem;
    }
    
    .list-group-item {
        padding: 1rem 0.75rem;
    }
    
    .dropdown-item {
        padding: 0.75rem 1rem;
        min-height: 44px;
        display: flex;
        align-items: center;
    }
    
    .form-control,
    .form-select {
        min-height: 44px;
        font-size: 16px;
    }
    
    .form-check-input {
        width: 1.25rem;
        height: 1.25rem;
    }
}

/* ========================================
   MOBILE: MAX-WIDTH 767.98px
   ======================================== */

@media (max-width: 767.98px) {
    /* --- Page Header Stack --- */
    .page-header .d-flex,
    .d-flex.justify-content-between.align-items-center {
        flex-direction: column;
        align-items: stretch !important;
        gap: 1rem;
    }
    
    .page-header .btn,
    .d-flex.justify-content-between.align-items-center .btn {
        width: 100%;
    }
    
    /* --- Cards --- */
    .card {
        margin-bottom: 0.75rem;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    .card-header,
    .card-footer {
        padding: 0.75rem 1rem;
    }
    
    .card-header .d-flex {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .card-header .d-flex .btn {
        width: 100%;
    }
    
    /* --- Stat Cards Stack --- */
    .row.g-3 > .col-md-3,
    .row.g-3 > .col-md-4 {
        flex: 0 0 50%;
        max-width: 50%;
        margin-bottom: 0.5rem;
    }
    
    .row.g-3 > [class*='col-lg-4'],
    .row.g-3 > [class*='col-lg-6'] {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    /* --- Grid Row Spacing --- */
    .row.g-3 { gap: 0.5rem; }
    .row.g-4 { gap: 0.75rem; }
    
    /* --- Tables to Cards --- */
    .table-responsive {
        border: none;
    }
    
    .table-responsive table,
    .table-responsive thead,
    .table-responsive tbody,
    .table-responsive th,
    .table-responsive td,
    .table-responsive tr {
        display: block;
    }
    
    .table-responsive thead {
        display: none;
    }
    
    .table-responsive tbody tr {
        background-color: white;
        border: 1px solid #e9ecef;
        border-radius: 0.5rem;
        margin-bottom: 0.75rem;
        padding: 0.75rem;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    }
    
    .table-responsive tbody td {
        border: none;
        padding: 0.375rem 0;
        text-align: left;
        position: relative;
        padding-left: 45%;
        font-size: 0.9375rem;
    }
    
    .table-responsive tbody td::before {
        content: attr(data-label);
        position: absolute;
        left: 0;
        width: 42%;
        font-weight: 600;
        color: #6b7280;
        font-size: 0.8125rem;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }
    
    .table-responsive tbody td:first-child {
        padding-left: 0;
        padding-bottom: 0.5rem;
        border-bottom: 1px solid #e9ecef;
        margin-bottom: 0.5rem;
    }
    
    .table-responsive tbody td:first-child::before {
        display: none;
    }
    
    .table-responsive tbody td:first-child a {
        font-size: 1rem;
    }
    
    .table-responsive tbody td:last-child {
        padding-top: 0.75rem;
        border-top: 1px solid #e9ecef;
        margin-top: 0.5rem;
        display: flex;
        gap: 0.5rem;
        justify-content: flex-end;
        padding-left: 0;
    }
    
    .table-responsive tbody td:last-child::before {
        display: none;
    }
    
    .table {
        font-size: 0.875rem;
    }
    
    .table th {
        font-size: 0.6875rem;
    }
    
    /* --- Filter Button Groups Scroll --- */
    .btn-group[role="group"] {
        display: flex;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
        padding-bottom: 0.25rem;
    }
    
    .btn-group[role="group"]::-webkit-scrollbar {
        display: none;
    }
    
    .btn-group[role="group"] .btn:not(.btn-group .btn) {
        white-space: nowrap;
        flex-shrink: 0;
    }
    
    .btn-group .btn {
        padding: 0.375rem 0.75rem;
        font-size: 0.8125rem;
    }
    
    /* --- Form Controls --- */
    .form-control,
    .form-select {
        font-size: 1rem;
    }
    
    .form-label {
        font-size: 0.875rem;
    }
    
    .form-row .col-md-6,
    .form-row .col-md-4,
    .form-row .col-md-3 {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    .input-group {
        flex-direction: column;
    }
    
    .input-group .btn {
        margin-top: 0.5rem;
    }
    
    /* --- Action Buttons --- */
    .d-flex.gap-2,
    .d-flex.gap-3 {
        flex-wrap: wrap;
    }
    
    .d-flex.gap-2 .btn,
    .d-flex.gap-3 .btn:not(.btn-group .btn) {
        flex: 1;
        min-width: 120px;
    }
    
    .d-flex.flex-row {
        flex-direction: column;
    }
    
    .d-flex.flex-row .btn {
        width: 100%;
    }
    
    /* --- List Groups --- */
    .list-group-item .d-flex {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .list-group-item .ms-auto {
        margin-left: 0 !important;
    }
    
    /* --- Alerts --- */
    .alert {
        padding: 0.75rem 1rem;
    }
    
    .alert .d-flex {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    /* --- Badges --- */
    .badge {
        font-size: 0.6875rem;
        padding: 0.35em 0.5em;
    }
    
    /* --- Typography --- */
    h1 { font-size: 1.5rem; }
    h2 { font-size: 1.25rem; }
    h3 { font-size: 1.125rem; }
    
    .text-truncate {
        max-width: 200px;
    }
    
    /* --- Navigation --- */
    .navbar .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .navbar-brand {
        font-size: 1rem;
    }
    
    .navbar-toggler {
        padding: 0.25rem 0.5rem;
    }
    
    .navbar-collapse .dropdown-menu {
        width: 100%;
        border-radius: 0;
        margin-top: 0.25rem;
    }
    
    .navbar-nav .nav-item .nav-link {
        padding: 0.5rem 0;
    }
    
    /* --- Footer --- */
    .footer {
        text-align: center;
    }
    
    .footer .col-md-6 {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    .footer .text-end {
        text-align: center !important;
        margin-top: 0.5rem;
    }
    
    /* --- Modals --- */
    .modal-dialog {
        margin: 0.5rem;
    }
    
    .modal-content {
        border-radius: 0.5rem;
    }
    
    /* --- Toast Notifications --- */
    .toast-container {
        left: 1rem;
        right: 1rem;
    }
    
    .toast {
        width: 100%;
    }
    
    /* --- Pagination --- */
    .pagination {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .page-link {
        padding: 0.375rem 0.5rem;
    }
    
    /* --- Accordion --- */
    .accordion-button {
        padding: 0.75rem 1rem;
        font-size: 0.9375rem;
    }
    
    .accordion-body {
        padding: 0.75rem 1rem;
    }
    
    /* --- Images --- */
    img {
        max-width: 100%;
        height: auto;
    }
    
    .feature-icon {
        width: 60px;
        height: 60px;
    }
    
    .feature-icon i {
        font-size: 1.5rem;
    }
    
    /* --- Spacing Adjustments --- */
    .container-fluid {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    /* --- Error Pages --- */
    .error-page {
        padding: 2rem 0;
        min-height: 50vh;
    }
    
    .error-icon {
        width: 100px;
        height: 100px;
    }
    
    .error-icon i {
        font-size: 3rem;
    }
    
    .error-code {
        font-size: 5rem;
    }
    
    .error-title {
        font-size: 1.5rem;
    }
    
    .error-message {
        font-size: 1rem;
    }
    
    /* --- Mobile Visibility Utility --- */
    .d-none-mobile {
        display: none !important;
    }
    
    .d-block-mobile {
        display: block !important;
    }
}

/* ========================================
   COLLAPSIBLE ESTATE SIDEBAR (MOBILE)
   ======================================== */

@media (max-width: 767.98px) {
    .estate-sidebar {
        position: relative;
        min-height: auto;
        border-right: none;
        border-bottom: 1px solid #e9ecef;
        margin-bottom: 1rem;
    }
    
    .estate-sidebar .sidebar-nav {
        display: none;
        border-top: 1px solid #e9ecef;
        max-height: 60vh;
        overflow-y: auto;
    }
    
    .estate-sidebar .sidebar-nav.show {
        display: block;
    }
    
    .estate-sidebar .sidebar-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        cursor: pointer;
        padding: 0.75rem 1rem;
        border-bottom: none;
    }
    
    .estate-sidebar .sidebar-header::after {
        content: '\F282';
        font-family: 'bootstrap-icons';
        transition: transform 0.2s ease;
    }
    
    .estate-sidebar .sidebar-header.expanded::after {
        transform: rotate(180deg);
    }
    
    .estate-sidebar .sidebar-header .sidebar-estate-name {
        margin-bottom: 0;
    }
    
    .estate-sidebar .sidebar-nav .nav {
        flex-direction: column;
        padding: 0.5rem;
    }
    
    .estate-sidebar .sidebar-nav .nav-link {
        white-space: normal;
        padding: 0.625rem 0.75rem;
    }
    
    .estate-sidebar .sidebar-footer {
        display: block;
        padding: 0.75rem;
        border-top: 1px solid #e9ecef;
    }
    
    .estate-sidebar .sidebar-footer .btn:not(.btn-group .btn) {
        width: 100%;
    }
}

/* ========================================
   TABLET: 768px - 991.98px
   ======================================== */

@media (min-width: 768px) and (max-width: 991.98px) {
    .estate-sidebar .nav-link {
        padding: 0.5rem 0.625rem;
        font-size: 0.875rem;
    }
    
    .estate-sidebar .nav-link i {
        margin-right: 0.375rem;
    }
    
    .estate-sidebar .sidebar-estate-name {
        font-size: 0.875rem;
    }
}

/* ========================================
   SUMMARY CARDS HORIZONTAL SCROLL (MOBILE)
   ======================================== */

@media (max-width: 767.98px) {
    .summary-cards-row {
        display: flex;
        overflow-x: auto;
        gap: 1rem;
        padding-bottom: 0.5rem;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
    }
    
    .summary-cards-row > [class*='col-'] {
        flex: 0 0 70%;
        min-width: 200px;
        scroll-snap-align: start;
    }
}

/* ========================================
   DARK MODE ENHANCEMENTS
   ======================================== */

@media (max-width: 767.98px) {
    [data-bs-theme="dark"] .table-responsive tbody tr {
        background-color: var(--surface);
        border-color: var(--border-subtle);
    }
}

/* ========================================
   ENHANCED ERROR PAGES
   ======================================== */

.error-page-wrapper {
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    position: relative;
    overflow: hidden;
}

.error-bg-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(13, 148, 136, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(217, 119, 6, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.error-page-container {
    position: relative;
    z-index: 1;
    max-width: 600px;
    width: 100%;
}

.error-content {
    text-align: center;
}

.error-icon-circle {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    font-size: 3.5rem;
}

.error-icon-warning {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    color: #b45309;
    box-shadow: 0 10px 40px rgba(217, 119, 6, 0.2);
    animation: pulse-glow 2s ease-in-out infinite;
}

.error-icon-info {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    color: #2563eb;
    box-shadow: 0 10px 40px rgba(37, 99, 235, 0.2);
    animation: float 3s ease-in-out infinite;
}

.error-icon-danger {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    color: #dc2626;
    box-shadow: 0 10px 40px rgba(220, 38, 38, 0.2);
    animation: shake 0.5s ease-in-out infinite alternate;
}

@keyframes pulse-glow {
    0%, 100% { transform: scale(1); box-shadow: 0 10px 40px rgba(217, 119, 6, 0.2); }
    50% { transform: scale(1.05); box-shadow: 0 15px 50px rgba(217, 119, 6, 0.3); }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes shake {
    0%, 100% { transform: rotate(-3deg); }
    50% { transform: rotate(3deg); }
}

.error-code-display {
    font-size: 6rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 0.5rem;
    letter-spacing: -0.05em;
}

/* Error code color variants */
.error-code-warning {
    background: linear-gradient(135deg, #d97706 0%, #f59e0b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.error-code-info {
    background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.error-code-danger {
    background: linear-gradient(135deg, #dc2626 0%, #ef4444 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.error-title-text {
    font-size: 1.75rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 1rem;
}

.error-description {
    font-size: 1.1rem;
    color: #6b7280;
    max-width: 450px;
    margin: 0 auto 2rem;
    line-height: 1.6;
}

.error-reasons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.reason-card {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: white;
    border-radius: 0.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    font-size: 0.875rem;
    color: #4b5563;
}

.error-search .input-group {
    max-width: 400px;
    margin: 0 auto;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.error-search .input-group-text {
    border-color: #e5e7eb;
}

.error-search .form-control {
    border-color: #e5e7eb;
    padding: 0.75rem 1rem;
}

.error-search .form-control:focus {
    box-shadow: none;
    border-color: #3b82f6;
}

.error-quick-links {
    margin-bottom: 2rem;
}

.quick-links-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

.quick-link-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 1.5rem;
    background: white;
    border-radius: 0.75rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    text-decoration: none;
    color: #4b5563;
    transition: all 0.2s ease;
    min-width: 100px;
}

.quick-link-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    color: var(--primary-color);
}

.quick-link-card i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.quick-link-card span {
    font-size: 0.875rem;
    font-weight: 500;
}

.error-status-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    border-radius: 0.75rem;
    max-width: 400px;
    margin: 0 auto 2rem;
    text-align: left;
}

.status-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: #dc2626;
    flex-shrink: 0;
}

.status-content h6 {
    color: #991b1b;
    font-weight: 600;
}

.error-tips {
    margin-bottom: 2rem;
}

.tips-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

.tip-card {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: white;
    border-radius: 0.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    font-size: 0.875rem;
    color: #4b5563;
}

.tip-card i {
    font-size: 1.1rem;
}

.error-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.error-help {
    margin-top: 1rem;
}

.error-id code {
    font-size: 0.75rem;
    background: #f3f4f6;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
}

/* Responsive Error Pages */
@media (max-width: 767.98px) {
    .error-icon-circle {
        width: 100px;
        height: 100px;
        font-size: 2.5rem;
    }
    
    .error-code-display {
        font-size: 4rem;
    }
    
    .error-title-text {
        font-size: 1.5rem;
    }
    
    .error-description {
        font-size: 1rem;
    }
    
    .error-reasons,
    .quick-links-grid,
    .tips-grid {
        flex-direction: column;
        align-items: center;
    }
    
    .reason-card,
    .tip-card {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }
    
    .quick-link-card {
        width: 100%;
        max-width: 200px;
        flex-direction: row;
        justify-content: center;
    }
    
    .error-status-card {
        flex-direction: column;
        text-align: center;
    }
    
    .error-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .error-actions .btn {
        width: 100%;
    }
}

/* Dark Mode Error Pages */
[data-bs-theme="dark"] .error-title-text {
    color: var(--text-emphasis);
}

[data-bs-theme="dark"] .error-description {
    color: var(--text-tertiary);
}

[data-bs-theme="dark"] .reason-card,
[data-bs-theme="dark"] .quick-link-card,
[data-bs-theme="dark"] .tip-card {
    background: var(--surface-raised);
    color: var(--text-body);
}

[data-bs-theme="dark"] .quick-link-card:hover {
    background: var(--surface-raised);
    color: var(--link-hover);
}

[data-bs-theme="dark"] .error-search .input-group-text,
[data-bs-theme="dark"] .error-search .form-control {
    background: var(--surface-raised);
    border-color: var(--surface-focus);
    color: var(--text-body);
}

[data-bs-theme="dark"] .error-status-card {
    background: linear-gradient(135deg, var(--surface-raised) 0%, var(--surface-focus) 100%);
}

[data-bs-theme="dark"] .status-icon {
    background: var(--surface);
}

[data-bs-theme="dark"] .status-content h6 {
    color: var(--danger-fg);
}

[data-bs-theme="dark"] .error-id code {
    background: var(--surface-raised);
    color: var(--text-body);
}

@media (prefers-reduced-motion: reduce) {
    .error-icon-circle,
    .skeleton,
    .page-loading-bar,
    .btn-loading::after,
    .spinner-border {
        animation: none;
    }
    
    .skeleton {
        opacity: 0.7;
    }
}

/* ========================================
   CONSISTENT ESTATE PAGE STYLES
   ======================================== */

/* Page Header - Consistent across all estate pages */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-subtle);
}

.page-header h2 {
    margin-bottom: 0;
    font-weight: 600;
    color: var(--text-primary);
}

.page-header .page-subtitle {
    color: var(--text-secondary);
    font-size: 0.9375rem;
    margin-bottom: 0;
}

/* Status Badge - Consistent status indicators */
.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.375rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.8125rem;
    font-weight: 500;
}

.status-badge-active {
    background-color: #047857;
    color: #ffffff;
}

.status-badge-closed {
    background-color: #64748b;
    color: #ffffff;
}

/* Admin status banner: the hero strip sits on a fixed dark navy gradient in
   BOTH themes, so its text-* icon accents are pinned to light shades that
   stay legible (all >= 4.5:1 on #334155). */
.status-banner .text-primary {
    color: #fbbf24 !important;
}

.status-banner .text-info {
    color: #93c5fd !important;
}

.status-banner .text-success {
    color: #86efac !important;
}

.status-banner .text-warning {
    color: #fcd34d !important;
}

.status-banner .text-danger {
    color: #fca5a5 !important;
}

/* Estate Card - Consistent card styling */
.estate-card-v2 {
    background: var(--surface);
    border-radius: 0.75rem;
    border: none;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    transition: all 0.2s ease;
    overflow: hidden;
}

.estate-card-v2:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.estate-card-v2 .card-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 1.25rem;
    border-bottom: none;
}

.estate-card-v2 .card-header h5 {
    margin-bottom: 0;
    font-weight: 600;
}

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

.estate-card-v2 .card-footer {
    background: transparent;
    border-top: 1px solid var(--border-subtle);
    padding: 1rem 1.25rem;
}

/* Stat Row - Consistent stat display */
.stat-row {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.stat-item {
    flex: 1;
    text-align: center;
    padding: 0.75rem;
    background: var(--surface-muted);
    border-radius: 0.5rem;
}

.stat-item .stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1.2;
}

.stat-item .stat-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.25rem;
}

/* Info Row - Consistent info display */
.info-row {
    display: flex;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-subtle);
}

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

.info-row .info-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--chip-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 0.75rem;
    flex-shrink: 0;
}

.info-row .info-icon i {
    font-size: 0.875rem;
    color: var(--chip-fg);
}

.info-row .info-content {
    flex: 1;
}

.info-row .info-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.125rem;
}

.info-row .info-value {
    font-weight: 500;
    color: var(--text-primary);
}

/* Action Buttons - Consistent button styling */
.action-buttons {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.action-buttons .btn {
    flex: 1;
    min-width: 100px;
}

/* Quick Actions Grid */
.quick-actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 0.75rem;
}

.quick-action-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: var(--surface);
    border: 1px solid var(--border-subtle);
    border-radius: 0.5rem;
    text-decoration: none;
    color: var(--text-secondary);
    transition: all 0.2s ease;
}

.quick-action-item:hover {
    background: var(--chip-bg);
    border-color: var(--chip-fg);
    color: var(--chip-fg);
    transform: translateY(-1px);
}

.quick-action-item i {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.quick-action-item span {
    font-size: 0.8125rem;
    font-weight: 500;
    text-align: center;
}

/* ========================================
   COMPREHENSIVE DARK MODE STYLES
   ========================================

/* Navbar */
[data-bs-theme="dark"] .navbar {
    background-color: var(--surface-muted) !important;
    border-bottom: 1px solid var(--border-subtle);
}

[data-bs-theme="dark"] .navbar-brand,
[data-bs-theme="dark"] .nav-link {
    color: var(--text-body) !important;
}

/* Brand accent: gold estate mark in the navbar + footer ribbon */
.navbar-brand i {
    color: var(--gold);
}

.footer {
    border-top: 2px solid var(--gold);
}

[data-bs-theme="dark"] .nav-link:hover {
    color: var(--text-on-accent) !important;
}

/* Cards */
[data-bs-theme="dark"] .card {
    background-color: var(--surface);
    border-color: var(--border-subtle);
}

[data-bs-theme="dark"] .card-header {
    background-color: transparent;
    border-bottom-color: var(--border-subtle);
}

[data-bs-theme="dark"] .card-body {
    color: var(--text-body);
}

/* Bootstrap's light-background utilities (.bg-light/.bg-white) ship with
   !important and never flip with the theme, so any card header / footer /
   info panel using them stays near-white in dark mode while the text turns
   light -- unreadable. Remap them onto the semantic dark surfaces so the
   contrast holds everywhere they're used. */
[data-bs-theme="dark"] .bg-light {
    background-color: var(--surface-raised) !important;
}

[data-bs-theme="dark"] .bg-white {
    background-color: var(--surface) !important;
}

/* Elements that pair .bg-light with an explicit .text-dark (e.g. account /
   field badges) would become dark-on-dark after the remap above, so swap
   their text to the theme's emphasis tone as well. Kept generic (not
   badge-scoped) so any future bg-light + text-dark pairing stays safe. */
[data-bs-theme="dark"] .bg-light.text-dark {
    color: var(--text-emphasis) !important;
}

/* Admin stat-card purple accent (Security card). The old inline #7C3AED
   failed WCAG AA in dark mode (~2.3:1 on the dark surface). Follows
   Bootstrap's text-emphasis pattern: dark mode lightens the tone.
   Light #7C3AED = 5.6:1 on white; dark #c4b5fd = 7.8:1 on the surface. */
.text-purple {
    color: #7C3AED !important;
}

.bg-purple-subtle {
    background-color: #f3f0ff !important;
}

[data-bs-theme="dark"] .text-purple {
    color: #c4b5fd !important;
}

[data-bs-theme="dark"] .bg-purple-subtle {
    background-color: rgba(139, 92, 246, 0.16) !important;
}

/* Tables */
[data-bs-theme="dark"] .table {
    color: var(--text-body);
}

[data-bs-theme="dark"] .table th {
    background-color: var(--surface-raised);
    color: var(--text-emphasis);
}

[data-bs-theme="dark"] .table td {
    border-bottom-color: var(--border-subtle);
}

[data-bs-theme="dark"] .table-hover tbody tr:hover {
    background-color: var(--surface-raised);
}

[data-bs-theme="dark"] .table-light {
    --bs-table-bg: var(--surface);
    --bs-table-color: var(--text-body);
}

/* Forms */
[data-bs-theme="dark"] .form-control,
[data-bs-theme="dark"] .form-select {
    background-color: var(--surface-raised);
    border-color: var(--surface-focus);
    color: var(--text-body);
}

[data-bs-theme="dark"] .form-control:focus,
[data-bs-theme="dark"] .form-select:focus {
    background-color: var(--surface-focus);
    border-color: var(--text-tertiary);
    color: var(--text-on-accent);
}

[data-bs-theme="dark"] .form-label {
    color: var(--text-body);
}

[data-bs-theme="dark"] .form-check-input {
    background-color: var(--surface-raised);
    border-color: var(--text-tertiary);
}

[data-bs-theme="dark"] .form-check-input:checked {
    background-color: var(--primary-color);
}

/* Buttons */
[data-bs-theme="dark"] .btn-outline-secondary {
    color: var(--text-body);
    border-color: var(--text-tertiary);
}

[data-bs-theme="dark"] .btn-outline-secondary:hover {
    background-color: var(--surface-focus);
    color: var(--text-on-accent);
}

/* Badges */
[data-bs-theme="dark"] .badge.bg-primary-subtle {
    background-color: var(--gold-bg) !important;
    color: var(--gold-fg) !important;
}

[data-bs-theme="dark"] .badge.bg-success-subtle {
    background-color: rgba(5, 150, 105, 0.3) !important;
    color: var(--success-fg) !important;
}

[data-bs-theme="dark"] .badge.bg-danger-subtle {
    background-color: rgba(220, 38, 38, 0.3) !important;
    color: var(--danger-fg) !important;
}

[data-bs-theme="dark"] .badge.bg-warning-subtle {
    background-color: rgba(217, 119, 6, 0.3) !important;
    color: var(--warning-fg) !important;
}

[data-bs-theme="dark"] .badge.bg-info-subtle {
    background-color: rgba(37, 99, 235, 0.3) !important;
    color: var(--info-fg) !important;
}

/* Alerts */
[data-bs-theme="dark"] .alert-success {
    background-color: rgba(5, 150, 105, 0.2);
    color: var(--success-fg);
}

[data-bs-theme="dark"] .alert-danger {
    background-color: rgba(220, 38, 38, 0.2);
    color: var(--danger-fg);
}

[data-bs-theme="dark"] .alert-warning {
    background-color: rgba(217, 119, 6, 0.2);
    color: var(--warning-fg);
}

[data-bs-theme="dark"] .alert-info {
    background-color: rgba(37, 99, 235, 0.2);
    color: var(--info-fg);
}

/* Modal */
[data-bs-theme="dark"] .modal-content {
    background-color: var(--surface);
    border-color: var(--border-subtle);
}

[data-bs-theme="dark"] .modal-header {
    border-bottom-color: var(--border-subtle);
}

[data-bs-theme="dark"] .modal-footer {
    border-top-color: var(--border-subtle);
}

[data-bs-theme="dark"] .modal-title {
    color: var(--text-emphasis);
}

/* Dropdown */
[data-bs-theme="dark"] .dropdown-menu {
    background-color: var(--surface);
    border-color: var(--border-subtle);
}

[data-bs-theme="dark"] .dropdown-item {
    color: var(--text-body);
}

[data-bs-theme="dark"] .dropdown-item:hover {
    background-color: var(--surface-raised);
    color: var(--text-on-accent);
}

[data-bs-theme="dark"] .dropdown-item-text {
    color: var(--text-tertiary) !important;
}

/* Pagination */
[data-bs-theme="dark"] .page-link {
    background-color: var(--surface);
    border-color: var(--border-subtle);
    color: var(--text-body);
}

[data-bs-theme="dark"] .page-item.active .page-link {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

[data-bs-theme="dark"] .page-item.disabled .page-link {
    background-color: var(--surface-raised);
    border-color: var(--surface-raised);
    color: var(--text-tertiary);
}

/* List Group */
[data-bs-theme="dark"] .list-group-item {
    background-color: var(--surface);
    border-color: var(--border-subtle);
    color: var(--text-body);
}

[data-bs-theme="dark"] .list-group-item:hover {
    background-color: var(--surface-raised);
}

/* Progress */
[data-bs-theme="dark"] .progress {
    background-color: var(--surface-raised);
}

/* Accordion */
[data-bs-theme="dark"] .accordion-button {
    background-color: var(--surface);
    color: var(--text-body);
}

[data-bs-theme="dark"] .accordion-button:not(.collapsed) {
    background-color: var(--surface-raised);
    color: var(--text-on-accent);
}

[data-bs-theme="dark"] .accordion-button::after {
    filter: invert(1);
}

[data-bs-theme="dark"] .accordion-body {
    background-color: var(--surface);
    color: var(--text-body);
}

/* Tabs */
[data-bs-theme="dark"] .nav-pills .nav-link {
    color: var(--text-tertiary);
}

[data-bs-theme="dark"] .nav-pills .nav-link:hover {
    background-color: var(--surface-raised);
    color: var(--text-on-accent);
}

[data-bs-theme="dark"] .nav-pills .nav-link.active {
    background-color: var(--gold-bg);
    color: var(--gold-fg);
    box-shadow: inset 0 -2px 0 0 var(--gold);
}

/* Hero Card */
[data-bs-theme="dark"] .hero-card,
[data-bs-theme="dark"] .hero-gradient {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
}

/* Stat Cards */
[data-bs-theme="dark"] .stat-card-modern {
    background-color: var(--surface);
}

[data-bs-theme="dark"] .stat-card-modern .stat-value {
    color: var(--text-emphasis);
}

/* Toast */
[data-bs-theme="dark"] .toast {
    background-color: var(--surface);
    color: var(--text-body);
}

[data-bs-theme="dark"] .toast-header {
    background-color: var(--surface-raised);
    color: var(--text-body);
    border-bottom-color: var(--surface-focus);
}

/* Footer */
[data-bs-theme="dark"] .footer {
    background-color: var(--surface-muted) !important;
    border-top: 2px solid var(--gold);
}

/* Text Colors */
[data-bs-theme="dark"] .text-muted {
    color: var(--text-tertiary) !important;
}

[data-bs-theme="dark"] h1,
[data-bs-theme="dark"] h2,
[data-bs-theme="dark"] h3,
[data-bs-theme="dark"] h4,
[data-bs-theme="dark"] h5,
[data-bs-theme="dark"] h6 {
    color: var(--text-emphasis);
}

/* Links */
[data-bs-theme="dark"] a {
    color: var(--link-color);
}

[data-bs-theme="dark"] a:hover {
    color: var(--link-hover);
}

/* Code */
[data-bs-theme="dark"] code {
    background-color: var(--surface-raised);
    color: var(--danger-fg);
}

/* Pre */
[data-bs-theme="dark"] pre {
    background-color: var(--surface);
    color: var(--text-body);
}

/* Scrollbar */
[data-bs-theme="dark"] ::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

[data-bs-theme="dark"] ::-webkit-scrollbar-track {
    background: var(--surface);
}

[data-bs-theme="dark"] ::-webkit-scrollbar-thumb {
    background: var(--surface-focus);
    border-radius: 5px;
}

[data-bs-theme="dark"] ::-webkit-scrollbar-thumb:hover {
    background: var(--text-tertiary);
}

/* ========================================
   ENHANCED SIDEBAR DARK MODE
   ======================================== */

[data-bs-theme="dark"] .estate-sidebar {
    background-color: var(--surface);
    border-right-color: var(--border-subtle);
}

[data-bs-theme="dark"] .estate-sidebar .sidebar-header {
    border-bottom-color: var(--border-subtle);
}

[data-bs-theme="dark"] .estate-sidebar .sidebar-estate-name {
    color: var(--text-primary);
}

[data-bs-theme="dark"] .estate-sidebar .nav-link {
    color: var(--text-secondary);
}

[data-bs-theme="dark"] .estate-sidebar .nav-link:hover {
    background-color: var(--surface-raised);
    color: var(--link-hover);
}

[data-bs-theme="dark"] .estate-sidebar .nav-link.active {
    background-color: var(--gold-bg);
    color: var(--gold-fg);
    border-left-color: var(--gold);
}

[data-bs-theme="dark"] .estate-sidebar .sidebar-footer {
    border-top-color: var(--border-subtle);
}

[data-bs-theme="dark"] .estate-sidebar .sidebar-nav::-webkit-scrollbar-thumb {
    background: var(--surface-focus);
}

/* ========================================
   QUICK ACTION FAB (MOBILE)
   ======================================== */

.fab-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 1050;
    display: flex;
    flex-direction: column-reverse;
    align-items: center;
    gap: 12px;
}

.fab-main {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--primary-color, #0d6efd);
    color: white;
    border: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.fab-main:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

.fab-main.active {
    background: #dc3545;
    transform: rotate(45deg);
}

.fab-actions {
    display: flex;
    flex-direction: column-reverse;
    gap: 12px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.fab-actions.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.fab-action {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: white;
    color: #333;
    border-radius: 28px;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.2s ease;
    white-space: nowrap;
}

.fab-action:hover {
    background: var(--primary-color, #0d6efd);
    color: white;
    transform: translateX(-4px);
}

.fab-action i {
    font-size: 1.1rem;
}

.fab-label {
    font-size: 0.875rem;
    font-weight: 500;
}

/* Dark mode support */
[data-bs-theme="dark"] .fab-action {
    background: var(--surface-raised);
    color: var(--text-body);
}

[data-bs-theme="dark"] .fab-action:hover {
    background: var(--primary-color, #3b82f6);
    color: white;
}

/* ========================================
   ENHANCED TABLE STYLES (V21-106)
   ======================================== */

/* Table Container */
.table-responsive {
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Table Base */
.table {
    margin-bottom: 0;
    border-collapse: separate;
    border-spacing: 0;
}

/* Table Header */
.table thead th {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-bottom: 2px solid var(--primary-color, #0d6efd);
    font-weight: 600;
    color: #374151;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
    padding: 0.875rem 1rem;
    white-space: nowrap;
}

/* Table Body */
.table tbody tr {
    transition: all 0.2s ease;
    border-bottom: 1px solid #e9ecef;
}

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

.table tbody tr:hover {
    background: linear-gradient(135deg, rgba(13, 110, 253, 0.05) 0%, rgba(13, 110, 253, 0.02) 100%);
    transform: scale(1.005);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.table tbody td {
    padding: 1rem;
    vertical-align: middle;
    color: #4b5563;
}

/* Striped Rows */
.table-striped > tbody > tr:nth-of-type(odd) > * {
    --bs-table-bg-type: rgba(0, 0, 0, 0.02);
}

/* Action Buttons in Tables */
.table .btn-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.8125rem;
    border-radius: 0.375rem;
    transition: all 0.2s ease;
}

.table .btn-sm:hover {
    transform: translateY(-1px);
}

/* Table Links */
.table a {
    color: var(--link-color);
    text-decoration: none;
    transition: color 0.2s ease;
}

.table a:hover {
    color: var(--link-hover);
    text-decoration: underline;
}

/* Table Badges */
.table .badge {
    font-weight: 500;
    padding: 0.375em 0.75em;
    border-radius: 0.375rem;
}

/* Empty State */
.table-empty {
    padding: 3rem;
    text-align: center;
    color: #6b7280;
}

.table-empty i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

/* Table Footer */
.card-footer {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-top: 1px solid #e9ecef;
    padding: 1rem;
}

/* Dark Mode Enhancements */
[data-bs-theme="dark"] .table-responsive {
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

[data-bs-theme="dark"] .table thead th {
    background: linear-gradient(135deg, var(--surface-raised) 0%, var(--surface) 100%);
    border-bottom-color: var(--primary-color, #3b82f6);
    color: var(--text-body);
}

[data-bs-theme="dark"] .table tbody tr {
    border-bottom-color: var(--border-subtle);
}

[data-bs-theme="dark"] .table tbody tr:hover {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(59, 130, 246, 0.05) 100%);
}

[data-bs-theme="dark"] .table tbody td {
    color: var(--text-secondary);
}

[data-bs-theme="dark"] .card-footer {
    background: linear-gradient(135deg, var(--surface-raised) 0%, var(--surface) 100%);
    border-top-color: var(--border-subtle);
}

/* ========================================
   NOTIFICATION DROPDOWN (V21-108)
   ======================================== */

.notification-dropdown-menu {
    border: none;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    border-radius: 0.75rem;
    overflow: hidden;
}

.notification-dropdown-menu .dropdown-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-bottom: 1px solid #e9ecef;
    padding: 0.75rem 1rem;
}

.notification-item {
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.2s ease;
}

.notification-item:hover {
    background-color: #f8f9fa !important;
}

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

.notification-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
}

.notification-icon i {
    margin: 0;
}

/* Dark mode support */
[data-bs-theme="dark"] .notification-dropdown-menu {
    background: var(--surface);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

[data-bs-theme="dark"] .notification-dropdown-menu .dropdown-header {
    background: linear-gradient(135deg, var(--surface-raised) 0%, var(--surface) 100%);
    border-bottom-color: var(--border-subtle);
    color: var(--text-body);
}

[data-bs-theme="dark"] .notification-item {
    border-bottom-color: var(--border-subtle);
}

[data-bs-theme="dark"] .notification-item:hover {
    background-color: var(--surface-raised) !important;
}

[data-bs-theme="dark"] .notification-icon {
    background: var(--surface-raised);
}

/* ========================================
   ESTATE PAGE & DASHBOARD DARK MODE (V2.1.2)
   ======================================== */

/* Hero cards: keep muted labels legible on the navy gradient */
.hero-gradient .text-white-50,
.hero-card .text-white-50 {
    color: rgba(255, 255, 255, 0.75) !important;
}

/* Stat values inside dark cards (primary color needs a lighter dark variant) */
[data-bs-theme="dark"] .stat-item .stat-value {
    color: var(--link-color);
}

/* Quick actions & info-row icon chips inherit the --surface/--chip-* tokens */

/* Milestone due dates (info color needs a lighter dark variant) */
[data-bs-theme="dark"] .milestone-date {
    color: var(--info-fg);
}

/* Empty states */
[data-bs-theme="dark"] .empty-state h4,
[data-bs-theme="dark"] .empty-state-modern h6 {
    color: var(--text-body);
}

[data-bs-theme="dark"] .empty-state p,
[data-bs-theme="dark"] .empty-state-modern p {
    color: var(--text-tertiary);
}

[data-bs-theme="dark"] .empty-state i {
    color: var(--text-tertiary);
}

[data-bs-theme="dark"] .table-empty {
    color: var(--text-tertiary);
}

/* Classic sidebar active link */
[data-bs-theme="dark"] .sidebar .nav-link.active {
    background-color: rgba(30, 58, 95, 0.35);
    color: var(--link-hover);
}

/* Info-row icon chips inherit --chip-bg/--chip-fg tokens */

/* ========================================
   WCAG AA CONTRAST PASS (V2.1.2)
   ======================================== */

/* Outline primary buttons: navy text is unreadable on dark surfaces */
[data-bs-theme="dark"] .btn-outline-primary {
    color: var(--link-color);
    border-color: var(--link-color);
}

[data-bs-theme="dark"] .btn-outline-primary:hover {
    background-color: #2563eb;
    border-color: #2563eb;
    color: var(--text-on-accent);
}

/* Table links need the dark link palette too */
[data-bs-theme="dark"] .table a {
    color: var(--link-color);
}

[data-bs-theme="dark"] .table a:hover {
    color: var(--link-hover);
}

/* Error page quick links */
[data-bs-theme="dark"] .quick-link-card i {
    color: var(--link-color);
}

[data-bs-theme="dark"] .quick-link-card:hover {
    color: var(--link-hover);
}

/* Error page code numerals: light gradients on dark surfaces */
[data-bs-theme="dark"] .error-code-display {
    background: linear-gradient(135deg, var(--link-color) 0%, var(--link-hover) 100%);
    -webkit-background-clip: text;
    background-clip: text;
}

[data-bs-theme="dark"] .error-code-warning {
    background: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%);
    -webkit-background-clip: text;
    background-clip: text;
}

[data-bs-theme="dark"] .error-code-info {
    background: linear-gradient(135deg, #38bdf8 0%, #7dd3fc 100%);
    -webkit-background-clip: text;
    background-clip: text;
}

[data-bs-theme="dark"] .error-code-danger {
    background: linear-gradient(135deg, #f87171 0%, #fca5a5 100%);
    -webkit-background-clip: text;
    background-clip: text;
}

/* Mobile table labels */
[data-bs-theme="dark"] .table-responsive tbody td::before {
    color: var(--text-tertiary);
}

/* Bootstrap utility text colors on light surfaces (WCAG AA 4.5:1) */
[data-bs-theme="light"] .text-primary {
    color: var(--primary-color) !important;
}

[data-bs-theme="light"] .text-warning {
    color: #b45309 !important;
}

[data-bs-theme="light"] .text-info {
    color: #0e7490 !important;
}

/* Subtle badges: text must stay readable on the tinted chip (light mode).
   primary/warning/info text colors are already handled by the global
   [data-bs-theme="light"] .text-* overrides above. */
[data-bs-theme="light"] .badge.bg-success-subtle.text-success {
    color: var(--success-fg) !important;
}

[data-bs-theme="light"] .badge.bg-danger-subtle.text-danger {
    color: var(--danger-fg) !important;
}

[data-bs-theme="light"] .badge.bg-secondary-subtle.text-secondary {
    color: #4b5563 !important;
}

[data-bs-theme="light"] .badge.bg-dark-subtle.text-dark {
    color: #1f2937 !important;
}

[data-bs-theme="light"] .badge.bg-light-subtle.text-light {
    color: #475569 !important;
}

/* ── V2.2.0: landing page pricing cards ──────────────────────────────────── */
.pricing-card {
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.pricing-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 0.75rem 1.5rem rgba(0, 0, 0, 0.12) !important;
}

.pricing-card-pro {
    position: relative;
    border: 2px solid var(--bs-primary) !important;
}

.pricing-card-pro .pricing-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
}

.pricing-card .pricing-price {
    transition: color 0.18s ease;
}

.pricing-toggle {
    cursor: pointer;
}

