/* ============================================
   TemplateMo 3D Glassmorphism Dashboard
   https://templatemo.com
   CSS Stylesheet
============================================ */

/* ============================================
   CSS CUSTOM PROPERTIES
============================================ */
:root {
    /* Primary Colors - Emerald & Gold Luxury */
    --emerald: #059669;
    --emerald-light: #34d399;
    --gold: #d4a574;
    --gold-light: #e8c9a0;
    --amber: #b45309;
    --cream: #fef3e2;
    --accent-rgb: 5, 150, 105;
    --accent-light-rgb: 52, 211, 153;
    
    /* Accent Colors */
    --coral: #e07a5f;
    --slate: #475569;
    
    /* Glass Colors */
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-shadow: rgba(0, 0, 0, 0.3);
    --glass-hover: rgba(255, 255, 255, 0.08);
    
    /* Background - Deep Forest */
    --bg-dark: #0a0f0d;
    --bg-gradient-1: #0d1a14;
    --bg-gradient-2: #132419;
    --bg-gradient-3: #1a2e23;
    
    /* Text */
    --text-primary: #f5f5f4;
    --text-secondary: rgba(245, 245, 244, 0.7);
    --text-muted: rgba(245, 245, 244, 0.4);
    
    /* Status Colors */
    --success: #22c55e;
    --warning: #eab308;
    --danger: #dc2626;
    --info: #0ea5e9;
    
    /* Spacing */
    --sidebar-width: 280px;
    --navbar-height: 70px;
    --border-radius: 20px;
    --card-padding: 24px;
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;

    --mobile-toggle-bg: linear-gradient(135deg, var(--emerald), var(--gold));
    --mobile-toggle-border: rgba(255, 255, 255, 0.12);
    --mobile-toggle-shadow: 0 8px 32px rgba(5, 150, 105, 0.3);
    --mobile-toggle-icon: #ffffff;

    --toast-surface: rgba(5, 10, 9, 0.96);
    --toast-border: rgba(255, 255, 255, 0.14);
    --toast-title: #f8fafc;
    --toast-body: rgba(241, 245, 249, 0.92);
    --toast-shadow: 0 18px 44px rgba(0, 0, 0, 0.34);
}

/* Light Mode */
[data-theme="light"] {
    /* Glass Colors - Bright Frosted */
    --glass-bg: rgba(255, 255, 255, 0.52);
    --glass-border: rgba(6, 78, 59, 0.16);
    --glass-shadow: rgba(15, 23, 42, 0.14);
    --glass-hover: rgba(255, 255, 255, 0.66);

    /* Background - Bright but not pure white */
    --bg-dark: #eaf6f0;
    --bg-gradient-1: #dff2e8;
    --bg-gradient-2: #edf8f2;
    --bg-gradient-3: #f7fcf9;

    /* Text - Light */
    --text-primary: #12251e;
    --text-secondary: rgba(18, 37, 30, 0.74);
    --text-muted: rgba(18, 37, 30, 0.52);

    --mobile-toggle-bg: linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(217, 242, 229, 0.98));
    --mobile-toggle-border: rgba(6, 78, 59, 0.18);
    --mobile-toggle-shadow: 0 12px 28px -16px rgba(15, 23, 42, 0.24), 0 8px 20px rgba(52, 211, 153, 0.18);
    --mobile-toggle-icon: #0f5132;

    --toast-surface: rgba(255, 255, 255, 0.96);
    --toast-border: rgba(15, 23, 42, 0.14);
    --toast-title: #0f172a;
    --toast-body: rgba(15, 23, 42, 0.86);
    --toast-shadow: 0 18px 44px rgba(15, 23, 42, 0.16);
}

/* Beach Mode */
[data-theme="beach"] {
    --glass-bg: rgba(255, 255, 255, 0.28);
    --glass-border: rgba(12, 74, 110, 0.24);
    --glass-shadow: rgba(8, 47, 73, 0.24);
    --glass-hover: rgba(255, 255, 255, 0.4);

    --bg-dark: #cdeef7;
    --bg-gradient-1: #97dff3;
    --bg-gradient-2: #c7f1ff;
    --bg-gradient-3: #ffe1b5;

    --text-primary: #0b3a52;
    --text-secondary: rgba(11, 58, 82, 0.76);
    --text-muted: rgba(11, 58, 82, 0.54);

    --mobile-toggle-bg: linear-gradient(135deg, rgba(14, 165, 233, 0.96), rgba(251, 146, 60, 0.92));
    --mobile-toggle-border: rgba(12, 74, 110, 0.24);
    --mobile-toggle-shadow: 0 14px 30px -14px rgba(8, 47, 73, 0.36), 0 10px 24px rgba(14, 165, 233, 0.2);
    --mobile-toggle-icon: #fff7ed;

    --toast-surface: rgba(236, 253, 255, 0.96);
    --toast-border: rgba(12, 74, 110, 0.18);
    --toast-title: #0b3a52;
    --toast-body: rgba(8, 47, 73, 0.88);
    --toast-shadow: 0 18px 44px rgba(8, 47, 73, 0.2);
}

[data-theme="beach"] .orb {
    opacity: 0.28;
}

[data-theme="beach"] .background::before {
    background:
        radial-gradient(ellipse 78% 52% at 15% 24%, rgba(14, 165, 233, 0.28) 0%, transparent 56%),
        radial-gradient(ellipse 64% 46% at 88% 28%, rgba(249, 115, 22, 0.2) 0%, transparent 56%),
        radial-gradient(ellipse 52% 38% at 52% 88%, rgba(2, 132, 199, 0.22) 0%, transparent 56%);
}

[data-theme="beach"] .background::after {
    content: '';
    position: absolute;
    left: -6%;
    right: -6%;
    bottom: -3%;
    height: 36%;
    pointer-events: none;
    background:
        radial-gradient(120% 78% at 15% 100%, rgba(255, 224, 168, 0.88) 0%, rgba(255, 224, 168, 0) 62%),
        radial-gradient(95% 70% at 62% 100%, rgba(255, 210, 140, 0.78) 0%, rgba(255, 210, 140, 0) 64%),
        radial-gradient(105% 74% at 102% 100%, rgba(255, 196, 122, 0.74) 0%, rgba(255, 196, 122, 0) 66%),
        repeating-radial-gradient(circle at 50% 110%, rgba(194, 120, 62, 0.14) 0 1px, rgba(255, 210, 140, 0) 1px 8px);
    opacity: 0.98;
    animation: beachSandDrift 22s ease-in-out infinite alternate;
}

[data-theme="beach"] .orb-1 {
    background: #22d3ee;
}

[data-theme="beach"] .orb-2 {
    background: #fb923c;
}

[data-theme="beach"] .orb-3 {
    background: #fbbf24;
}

[data-theme="beach"] .glass-card {
    border-color: rgba(12, 74, 110, 0.22);
    box-shadow:
        0 20px 40px -22px rgba(8, 47, 73, 0.4),
        0 8px 24px rgba(14, 165, 233, 0.14);
}

[data-theme="beach"] .glass-card:hover {
    border-color: rgba(2, 132, 199, 0.36);
    box-shadow:
        0 24px 48px -22px rgba(8, 47, 73, 0.42),
        0 0 28px rgba(56, 189, 248, 0.28);
}

[data-theme="beach"] .sidebar,
[data-theme="beach"] .navbar {
    border-color: rgba(12, 74, 110, 0.2);
}

[data-theme="beach"] body::before {
    content: '';
    position: fixed;
    right: -70px;
    bottom: -70px;
    width: 520px;
    height: 520px;
    background: url("png photos/pngtree-palm-tree-png-png-image_8371984.png") no-repeat center;
    background-size: contain;
    opacity: 0.12;
    filter: blur(2.8px) saturate(0.85);
    transform: rotate(-3deg);
    pointer-events: none;
    z-index: -1;
}

[data-theme="beach"] body::after {
    content: '';
    position: fixed;
    left: 18px;
    top: 16px;
    width: 430px;
    height: 260px;
    background: url("png photos/pngtree-flock-flying-birds-silhouette-vector-png-image_6611910.png") no-repeat top left;
    background-size: contain;
    opacity: 0.24;
    filter: blur(0.8px) saturate(0.92) contrast(1.04);
    transform: rotate(-2deg);
    pointer-events: none;
    z-index: -1;
}

[data-theme="beach"] .calendar-day.past-day {
    color: rgba(8, 47, 73, 0.84);
    background: linear-gradient(135deg, rgba(114, 160, 178, 0.72), rgba(78, 122, 148, 0.74));
    border-color: rgba(8, 47, 73, 0.36);
}

[data-theme="beach"] .calendar-day.past-day .calendar-day-number {
    color: rgba(5, 30, 46, 0.95);
}

[data-theme="beach"] .form-input,
[data-theme="beach"] .search-input,
[data-theme="beach"] .settings-select,
[data-theme="beach"] input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="color"]):not([type="file"]),
[data-theme="beach"] textarea,
[data-theme="beach"] select,
[data-theme="beach"] select.form-input,
[data-theme="beach"] .ia-grid input,
[data-theme="beach"] .ia-grid select,
[data-theme="beach"] .offer-grid input,
[data-theme="beach"] .offer-grid select,
[data-theme="beach"] .calendar-inline-form textarea,
[data-theme="beach"] .calendar-inline-form input,
[data-theme="beach"] .agent-note-input,
[data-theme="beach"] .outreach-textarea {
    background: linear-gradient(135deg, rgba(8, 47, 73, 0.78), rgba(3, 105, 161, 0.72)) !important;
    border: 1px solid rgba(125, 211, 252, 0.55) !important;
    color: #f0f9ff !important;
    box-shadow: inset 0 1px 0 rgba(224, 242, 254, 0.1), 0 4px 12px rgba(8, 47, 73, 0.2);
}

[data-theme="beach"] .form-input::placeholder,
[data-theme="beach"] .search-input::placeholder,
[data-theme="beach"] .agent-note-input::placeholder,
[data-theme="beach"] .outreach-textarea::placeholder,
[data-theme="beach"] input::placeholder,
[data-theme="beach"] textarea::placeholder {
    color: rgba(224, 242, 254, 0.78) !important;
}

[data-theme="beach"] .form-input:focus,
[data-theme="beach"] .search-input:focus,
[data-theme="beach"] .settings-select:focus,
[data-theme="beach"] input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):focus,
[data-theme="beach"] textarea:focus,
[data-theme="beach"] select:focus,
[data-theme="beach"] .ia-grid input:focus,
[data-theme="beach"] .ia-grid select:focus,
[data-theme="beach"] .offer-grid input:focus,
[data-theme="beach"] .offer-grid select:focus,
[data-theme="beach"] .calendar-inline-form textarea:focus,
[data-theme="beach"] .calendar-inline-form input:focus,
[data-theme="beach"] .agent-note-input:focus,
[data-theme="beach"] .outreach-textarea:focus {
    border-color: rgba(186, 230, 253, 0.95) !important;
    box-shadow: 0 0 0 3px rgba(125, 211, 252, 0.24), 0 12px 20px -14px rgba(8, 47, 73, 0.65) !important;
}

[data-theme="beach"] .settings-select,
[data-theme="beach"] select,
[data-theme="beach"] select.form-input,
[data-theme="beach"] .ia-grid select,
[data-theme="beach"] .offer-grid select,
[data-theme="beach"] .form-group .form-input[type="select-one"] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23e0f2fe' d='M6 8 0 0h12z'/%3E%3C/svg%3E");
}

[data-theme="beach"] .settings-select option,
[data-theme="beach"] select option,
[data-theme="beach"] select.form-input option,
[data-theme="beach"] .ia-grid select option,
[data-theme="beach"] .offer-grid select option,
[data-theme="beach"] .form-group .form-input[type="select-one"] option {
    background: #0b2f49 !important;
    color: #f0f9ff !important;
}

[data-theme="beach"] .settings-select option:checked,
[data-theme="beach"] select option:checked,
[data-theme="beach"] select.form-input option:checked,
[data-theme="beach"] .ia-grid select option:checked,
[data-theme="beach"] .offer-grid select option:checked,
[data-theme="beach"] .form-group .form-input[type="select-one"] option:checked {
    background: #0c4a6e !important;
    color: #ecfeff !important;
}

[data-theme="beach"] input:disabled,
[data-theme="beach"] textarea:disabled,
[data-theme="beach"] select:disabled {
    background: rgba(12, 74, 110, 0.46) !important;
    border-color: rgba(125, 211, 252, 0.3) !important;
    color: rgba(224, 242, 254, 0.7) !important;
}

[data-theme="beach"] .ia-section {
    border-color: rgba(14, 116, 144, 0.38);
    background:
        linear-gradient(140deg, rgba(224, 247, 255, 0.86), rgba(186, 230, 253, 0.7)),
        linear-gradient(20deg, rgba(255, 237, 213, 0.5), rgba(255, 247, 237, 0.32));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72), 0 18px 28px -20px rgba(8, 47, 73, 0.34);
}

[data-theme="beach"] .ia-section h3 {
    color: #0c4a6e;
}

[data-theme="beach"] .ia-grid label,
[data-theme="beach"] .ia-other-head,
[data-theme="beach"] .ia-other-item {
    color: rgba(8, 47, 73, 0.88);
}

[data-theme="beach"] .ia-readout {
    border-color: rgba(14, 116, 144, 0.36);
    background: linear-gradient(135deg, rgba(224, 242, 254, 0.84), rgba(186, 230, 253, 0.72));
    color: rgba(8, 47, 73, 0.92);
}

[data-theme="beach"] .ia-readout strong {
    color: #0c4a6e;
}

[data-theme="beach"] .ia-other-costs {
    border-color: rgba(14, 116, 144, 0.42);
    background: linear-gradient(135deg, rgba(186, 230, 253, 0.36), rgba(255, 237, 213, 0.22));
}

[data-theme="beach"] .ia-other-item {
    border-color: rgba(14, 116, 144, 0.3);
    background: rgba(239, 246, 255, 0.5);
}

[data-theme="beach"] .ia-calc-btn,
[data-theme="beach"] .ia-other-head button {
    border-color: rgba(14, 116, 144, 0.56);
    background: linear-gradient(135deg, rgba(14, 116, 144, 0.78), rgba(2, 132, 199, 0.68));
    color: #f0f9ff;
    box-shadow: 0 10px 18px -12px rgba(8, 47, 73, 0.55);
}

[data-theme="beach"] .ia-calc-btn:hover,
[data-theme="beach"] .ia-other-head button:hover {
    background: linear-gradient(135deg, rgba(14, 116, 144, 0.88), rgba(3, 105, 161, 0.76));
}

[data-theme="beach"] .ia-cash-note {
    border-color: rgba(14, 116, 144, 0.44);
    color: #0c4a6e;
    background: rgba(186, 230, 253, 0.38);
}

/* Swamp Mode */
[data-theme="swamp"] {
    --glass-bg: rgba(34, 52, 25, 0.4);
    --glass-border: rgba(143, 113, 71, 0.3);
    --glass-shadow: rgba(25, 31, 18, 0.32);
    --glass-hover: rgba(71, 94, 51, 0.52);

    --bg-dark: #313f20;
    --bg-gradient-1: #44572a;
    --bg-gradient-2: #5c7339;
    --bg-gradient-3: #7d6037;

    --text-primary: #f7f3df;
    --text-secondary: rgba(247, 243, 223, 0.8);
    --text-muted: rgba(247, 243, 223, 0.56);

    --mobile-toggle-bg: linear-gradient(135deg, rgba(93, 124, 46, 0.96), rgba(129, 91, 48, 0.92));
    --mobile-toggle-border: rgba(196, 167, 111, 0.26);
    --mobile-toggle-shadow: 0 14px 30px -14px rgba(28, 35, 18, 0.52), 0 10px 24px rgba(93, 124, 46, 0.28);
    --mobile-toggle-icon: #fef8e6;

    --toast-surface: rgba(43, 57, 29, 0.96);
    --toast-border: rgba(196, 167, 111, 0.22);
    --toast-title: #f7f3df;
    --toast-body: rgba(247, 243, 223, 0.9);
    --toast-shadow: 0 18px 44px rgba(20, 25, 14, 0.3);
}

[data-theme="swamp"] .orb {
    opacity: 0.34;
}

[data-theme="swamp"] .background::before {
    background:
        radial-gradient(ellipse 78% 52% at 15% 24%, rgba(121, 153, 62, 0.34) 0%, transparent 56%),
        radial-gradient(ellipse 64% 46% at 88% 28%, rgba(129, 91, 48, 0.28) 0%, transparent 56%),
        radial-gradient(ellipse 52% 38% at 52% 88%, rgba(59, 83, 32, 0.28) 0%, transparent 56%);
}

[data-theme="swamp"] .background::after {
    content: '';
    position: absolute;
    left: -6%;
    right: -6%;
    bottom: -3%;
    height: 36%;
    pointer-events: none;
    background:
        radial-gradient(120% 78% at 15% 100%, rgba(94, 112, 46, 0.86) 0%, rgba(94, 112, 46, 0) 62%),
        radial-gradient(95% 70% at 62% 100%, rgba(123, 87, 46, 0.78) 0%, rgba(123, 87, 46, 0) 64%),
        radial-gradient(105% 74% at 102% 100%, rgba(159, 128, 76, 0.7) 0%, rgba(159, 128, 76, 0) 66%),
        repeating-radial-gradient(circle at 50% 110%, rgba(48, 62, 29, 0.16) 0 1px, rgba(159, 128, 76, 0) 1px 8px);
    opacity: 0.98;
    animation: beachSandDrift 22s ease-in-out infinite alternate;
}

[data-theme="swamp"] .orb-1 {
    background: #7a9c45;
}

[data-theme="swamp"] .orb-2 {
    background: #8b5e34;
}

[data-theme="swamp"] .orb-3 {
    background: #b9925d;
}

[data-theme="swamp"] .glass-card {
    border-color: rgba(196, 167, 111, 0.24);
    box-shadow:
        0 20px 40px -22px rgba(20, 25, 14, 0.44),
        0 8px 24px rgba(93, 124, 46, 0.18);
}

[data-theme="swamp"] .glass-card:hover {
    border-color: rgba(169, 139, 90, 0.42);
    box-shadow:
        0 24px 48px -22px rgba(20, 25, 14, 0.48),
        0 0 28px rgba(122, 156, 69, 0.26);
}

[data-theme="swamp"] .sidebar,
[data-theme="swamp"] .navbar {
    border-color: rgba(196, 167, 111, 0.22);
}

[data-theme="swamp"] body::before {
    content: '';
    position: fixed;
    right: -78px;
    bottom: -18px;
    width: 540px;
    height: 540px;
    background: url("png photos/shrek png image.png") no-repeat center;
    background-size: contain;
    opacity: 0.14;
    filter: drop-shadow(0 24px 44px rgba(20, 25, 14, 0.5)) saturate(0.9);
    transform: scale(1.02);
    pointer-events: none;
    z-index: -1;
}

[data-theme="swamp"] body::after {
    content: '';
    position: fixed;
    left: 18px;
    top: 16px;
    width: 430px;
    height: 260px;
    background: url("png photos/pngtree-flock-flying-birds-silhouette-vector-png-image_6611910.png") no-repeat top left;
    background-size: contain;
    opacity: 0.16;
    filter: blur(1px) saturate(0.35) sepia(0.48) hue-rotate(-28deg);
    transform: rotate(-2deg);
    pointer-events: none;
    z-index: -1;
}

[data-theme="swamp"] .calendar-day.past-day {
    color: rgba(248, 240, 212, 0.92);
    background: linear-gradient(135deg, rgba(100, 122, 57, 0.78), rgba(73, 89, 39, 0.78));
    border-color: rgba(196, 167, 111, 0.28);
}

[data-theme="swamp"] .calendar-day.past-day .calendar-day-number {
    color: #fff5cf;
}

[data-theme="swamp"] .form-input,
[data-theme="swamp"] .search-input,
[data-theme="swamp"] .settings-select,
[data-theme="swamp"] input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="color"]):not([type="file"]),
[data-theme="swamp"] textarea,
[data-theme="swamp"] select,
[data-theme="swamp"] select.form-input,
[data-theme="swamp"] .ia-grid input,
[data-theme="swamp"] .ia-grid select,
[data-theme="swamp"] .offer-grid input,
[data-theme="swamp"] .offer-grid select,
[data-theme="swamp"] .calendar-inline-form textarea,
[data-theme="swamp"] .calendar-inline-form input,
[data-theme="swamp"] .agent-note-input,
[data-theme="swamp"] .outreach-textarea {
    background: linear-gradient(135deg, rgba(42, 56, 28, 0.84), rgba(84, 64, 36, 0.76)) !important;
    border: 1px solid rgba(196, 167, 111, 0.44) !important;
    color: #f7f3df !important;
    box-shadow: inset 0 1px 0 rgba(255, 248, 230, 0.08), 0 4px 12px rgba(20, 25, 14, 0.24);
}

[data-theme="swamp"] .form-input::placeholder,
[data-theme="swamp"] .search-input::placeholder,
[data-theme="swamp"] .agent-note-input::placeholder,
[data-theme="swamp"] .outreach-textarea::placeholder,
[data-theme="swamp"] input::placeholder,
[data-theme="swamp"] textarea::placeholder {
    color: rgba(247, 243, 223, 0.68) !important;
}

[data-theme="swamp"] .form-input:focus,
[data-theme="swamp"] .search-input:focus,
[data-theme="swamp"] .settings-select:focus,
[data-theme="swamp"] input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):focus,
[data-theme="swamp"] textarea:focus,
[data-theme="swamp"] select:focus,
[data-theme="swamp"] .ia-grid input:focus,
[data-theme="swamp"] .ia-grid select:focus,
[data-theme="swamp"] .offer-grid input:focus,
[data-theme="swamp"] .offer-grid select:focus,
[data-theme="swamp"] .calendar-inline-form textarea:focus,
[data-theme="swamp"] .calendar-inline-form input:focus,
[data-theme="swamp"] .agent-note-input:focus,
[data-theme="swamp"] .outreach-textarea:focus {
    border-color: rgba(223, 203, 147, 0.9) !important;
    box-shadow: 0 0 0 3px rgba(196, 167, 111, 0.22), 0 12px 20px -14px rgba(20, 25, 14, 0.68) !important;
}

[data-theme="swamp"] .settings-select,
[data-theme="swamp"] select,
[data-theme="swamp"] select.form-input,
[data-theme="swamp"] .ia-grid select,
[data-theme="swamp"] .offer-grid select,
[data-theme="swamp"] .form-group .form-input[type="select-one"] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23f7f3df' d='M6 8 0 0h12z'/%3E%3C/svg%3E");
}

[data-theme="swamp"] .settings-select option,
[data-theme="swamp"] select option,
[data-theme="swamp"] select.form-input option,
[data-theme="swamp"] .ia-grid select option,
[data-theme="swamp"] .offer-grid select option,
[data-theme="swamp"] .form-group .form-input[type="select-one"] option {
    background: #31411f !important;
    color: #f7f3df !important;
}

[data-theme="swamp"] .settings-select option:checked,
[data-theme="swamp"] select option:checked,
[data-theme="swamp"] select.form-input option:checked,
[data-theme="swamp"] .ia-grid select option:checked,
[data-theme="swamp"] .offer-grid select option:checked,
[data-theme="swamp"] .form-group .form-input[type="select-one"] option:checked {
    background: #597235 !important;
    color: #fff8df !important;
}

[data-theme="swamp"] input:disabled,
[data-theme="swamp"] textarea:disabled,
[data-theme="swamp"] select:disabled {
    background: rgba(63, 80, 36, 0.54) !important;
    border-color: rgba(196, 167, 111, 0.26) !important;
    color: rgba(247, 243, 223, 0.64) !important;
}

[data-theme="swamp"] .ia-section {
    border-color: rgba(196, 167, 111, 0.32);
    background:
        linear-gradient(140deg, rgba(84, 111, 45, 0.86), rgba(56, 77, 30, 0.78)),
        linear-gradient(20deg, rgba(138, 99, 56, 0.34), rgba(58, 73, 34, 0.22));
    box-shadow: inset 0 1px 0 rgba(255, 248, 230, 0.16), 0 18px 28px -20px rgba(20, 25, 14, 0.42);
}

[data-theme="swamp"] .ia-section h3 {
    color: #fff6d7;
}

[data-theme="swamp"] .ia-grid label,
[data-theme="swamp"] .ia-other-head,
[data-theme="swamp"] .ia-other-item {
    color: rgba(247, 243, 223, 0.9);
}

[data-theme="swamp"] .ia-readout {
    border-color: rgba(196, 167, 111, 0.3);
    background: linear-gradient(135deg, rgba(61, 79, 33, 0.9), rgba(102, 74, 41, 0.76));
    color: rgba(255, 248, 230, 0.92);
}

[data-theme="swamp"] .ia-readout strong {
    color: #fff8df;
}

[data-theme="swamp"] .ia-other-costs {
    border-color: rgba(196, 167, 111, 0.32);
    background: linear-gradient(135deg, rgba(73, 94, 40, 0.36), rgba(138, 99, 56, 0.24));
}

[data-theme="swamp"] .ia-other-item {
    border-color: rgba(196, 167, 111, 0.24);
    background: rgba(47, 61, 28, 0.42);
}

[data-theme="swamp"] .ia-calc-btn,
[data-theme="swamp"] .ia-other-head button {
    border-color: rgba(196, 167, 111, 0.4);
    background: linear-gradient(135deg, rgba(93, 124, 46, 0.82), rgba(129, 91, 48, 0.76));
    color: #fff8df;
    box-shadow: 0 10px 18px -12px rgba(20, 25, 14, 0.55);
}

[data-theme="swamp"] .ia-calc-btn:hover,
[data-theme="swamp"] .ia-other-head button:hover {
    background: linear-gradient(135deg, rgba(113, 145, 57, 0.9), rgba(146, 104, 57, 0.82));
}

[data-theme="swamp"] .ia-cash-note {
    border-color: rgba(196, 167, 111, 0.36);
    color: #fff5cf;
    background: rgba(72, 95, 38, 0.42);
}

[data-theme="light"] .orb {
    opacity: 0.2;
}

[data-theme="light"] .background::before {
    background:
        radial-gradient(ellipse 78% 50% at 20% 35%, rgba(16, 185, 129, 0.18) 0%, transparent 54%),
        radial-gradient(ellipse 62% 45% at 84% 62%, rgba(5, 150, 105, 0.14) 0%, transparent 56%),
        radial-gradient(ellipse 54% 40% at 48% 82%, rgba(212, 165, 116, 0.12) 0%, transparent 58%);
}

[data-theme="light"] .glass-card::before {
    background: linear-gradient(90deg, transparent, rgba(var(--accent-light-rgb), 0.22), transparent);
}

[data-theme="light"] .glass-card {
    box-shadow:
        0 20px 40px -20px rgba(15, 23, 42, 0.22),
        0 8px 24px rgba(var(--accent-light-rgb), 0.1);
}

[data-theme="light"] .glass-card:hover {
    border-color: rgba(var(--accent-rgb), 0.3);
    box-shadow:
        0 24px 45px -20px rgba(15, 23, 42, 0.24),
        0 0 30px rgba(var(--accent-light-rgb), 0.2);
}

[data-theme="light"] .property-tab-btn.active,
[data-theme="light"] .piq-image-tab.active,
[data-theme="light"] .mls-page-btn.active {
    background: linear-gradient(135deg, rgba(var(--accent-rgb), 0.2), rgba(var(--accent-light-rgb), 0.24));
    border-color: rgba(var(--accent-rgb), 0.36);
}

[data-theme="light"] select,
[data-theme="light"] select.form-input,
[data-theme="light"] .ia-grid select,
[data-theme="light"] .offer-grid select,
[data-theme="light"] .form-group .form-input[type="select-one"] {
    background-color: rgba(255, 255, 255, 0.58) !important;
    border: 1px solid rgba(6, 78, 59, 0.18) !important;
    color: var(--text-primary) !important;
    color-scheme: light;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23115846' d='M6 8 0 0h12z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 12px 8px;
    padding-right: 30px;
}

[data-theme="light"] select option,
[data-theme="light"] select.form-input option,
[data-theme="light"] .ia-grid select option,
[data-theme="light"] .offer-grid select option,
[data-theme="light"] .form-group .form-input[type="select-one"] option {
    background-color: #eef8f3 !important;
    color: #133126 !important;
}

[data-theme="light"] select option:checked,
[data-theme="light"] select.form-input option:checked,
[data-theme="light"] .ia-grid select option:checked,
[data-theme="light"] .offer-grid select option:checked,
[data-theme="light"] .form-group .form-input[type="select-one"] option:checked {
    background-color: #d8f3e6 !important;
    color: #0f5132 !important;
}

[data-theme="light"] .mls-property-card,
[data-theme="light"] .property-tab-panel,
[data-theme="light"] .agent-record-section,
[data-theme="light"] .piq-image-block,
[data-theme="light"] .ia-section,
[data-theme="light"] .agent-note-list,
[data-theme="light"] .agent-note-item,
[data-theme="light"] .calendar-ai-panel,
[data-theme="light"] .calendar-detail-card,
[data-theme="light"] .calendar-event-item,
[data-theme="light"] .calendar-empty-state {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.46), rgba(236, 248, 241, 0.7));
    border-color: rgba(6, 78, 59, 0.14);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65), 0 14px 30px -20px rgba(15, 23, 42, 0.18);
}

[data-theme="light"] .mls-image-wrap,
[data-theme="light"] .piq-image-thumb-large,
[data-theme="light"] .piq-image-thumb-strip {
    border-color: rgba(6, 78, 59, 0.14);
    background: rgba(255, 255, 255, 0.44);
}

[data-theme="light"] .mls-source-link,
[data-theme="light"] .mls-page-btn,
[data-theme="light"] .property-tab-btn,
[data-theme="light"] .piq-image-tab,
[data-theme="light"] .calendar-nav-btn,
[data-theme="light"] .calendar-back-btn,
[data-theme="light"] .calendar-ai-chip {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.54), rgba(229, 244, 236, 0.82));
    border-color: rgba(6, 78, 59, 0.16);
    color: var(--text-secondary);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

[data-theme="light"] .property-tab-btn:hover,
[data-theme="light"] .piq-image-tab:hover,
[data-theme="light"] .mls-source-link:hover,
[data-theme="light"] .mls-page-btn:hover,
[data-theme="light"] .calendar-nav-btn:hover,
[data-theme="light"] .calendar-back-btn:hover,
[data-theme="light"] .calendar-ai-chip:hover {
    border-color: rgba(var(--accent-rgb), 0.34);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.88), rgba(var(--accent-light-rgb), 0.18));
    color: var(--text-primary);
}

[data-theme="light"] .property-tab-btn.active,
[data-theme="light"] .piq-image-tab.active,
[data-theme="light"] .mls-page-btn.active {
    background: linear-gradient(135deg, rgba(var(--accent-rgb), 0.2), rgba(var(--accent-light-rgb), 0.24));
    border-color: rgba(var(--accent-rgb), 0.38);
    color: var(--text-primary);
    box-shadow: 0 10px 22px -16px rgba(var(--accent-rgb), 0.46);
}

[data-theme="light"] .property-back-link {
    color: var(--text-primary);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(var(--accent-light-rgb), 0.24));
    border-color: rgba(var(--accent-rgb), 0.34);
    box-shadow: 0 12px 24px -18px rgba(var(--accent-rgb), 0.42);
}

[data-theme="light"] .property-back-link:hover {
    color: var(--text-primary);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(var(--accent-light-rgb), 0.32));
}

[data-theme="light"] .calendar-grid {
    padding-right: 6px;
}

[data-theme="light"] .calendar-day-name,
[data-theme="light"] .calendar-detail-label,
[data-theme="light"] .calendar-agenda-label {
    color: rgba(15, 81, 50, 0.62);
}

[data-theme="light"] .calendar-day {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.62), rgba(233, 247, 240, 0.94));
    border: 1px solid rgba(6, 78, 59, 0.12);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7), 0 10px 20px -18px rgba(15, 23, 42, 0.25);
}

[data-theme="light"] .calendar-day:hover {
    background: linear-gradient(135deg, rgba(243, 253, 247, 0.94), rgba(218, 245, 232, 0.98));
    border-color: rgba(5, 150, 105, 0.26);
    box-shadow: 0 16px 24px -18px rgba(16, 185, 129, 0.25);
}

[data-theme="light"] .calendar-day.other-month {
    color: rgba(18, 37, 30, 0.4);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.34), rgba(241, 246, 243, 0.66));
}

[data-theme="light"] .calendar-day.past-day {
    color: rgba(18, 37, 30, 0.62);
    background: linear-gradient(135deg, rgba(229, 236, 232, 0.92), rgba(236, 242, 238, 0.82));
    border-color: rgba(100, 116, 139, 0.14);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

[data-theme="light"] .calendar-day.today {
    background: linear-gradient(135deg, #0f9f6e, #4ade80);
    color: #f8fffc;
    box-shadow: 0 14px 28px -18px rgba(5, 150, 105, 0.65);
}

[data-theme="light"] .calendar-day.selected {
    border-color: rgba(212, 165, 116, 0.7);
    box-shadow: inset 0 0 0 1px rgba(212, 165, 116, 0.2), 0 14px 26px -18px rgba(212, 165, 116, 0.32);
}

[data-theme="light"] .calendar-event-count {
    background: rgba(212, 165, 116, 0.2);
    color: #8a5a1f;
}

[data-theme="light"] .calendar-ai-chat {
    background: rgba(255, 255, 255, 0.42);
    border-color: rgba(6, 78, 59, 0.12);
}

[data-theme="light"] .calendar-ai-msg.assistant {
    background: rgba(255, 255, 255, 0.68);
    border-color: rgba(6, 78, 59, 0.1);
    color: var(--text-secondary);
}

[data-theme="light"] .calendar-ai-msg.user {
    background: rgba(16, 185, 129, 0.14);
    border-color: rgba(5, 150, 105, 0.22);
    color: #0f5132;
}

[data-theme="light"] .calendar-inline-form textarea,
[data-theme="light"] .calendar-inline-form input,
[data-theme="light"] .ia-grid input,
[data-theme="light"] .ia-grid select,
[data-theme="light"] .agent-note-input {
    background: rgba(255, 255, 255, 0.54);
    border-color: rgba(6, 78, 59, 0.14);
    color: var(--text-primary);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

[data-theme="light"] .ia-readout {
    border-color: rgba(6, 78, 59, 0.12);
    background: linear-gradient(135deg, rgba(244, 252, 248, 0.9), rgba(224, 242, 233, 0.92));
    color: rgba(18, 37, 30, 0.82);
}

[data-theme="light"] .ia-readout strong {
    color: #0f5132;
}

[data-theme="light"] .ia-grid input:disabled,
[data-theme="light"] .ia-grid select:disabled {
    background: rgba(226, 232, 240, 0.58);
    border-color: rgba(148, 163, 184, 0.2);
    color: rgba(71, 85, 105, 0.8);
}

[data-theme="light"] .ia-calc-btn,
[data-theme="light"] .ia-other-head button {
    background: linear-gradient(135deg, rgba(var(--accent-rgb), 0.18), rgba(var(--accent-light-rgb), 0.2));
    border-color: rgba(var(--accent-rgb), 0.3);
    color: var(--text-primary);
}

[data-theme="light"] .ia-other-costs {
    border-color: rgba(6, 78, 59, 0.18);
    background: rgba(255, 255, 255, 0.34);
}

[data-theme="light"] .agent-note-status,
[data-theme="light"] .mls-badge.turnkey {
    color: #8a5a1f;
    background: rgba(212, 165, 116, 0.18);
    border-color: rgba(180, 134, 74, 0.28);
}

[data-theme="light"] .mls-badge.test,
[data-theme="light"] .deals-compact-count,
[data-theme="light"] .mls-listing-status.active {
    color: #0f5132;
    background: rgba(16, 185, 129, 0.16);
    border-color: rgba(5, 150, 105, 0.26);
}

[data-theme="light"] .mls-property-card:hover {
    border-color: rgba(5, 150, 105, 0.28);
    box-shadow: 0 18px 34px -24px rgba(15, 23, 42, 0.24), 0 18px 28px -24px rgba(16, 185, 129, 0.25);
}

[data-theme="light"] .navbar {
    background: rgba(255, 255, 255, 0.38);
    border-bottom-color: rgba(6, 78, 59, 0.12);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

[data-theme="light"] .page-title {
    color: var(--text-primary);
}

[data-theme="light"] .nav-link:hover,
[data-theme="light"] .nav-link.active {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.54), rgba(218, 245, 232, 0.88));
    color: #0f5132;
    border: 1px solid rgba(5, 150, 105, 0.16);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7), 0 12px 22px -18px rgba(16, 185, 129, 0.22);
}

[data-theme="light"] .nav-link.active .nav-icon,
[data-theme="light"] .nav-link:hover .nav-icon {
    color: #0f5132;
}

[data-theme="light"] .mls-board-intro,
[data-theme="light"] .mls-controls-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.5), rgba(236, 248, 241, 0.78));
    border-color: rgba(6, 78, 59, 0.14);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72), 0 16px 32px -24px rgba(15, 23, 42, 0.24);
}

[data-theme="light"] .mls-board-intro .card-subtitle,
[data-theme="light"] .mls-location,
[data-theme="light"] .mls-note,
[data-theme="light"] .mls-roi,
[data-theme="light"] .mls-metrics,
[data-theme="light"] .mls-empty-state {
    color: rgba(18, 37, 30, 0.72);
}

[data-theme="light"] .mls-controls-card .form-group label {
    color: rgba(15, 81, 50, 0.8);
}

[data-theme="light"] .mls-controls-card .form-input {
    background: rgba(255, 255, 255, 0.58);
    border-color: rgba(6, 78, 59, 0.16);
    color: var(--text-primary);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.74);
}

[data-theme="light"] .mls-property-card .card-btn {
    background: linear-gradient(135deg, rgba(240, 253, 247, 0.96), rgba(214, 245, 229, 0.94));
    border-color: rgba(5, 150, 105, 0.24);
    color: #0f5132;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8), 0 12px 20px -18px rgba(16, 185, 129, 0.3);
}

[data-theme="light"] .mls-property-card .card-btn:hover,
[data-theme="light"] .mls-property-card .card-btn.active {
    background: linear-gradient(135deg, rgba(220, 252, 231, 0.98), rgba(167, 243, 208, 0.94));
    border-color: rgba(5, 150, 105, 0.32);
    color: #0b3b2e;
}

[data-theme="light"] .mls-property-card h3,
[data-theme="light"] .mls-board-intro .card-title {
    color: #143127;
}

[data-theme="light"] .stat-value {
    background: linear-gradient(135deg, var(--text-primary), var(--text-secondary));
    -webkit-background-clip: text;
    background-clip: text;
}

[data-theme="light"] .table-wrapper::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .chart-wrapper::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .activity-list::-webkit-scrollbar-thumb {
    background: var(--glass-border);
}

/* ============================================
   RESET & BASE STYLES
============================================ */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Outfit', sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

/* ============================================
   ANIMATED BACKGROUND
============================================ */
.background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    overflow: hidden;
    background: linear-gradient(135deg, var(--bg-gradient-1) 0%, var(--bg-gradient-2) 50%, var(--bg-gradient-3) 100%);
}

.background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(ellipse 80% 50% at 20% 40%, rgba(120, 0, 255, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse 60% 40% at 80% 60%, rgba(0, 200, 255, 0.12) 0%, transparent 50%),
        radial-gradient(ellipse 50% 30% at 50% 80%, rgba(255, 0, 200, 0.1) 0%, transparent 50%);
}

/* Floating Orbs */
.orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    z-index: -1;
    animation: float 20s ease-in-out infinite;
}

.orb-1 {
    width: 400px;
    height: 400px;
    background: var(--emerald);
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.orb-2 {
    width: 350px;
    height: 350px;
    background: var(--gold);
    top: 60%;
    right: 10%;
    animation-delay: -5s;
}

.orb-3 {
    width: 300px;
    height: 300px;
    background: var(--coral);
    bottom: 10%;
    left: 30%;
    animation-delay: -10s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(30px, -30px) scale(1.05); }
    50% { transform: translate(-20px, 20px) scale(0.95); }
    75% { transform: translate(20px, 10px) scale(1.02); }
}

@keyframes beachSandDrift {
    0% {
        transform: translateX(0) translateY(0);
    }
    50% {
        transform: translateX(-1.2%) translateY(-1.2%);
    }
    100% {
        transform: translateX(1.2%) translateY(0.6%);
    }
}

/* ============================================
   LAYOUT STRUCTURE
============================================ */
.dashboard {
    display: flex;
    min-height: 100vh;
}

/* ============================================
   SIDEBAR
============================================ */
.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: var(--sidebar-width);
    height: 100vh;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-right: 1px solid var(--glass-border);
    padding: 24px;
    z-index: 100;
    transition: all var(--transition-normal);
    overflow-y: auto;
}

/* Custom Scrollbar for Sidebar */
.sidebar::-webkit-scrollbar {
    width: 6px;
}

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

.sidebar::-webkit-scrollbar-thumb {
    background: var(--glass-border);
    border-radius: 3px;
}

.sidebar::-webkit-scrollbar-thumb:hover {
    background: var(--emerald-light);
}

.sidebar-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--glass-border);
    margin-bottom: 14px;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-img {
    width: 230px;
    height: 130px;
    object-fit: contain;
    display: block;
}

.logo-text {
    display: none;
}

.nav-menu {
    list-style: none;
    flex: 1;
}

.nav-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav-section {
    margin-bottom: 25px;
    list-style: none;
}

.nav-section-title {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-muted);
    margin-bottom: 12px;
    padding-left: 15px;
}

.nav-item {
    margin-bottom: 5px;
    list-style: none;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: 12px;
    transition: all var(--transition-fast);
    position: relative;
    overflow: hidden;
}

.nav-link:hover {
    background: var(--glass-hover);
    color: var(--text-primary);
}

.nav-link.active {
    background: var(--glass-hover);
    color: var(--text-primary);
}

.nav-icon {
    width: 22px;
    height: 22px;
    opacity: 0.8;
}

.nav-link.active .nav-icon,
.nav-link:hover .nav-icon {
    opacity: 1;
}

.nav-badge {
    margin-left: auto;
    background: linear-gradient(135deg, var(--gold), var(--amber));
    color: white;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 20px;
}

/* Sidebar User Profile */
.sidebar-footer {
    padding-top: 20px;
    border-top: 1px solid var(--glass-border);
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 12px;
    cursor: pointer;
    transition: background var(--transition-fast);
}

.user-profile:hover {
    background: var(--glass-hover);
}

.user-avatar {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--emerald), var(--gold));
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 16px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
}

.user-avatar.avatar-image {
    color: transparent;
}

.user-info {
    flex: 1;
}

.user-name {
    font-weight: 500;
    font-size: 14px;
}

.user-role {
    font-size: 12px;
    color: var(--text-muted);
}

/* ============================================
   MAIN CONTENT
============================================ */
.main-content {
    flex: 1;
    min-width: 0;
    margin-left: var(--sidebar-width);
    padding: 30px;
    min-height: 100vh;
}

/* ============================================
   TOP NAVBAR
============================================ */
.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 30px;
    gap: 20px;
    position: relative;
}

.page-title {
    font-size: 28px;
    font-weight: 600;
}

.page-title-group {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.navbar-datetime {
    margin: 0;
    display: inline-block;
    min-width: 240px;
    text-align: center;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-muted);
    letter-spacing: 0.01em;
    font-family: 'Space Mono', monospace;
}

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

.search-box {
    position: relative;
}

.search-input {
    width: 280px;
    padding: 12px 20px 12px 48px;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 14px;
    transition: all var(--transition-fast);
}

.search-input::placeholder {
    color: var(--text-muted);
}

.search-input:focus {
    outline: none;
    border-color: var(--emerald-light);
    box-shadow: 0 0 20px rgba(52, 211, 153, 0.2);
}

.search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    color: var(--text-muted);
    cursor: pointer;
    z-index: 2;
}

.global-search-match {
    outline: 2px solid rgba(52, 211, 153, 0.7);
    outline-offset: 3px;
    border-radius: 8px;
    box-shadow: 0 0 0 4px rgba(52, 211, 153, 0.15);
}

.nav-btn {
    width: 45px;
    height: 45px;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
    transition: all var(--transition-fast);
}

.nav-btn:hover {
    background: var(--glass-hover);
    border-color: var(--emerald-light);
}

.nav-btn svg {
    width: 20px;
    height: 20px;
    color: var(--text-secondary);
}

.nav-btn .icon-theme-symbol {
    width: 20px;
    height: 20px;
    object-fit: contain;
    pointer-events: none;
}

.notification-dot {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 8px;
    height: 8px;
    background: var(--coral);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--coral);
}

/* ============================================
   GLASS CARD BASE
============================================ */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius);
    padding: var(--card-padding);
    position: relative;
    overflow: hidden;
    transition: all var(--transition-normal);
    transform-style: preserve-3d;
    perspective: 1000px;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
}

.glass-card:hover {
    background: var(--glass-hover);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 
        0 25px 50px -12px var(--glass-shadow),
        0 0 40px rgba(52, 211, 153, 0.1);
}

/* 3D Tilt Effect */
.glass-card-3d {
    transition: transform 0.4s cubic-bezier(0.03, 0.98, 0.52, 0.99);
}

.glass-card-3d:hover {
    transform: rotateX(5deg) rotateY(-5deg) translateZ(10px);
}

/* ============================================
   STATS CARDS
============================================ */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-bottom: 30px;
}

.stat-card {
    position: relative;
}

.stat-card-inner {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
}

.stat-info h3 {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-value {
    font-family: 'Space Mono', monospace;
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 12px;
    background: linear-gradient(135deg, var(--text-primary), var(--text-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-change {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    font-weight: 500;
    padding: 4px 10px;
    border-radius: 20px;
}

.stat-change.positive {
    color: var(--success);
    background: rgba(34, 197, 94, 0.15);
}

.stat-change.negative {
    color: #ff6b6b;
    background: rgba(255, 107, 107, 0.15);
}

.stat-icon {
    width: 55px;
    height: 55px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-icon.cyan {
    background: linear-gradient(135deg, rgba(52, 211, 153, 0.2), rgba(52, 211, 153, 0.05));
    box-shadow: 0 8px 32px rgba(52, 211, 153, 0.2);
}

.stat-icon.magenta {
    background: linear-gradient(135deg, rgba(212, 165, 116, 0.2), rgba(212, 165, 116, 0.05));
    box-shadow: 0 8px 32px rgba(212, 165, 116, 0.2);
}

.stat-icon.purple {
    background: linear-gradient(135deg, rgba(224, 122, 95, 0.2), rgba(224, 122, 95, 0.05));
    box-shadow: 0 8px 32px rgba(224, 122, 95, 0.2);
}

.stat-icon.success {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.2), rgba(34, 197, 94, 0.05));
    box-shadow: 0 8px 32px rgba(34, 197, 94, 0.2);
}

.stat-icon svg {
    width: 26px;
    height: 26px;
}

/* Sparkline in stat card */
.stat-sparkline {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50px;
    opacity: 0.3;
}

/* ============================================
   CONTENT GRID
============================================ */
.content-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 24px;
    margin-bottom: 30px;
}

/* ============================================
   CHART CARD
============================================ */
.chart-card {
    min-height: 380px;
}

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

.card-title {
    font-size: 18px;
    font-weight: 600;
}

.card-subtitle {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 4px;
}

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

.card-btn {
    padding: 8px 16px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    color: var(--text-secondary);
    font-family: inherit;
    font-size: 13px;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.card-btn:hover,
.card-btn.active {
    background: var(--glass-hover);
    border-color: rgba(var(--accent-light-rgb), 0.72);
    color: var(--text-primary);
}

/* Chart Container */
.chart-wrapper {
    overflow-x: auto;
    margin: 0 -10px;
    padding: 0 10px;
}

.chart-wrapper::-webkit-scrollbar {
    height: 8px;
}

.chart-wrapper::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

.chart-wrapper::-webkit-scrollbar-thumb {
    background: linear-gradient(90deg, var(--emerald), var(--gold));
    border-radius: 4px;
}

.chart-wrapper::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(90deg, var(--emerald-light), var(--gold-light));
}

.chart-container {
    height: 250px;
    position: relative;
    display: flex;
    min-width: 500px;
}

.chart-y-axis {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 20px 0;
    padding-right: 12px;
    text-align: right;
}

.y-value {
    font-family: 'Space Mono', monospace;
    font-size: 11px;
    color: var(--text-muted);
}

.chart-placeholder {
    flex: 1;
    height: 100%;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 8px;
    padding: 20px 0;
    border-left: 1px solid var(--glass-border);
    padding-left: 12px;
}

.chart-bar-group {
    flex: 1;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

.chart-bar {
    width: 100%;
    max-width: 40px;
    border-radius: 8px 8px 0 0;
    background: linear-gradient(180deg, var(--emerald-light), var(--emerald));
    transition: all var(--transition-normal);
    position: relative;
    min-height: 10px;
}

.chart-bar.bar-emerald {
    background: linear-gradient(180deg, #6db897, #3d8b6e);
}

.chart-bar.bar-gold {
    background: linear-gradient(180deg, #c9b896, #a89068);
}

.chart-bar.bar-coral {
    background: linear-gradient(180deg, #d4a090, #b87a68);
}

.chart-bar.bar-teal {
    background: linear-gradient(180deg, #7ac4b8, #4a9e92);
}

.chart-bar.bar-amber {
    background: linear-gradient(180deg, #d4b06a, #a88542);
}

.chart-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(180deg, rgba(255,255,255,0.2), transparent);
    border-radius: 8px 8px 0 0;
}

.chart-bar:hover {
    filter: brightness(1.15);
    transform: scaleY(1.02);
    transform-origin: bottom;
}

.chart-bar.bar-emerald:hover {
    box-shadow: 0 0 16px rgba(61, 139, 110, 0.4);
}

.chart-bar.bar-gold:hover {
    box-shadow: 0 0 16px rgba(168, 144, 104, 0.4);
}

.chart-bar.bar-coral:hover {
    box-shadow: 0 0 16px rgba(184, 122, 104, 0.4);
}

.chart-bar.bar-teal:hover {
    box-shadow: 0 0 16px rgba(74, 158, 146, 0.4);
}

.chart-bar.bar-amber:hover {
    box-shadow: 0 0 16px rgba(168, 133, 66, 0.4);
}

.chart-label {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 500;
}

/* ============================================
   ACTIVITY FEED
============================================ */
.activity-card {
    max-height: 380px;
    display: flex;
    flex-direction: column;
}

.activity-list {
    flex: 1;
    overflow-y: auto;
    margin: 0 -10px;
    padding: 0 10px;
}

.activity-list::-webkit-scrollbar {
    width: 4px;
}

.activity-list::-webkit-scrollbar-track {
    background: transparent;
}

.activity-list::-webkit-scrollbar-thumb {
    background: var(--glass-border);
    border-radius: 2px;
}

.activity-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid var(--glass-border);
}

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

.activity-avatar {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
    flex-shrink: 0;
}

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

.activity-text {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.activity-text strong {
    color: var(--text-primary);
    font-weight: 500;
}

.activity-time {
    font-size: 12px;
    color: var(--text-muted);
}

/* ============================================
   DATA TABLE
============================================ */
.table-card {
    grid-column: span 2;
}

.table-wrapper {
    overflow-x: auto;
    margin: 0 -10px;
    padding: 0 10px;
}

.table-wrapper::-webkit-scrollbar {
    height: 8px;
}

.table-wrapper::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

.table-wrapper::-webkit-scrollbar-thumb {
    background: linear-gradient(90deg, var(--emerald), var(--gold));
    border-radius: 4px;
}

.table-wrapper::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(90deg, var(--emerald-light), var(--gold-light));
}

.data-table {
    width: 100%;
    min-width: 700px;
    border-collapse: collapse;
}

.data-table th,
.data-table td {
    padding: 16px;
    text-align: left;
}

.data-table th {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    border-bottom: 1px solid var(--glass-border);
}

.data-table tr {
    transition: background var(--transition-fast);
}

.data-table tbody tr:hover {
    background: var(--glass-hover);
}

.data-table td {
    font-size: 14px;
    color: var(--text-secondary);
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.table-user {
    display: flex;
    align-items: center;
    gap: 12px;
}

.table-avatar {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 13px;
}

.table-user-info {
    display: flex;
    flex-direction: column;
}

.table-user-name {
    color: var(--text-primary);
    font-weight: 500;
}

.table-user-email {
    font-size: 12px;
    color: var(--text-muted);
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.status-badge::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
}

.status-badge.completed {
    background: rgba(16, 185, 129, 0.15);
    color: var(--success);
}

.status-badge.completed::before {
    background: var(--success);
    box-shadow: 0 0 8px var(--success);
}

.status-badge.pending {
    background: rgba(245, 158, 11, 0.15);
    color: var(--warning);
}

.status-badge.pending::before {
    background: var(--warning);
    box-shadow: 0 0 8px var(--warning);
}

.status-badge.processing {
    background: rgba(59, 130, 246, 0.15);
    color: var(--info);
}

.status-badge.processing::before {
    background: var(--info);
    box-shadow: 0 0 8px var(--info);
}

.table-amount {
    font-family: 'Space Mono', monospace;
    font-weight: 600;
    color: var(--text-primary);
}

/* ============================================
   PROGRESS BARS
============================================ */
.progress-card {
    padding: var(--card-padding);
}

.progress-item {
    margin-bottom: 24px;
}

.progress-item:last-child {
    margin-bottom: 0;
}

.progress-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.progress-label {
    font-size: 14px;
    font-weight: 500;
}

.progress-value {
    font-family: 'Space Mono', monospace;
    font-size: 14px;
    color: var(--text-secondary);
}

.progress-bar {
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    border-radius: 10px;
    transition: width 1s ease-out;
    position: relative;
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(180deg, rgba(255,255,255,0.3), transparent);
}

.progress-fill.cyan {
    background: linear-gradient(90deg, var(--emerald-light), var(--emerald));
    box-shadow: 0 0 20px rgba(52, 211, 153, 0.4);
}

.progress-fill.magenta {
    background: linear-gradient(90deg, var(--gold-light), var(--gold));
    box-shadow: 0 0 20px rgba(212, 165, 116, 0.4);
}

.progress-fill.purple {
    background: linear-gradient(90deg, var(--coral), var(--amber));
    box-shadow: 0 0 20px rgba(224, 122, 95, 0.4);
}

/* ============================================
   BOTTOM GRID
============================================ */
.bottom-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.outreach-workspace-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-top: 18px;
}

.outreach-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.daily-verse-widget {
    justify-content: space-between;
}

.daily-verse-quote {
    margin: 8px 0 0;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    font-size: 15px;
    line-height: 1.5;
    font-weight: 500;
}

.daily-verse-reference {
    margin: 8px 0 0;
    color: var(--emerald-light);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.daily-verse-source {
    margin: 4px 0 0;
    color: var(--text-muted);
    font-size: 11px;
}

[data-theme="light"] .daily-verse-quote {
    background: rgba(15, 23, 42, 0.04);
    border-color: rgba(15, 23, 42, 0.1);
}

[data-theme="beach"] .daily-verse-quote {
    background: rgba(255, 255, 255, 0.45);
    border-color: rgba(124, 58, 16, 0.22);
    color: #4a2f18;
}

[data-theme="beach"] .daily-verse-reference {
    color: #b45309;
}

.bottom-grid .widget-card,
.outreach-workspace-grid .widget-card {
    padding: 16px;
    border-radius: 14px;
}

.bottom-grid .widget-card .card-header,
.outreach-workspace-grid .widget-card .card-header {
    margin-bottom: 12px;
}

.bottom-grid .widget-card .card-title,
.outreach-workspace-grid .widget-card .card-title {
    font-size: 16px;
}

.bottom-grid .widget-card .card-subtitle,
.outreach-workspace-grid .widget-card .card-subtitle {
    font-size: 12px;
    margin-top: 2px;
}

.outreach-owner {
    margin: -6px 0 2px;
    color: var(--text-muted);
    font-size: 12px;
}

.outreach-input-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
}

.outreach-full-width {
    grid-column: 1 / -1;
}

.outreach-textarea {
    min-height: 96px;
    resize: vertical;
}

.outreach-actions {
    display: flex;
    gap: 6px;
}

.outreach-list {
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.02);
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-height: 96px;
}

/* Compact sizing for Agent Templates and Phone Call Scripts widgets */
[data-widget-id="agent-templates"],
[data-widget-id="call-scripts"] {
    padding: 12px !important;
    gap: 6px;
}

[data-widget-id="agent-templates"] .outreach-textarea,
[data-widget-id="call-scripts"] .outreach-textarea {
    min-height: 58px;
}


[data-widget-id="agent-templates"] .outreach-list,
[data-widget-id="call-scripts"] .outreach-list {
    min-height: 54px;
    max-height: 180px;
    overflow-y: auto;
}

[data-widget-id="agent-templates"] .outreach-input-grid,
[data-widget-id="call-scripts"] .outreach-input-grid {
    gap: 5px;
}

[data-widget-id="agent-templates"] .card-header,
[data-widget-id="call-scripts"] .card-header {
    margin-bottom: 6px !important;
}

.offer-terms {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.offer-bubble {
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.03);
    border-radius: 14px;
    padding: 12px;
}

.offer-bubble + .offer-bubble {
    margin-top: 2px;
}

[data-theme="light"] .offer-bubble {
    border-color: rgba(6, 78, 59, 0.16);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.56), rgba(234, 247, 240, 0.68));
}

.offer-section + .offer-section {
    margin-top: 6px;
}

.offer-section h4 {
    margin: 0 0 8px;
    font-size: 13px;
}

.offer-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.offer-grid label {
    display: flex;
    flex-direction: column;
    gap: 6px;
    color: var(--text-secondary);
    font-size: 13px;
}

.offer-grid input,
.offer-grid select {
    width: 100%;
}


.offer-grid input,
.offer-grid select,
.offer-date-row input {
    padding: 10px 22px;
    background: var(--glass-bg);
    border: 1.5px solid var(--glass-border);
    border-radius: 999px;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 15px;
    transition: border-color 0.2s, box-shadow 0.2s;
    color-scheme: dark;
    appearance: none;
    box-shadow: none;
}

.offer-grid select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23b6e2d3' d='M6 8 0 0h12z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 18px center;
    background-size: 12px 8px;
    padding-right: 38px;
}

.offer-grid input::placeholder,
.offer-date-row input::placeholder {
    color: var(--text-muted);
    opacity: 1;
}

.offer-grid input::placeholder,
.offer-date-row input::placeholder {
    color: var(--text-muted);
}

.offer-grid input:focus,
.offer-date-row input:focus {
    outline: none;
    border-color: var(--emerald-light);
    box-shadow: 0 0 16px rgba(52, 211, 153, 0.18);
}

[data-theme="light"] .offer-grid input,
[data-theme="light"] .offer-grid select,
[data-theme="light"] .offer-date-row input {
    background: rgba(255, 255, 255, 0.7);
    border: 1.5px solid rgba(6, 78, 59, 0.18);
    color: var(--text-primary);
    color-scheme: light;
}

.offer-date-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.offer-seller-comp-box {
    grid-column: 1 / -1;
    display: grid;
    gap: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.02);
    padding: 10px;
}

.offer-seller-comp-check {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    width: 100%;
    padding: 10px 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
    font-size: 13px;
    color: var(--text-primary);
    position: relative;
}

.offer-seller-comp-check input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.offer-seller-comp-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.offer-seller-comp-fields[hidden] {
    display: none !important;
}

.offer-seller-comp-note {
    grid-column: 1 / -1;
    margin: 0;
    font-size: 12px;
    color: var(--text-muted);
}

.offer-docs-box {
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.02);
    border-radius: 10px;
    padding: 10px;
}

.offer-docs-box p {
    margin: 0;
}

.offer-docs-list {
    display: grid;
    gap: 8px;
}

.offer-doc-item {
    display: grid;
    gap: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
    padding: 10px;
}

.offer-doc-item-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
}

.offer-doc-item-head strong {
    color: var(--text-primary);
}

.offer-doc-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.offer-doc-chip {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 4px 8px;
    font-size: 11px;
    color: var(--text-secondary);
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.04);
}

.offer-doc-item p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 12px;
    line-height: 1.45;
}

.offer-doc-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.offer-doc-action-btn {
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(15, 23, 42, 0.18);
    color: var(--text-primary);
    border-radius: 999px;
    padding: 6px 10px;
    font-size: 12px;
    cursor: pointer;
}

.offer-doc-action-btn:hover {
    border-color: rgba(52, 211, 153, 0.32);
    color: var(--emerald-light);
}

.offer-doc-action-btn.danger:hover {
    border-color: rgba(248, 113, 113, 0.4);
    color: #fca5a5;
}

.offer-docs-actions .card-btn:disabled,
.offer-doc-action-btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.offer-docs-note {
    margin-top: 6px !important;
    color: var(--text-muted);
    font-size: 12px;
}

.offer-docs-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 8px;
}

.offer-email-card {
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    padding: 12px;
    display: grid;
    gap: 10px;
}

.offer-email-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.offer-email-span-2 {
    grid-column: span 2;
}

.offer-email-toggle-row {
    display: inline-flex !important;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    padding: 10px 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-primary) !important;
    position: relative;
}

.offer-email-ecard-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.offer-email-ecard-select {
    flex: 1 1 220px;
    min-width: 0;
}

.offer-email-ecard-toggle {
    min-height: 46px;
    white-space: nowrap;
    cursor: pointer;
}

.offer-email-toggle-text {
    font-size: 13px;
    font-weight: 600;
    color: inherit;
}

.offer-email-toggle-row input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.offer-toggle-slider {
    width: 46px;
    height: 26px;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.34);
    position: relative;
    margin-left: auto;
    transition: background 0.2s ease;
}

.offer-toggle-slider::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #ffffff;
    transition: transform 0.2s ease;
    box-shadow: 0 4px 10px rgba(15, 23, 42, 0.24);
}

.offer-email-toggle-row input:checked + .offer-toggle-slider {
    background: linear-gradient(135deg, rgba(var(--accent-rgb), 0.8), rgba(var(--accent-light-rgb), 0.72));
}

.offer-email-toggle-row input:checked + .offer-email-toggle-text + .offer-toggle-slider {
    background: linear-gradient(135deg, rgba(var(--accent-rgb), 0.8), rgba(var(--accent-light-rgb), 0.72));
}

.offer-seller-comp-check input:checked + .offer-toggle-slider {
    background: linear-gradient(135deg, rgba(var(--accent-rgb), 0.8), rgba(var(--accent-light-rgb), 0.72));
}

.offer-email-toggle-row input:checked + .offer-toggle-slider::after {
    transform: translateX(20px);
}

.offer-email-toggle-row input:checked + .offer-email-toggle-text + .offer-toggle-slider::after {
    transform: translateX(20px);
}

.offer-seller-comp-check input:checked + .offer-toggle-slider::after {
    transform: translateX(20px);
}

.offer-email-editor-wrap {
    display: grid;
    gap: 8px;
}

.offer-email-editor-label {
    color: var(--text-secondary);
    font-size: 13px;
}

.offer-email-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.offer-email-toolbar .form-input {
    width: auto;
    min-width: 120px;
}

.offer-toolbar-btn {
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(15, 23, 42, 0.18);
    color: var(--text-primary);
    border-radius: 10px;
    padding: 8px 10px;
    min-width: 44px;
    cursor: pointer;
}

.offer-toolbar-btn:hover {
    border-color: rgba(var(--accent-rgb), 0.32);
    color: rgb(var(--accent-light-rgb));
}

.offer-email-body {
    min-height: 220px;
    line-height: 1.5;
}

.offer-email-editor {
    resize: vertical;
    overflow-y: auto;
    padding: 14px 16px;
    white-space: pre-wrap;
}

.offer-email-editor:empty::before {
    content: attr(data-placeholder);
    color: var(--text-muted);
}

.offer-email-editor ul,
.offer-email-editor ol {
    padding-left: 20px;
    margin: 10px 0;
}

.offer-email-editor p {
    margin: 0 0 10px;
}

.offer-email-doc-summary {
    border: 1px dashed rgba(255, 255, 255, 0.14);
    border-radius: 10px;
    background: rgba(15, 23, 42, 0.16);
    padding: 10px;
    color: var(--text-secondary);
    font-size: 12px;
    line-height: 1.5;
    white-space: pre-line;
}

[data-theme="light"] .offer-doc-item,
[data-theme="light"] .offer-doc-action-btn {
    border-color: rgba(15, 23, 42, 0.12);
    background: rgba(255, 255, 255, 0.55);
}

[data-theme="light"] .offer-doc-chip {
    border-color: rgba(15, 23, 42, 0.12);
    background: rgba(255, 255, 255, 0.68);
    color: rgba(15, 23, 42, 0.7);
}

[data-theme="light"] .offer-email-card,
[data-theme="light"] .offer-email-doc-summary {
    border-color: rgba(15, 23, 42, 0.12);
    background: rgba(255, 255, 255, 0.56);
}

[data-theme="light"] .offer-email-toggle-row,
[data-theme="light"] .offer-toolbar-btn {
    border-color: rgba(15, 23, 42, 0.12);
    background: rgba(255, 255, 255, 0.62);
}

[data-theme="light"] .offer-seller-comp-check {
    border-color: rgba(15, 23, 42, 0.12);
    background: rgba(255, 255, 255, 0.62);
}

[data-theme="beach"] .offer-bubble {
    border-color: rgba(14, 116, 144, 0.34);
    background: linear-gradient(140deg, rgba(239, 246, 255, 0.78), rgba(224, 242, 254, 0.66));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65), 0 14px 24px -18px rgba(8, 47, 73, 0.3);
}

[data-theme="beach"] .offer-section h4 {
    color: #0c4a6e;
}

[data-theme="beach"] .offer-grid label,
[data-theme="beach"] .offer-seller-comp-check,
[data-theme="beach"] .offer-doc-item p,
[data-theme="beach"] .offer-docs-note,
[data-theme="beach"] .offer-email-doc-summary {
    color: rgba(8, 47, 73, 0.84);
}

[data-theme="beach"] .offer-grid input,
[data-theme="beach"] .offer-grid select,
[data-theme="beach"] .offer-date-row input {
    background: linear-gradient(135deg, rgba(8, 47, 73, 0.78), rgba(3, 105, 161, 0.72)) !important;
    border: 1.5px solid rgba(125, 211, 252, 0.55) !important;
    color: #f0f9ff !important;
    box-shadow: inset 0 1px 0 rgba(224, 242, 254, 0.1), 0 4px 12px rgba(8, 47, 73, 0.2);
    border-radius: 999px !important;
    font-size: 15px;
    padding: 10px 22px;
    appearance: none;
}
[data-theme="beach"] .offer-date-row input,
[data-theme="beach"] .offer-email-toolbar .form-input,
[data-theme="beach"] .offer-email-editor,
[data-theme="beach"] .offer-email-body {
    background: linear-gradient(135deg, rgba(8, 47, 73, 0.82), rgba(3, 105, 161, 0.72));
    border-color: rgba(125, 211, 252, 0.62);
    color: #f0f9ff;
    box-shadow: inset 0 1px 0 rgba(224, 242, 254, 0.1), 0 4px 12px rgba(8, 47, 73, 0.2);
}

[data-theme="beach"] .offer-grid input::placeholder,
[data-theme="beach"] .offer-date-row input::placeholder,
[data-theme="beach"] .offer-email-editor:empty::before {
    color: rgba(224, 242, 254, 0.75);
}

[data-theme="beach"] .offer-grid input:focus,
[data-theme="beach"] .offer-grid select:focus,
[data-theme="beach"] .offer-date-row input:focus,
[data-theme="beach"] .offer-email-toolbar .form-input:focus,
[data-theme="beach"] .offer-email-editor:focus,
[data-theme="beach"] .offer-email-body:focus {
    border-color: rgba(186, 230, 253, 0.95);
    box-shadow: 0 0 0 3px rgba(125, 211, 252, 0.24), 0 10px 18px -12px rgba(8, 47, 73, 0.52);
}

[data-theme="beach"] .offer-docs-box,
[data-theme="beach"] .offer-email-card,
[data-theme="beach"] .offer-email-doc-summary,
[data-theme="beach"] .offer-seller-comp-check,
[data-theme="beach"] .offer-seller-comp-box,
[data-theme="beach"] .offer-doc-item,
[data-theme="beach"] .offer-email-toggle-row,
[data-theme="beach"] .offer-toolbar-btn,
[data-theme="beach"] .offer-doc-action-btn {
    border-color: rgba(14, 116, 144, 0.3);
    background: rgba(239, 246, 255, 0.58);
}

[data-theme="beach"] .offer-doc-chip {
    border-color: rgba(14, 116, 144, 0.32);
    background: rgba(224, 242, 254, 0.82);
    color: rgba(8, 47, 73, 0.82);
}

@media (max-width: 900px) {
    .offer-grid,
    .offer-date-row {
        grid-template-columns: 1fr;
    }

    .offer-email-span-2 {
        grid-column: span 1;
    }
}

.outreach-empty {
    margin: 0;
    color: var(--text-muted);
    font-size: 13px;
}

.outreach-item {
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.03);
    padding: 10px;
}

.outreach-item-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 6px;
}

.outreach-item-title {
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 600;
}

.outreach-status {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.04em;
    padding: 4px 8px;
    border-radius: 999px;
}

.outreach-status.published {
    color: #22c55e;
    background: rgba(34, 197, 94, 0.14);
    border: 1px solid rgba(34, 197, 94, 0.35);
}

.outreach-status.draft {
    color: var(--text-muted);
    background: rgba(148, 163, 184, 0.15);
    border: 1px solid rgba(148, 163, 184, 0.28);
}

.outreach-item-body {
    margin: 0;
    color: var(--text-secondary);
    font-size: 13px;
    line-height: 1.45;
    white-space: pre-wrap;
}

.outreach-item-actions {
    margin-top: 10px;
    display: flex;
    gap: 8px;
}

.admin-email-actions {
    flex-wrap: wrap;
    align-items: center;
}

.admin-user-email-input {
    flex: 1 1 240px;
    min-width: 0;
}

.outreach-item-actions .card-btn {
    padding: 6px 10px;
    font-size: 12px;
}

.agent-notes-dashboard-list {
    min-height: 210px;
}

.agent-note-link {
    width: 100%;
    text-align: left;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-primary);
    padding: 10px;
    cursor: pointer;
    transition: border-color var(--transition-fast), background var(--transition-fast), transform var(--transition-fast);
}

.agent-note-link:hover {
    border-color: rgba(52, 211, 153, 0.4);
    background: rgba(52, 211, 153, 0.09);
    transform: translateY(-1px);
}

.agent-note-link-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.agent-note-link-agent {
    font-size: 13px;
    font-weight: 600;
}

.agent-note-link-time {
    color: var(--text-muted);
    font-size: 11px;
    white-space: nowrap;
}

.agent-note-link-address {
    margin: 0 0 4px;
    color: var(--text-secondary);
    font-size: 12px;
}

.agent-note-link-status {
    margin: 0 0 4px;
    color: var(--gold);
    font-size: 11px;
    font-weight: 600;
}

.agent-note-link-body {
    margin: 0;
    color: var(--text-secondary);
    font-size: 12px;
    line-height: 1.45;
}

.planner-input-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.planner-full-width {
    grid-column: 1 / -1;
}

.planner-filters {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.planner-filter-btn {
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-secondary);
    font-size: 12px;
    padding: 6px 10px;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.planner-filter-btn:hover {
    color: var(--text-primary);
    border-color: rgba(52, 211, 153, 0.4);
}

.planner-filter-btn.active {
    color: var(--text-primary);
    border-color: rgba(52, 211, 153, 0.55);
    background: rgba(52, 211, 153, 0.12);
}

.planner-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    margin-left: 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    font-size: 11px;
    font-weight: 600;
}

.planner-task-list {
    min-height: 230px;
}

.planner-task-item {
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.03);
    padding: 10px;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    transition: opacity 0.35s ease, transform 0.35s ease;
}

.planner-task-item.is-complete {
    border-color: rgba(52, 211, 153, 0.28);
    background: rgba(52, 211, 153, 0.08);
}

.planner-task-item.is-fading-out {
    opacity: 0;
    transform: translateX(18px);
}

.planner-task-item.is-overdue {
    border-color: rgba(248, 113, 113, 0.32);
    background: rgba(248, 113, 113, 0.08);
}

.planner-check-bubble {
    width: 22px;
    height: 22px;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.45);
    background: rgba(15, 23, 42, 0.25);
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.planner-check-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: transparent;
    transition: all var(--transition-fast);
}

.planner-task-item.is-complete .planner-check-bubble {
    border-color: rgba(52, 211, 153, 0.55);
    background: rgba(52, 211, 153, 0.22);
}

.planner-task-item.is-complete .planner-check-dot {
    background: var(--emerald-light);
}

.planner-task-content {
    min-width: 0;
}

.planner-task-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 8px;
}

.planner-task-title {
    margin: 0;
    color: var(--text-primary);
    font-size: 13px;
    line-height: 1.4;
}

.planner-task-item.is-complete .planner-task-title {
    text-decoration: line-through;
    text-decoration-thickness: 1px;
    opacity: 0.72;
}

.planner-task-meta {
    display: flex;
    align-items: center;
    gap: 6px;
}

.planner-priority {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 2px 7px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.planner-priority-p1 {
    color: #fecaca;
    border: 1px solid rgba(248, 113, 113, 0.45);
    background: rgba(248, 113, 113, 0.12);
    position: relative;
    padding-left: 20px;
}

.planner-priority-p1::before {
    content: '🚩';
    position: absolute;
    left: 3px;
    top: 50%;
    transform: translateY(-50%) scaleX(-1) rotate(-15deg);
    font-size: 12px;
    opacity: 0.9;
    filter: hue-rotate(353deg) saturate(1.2);
}

.planner-priority-p2 {
    color: #fde68a;
    border: 1px solid rgba(234, 179, 8, 0.4);
    background: rgba(234, 179, 8, 0.12);
    position: relative;
    padding-left: 20px;
}

.planner-priority-p2::before {
    content: '🚩';
    position: absolute;
    left: 3px;
    top: 50%;
    transform: translateY(-50%) scaleX(-1) rotate(-15deg);
    font-size: 12px;
    opacity: 0.9;
    filter: hue-rotate(25deg) saturate(1.2);
}

.planner-priority-p3 {
    color: #bfdbfe;
    border: 1px solid rgba(96, 165, 250, 0.4);
    background: rgba(96, 165, 250, 0.12);
    position: relative;
    padding-left: 20px;
}

.planner-priority-p3::before {
    content: '🚩';
    position: absolute;
    left: 3px;
    top: 50%;
    transform: translateY(-50%) scaleX(-1) rotate(-15deg);
    font-size: 12px;
    opacity: 0.9;
    filter: hue-rotate(220deg) saturate(1.2);
}

.planner-priority-p4 {
    color: #d1d5db;
    border: 1px solid rgba(156, 163, 175, 0.35);
    background: rgba(156, 163, 175, 0.12);
    position: relative;
    padding-left: 20px;
}

.planner-priority-p4::before {
    content: '🚩';
    position: absolute;
    left: 3px;
    top: 50%;
    transform: translateY(-50%) scaleX(-1) rotate(-15deg);
    font-size: 12px;
    opacity: 0.6;
    filter: grayscale(1) brightness(1.1);
}

.planner-task-time {
    color: var(--text-muted);
    font-size: 11px;
    white-space: nowrap;
}

.planner-delete-btn {
    border: 1px solid rgba(248, 113, 113, 0.3);
    background: rgba(248, 113, 113, 0.12);
    color: #fecaca;
    width: 22px;
    height: 22px;
    border-radius: 999px;
    font-size: 14px;
    line-height: 1;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.planner-delete-btn:hover {
    border-color: rgba(248, 113, 113, 0.5);
    background: rgba(248, 113, 113, 0.2);
}

.widget-card.widget-minimized {
    display: none;
}

.widget-controls {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-left: 12px;
}

.widget-control-btn {
    width: 32px;
    height: 32px;
    border: 1px solid var(--glass-border);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-secondary);
    border-radius: 9px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.widget-control-btn:hover {
    color: var(--text-primary);
    border-color: rgba(52, 211, 153, 0.45);
    background: rgba(52, 211, 153, 0.12);
}

.widget-control-btn svg {
    width: 16px;
    height: 16px;
}

.widget-overlay {
    position: fixed;
    inset: 0;
    background: rgba(8, 13, 11, 0.72);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-fast);
    z-index: 1990;
}

.widget-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.widget-card.widget-expanded {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: min(1100px, calc(100vw - 80px));
    max-height: calc(100vh - 80px);
    overflow: auto;
    z-index: 2000;
    box-shadow: 0 35px 90px rgba(0, 0, 0, 0.45);
}

.widget-dock {
    position: fixed;
    right: 24px;
    top: 120px;
    z-index: 1200;
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: flex-end;
}

.widget-dock:empty {
    display: none;
}

.widget-dock-item {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 999px;
    border: 1px solid rgba(52, 211, 153, 0.22);
    background: rgba(10, 15, 13, 0.86);
    color: var(--text-primary);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.widget-dock-item:hover {
    transform: translateX(-4px);
    border-color: rgba(212, 165, 116, 0.45);
}

.widget-dock-item svg {
    width: 16px;
    height: 16px;
}

/* ============================================
   CALENDAR WIDGET
============================================ */
.calendar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.calendar-nav {
    display: flex;
    gap: 8px;
}

.calendar-nav-btn {
    width: 32px;
    height: 32px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.calendar-nav-btn:hover {
    background: var(--glass-hover);
    border-color: var(--emerald-light);
}

.calendar-nav-btn svg {
    width: 16px;
    height: 16px;
    color: var(--text-secondary);
}

.calendar-stage {
    position: relative;
    overflow: hidden;
    min-height: 420px;
}

.calendar-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(260px, 1fr);
    gap: 12px;
    align-items: stretch;
}

.calendar-ai-panel {
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.02);
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-height: 420px;
}

.calendar-ai-head h3 {
    margin: 0;
    font-size: 14px;
}

.calendar-ai-head p {
    margin: 2px 0 0;
    color: var(--text-muted);
    font-size: 11px;
}

.calendar-ai-chat {
    flex: 1;
    overflow: auto;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    background: rgba(15, 23, 42, 0.18);
}

.calendar-ai-msg {
    margin: 0;
    font-size: 12px;
    line-height: 1.35;
    padding: 6px 8px;
    border-radius: 8px;
}

.calendar-ai-msg.user {
    align-self: flex-end;
    background: rgba(52, 211, 153, 0.16);
    border: 1px solid rgba(52, 211, 153, 0.32);
    color: var(--text-primary);
}

.calendar-ai-msg.assistant {
    align-self: flex-start;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    max-width: 100%;
}

.calendar-ai-msg.assistant p {
    margin: 0 0 6px;
    line-height: 1.5;
}

.calendar-ai-msg.assistant p:last-child {
    margin-bottom: 0;
}

.calendar-ai-msg.assistant ul {
    margin: 4px 0 6px;
    padding-left: 16px;
    list-style: disc;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.calendar-ai-msg.assistant li {
    line-height: 1.5;
}

.calendar-ai-msg.assistant strong {
    color: var(--text-primary);
    font-weight: 600;
}

/* Typing indicator */
.calendar-ai-typing {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 8px 10px !important;
}

.calendar-ai-typing span {
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(52, 211, 153, 0.7);
    animation: aiTypingBounce 1.1s infinite ease-in-out;
}

.calendar-ai-typing span:nth-child(2) { animation-delay: 0.18s; }
.calendar-ai-typing span:nth-child(3) { animation-delay: 0.36s; }

@keyframes aiTypingBounce {
    0%, 80%, 100% { transform: translateY(0); opacity: 0.5; }
    40% { transform: translateY(-5px); opacity: 1; }
}

.calendar-ai-msg.user p {
    margin: 0;
}

.calendar-ai-suggestions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.calendar-ai-chip {
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-secondary);
    border-radius: 999px;
    padding: 5px 8px;
    font-size: 11px;
    cursor: pointer;
}

.calendar-ai-chip:hover {
    border-color: rgba(52, 211, 153, 0.45);
    color: var(--text-primary);
}

.calendar-ai-form {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 6px;
}

.calendar-view {
    width: 100%;
    transition: transform var(--transition-normal), opacity var(--transition-normal);
}

.calendar-view-month {
    position: relative;
    z-index: 2;
}

.calendar-view-detail {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transform: translateX(6%);
}

.calendar-stage.detail-open .calendar-view-month {
    opacity: 0;
    pointer-events: none;
    transform: translateX(-6%);
}

.calendar-stage.detail-open .calendar-view-detail {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(0);
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 10px;
    text-align: center;
    padding-right: 10px;
}

.calendar-grid-month {
    align-items: stretch;
}

.calendar-day-name {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    padding: 8px 0;
    text-transform: uppercase;
}

@media (max-width: 1024px) {
    .calendar-layout {
        grid-template-columns: 1fr;
    }

    .calendar-ai-panel {
        min-height: 260px;
    }
}

.calendar-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 3px;
    font-size: 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: all var(--transition-fast);
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.05);
    min-height: 56px;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.calendar-day:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
    border-color: rgba(52, 211, 153, 0.2);
}

.mls-search-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}
.mls-search-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}
.mls-search-summary {
    min-height: 88px;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-secondary);
}
@media (max-width: 992px) {
    .mls-search-grid {
        grid-template-columns: 1fr;
    }
}
.calendar-day.other-month {
    color: var(--text-muted);
}

.calendar-day.past-day {
    color: rgba(148, 163, 184, 0.9);
    background: linear-gradient(145deg, rgba(15, 23, 42, 0.38), rgba(15, 23, 42, 0.2));
    border-color: rgba(148, 163, 184, 0.22);
    box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.08);
}

.calendar-day.past-day .calendar-day-number {
    opacity: 0.82;
}

.calendar-day.past-day:hover {
    border-color: rgba(148, 163, 184, 0.36);
    transform: translateY(-1px);
}

.calendar-day.today {
    background: linear-gradient(135deg, var(--emerald), var(--emerald-light));
    color: white;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(5, 150, 105, 0.3);
}

.calendar-day.selected {
    border-color: rgba(212, 165, 116, 0.65);
    box-shadow: inset 0 0 0 1px rgba(212, 165, 116, 0.25), 0 10px 24px rgba(212, 165, 116, 0.12);
}

.calendar-day-number {
    line-height: 1;
}

.calendar-day.has-event::after {
    content: '';
    position: absolute;
    bottom: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    background: var(--gold);
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(212, 165, 116, 0.55);
}

.calendar-event-count {
    position: absolute;
    top: 4px;
    right: 4px;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    border-radius: 999px;
    background: rgba(212, 165, 116, 0.2);
    color: var(--gold-light);
    font-size: 10px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.calendar-detail-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

.calendar-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.calendar-back-btn:hover {
    color: var(--text-primary);
    border-color: rgba(52, 211, 153, 0.35);
    background: rgba(52, 211, 153, 0.08);
}

.calendar-back-btn svg {
    width: 16px;
    height: 16px;
}

.calendar-detail-label {
    font-size: 11px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.calendar-detail-card {
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 18px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.035);
    min-height: 360px;
}

.calendar-detail-header {
    margin-bottom: 18px;
}

.calendar-agenda-label {
    display: block;
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.calendar-detail-card h3 {
    font-size: 18px;
    margin: 0;
}

.calendar-detail-subtitle {
    margin: 8px 0 0 0;
    color: var(--text-muted);
    font-size: 13px;
}

.calendar-inline-form {
    display: grid;
    gap: 14px;
    margin-bottom: 18px;
}

.calendar-inline-form label {
    display: block;
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.calendar-inline-form textarea,
.calendar-inline-form input {
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-primary);
    font: inherit;
    padding: 14px 16px;
}

.calendar-inline-form textarea {
    min-height: 96px;
    resize: vertical;
}

.calendar-inline-form textarea:focus,
.calendar-inline-form input:focus {
    outline: none;
    border-color: rgba(52, 211, 153, 0.5);
    box-shadow: 0 0 0 4px rgba(52, 211, 153, 0.08);
}

.calendar-inline-actions {
    display: flex;
    justify-content: flex-end;
}

.calendar-events-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.calendar-empty-state {
    margin: 0;
    padding: 18px;
    border-radius: 14px;
    text-align: center;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.035);
}

.calendar-event-item {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.035);
}

.calendar-event-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.calendar-event-note {
    margin: 0;
    color: var(--text-primary);
    font-size: 14px;
    line-height: 1.5;
}

.calendar-event-reminder {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--gold-light);
    background: rgba(212, 165, 116, 0.12);
    border-radius: 999px;
    padding: 6px 10px;
}

.calendar-event-remove {
    align-self: flex-start;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 12px;
}

.calendar-event-remove:hover {
    color: #ff8f8f;
}

.dashboard-toast-stack {
    position: fixed;
    right: 20px;
    top: 20px;
    z-index: 2300;
    display: flex;
    flex-direction: column;
    gap: 12px;
    pointer-events: none;
}

.dashboard-toast {
    min-width: 260px;
    max-width: 360px;
    padding: 15px 18px;
    border-radius: 18px;
    border: 1px solid var(--toast-border);
    border-left-width: 6px;
    background: linear-gradient(135deg, var(--toast-surface), color-mix(in srgb, var(--toast-surface) 88%, white 12%));
    color: var(--toast-title);
    box-shadow: var(--toast-shadow);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    pointer-events: auto;
    animation: dashboardToastIn 0.24s ease-out;
}

.dashboard-toast strong {
    display: block;
    margin-bottom: 5px;
    color: var(--toast-title);
    font-size: 14px;
    letter-spacing: 0.01em;
}

.dashboard-toast p {
    margin: 0;
    color: var(--toast-body);
    font-size: 13px;
    line-height: 1.45;
}

.dashboard-toast.reminder {
    border-left-color: #f59e0b;
    box-shadow: var(--toast-shadow), 0 0 0 1px rgba(245, 158, 11, 0.18);
}

.dashboard-toast.success {
    border-left-color: #10b981;
    box-shadow: var(--toast-shadow), 0 0 0 1px rgba(16, 185, 129, 0.18);
}

.dashboard-toast.error {
    border-left-color: #ef4444;
    box-shadow: var(--toast-shadow), 0 0 0 1px rgba(239, 68, 68, 0.18);
}

@keyframes dashboardToastIn {
    from {
        opacity: 0;
        transform: translate3d(16px, -8px, 0) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0) scale(1);
    }
}

/* ============================================
   DONUT CHART
============================================ */
.donut-container {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-top: 20px;
}

.donut-chart {
    width: 140px;
    height: 140px;
    position: relative;
}

.donut-chart svg {
    transform: rotate(-90deg);
}

.donut-chart circle {
    fill: none;
    stroke-width: 20;
}

.donut-bg {
    stroke: rgba(255, 255, 255, 0.1);
}

.donut-segment {
    stroke-linecap: round;
    transition: stroke-dashoffset 1s ease-out;
}

.donut-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.donut-value {
    font-family: 'Space Mono', monospace;
    font-size: 28px;
    font-weight: 700;
}

.donut-label {
    font-size: 12px;
    color: var(--text-muted);
}

.donut-legend {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
}

.legend-color {
    width: 12px;
    height: 12px;
    border-radius: 4px;
}

.legend-color.cyan { background: var(--emerald-light); }
.legend-color.magenta { background: var(--gold); }
.legend-color.purple { background: var(--coral); }

/* ============================================
   WEATHER WIDGET
============================================ */
.weather-main {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 24px;
}

.weather-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, rgba(52, 211, 153, 0.2), rgba(212, 165, 116, 0.2));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.weather-icon svg {
    width: 45px;
    height: 45px;
    color: var(--emerald-light);
}

.weather-temp {
    font-family: 'Space Mono', monospace;
    font-size: 48px;
    font-weight: 700;
    line-height: 1;
}

.weather-desc {
    font-size: 14px;
    color: var(--text-secondary);
    margin-top: 4px;
}

.weather-details {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.weather-detail {
    text-align: center;
    padding: 12px;
    background: var(--glass-bg);
    border-radius: 12px;
}

.weather-detail-value {
    font-family: 'Space Mono', monospace;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 4px;
}

.weather-detail-label {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
}

/* ============================================
   MOBILE MENU TOGGLE
============================================ */
.mobile-menu-toggle {
    display: none;
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 56px;
    height: 56px;
    background: var(--mobile-toggle-bg);
    border: 1px solid var(--mobile-toggle-border);
    border-radius: 16px;
    cursor: pointer;
    z-index: 200;
    box-shadow: var(--mobile-toggle-shadow);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast), background var(--transition-normal);
}

.mobile-menu-toggle:hover {
    transform: translateY(-2px);
}

.mobile-menu-toggle:active {
    transform: translateY(0);
}

.mobile-menu-toggle svg {
    width: 24px;
    height: 24px;
    color: var(--mobile-toggle-icon);
}

/* ============================================
   LOGIN PAGE STYLES
============================================ */
.login-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.login-container {
    width: 100%;
    max-width: 440px;
}

.login-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius);
    padding: 48px 40px;
    position: relative;
    overflow: hidden;
}

.login-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
}

.login-header {
    text-align: center;
    margin-bottom: 40px;
}

.login-logo {
    width: min(220px, 58vw);
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.login-logo-image {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 18px 36px rgba(5, 150, 105, 0.22));
}

.login-title {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 8px;
}

.login-subtitle {
    font-size: 14px;
    color: var(--text-muted);
}

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

.form-label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.form-input {
    width: 100%;
    padding: 14px 18px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 15px;
    transition: all var(--transition-fast);
}

.form-input::placeholder {
    color: var(--text-muted);
}

.form-input:focus {
    outline: none;
    border-color: var(--emerald-light);
    box-shadow: 0 0 20px rgba(52, 211, 153, 0.2);
}

.form-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 30px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--text-secondary);
    cursor: pointer;
}

.checkbox-label input {
    width: 18px;
    height: 18px;
    accent-color: var(--emerald);
}

.forgot-link {
    font-size: 14px;
    color: var(--emerald-light);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.forgot-link:hover {
    color: var(--gold);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    border: none;
    border-radius: 12px;
    font-family: inherit;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.btn-primary {
    width: 100%;
    background: linear-gradient(135deg, var(--emerald), var(--emerald-light));
    color: white;
    box-shadow: 0 8px 24px rgba(5, 150, 105, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(5, 150, 105, 0.4);
}

@keyframes accentRingPulse {
    0% {
        transform: scale(0.96);
        opacity: 0;
    }
    20% {
        opacity: 0.85;
    }
    100% {
        transform: scale(1.08);
        opacity: 0;
    }
}

[data-accent-glow="on"] .btn-primary,
[data-accent-glow="on"] .card-btn.active,
[data-accent-glow="on"] .nav-link.active,
[data-accent-glow="on"] .property-tab-btn.active,
[data-accent-glow="on"] .piq-image-tab.active,
[data-accent-glow="on"] .mls-page-btn.active,
[data-accent-glow="on"] .property-back-link,
[data-accent-glow="on"] .ia-calc-btn,
[data-accent-glow="on"] .ia-other-head button,
[data-accent-glow="on"] .comps-chip,
[data-accent-glow="on"] .offer-toolbar-btn:hover,
[data-accent-glow="on"] .offer-toolbar-btn:focus-visible {
    position: relative;
    overflow: visible;
    box-shadow:
        0 0 0 1px rgba(var(--accent-rgb), 0.28),
        0 0 18px rgba(var(--accent-light-rgb), 0.45),
        0 0 34px rgba(var(--accent-rgb), 0.36);
}

[data-accent-glow="on"] .btn-primary::after,
[data-accent-glow="on"] .card-btn.active::after,
[data-accent-glow="on"] .nav-link.active::after,
[data-accent-glow="on"] .property-tab-btn.active::after,
[data-accent-glow="on"] .piq-image-tab.active::after,
[data-accent-glow="on"] .mls-page-btn.active::after,
[data-accent-glow="on"] .property-back-link::after,
[data-accent-glow="on"] .ia-calc-btn::after,
[data-accent-glow="on"] .ia-other-head button::after,
[data-accent-glow="on"] .comps-chip::after,
[data-accent-glow="on"] .offer-toolbar-btn:hover::after,
[data-accent-glow="on"] .offer-toolbar-btn:focus-visible::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: inherit;
    border: 1px solid rgba(var(--accent-light-rgb), 0.58);
    pointer-events: none;
    animation: accentRingPulse 2.1s ease-out infinite;
}

[data-accent-glow="on"] .toggle-switch input:checked + .toggle-slider,
[data-accent-glow="on"] .offer-email-toggle-row input:checked + .offer-toggle-slider {
    box-shadow: 0 0 14px rgba(var(--accent-light-rgb), 0.5), 0 0 24px rgba(var(--accent-rgb), 0.38);
}

.btn-secondary {
    width: 100%;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
}

.btn-secondary:hover {
    background: var(--glass-hover);
    border-color: var(--emerald-light);
}

.divider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 28px 0;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--glass-border);
}

.divider span {
    font-size: 13px;
    color: var(--text-muted);
}

.social-login {
    display: flex;
    gap: 12px;
    margin-bottom: 28px;
}

.social-btn {
    flex: 1;
    padding: 12px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.social-btn:hover {
    background: var(--glass-hover);
    border-color: var(--emerald-light);
}

.social-btn svg {
    width: 22px;
    height: 22px;
}

.login-footer {
    text-align: center;
    font-size: 14px;
    color: var(--text-muted);
}

.login-footer a {
    color: var(--emerald-light);
    text-decoration: none;
}

.login-footer a:hover {
    color: var(--gold);
}

/* ============================================
   PAGE HEADER (for inner pages)
============================================ */
.page-header {
    margin-bottom: 30px;
}

.page-header .page-title {
    margin-bottom: 8px;
}

.page-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-muted);
}

.page-breadcrumb a {
    color: var(--text-secondary);
    transition: color var(--transition-fast);
}

.page-breadcrumb a:hover {
    color: var(--emerald-light);
}

.page-breadcrumb span {
    color: var(--text-muted);
}

/* ============================================
   FOOTER
============================================ */
.site-footer {
    text-align: center;
    padding: 20px;
    margin-left: var(--sidebar-width);
    color: var(--text-muted);
    font-size: 14px;
}

.site-footer a {
    color: var(--emerald-light);
    transition: color var(--transition-fast);
}

.site-footer a:hover {
    color: var(--gold);
}

/* Login/Register page footer */
.login-page .site-footer {
    margin-left: 0;
    position: relative;
    padding: 30px 20px;
    text-align: center;
    margin-top: 30px;
}

/* Floating Theme Toggle for Login/Register */
.theme-toggle-float {
    position: fixed;
    top: 24px;
    right: 24px;
    width: 45px;
    height: 45px;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 100;
    transition: all var(--transition-fast);
}

.theme-toggle-float:hover {
    background: var(--glass-hover);
    border-color: var(--emerald-light);
}

.theme-toggle-float svg {
    width: 20px;
    height: 20px;
    color: var(--text-secondary);
}

.theme-toggle-float .icon-theme-symbol {
    width: 20px;
    height: 20px;
    object-fit: contain;
    pointer-events: none;
}

/* ============================================
   SETTINGS PAGE
============================================ */
.settings-grid {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 24px;
}

.settings-nav {
    list-style: none;
}

.settings-nav-item {
    margin-bottom: 8px;
}

.settings-nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    color: var(--text-secondary);
    border-radius: 12px;
    transition: all var(--transition-fast);
}

.settings-nav-link:hover {
    background: var(--glass-hover);
    color: var(--text-primary);
}

.settings-nav-link.active {
    background: var(--glass-hover);
    color: var(--text-primary);
}

.settings-nav-link svg {
    width: 20px;
    height: 20px;
    opacity: 0.7;
}

.settings-nav-link.active svg,
.settings-nav-link:hover svg {
    opacity: 1;
}

.settings-section {
    margin-bottom: 32px;
}

.settings-section:last-child {
    margin-bottom: 0;
}

.settings-section-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--glass-border);
}

.settings-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

.settings-label {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.settings-label-title {
    font-weight: 500;
    color: var(--text-primary);
}

.settings-label-desc {
    font-size: 13px;
    color: var(--text-muted);
}

/* Toggle Switch */
.toggle-switch {
    position: relative;
    width: 50px;
    height: 26px;
}

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

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 26px;
    transition: all var(--transition-fast);
}

.toggle-slider::before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background: var(--text-secondary);
    border-radius: 50%;
    transition: all var(--transition-fast);
}

.toggle-switch input:checked + .toggle-slider {
    background: linear-gradient(135deg, var(--emerald), var(--emerald-light));
    border-color: var(--emerald);
}

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

/* Settings Select Dropdown */
.settings-select {
    padding: 10px 16px;
    background: rgba(19, 36, 25, 0.95);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 14px;
    cursor: pointer;
    min-width: 150px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2334d399' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}

.settings-select:focus {
    outline: none;
    border-color: var(--emerald-light);
    box-shadow: 0 0 15px rgba(52, 211, 153, 0.15);
}

.settings-select option {
    background: rgba(19, 36, 25, 0.98);
    color: var(--text-primary);
    padding: 10px;
}

/* ============================================
   PROFILE MODAL STYLES
============================================ */

.profile-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.profile-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
}

.profile-modal-content {
    position: relative;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    background: linear-gradient(135deg, rgba(13, 26, 20, 0.98), rgba(19, 36, 25, 0.98));
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    overflow-y: auto;
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.profile-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.profile-modal-header h2 {
    font-size: 28px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.profile-close-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: all var(--transition-fast);
}

.profile-close-btn:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

.profile-close-btn svg {
    width: 24px;
    height: 24px;
}

.profile-modal-body {
    padding: 30px;
}

.profile-avatar-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 40px;
}

.profile-avatar-large {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--emerald-light), var(--emerald));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    font-weight: 700;
    color: white;
    margin-bottom: 20px;
    box-shadow: 0 10px 30px rgba(52, 211, 153, 0.2);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
}

.profile-avatar-large.avatar-image {
    color: transparent;
}

.profile-avatar-actions {
    display: flex;
    gap: 10px;
}

.avatar-btn {
    background: rgba(52, 211, 153, 0.1);
    border: 1px solid rgba(52, 211, 153, 0.3);
    color: var(--emerald-light);
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    transition: all var(--transition-fast);
}

.avatar-btn:hover {
    background: rgba(52, 211, 153, 0.2);
    border-color: rgba(52, 211, 153, 0.5);
}

.avatar-btn.avatar-btn-secondary {
    color: var(--text-secondary);
    border-color: rgba(148, 163, 184, 0.35);
    background: rgba(148, 163, 184, 0.12);
}

.avatar-btn.avatar-btn-secondary:hover {
    color: var(--text-primary);
    border-color: rgba(148, 163, 184, 0.5);
    background: rgba(148, 163, 184, 0.2);
}

.avatar-adjuster {
    margin-top: 14px;
    width: min(100%, 360px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.3);
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.avatar-crop-frame {
    width: 180px;
    height: 180px;
    margin: 0 auto;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid rgba(52, 211, 153, 0.45);
    background: rgba(2, 6, 23, 0.55);
    position: relative;
}

.avatar-crop-frame img {
    position: absolute;
    left: 50%;
    top: 50%;
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%) scale(1);
    transform-origin: center center;
    user-select: none;
    pointer-events: none;
}

.avatar-adjust-controls {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.avatar-adjust-controls label {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 12px;
    color: var(--text-secondary);
}

.avatar-adjust-controls input[type='range'] {
    width: 100%;
    accent-color: var(--emerald-light);
}

.avatar-adjust-actions {
    display: flex;
    justify-content: center;
    gap: 8px;
}

.avatar-file-input {
    display: none;
}

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

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

.form-section h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--emerald-light);
}

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

.form-group label {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-group .form-input {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    transition: all var(--transition-fast);
    font-family: inherit;
}

.form-group .form-input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(52, 211, 153, 0.5);
    box-shadow: 0 0 15px rgba(52, 211, 153, 0.1);
}

.form-group .form-input::placeholder {
    color: rgba(245, 245, 244, 0.3);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.profile-modal-actions {
    display: flex;
    gap: 15px;
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: all var(--transition-fast);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

#user-profile-btn {
    cursor: pointer;
    transition: all var(--transition-fast);
}

#user-profile-btn:hover {
    opacity: 0.8;
}

/* Scrollbar styling for modal */
.profile-modal-content::-webkit-scrollbar {

    /* ============================================
       UNDER CONSTRUCTION PAGE STYLES
    ============================================ */

    .under-construction-container {
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: calc(100vh - var(--navbar-height) - 40px);
        padding: 40px 20px;
    }

    .under-construction-card {
        max-width: 700px;
        width: 100%;
    }

    .under-construction-content {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: var(--card-padding);
    }

    .construction-icon {
        width: 120px;
        height: 120px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: linear-gradient(135deg, var(--emerald-light), var(--gold));
        border-radius: 50%;
        margin-bottom: 30px;
        color: white;
        animation: pulse-glow 2s ease-in-out infinite;
    }

    .construction-icon svg {
        width: 60px;
        height: 60px;
        stroke-width: 1.5;
    }

    .construction-title {
        font-size: 32px;
        font-weight: 700;
        color: var(--text-primary);
        margin: 0 0 12px 0;
        background: linear-gradient(135deg, var(--emerald-light), var(--gold));
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }

    .construction-subtitle {
        font-size: 18px;
        color: var(--text-secondary);
        margin: 0 0 20px 0;
        font-weight: 500;
    }

    .construction-description {
        font-size: 15px;
        color: var(--text-secondary);
        line-height: 1.6;
        margin-bottom: 30px;
        max-width: 600px;
    }

    .construction-features {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 20px;
        width: 100%;
        margin: 30px 0;
    }

    .feature-item {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 12px;
        background: rgba(52, 211, 153, 0.05);
        border: 1px solid rgba(52, 211, 153, 0.2);
        border-radius: 12px;
        transition: all var(--transition-fast);
    }

    .feature-item:hover {
        background: rgba(52, 211, 153, 0.1);
        border-color: rgba(52, 211, 153, 0.4);
        transform: translateY(-2px);
    }

    .feature-item svg {
        width: 20px;
        height: 20px;
        stroke: var(--emerald-light);
        flex-shrink: 0;
    }

    .feature-item span {
        font-size: 14px;
        color: var(--text-secondary);
        text-align: left;
    }

    .construction-eta {
        font-size: 16px;
        color: var(--emerald-light);
        font-weight: 600;
        margin-top: 20px;
        margin-bottom: 0;
    }

    @keyframes pulse-glow {
        0%, 100% {
            box-shadow: 0 0 20px rgba(52, 211, 153, 0.4), 0 0 40px rgba(212, 165, 116, 0.2);
        }
        50% {
            box-shadow: 0 0 30px rgba(52, 211, 153, 0.6), 0 0 60px rgba(212, 165, 116, 0.3);
        }
    }

    /* Responsive Design */
    @media (max-width: 768px) {
        .construction-title {
            font-size: 24px;
        }

        .construction-subtitle {
            font-size: 16px;
        }

        .construction-icon {
            width: 100px;
            height: 100px;
        }

        .construction-icon svg {
            width: 50px;
            height: 50px;
        }

        .construction-features {
            grid-template-columns: 1fr;
        }

        .under-construction-container {
            min-height: calc(100vh - var(--navbar-height) - 20px);
            padding: 20px;
        }
    }
    width: 8px;
}

.profile-modal-content::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

.profile-modal-content::-webkit-scrollbar-thumb {
    background: rgba(52, 211, 153, 0.3);
    border-radius: 4px;
}

.profile-modal-content::-webkit-scrollbar-thumb:hover {
    background: rgba(52, 211, 153, 0.5);
}

/* Responsive */
@media (max-width: 768px) {
    .profile-modal-content {
        max-width: 95%;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .profile-modal-header {
        padding: 20px;
    }

    .profile-modal-body {
        padding: 20px;
    }

    .profile-modal-actions {
        flex-direction: column-reverse;
    }

    .btn {
        width: 100%;
    }
}

[data-theme="light"] .settings-select {
    background-color: rgba(245, 245, 240, 0.95);
}

[data-theme="light"] .settings-select option {
    background: rgba(245, 245, 240, 0.98);
    color: #1a1a1a;
}

/* Profile Header */
.profile-header {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 32px;
}

.profile-avatar-large {
    width: 100px;
    height: 100px;
    border-radius: 20px;
    background: linear-gradient(135deg, var(--emerald), var(--gold));
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 36px;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

.profile-avatar-large.avatar-image {
    color: transparent;
}

.profile-avatar-edit {
    position: absolute;
    bottom: -8px;
    right: -8px;
    width: 32px;
    height: 32px;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.profile-avatar-edit:hover {
    background: var(--glass-hover);
    border-color: var(--emerald-light);
}

.profile-avatar-edit svg {
    width: 16px;
    height: 16px;
    color: var(--text-secondary);
}

.profile-info h2 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 4px;
}

.profile-info p {
    color: var(--text-muted);
    font-size: 14px;
}

/* Settings Form Grid */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group-settings {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group-settings.full-width {
    grid-column: span 2;
}

.form-group-settings label {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
}

.form-group-settings input,
.form-group-settings textarea {
    padding: 12px 16px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 14px;
    transition: all var(--transition-fast);
}

.form-group-settings input:focus,
.form-group-settings textarea:focus {
    outline: none;
    border-color: var(--emerald-light);
    box-shadow: 0 0 20px rgba(52, 211, 153, 0.15);
}

.form-group-settings textarea {
    resize: vertical;
    min-height: 100px;
}

.btn-group {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

/* Settings Tab Content */
.settings-tab-content {
    display: none;
}

.settings-tab-content.active {
    display: block;
    animation: settingsFadeIn 0.3s ease;
}

.ecard-preview {
    display: grid;
    grid-template-columns: 165px 1px 1fr;
    gap: 12px;
    width: min(100%, 640px);
    aspect-ratio: 3.5 / 2;
    margin: 0 auto;
    padding: 14px;
    border-radius: 0;
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.28);
    background: linear-gradient(135deg, #f5f7fb 0%, #eef2f7 100%);
    color: #0f172a;
}

.ecard-brand-column {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.ecard-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 192px;
    height: 132px;
    background: transparent;
    border: 0;
    box-shadow: none;
    padding: 0;
}

.ecard-mark::before {
    content: none;
}

.ecard-mark::after {
    content: none;
}

.ecard-logo-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.ecard-company {
    font-size: 10px;
    font-weight: 700;
    color: #8a6a2f;
    text-align: center;
    letter-spacing: 0.08em;
}

.ecard-divider {
    width: 1px;
    background: rgba(138, 106, 47, 0.7);
}

.ecard-details-column {
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    padding: 4px 0;
}

.ecard-details-column h2 {
    margin: -4px 0 0;
    font-size: 30px;
    line-height: 1.05;
    color: #c81e1e;
    font-weight: 800;
    text-transform: uppercase;
}

.ecard-role {
    margin: 4px 0 12px;
    color: #111827;
    letter-spacing: 0.1em;
    font-size: 13px;
    text-transform: uppercase;
}

.ecard-lines {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.ecard-lines li {
    display: grid;
    grid-template-columns: 104px 1fr;
    gap: 8px;
    align-items: start;
    justify-items: start;
    text-align: left;
}

.ecard-lines span {
    color: #475569;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.ecard-lines strong {
    color: #111827;
    font-size: 13px;
    line-height: 1.2;
    font-weight: 600;
}

.flyer-builder-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.flyer-builder-grid textarea {
    width: 100%;
    min-height: 130px;
    resize: vertical;
}

.flyer-preview {
    width: min(100%, 760px);
    aspect-ratio: 8.5 / 11;
    min-height: 840px;
    margin: 0 auto;
    padding: 40px 28px;
    border: 1px solid rgba(148, 163, 184, 0.28);
    background: linear-gradient(135deg, #f8fafc 0%, #eef2f7 100%);
    color: #0f172a;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    text-align: center;
    gap: 18px;
}

.flyer-logo-image {
    width: min(100%, 340px);
    height: auto;
    object-fit: contain;
    display: block;
}

.flyer-preview-title {
    margin: 0;
    color: #c81e1e;
    font-size: clamp(24px, 3.4vw, 38px);
    font-weight: 800;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.flyer-preview-body {
    margin: 0;
    max-width: 62ch;
    color: #1f2937;
    font-size: clamp(14px, 1.6vw, 18px);
    line-height: 1.55;
    white-space: pre-line;
}

.flyer-preview-contact {
    margin: auto 0 0;
    padding-top: 14px;
    width: 100%;
    border-top: 1px solid rgba(30, 41, 59, 0.2);
    color: #0f172a;
    font-size: clamp(13px, 1.45vw, 17px);
    font-weight: 700;
    letter-spacing: 0.01em;
}

@keyframes settingsFadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ============================================
   RESPONSIVE DESIGN
============================================ */
@media (max-width: 1400px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .bottom-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 1200px) {
    .content-grid {
        grid-template-columns: 1fr;
    }
    
    .table-card {
        grid-column: span 1;
    }

    .outreach-workspace-grid {
        grid-template-columns: 1fr;
    }

    .ecard-preview {
        grid-template-columns: 1fr;
        width: 100%;
        aspect-ratio: auto;
    }

    .ecard-divider {
        width: 100%;
        height: 1px;
    }

    .flyer-preview {
        aspect-ratio: auto;
        min-height: 680px;
        padding: 26px 16px;
    }

    .flyer-logo-image {
        width: min(100%, 280px);
    }
}

@media (max-width: 992px) {
    :root {
        --sidebar-width: 0px;
    }
    
    .sidebar {
        transform: translateX(-100%);
        width: 280px;
    }
    
    .sidebar.open {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .mobile-menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .bottom-grid {
        grid-template-columns: 1fr;
    }

    .site-footer {
        margin-left: 0;
    }

    .settings-grid {
        grid-template-columns: 1fr;
    }

    .settings-nav-card {
        display: none;
    }
}

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

    .widget-dock {
        right: 16px;
        left: 16px;
        top: auto;
        bottom: 16px;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
    }

    .widget-dock-item {
        width: auto;
        max-width: 100%;
    }

    .widget-card.widget-expanded {
        width: calc(100vw - 24px);
        max-height: calc(100vh - 24px);
    }

    .calendar-stage {
        min-height: 520px;
    }

    .calendar-detail-topbar {
        flex-direction: column;
        align-items: stretch;
    }

    .calendar-inline-actions .card-btn {
        width: 100%;
    }
    
    .navbar {
        flex-wrap: wrap;
    }
    
    .search-box {
        order: 3;
        width: 100%;
    }
    
    .search-input {
        width: 100%;
    }
    
    .page-title {
        font-size: 22px;
    }

    .page-title-group {
        gap: 8px;
    }

    .navbar-datetime {
        font-size: 12px;
    }
    
    .donut-container {
        flex-direction: column;
    }

    .login-card {
        padding: 36px 24px;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .ecard-details-column h2 {
        font-size: 25px;
    }

    .ecard-lines li {
        grid-template-columns: 1fr;
        gap: 2px;
    }

    .form-group-settings.full-width {
        grid-column: span 1;
    }

    .profile-header {
        flex-direction: column;
        text-align: center;
    }

    .outreach-item-head {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .main-content {
        padding: 20px 15px;
    }

    .widget-controls {
        margin-left: 8px;
    }

    .widget-control-btn,
    .calendar-nav-btn {
        width: 30px;
        height: 30px;
    }

    .calendar-day {
        min-height: 42px;
        font-size: 11px;
    }

    .calendar-event-count {
        min-width: 16px;
        height: 16px;
        font-size: 9px;
    }
    
    .glass-card {
        padding: 18px;
    }
    
    .stat-value {
        font-size: 26px;
    }
    
    .data-table {
        font-size: 13px;
    }
    
    .data-table th,
    .data-table td {
        padding: 12px 8px;
    }

    .social-login {
        flex-direction: column;
    }
}

/* ============================================
   MLS HOT DEALS SANDBOX
============================================ */
.mls-deals-board {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.mls-board-intro {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mls-controls-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 14px;
}

.mls-listings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
}

.mls-property-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 20px;
    transition: transform var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
    cursor: pointer;
    pointer-events: auto !important;
}

.mls-property-card * {
    pointer-events: auto !important;
}


.mls-property-card:hover {
    transform: translateY(-4px);
    border-color: rgba(52, 211, 153, 0.36);
    box-shadow: 0 14px 30px rgba(4, 120, 87, 0.18);
}

.mls-image-wrap {
    width: 100%;
    aspect-ratio: 16 / 10;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.04);
}

.mls-property-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}

.mls-property-card:hover .mls-property-image {
    transform: scale(1.04);
}

.mls-card-top {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 8px;
}

.mls-listing-status {
    margin-left: auto;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid transparent;
}

.mls-listing-status.active {
    background: rgba(52, 211, 153, 0.16);
    color: var(--emerald-light);
    border-color: rgba(52, 211, 153, 0.35);
}

.mls-listing-status.pending {
    background: rgba(251, 191, 36, 0.16);
    color: #fde68a;
    border-color: rgba(251, 191, 36, 0.35);
}

.mls-listing-status.on-hold {
    background: rgba(148, 163, 184, 0.16);
    color: #cbd5e1;
    border-color: rgba(148, 163, 184, 0.35);
}

.mls-listing-status.closed {
    background: rgba(248, 113, 113, 0.16);
    color: #fca5a5;
    border-color: rgba(248, 113, 113, 0.35);
}

.mls-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    border-radius: 999px;
    padding: 4px 10px;
    border: 1px solid transparent;
}

.mls-badge.test {
    background: rgba(52, 211, 153, 0.18);
    color: var(--emerald-light);
    border-color: rgba(52, 211, 153, 0.35);
}

.mls-badge.turnkey {
    background: rgba(212, 165, 116, 0.16);
    color: var(--gold-light);
    border-color: rgba(212, 165, 116, 0.35);
}

.mls-badge.fixer {
    background: rgba(251, 146, 60, 0.15);
    color: #fdbb74;
    border-color: rgba(251, 146, 60, 0.35);
}

.mls-roi {
    font-size: 12px;
    color: var(--text-secondary);
}

.mls-property-card h3 {
    margin: 0;
    font-size: 20px;
}

.mls-location {
    margin: 0;
    color: var(--text-secondary);
}

.mls-metrics {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    color: var(--text-secondary);
    font-size: 13px;
}

.mls-note {
    margin: 0;
    color: var(--text-secondary);
    font-size: 13px;
    line-height: 1.45;
}

.mls-property-card .card-btn {
    text-align: center;
    width: 100%;
    pointer-events: auto;
}

.mls-source-links {
    display: flex;
    gap: 8px;
}

.mls-source-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 11px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 12px;
    transition: all var(--transition-fast);
}

.mls-source-link:hover {
    border-color: rgba(52, 211, 153, 0.38);
    color: var(--text-primary);
    transform: translateY(-1px);
}

.mls-empty-state {
    margin: 4px 0 0;
    color: var(--text-muted);
    text-align: center;
}

.mls-pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.mls-page-btn {
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-secondary);
    padding: 8px 14px;
    border-radius: 10px;
    cursor: pointer;
    transition: all var(--transition-fast);
    font-family: inherit;
}

.mls-page-btn:hover {
    border-color: rgba(52, 211, 153, 0.42);
    color: var(--text-primary);
    transform: translateY(-1px);
}

.mls-page-btn.active {
    background: rgba(52, 211, 153, 0.2);
    border-color: rgba(52, 211, 153, 0.45);
    color: var(--emerald-light);
}

/* ============================================
   PROPERTY DETAIL PAGE
============================================ */
.property-detail-shell {
    max-width: 1200px;
    margin: 0 auto;
    padding: 28px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.property-detail-topbar {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.property-detail-topbar h1 {
    margin: 0;
    font-size: 28px;
}

.property-back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid rgba(var(--accent-light-rgb), 0.45);
    background: linear-gradient(135deg, rgba(var(--accent-light-rgb), 0.18), rgba(15, 23, 42, 0.25));
    color: rgb(var(--accent-light-rgb));
    text-decoration: none;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    box-shadow: 0 6px 18px rgba(var(--accent-rgb), 0.24);
    transition: all var(--transition-fast);
}

.property-back-link::before {
    content: '\2190';
    font-size: 13px;
    line-height: 1;
}

.property-back-link:hover {
    color: #ecfdf5;
    border-color: rgba(var(--accent-light-rgb), 0.65);
    background: linear-gradient(135deg, rgba(var(--accent-light-rgb), 0.3), rgba(15, 23, 42, 0.38));
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(var(--accent-rgb), 0.32);
}

.property-detail-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.property-detail-card h2 {
    margin: 0 0 10px;
    font-size: 17px;
}

.property-detail-card p {
    margin: 0 0 8px;
    color: var(--text-secondary);
}

.property-price {
    font-size: 28px;
    color: var(--gold-light);
    font-weight: 700;
}

.property-flag-list p {
    margin: 6px 0;
}

.property-status-inline {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.property-status-label {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: min(520px, 100%);
    color: var(--text-primary);
    font-size: 13px;
}

.property-status-assign-label {
    width: min(360px, 100%);
}

.property-status-label span {
    font-weight: 600;
    letter-spacing: 0.02em;
}

.property-tabs-row {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 12px;
}

.property-tab-btn {
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-secondary);
    border-radius: 10px;
    padding: 10px 12px;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.property-tab-btn:hover {
    border-color: rgba(var(--accent-rgb), 0.35);
    color: var(--text-primary);
}

.property-tab-btn.active {
    background: rgba(var(--accent-light-rgb), 0.18);
    border-color: rgba(var(--accent-rgb), 0.42);
    color: var(--emerald-light);
}

.property-tab-panel {
    display: none;
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.02);
}

.property-tab-panel.active {
    display: block;
}

.comps-panel {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.comps-quick-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.comps-summary-card {
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.02);
    border-radius: 10px;
    padding: 7px 9px;
}

.comps-summary-span-2 {
    grid-column: span 1;
}

.comps-summary-card h4 {
    margin: 0 0 4px;
    font-size: 12px;
    color: var(--text-primary);
}

.comps-summary-card p {
    margin: 0;
    font-size: 10.5px;
    line-height: 1.35;
    color: var(--text-secondary);
}

.comps-summary-card p + p {
    margin-top: 4px;
    padding-top: 4px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

#comps-summary-property-details {
    white-space: pre-line;
}

.comps-summary-card strong {
    color: var(--text-primary);
}

#tab-content-comps {
    margin: 2px 0 0;
    font-size: 12px;
}

.comps-intelligence-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.comps-intel-card {
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    padding: 10px;
}

.comps-intel-card-wide {
    grid-column: span 2;
}

.comps-intel-card h4,
.comps-intel-head h4 {
    margin: 0 0 6px;
    font-size: 12px;
    color: var(--text-primary);
}

.comps-intel-head p {
    margin: 0;
    font-size: 11px;
    line-height: 1.45;
    color: var(--text-secondary);
}

.comps-tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}

.comps-tag {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 5px 9px;
    font-size: 10px;
    line-height: 1;
    color: var(--text-primary);
    border: 1px solid rgba(var(--accent-rgb), 0.28);
    background: rgba(var(--accent-light-rgb), 0.12);
}

.comps-metric-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.comps-metric-item {
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 8px;
    background: rgba(15, 23, 42, 0.12);
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.comps-metric-label,
.comps-best-match-grid span,
.comps-market-item span {
    font-size: 10px;
    color: var(--text-muted);
}

.comps-metric-value,
.comps-best-match-head strong,
.comps-best-match-grid strong,
.comps-market-item strong {
    font-size: 12px;
    color: var(--text-primary);
}

.comps-metric-item span:last-child,
.comps-market-item small,
.comps-best-match-note,
.comps-best-match-head span {
    font-size: 10px;
    line-height: 1.4;
    color: var(--text-secondary);
}

.comps-best-match-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.comps-best-match-head {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.comps-best-match-grid,
.comps-market-breakdown {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.comps-market-item {
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 8px;
    background: rgba(15, 23, 42, 0.12);
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.comps-map-toolbar {
    display: flex;
    justify-content: flex-end;
}

.comps-filters-shell {
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    padding: 8px;
    margin-top: 4px;
}

.comps-filters-head,
.comps-results-head {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    align-items: center;
    margin-bottom: 6px;
}

.comps-filters-head h4,
.comps-results-head h4 {
    margin: 0;
    font-size: 12px;
}

.comps-filter-actions {
    display: flex;
    gap: 5px;
}

.comps-quick-filters,
.comps-advanced-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 6px;
}

.comps-quick-filters label,
.comps-advanced-grid label {
    display: flex;
    flex-direction: column;
    gap: 3px;
    font-size: 10px;
}

.comps-quick-filters .form-input,
.comps-advanced-grid .form-input {
    min-height: 32px;
    padding: 6px 8px;
    font-size: 12px;
}

.comps-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin: 6px 0;
}

.comps-chip {
    font-size: 10px;
    padding: 4px 7px;
    border-radius: 999px;
    border: 1px solid rgba(var(--accent-rgb), 0.3);
    background: rgba(var(--accent-light-rgb), 0.12);
    color: rgb(var(--accent-light-rgb));
}

.comps-advanced-filters summary {
    cursor: pointer;
    color: var(--text-primary);
    font-size: 11px;
    margin-bottom: 6px;
}

.comps-advanced-groups {
    margin-top: 8px;
    display: grid;
    gap: 6px;
}

.comps-advanced-groups fieldset {
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 6px;
}

.comps-advanced-groups legend {
    font-size: 10px;
    color: var(--text-secondary);
    padding: 0 6px;
}

.comps-check-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 5px;
}

.comps-check-grid label {
    font-size: 10px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.comps-results-shell {
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    padding: 6px 8px;
}

#comps-results-meta {
    margin: 0;
    font-size: 10px;
    color: var(--text-secondary);
}

.comps-nearby-list {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 6px;
}

.comps-results-shell .comps-results-head {
    margin-bottom: 4px;
}

.comps-results-shell .comps-results-head h4 {
    font-size: 11px;
}

.comps-nearby-list .outreach-empty {
    margin: 0;
    padding: 2px 0;
    font-size: 11px;
    line-height: 1.2;
}

.comp-near-card {
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    background: rgba(15, 23, 42, 0.18);
    padding: 8px;
}

.comp-near-card h5 {
    margin: 0 0 4px;
    font-size: 11px;
    color: var(--text-primary);
}

.comp-near-meta {
    color: var(--emerald-light);
}

.comp-near-card p {
    margin: 0;
    font-size: 10px;
    line-height: 1.35;
    color: var(--text-secondary);
}

.comps-map-wrap {
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    overflow: hidden;
    min-height: 360px;
    background: rgba(15, 23, 42, 0.22);
}

.comps-map-wrap iframe {
    width: 100%;
    height: 360px;
    border: 0;
    display: block;
}

@media (max-width: 1100px) {
    .comps-intelligence-grid,
    .comps-best-match-grid,
    .comps-market-breakdown,
    .comps-metric-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .comps-quick-filters,
    .comps-advanced-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .comps-nearby-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 700px) {
    .comps-intelligence-grid,
    .comps-best-match-grid,
    .comps-market-breakdown,
    .comps-metric-grid {
        grid-template-columns: 1fr;
    }

    .comps-intel-card-wide {
        grid-column: span 1;
    }

    .comps-quick-filters,
    .comps-advanced-grid,
    .comps-check-grid,
    .comps-nearby-list {
        grid-template-columns: 1fr;
    }
}

.agent-record {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.agent-record-header h3 {
    margin: 0;
    font-size: 22px;
    color: var(--text-primary);
}

.agent-record-label {
    margin: 4px 0 10px;
    color: var(--text-secondary);
    font-size: 13px;
    letter-spacing: 0.02em;
}

.agent-record-header p {
    margin: 4px 0;
    color: var(--text-primary);
}

.agent-record-section {
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.03);
    padding: 12px;
}

.agent-record-section h4 {
    margin: 0 0 8px;
    color: var(--text-primary);
    font-size: 14px;
}

.agent-record-section p {
    margin: 6px 0;
    color: var(--text-secondary);
}

.agent-record-section strong {
    color: var(--text-primary);
    font-weight: 600;
}

.piq-image-block {
    margin: 2px 0 12px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    padding: 10px;
}

.piq-image-block-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
}

.piq-image-block h5 {
    margin: 0;
    font-size: 12px;
    color: var(--text-primary);
}

.piq-image-tabs {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.piq-image-tab {
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-secondary);
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.piq-image-tab.active {
    color: var(--text-primary);
    border-color: rgba(var(--accent-rgb), 0.45);
    background: rgba(var(--accent-light-rgb), 0.16);
}

.piq-image-panel {
    display: none;
}

.piq-image-panel.active {
    display: block;
}

.piq-image-preview-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.piq-image-thumb-large {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(15, 23, 42, 0.25);
}

.piq-image-gallery {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: thin;
}

.piq-image-thumb-strip {
    flex: 0 0 210px;
    width: 210px;
    height: 130px;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(15, 23, 42, 0.25);
}

@media (max-width: 768px) {
    .piq-image-block-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .piq-image-preview-grid {
        grid-template-columns: 1fr;
    }

    .piq-image-thumb-large {
        height: 170px;
    }

    .piq-image-thumb-strip {
        flex-basis: 180px;
        width: 180px;
        height: 118px;
    }
}

.deals-compact-workspace {
    margin-top: 16px;
}

.deals-import-launcher-card {
    padding: 18px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.deals-import-launcher-copy {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.deals-import-launcher-eyebrow {
    margin: 0;
    color: var(--emerald-light);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.deals-import-open-btn {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 46px;
    padding: 12px 16px;
    border: 1px solid rgba(var(--accent-rgb), 0.26);
    border-radius: 14px;
    box-shadow:
        0 14px 28px rgba(var(--accent-rgb), 0.22),
        inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.deals-import-nav-btn {
    width: auto;
    white-space: nowrap;
    background: linear-gradient(135deg, rgba(var(--accent-rgb), 0.92), rgba(var(--accent-light-rgb), 0.9));
    color: #f8fafc;
}

.deals-import-nav-btn svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.deals-import-nav-btn:hover,
.deals-import-nav-btn:focus-visible {
    transform: translateY(-1px);
    border-color: rgba(var(--accent-light-rgb), 0.5);
    box-shadow:
        0 18px 34px rgba(var(--accent-rgb), 0.28),
        0 0 0 1px rgba(var(--accent-light-rgb), 0.18);
}

.deals-import-nav-btn:focus-visible {
    outline: 2px solid rgba(var(--accent-light-rgb), 0.42);
    outline-offset: 2px;
}

.deals-import-overlay {
    position: fixed;
    inset: 0;
    z-index: 1400;
    display: grid;
    place-items: center;
    padding: 32px 18px;
}

.deals-import-overlay[hidden] {
    display: none !important;
}

.deals-import-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(2, 6, 23, 0.68);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.deals-import-card {
    padding: 18px;
    margin-bottom: 16px;
    border: 1px solid rgba(var(--accent-rgb), 0.14);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.03)),
        var(--glass-bg);
}

.deals-import-modal {
    position: relative;
    z-index: 1;
    width: min(960px, 100%);
    max-height: min(88vh, 920px);
    margin-bottom: 0;
    overflow: auto;
    box-shadow:
        0 28px 80px rgba(15, 23, 42, 0.45),
        0 0 0 1px rgba(var(--accent-rgb), 0.12);
}

.deals-import-header {
    margin-bottom: 18px;
}

.deals-import-modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
}

.deals-import-close-btn {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.deals-import-close-btn:hover {
    border-color: rgba(var(--accent-rgb), 0.42);
    background: rgba(var(--accent-rgb), 0.12);
}

.deals-import-close-btn svg {
    width: 18px;
    height: 18px;
}

.deals-import-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.deals-import-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 600;
}

.deals-import-span-2 {
    grid-column: span 2;
}

.deals-import-notes {
    min-height: 120px;
    resize: vertical;
}

.deals-import-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-top: 4px;
}

.deals-import-help {
    margin: 0;
    color: var(--text-muted);
    font-size: 12px;
    line-height: 1.5;
}

.deals-import-buttons {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.deals-import-buttons .btn-primary,
.deals-import-buttons .btn-secondary {
    width: auto;
    min-width: 132px;
}

.deals-compact-card {
    padding: 14px;
}

.deals-compact-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 28px;
    padding: 0 8px;
    border-radius: 999px;
    background: rgba(52, 211, 153, 0.16);
    border: 1px solid rgba(52, 211, 153, 0.34);
    color: var(--text-primary);
    font-size: 12px;
    font-weight: 700;
}

.deals-compact-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.deals-compact-row {
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 6px 8px;
    background: rgba(15, 23, 42, 0.24);
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    text-align: left;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.deals-compact-row:hover {
    border-color: rgba(52, 211, 153, 0.36);
    background: rgba(52, 211, 153, 0.1);
}

.deals-compact-thumb-wrap {
    width: 56px;
    height: 42px;
    border-radius: 8px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.05);
}

.deals-compact-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.deals-compact-main {
    min-width: 0;
}

.deals-compact-address {
    margin: 0;
    color: var(--text-primary);
    font-size: 12px;
    font-weight: 600;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.deals-compact-meta {
    margin: 1px 0 0;
    color: var(--text-muted);
    font-size: 10px;
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.deals-compact-side {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 3px;
}

.deals-assigned-pill {
    border-radius: 999px;
    border: 1px solid rgba(16, 185, 129, 0.4);
    background: rgba(16, 185, 129, 0.14);
    color: #d1fae5;
    padding: 2px 8px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.deals-assigned-by {
    margin: 4px 0 0;
    color: var(--text-secondary);
    font-size: 10px;
    line-height: 1.35;
}

.deals-assigned-by strong {
    color: var(--text-primary);
    font-weight: 600;
}

.deals-status-pill {
    border-radius: 999px;
    border: 1px solid rgba(59, 130, 246, 0.45);
    background: rgba(59, 130, 246, 0.16);
    color: #dbeafe;
    padding: 2px 7px;
    font-size: 10px;
    font-weight: 700;
    text-transform: capitalize;
}

.deals-status-pill.pending {
    border-color: rgba(234, 179, 8, 0.45);
    background: rgba(234, 179, 8, 0.15);
    color: #fde68a;
}

.deals-status-pill.on-hold {
    border-color: rgba(244, 114, 182, 0.45);
    background: rgba(244, 114, 182, 0.15);
    color: #fbcfe8;
}

.deals-status-pill.closed {
    border-color: rgba(34, 197, 94, 0.45);
    background: rgba(34, 197, 94, 0.15);
    color: #bbf7d0;
}

.deals-roi {
    font-size: 10px;
    color: var(--text-secondary);
    font-weight: 600;
}

.deals-compact-empty {
    margin: 4px 0;
    color: var(--text-muted);
    font-size: 12px;
}

@media (max-width: 768px) {
    .deals-import-launcher-card {
        flex-direction: column;
        align-items: flex-start;
    }

    .deals-import-open-btn {
        width: 100%;
    }

    .deals-import-nav-btn {
        width: auto;
    }

    .deals-import-overlay {
        padding: 16px 10px;
    }

    .deals-import-modal {
        max-height: min(92vh, 920px);
    }

    .deals-import-form {
        grid-template-columns: 1fr;
    }

    .deals-import-span-2 {
        grid-column: auto;
    }

    .deals-import-actions {
        flex-direction: column;
        align-items: flex-start;
    }

    .deals-import-modal-header {
        flex-direction: column;
    }

    .deals-compact-row {
        grid-template-columns: 48px minmax(0, 1fr);
        gap: 8px;
    }

    .deals-compact-side {
        grid-column: 2;
        flex-direction: row;
        justify-content: flex-start;
        align-items: center;
        gap: 8px;
    }

    .deals-compact-thumb-wrap {
        width: 48px;
        height: 38px;
    }
}

.agent-note-help {
    margin: 0 0 8px;
    font-size: 12px;
    color: var(--text-muted);
}

.agent-note-label {
    display: block;
    margin-bottom: 6px;
    color: var(--text-secondary);
    font-size: 12px;
}

.agent-note-input {
    min-height: 88px;
    resize: vertical;
}

.agent-note-list {
    margin-top: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.02);
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.agent-note-item {
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.03);
    padding: 8px 10px;
}

.agent-note-item-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
}

.agent-note-item-time {
    color: var(--text-muted);
    font-size: 11px;
    white-space: nowrap;
}

.agent-note-status {
    display: inline-flex;
    margin-bottom: 6px;
    padding: 2px 8px;
    border-radius: 999px;
    border: 1px solid rgba(212, 165, 116, 0.35);
    background: rgba(212, 165, 116, 0.12);
    color: #fcd9ab;
    font-size: 11px;
    font-weight: 600;
}

.agent-note-item p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 13px;
    white-space: pre-wrap;
}

.ia-calculator {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.ia-section {
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 14px;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.36), rgba(15, 23, 42, 0.2));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 14px 24px -18px rgba(2, 6, 23, 0.7);
}

.ia-section h3 {
    margin: 0 0 10px;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.01em;
    color: #f8fafc;
}

.ia-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.ia-grid label {
    display: flex;
    flex-direction: column;
    gap: 6px;
    color: rgba(226, 232, 240, 0.95);
    font-size: 13px;
}

.ia-grid input,
.ia-grid select {
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid rgba(148, 163, 184, 0.34);
    color: #f8fafc;
    border-radius: 8px;
    padding: 9px 10px;
    font-family: inherit;
}

.ia-grid input:focus,
.ia-grid select:focus {
    outline: none;
    border-color: rgba(52, 211, 153, 0.58);
    box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.16);
}

/* Keep native dropdowns readable and aligned with the glass theme */
select,
select.form-input,
.ia-grid select,
.offer-grid select,
.form-group .form-input[type="select-one"] {
    background-color: rgba(255, 255, 255, 0.06) !important;
    color: var(--text-primary) !important;
    border: 1px solid rgba(255, 255, 255, 0.16) !important;
    color-scheme: dark;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23dbe4de' d='M6 8 0 0h12z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    padding-right: 30px;
}

select:focus,
select.form-input:focus,
.ia-grid select:focus,
.offer-grid select:focus,
.form-group .form-input[type="select-one"]:focus {
    border-color: rgba(52, 211, 153, 0.45) !important;
    box-shadow: 0 0 0 2px rgba(52, 211, 153, 0.12);
}

select option,
select.form-input option,
.ia-grid select option,
.offer-grid select option,
.form-group .form-input[type="select-one"] option {
    background-color: #0f172a !important;
    color: #f5f5f4 !important;
}

select option:checked,
select.form-input option:checked,
.ia-grid select option:checked,
.offer-grid select option:checked,
.form-group .form-input[type="select-one"] option:checked {
    background-color: #14532d !important;
    color: #ecfdf5 !important;
}

.ia-readout {
    border: 1px solid rgba(148, 163, 184, 0.28);
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.58), rgba(30, 41, 59, 0.45));
    border-radius: 8px;
    padding: 9px 10px;
    color: rgba(226, 232, 240, 0.98);
    font-size: 13px;
}

.ia-readout strong {
    color: #ffffff;
    font-weight: 600;
}

.ia-grid input:disabled,
.ia-grid select:disabled {
    background: rgba(15, 23, 42, 0.3);
    border-color: rgba(15, 23, 42, 0.45);
    color: rgba(148, 163, 184, 0.92);
    cursor: not-allowed;
}

.ia-span-2 {
    grid-column: span 2;
}

.ia-calc-btn {
    flex: 1 1 100%;
    width: 100%;
    min-height: 48px;
    border: 1px solid rgba(var(--accent-light-rgb), 0.78);
    background: linear-gradient(135deg, rgba(var(--accent-rgb), 0.92), rgba(var(--accent-light-rgb), 0.84));
    color: #ffffff;
    border-radius: 12px;
    padding: 12px 18px;
    font-weight: 800;
    font-size: 15px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    cursor: pointer;
    justify-content: center;
    box-shadow: 0 18px 28px -18px rgba(var(--accent-rgb), 0.95);
}

.ia-calc-btn:hover {
    background: linear-gradient(135deg, rgba(var(--accent-rgb), 1), rgba(var(--accent-light-rgb), 0.92));
    transform: translateY(-1px);
}

.ia-strike-zone-readout {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.ia-strike-zone-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: inherit;
    opacity: 0.82;
}

.ia-strike-zone-readout strong {
    font-size: inherit;
    font-weight: 600;
    color: inherit;
}

.ia-strike-zone-readout small {
    font-size: 12px;
    color: inherit;
    opacity: 0.82;
}

.ia-other-costs {
    border: 1px dashed rgba(255, 255, 255, 0.14);
    border-radius: 10px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ia-other-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-primary);
    font-size: 13px;
}

.ia-other-head button {
    border: 1px solid rgba(var(--accent-rgb), 0.35);
    background: rgba(var(--accent-light-rgb), 0.16);
    color: rgb(var(--accent-light-rgb));
    border-radius: 8px;
    padding: 6px 10px;
    cursor: pointer;
}

.ia-other-inputs {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 8px;
}

.ia-other-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.ia-other-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 6px 8px;
    font-size: 12px;
    color: var(--text-secondary);
}

.ia-other-item button {
    border: 1px solid rgba(248, 113, 113, 0.35);
    background: rgba(248, 113, 113, 0.12);
    color: #fca5a5;
    border-radius: 7px;
    padding: 4px 8px;
    cursor: pointer;
}

.ia-cash-note {
    border-style: dashed;
    border-color: rgba(52, 211, 153, 0.35);
    color: var(--emerald-light);
    background: rgba(52, 211, 153, 0.08);
}

.investor-profits-shell {
    margin-top: 4px;
}

.investor-profit-layout {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.investor-summary-wrap {
    margin-top: 12px;
}

.investor-summary-actions {
    margin-top: 10px;
}

.ia-offer-price-readout {
    border-color: rgba(var(--accent-light-rgb), 0.58);
    background: linear-gradient(135deg, rgba(var(--accent-rgb), 0.46), rgba(var(--accent-light-rgb), 0.3));
    box-shadow: inset 0 1px 0 rgba(236, 253, 245, 0.14), 0 14px 24px -16px rgba(var(--accent-rgb), 0.78);
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.01em;
    color: #f8fffc;
}

.ia-offer-price-field {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    color: inherit;
    font-size: 16px;
    font-weight: 700;
}

.ia-offer-price-field span {
    letter-spacing: 0.03em;
    text-transform: uppercase;
    font-size: 12px;
    opacity: 1;
    color: #ffffff;
}

.ia-offer-price-field input {
    width: 100%;
    min-height: 58px;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    font-size: 34px;
    line-height: 1.05;
    font-weight: 800;
    letter-spacing: 0.01em;
    padding: 10px 14px;
    text-shadow: 0 4px 12px rgba(2, 6, 23, 0.42);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.ia-offer-price-field input:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.56);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 0 0 3px rgba(255, 255, 255, 0.14);
}


[data-theme="light"] .ia-offer-price-readout {
    border-color: rgba(var(--accent-rgb), 0.44);
    background: linear-gradient(135deg, rgba(var(--accent-rgb), 0.24), rgba(var(--accent-light-rgb), 0.22));
    color: #064e3b;
}

[data-theme="light"] .ia-offer-price-field input {
    border-color: rgba(var(--accent-rgb), 0.16);
    background: rgba(255, 255, 255, 0.78);
    color: #14532d;
    text-shadow: 0 2px 6px rgba(16, 185, 129, 0.22);
}

[data-theme="light"] .ia-offer-price-field input:focus {
    border-color: rgba(var(--accent-rgb), 0.46);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), 0 0 0 3px rgba(var(--accent-rgb), 0.16);
}


[data-theme="beach"] .ia-offer-price-readout {
    border-color: rgba(186, 230, 253, 0.82);
    background: linear-gradient(135deg, rgba(12, 74, 110, 0.9), rgba(2, 132, 199, 0.64));
    color: #ecfeff;
}

[data-theme="beach"] .ia-offer-price-field input {
    border-color: rgba(186, 230, 253, 0.3);
    background: rgba(12, 74, 110, 0.28);
    color: #ffffff;
    text-shadow: 0 4px 14px rgba(8, 47, 73, 0.58);
}

[data-theme="beach"] .ia-offer-price-field input:focus {
    border-color: rgba(186, 230, 253, 0.64);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), 0 0 0 3px rgba(125, 211, 252, 0.2);
}


@media (max-width: 900px) {
    .property-detail-grid {
        grid-template-columns: 1fr;
    }

    .property-tabs-row {
        grid-template-columns: 1fr 1fr;
    }

    .ia-grid,
    .ia-other-inputs,
    .investor-profit-layout {
        grid-template-columns: 1fr;
    }

    .ia-span-2 {
        grid-column: span 1;
    }

    .comps-quick-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .comps-map-wrap,
    .comps-map-wrap iframe {
        min-height: 300px;
        height: 300px;
    }

    .planner-input-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .comps-quick-summary {
        grid-template-columns: 1fr;
    }
}

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

/* ============================================
   ANIMATIONS
============================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.glass-card {
    animation: fadeInUp 0.6s ease-out backwards;
}

.stats-grid .glass-card:nth-child(1) { animation-delay: 0.1s; }
.stats-grid .glass-card:nth-child(2) { animation-delay: 0.2s; }
.stats-grid .glass-card:nth-child(3) { animation-delay: 0.3s; }
.stats-grid .glass-card:nth-child(4) { animation-delay: 0.4s; }

.content-grid .glass-card:nth-child(1) { animation-delay: 0.5s; }
.content-grid .glass-card:nth-child(2) { animation-delay: 0.6s; }
.content-grid .glass-card:nth-child(3) { animation-delay: 0.7s; }

.bottom-grid .glass-card:nth-child(1) { animation-delay: 0.8s; }
.bottom-grid .glass-card:nth-child(2) { animation-delay: 0.9s; }
.bottom-grid .glass-card:nth-child(3) { animation-delay: 1s; }

.login-card {
    animation: fadeInUp 0.6s ease-out;
}
