/* --- Global Minimal Design System --- */
:root {
    --bg-premium: #f8fafc;
    --text-main: #0f172a;
    --text-muted: #64748b;
    --primary-premium: #1256b8;
    --primary-soft: rgba(18, 86, 184, 0.05);
    --success-soft: rgba(16, 185, 129, 0.08);
    --warning-soft: rgba(245, 158, 11, 0.08);
    --danger-soft: rgba(239, 68, 68, 0.08);
    --glass-bg: rgba(255, 255, 255, 0.95);
    --radius-premium: 1rem;
    --radius-pill: 2rem;
    --shadow-premium: 0 10px 30px -10px rgba(0, 0, 0, 0.12), 0 4px 10px -5px rgba(0, 0, 0, 0.06);
}

html {
    font-size: 110%;
    /* Global font size increase */
}

/* Notification dropdown hover */
.notif-item:hover {
    background-color: #f1f5f9 !important;
    color: inherit;
}

.notif-item {
    color: inherit !important;
}

/* Ensure navbar always stacks above page cards */
.navbar {
    position: relative;
}

.navbar .dropdown-menu {
    z-index: 4000 !important;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-color: var(--bg-premium);
    font-family: 'Nunito', sans-serif;
    color: var(--text-main);
    font-size: 1rem;
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Typography Density */
h1,
h2,
h3,
h4,
.h1,
.h2,
.h3,
.h4 {
    font-weight: 900;
    letter-spacing: -0.02em;
    color: var(--text-main);
}

.fw-900 {
    font-weight: 900 !important;
}

.fw-800 {
    font-weight: 800 !important;
}

.text-muted {
    color: var(--text-muted) !important;
}

/* Spacing Compression */
.mb-5 {
    margin-bottom: 2rem !important;
}

.mb-4 {
    margin-bottom: 1.5rem !important;
}

.py-5 {
    padding-top: 2rem !important;
    padding-bottom: 2rem !important;
}

/* Button Utilities */
.btn-soft-primary {
    background-color: var(--primary-soft) !important;
    color: var(--primary-premium) !important;
    border: none !important;
    transition: all 0.2s ease;
}

.btn-soft-primary:hover {
    background-color: rgba(18, 86, 184, 0.12) !important;
    color: var(--primary-premium) !important;
    transform: translateY(-1px);
}

.btn-soft-secondary {
    background-color: #f1f5f9 !important;
    color: #475569 !important;
    border: none !important;
    transition: all 0.2s ease;
}

.btn-soft-secondary:hover {
    background-color: #e2e8f0 !important;
    transform: translateY(-1px);
}

.btn.rounded-circle {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
}

.btn-sm.rounded-circle {
    width: 34px !important;
    height: 34px !important;
    min-width: 34px !important;
}

@media (max-width: 768px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .mb-5,
    .mb-4 {
        margin-bottom: 1rem !important;
    }

    .py-5 {
        padding-top: 1.5rem !important;
        padding-bottom: 1.5rem !important;
    }
}

/* Minimal Components */
.card {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.03);
    border-radius: var(--radius-premium);
    box-shadow: var(--shadow-premium);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card-header {
    background: transparent;
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
    padding: 0.75rem 1rem;
}

.rounded-pill {
    border-radius: var(--radius-pill) !important;
}

.rounded-4 {
    border-radius: 1rem !important;
}

/* Buttons & Interactions */
.btn {
    border-radius: 0.75rem;
    font-weight: 800;
    font-size: 0.85rem;
    padding: 0.5rem 1rem;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-primary {
    background-color: var(--primary-premium);
    border: none;
    box-shadow: 0 4px 6px -1px rgba(18, 86, 184, 0.2);
}

.btn-white {
    background: #ffffff;
    color: var(--text-main);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.btn-light-soft {
    background: var(--primary-soft);
    color: var(--primary-premium);
    border: none;
}

.btn-soft-secondary {
    background: rgba(100, 116, 139, 0.08);
    color: #475569;
    border: none;
}

.hover-lift:hover {
    transform: translateY(-2px);
}

/* Badges & Indicators */
.badge {
    padding: 0.35rem 0.65rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.bg-soft-primary {
    background: var(--primary-soft) !important;
    color: var(--primary-premium) !important;
}

.bg-soft-success {
    background: var(--success-soft) !important;
    color: #059669 !important;
}

.bg-soft-warning {
    background: var(--warning-soft) !important;
    color: #d97706 !important;
}

.bg-soft-danger {
    background: var(--danger-soft) !important;
    color: #dc2626 !important;
}

/* Form Elements Minimal */
.form-control,
.form-select {
    background-color: #ffffff;
    border: 2px solid #f1f5f9;
    font-weight: 700;
    font-size: 0.9rem;
    padding: 0.75rem 1.25rem;
    border-radius: 1rem;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    color: var(--text-main);
}

.form-control::placeholder {
    color: #94a3b8;
    font-weight: 600;
}

.form-control:focus,
.form-select:focus {
    background-color: #ffffff;
    border-color: var(--primary-premium);
    box-shadow: 0 0 0 4px rgba(18, 86, 184, 0.08);
    outline: none;
}

.form-select {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%2364748b' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1.25rem center;
    background-size: 16px 12px;
    padding-right: 3.5rem;
    cursor: pointer;
    appearance: none;
}

.form-select:hover {
    border-color: #e2e8f0;
}

.form-select-sm {
    padding: 0.4rem 2.5rem 0.4rem 0.75rem;
    font-size: 0.75rem;
    border-radius: 0.6rem;
    background-position: right 0.75rem center;
}

/* Required field asterisk */
.required-field::after {
    content: ' *';
    color: #ef4444;
    font-weight: 900;
}

/* Navigation Overrides (Consolidated) */
.navbar {
    background: var(--glass-bg) !important;
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
    padding: 0.25rem 0;
}

.navbar-brand {
    font-size: 0.85rem;
    font-weight: 900;
    color: var(--primary-premium) !important;
}

.navbar-nav .nav-link {
    font-size: 0.85rem;
    /* Increased from 0.75rem */
    font-weight: 800;
    padding: 0.35rem 0.75rem !important;
    border-radius: 0.5rem;
    color: var(--text-muted) !important;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.navbar-nav .nav-link.active,
.navbar-nav .nav-link:hover {
    background: var(--primary-soft);
    color: var(--primary-premium) !important;
}

@media (max-width: 991px) {
    .navbar-collapse {
        margin-top: 0.5rem;
        background: #fff;
        padding: 1rem;
        border-radius: 1rem;
        box-shadow: var(--shadow-premium);
    }
}

.card-body {
    font-size: 0.95rem;
    line-height: 1.7;
    color: #334155;
}

.card-title,
.card-header,
.card-footer {
    font-family: inherit;
    color: #111827;
}

.auth-page {
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
    padding: 3rem 0;
    background: radial-gradient(circle at top right, rgba(18, 86, 184, 0.05), transparent),
        radial-gradient(circle at bottom left, rgba(99, 102, 241, 0.05), transparent);
}

/* --- Refined UI Components --- */
.dropdown-menu {
    border: none;
    box-shadow: var(--shadow-premium);
    border-radius: 1rem;
    padding: 0.5rem;
    margin-top: 0.5rem !important;
    background: rgba(255, 255, 255, 1);
}

.dropdown-item {
    border-radius: 0.5rem;
    padding: 0.5rem 1rem;
    font-weight: 700;
    font-size: 0.8rem;
    color: var(--text-main);
    transition: all 0.2s ease;
}

.dropdown-item:hover {
    background-color: var(--primary-soft);
    color: var(--primary-premium);
}

/* Data Tables Minimal */
.table {
    border-collapse: separate;
    border-spacing: 0 0.5rem;
}

.table thead th {
    background-color: transparent;
    color: var(--text-muted);
    text-transform: uppercase;
    font-size: 0.65rem;
    font-weight: 900;
    letter-spacing: 0.1em;
    padding: 1rem;
    border: none;
}

.table tbody tr {
    background: #ffffff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
    border-radius: 0.75rem;
}

.table tbody td {
    padding: 1rem;
    font-size: 0.85rem;
    vertical-align: middle;
    border: none;
}

.table tbody tr td:first-child {
    border-top-left-radius: 0.75rem;
    border-bottom-left-radius: 0.75rem;
}

.table tbody tr td:last-child {
    border-top-right-radius: 0.75rem;
    border-bottom-right-radius: 0.75rem;
}

/* Custom Utilities */
.shadow-premium {
    box-shadow: var(--shadow-premium) !important;
}

.bg-light-soft {
    background-color: var(--primary-soft) !important;
}

.transition-all {
    transition: all 0.3s ease !important;
}

/* Mobile Density Fixes */
@media (max-width: 768px) {

    h1,
    .h1 {
        font-size: 1.5rem;
    }

    h2,
    .h2 {
        font-size: 1.25rem;
    }

    .card-body {
        padding: 1rem !important;
    }

    .table-responsive {
        border: none;
    }
}

/* Fix for legacy elements */
.alert {
    border: none;
    border-radius: 0.75rem;
    font-weight: 700;
    font-size: 0.85rem;
}

.modal-content {
    border: none;
    border-radius: 1.5rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.modal-header {
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
}

.modal-footer {
    border-top: 1px solid rgba(0, 0, 0, 0.03);
}

.stage-closed {
    background: #f5f3ff;
    color: #7c3aed;
}

.stage-deal-cancelled {
    background: #fef2f2;
    color: #dc2626;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .page-header {
        margin-bottom: 1.5rem;
        flex-direction: column;
        align-items: flex-start !important;
        gap: 1rem;
    }

    .prospect-buyer-card {
        padding: 1rem;
    }

    .stage-badge {
        font-size: 0.65rem;
        padding: 0.25rem 0.6rem;
    }

    .card-title {
        font-size: 1.1rem;
    }
}

/* Broker Dashboard Styles */
.dash-header {
    margin-bottom: 2rem;
}

.stat-card-premium {
    border-radius: 1.25rem;
    border: none;
    background: #ffffff;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    overflow: hidden;
    position: relative;
    text-decoration: none !important;
    cursor: pointer;
}

.stat-card-premium:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 30px -10px rgba(0, 0, 0, 0.1);
}

.stat-card-premium .card-body {
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.stat-icon-box {
    width: 60px;
    height: 60px;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.bg-soft-primary {
    background-color: rgba(99, 102, 241, 0.1);
    color: #6366f1;
}

.bg-soft-success {
    background-color: rgba(34, 197, 94, 0.1);
    color: #22c55e;
}

.bg-soft-warning {
    background-color: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
}

.bg-soft-info {
    background-color: rgba(6, 182, 212, 0.1);
    color: #06b6d2;
}

.stat-value {
    font-size: 1.75rem;
    font-weight: 800;
    line-height: 1.2;
    color: #1f2937;
}

.stat-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.pipeline-card {
    border-radius: 1.25rem;
    border: none;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    background: #ffffff;
    overflow: hidden;
}

.pipeline-header {
    background-color: #f8fafc;
    border-bottom: 1px solid #f1f5f9;
    padding: 1rem 1.5rem;
}

.pipeline-item {
    padding: 1.5rem;
    border-right: 1px solid #f3f4f6;
    height: 100%;
}

.pipeline-item:last-child {
    border-right: none;
}

.pipeline-val {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 0.25rem;
}

.pipeline-lab {
    font-size: 0.75rem;
    font-weight: 700;
    color: #9ca3af;
    text-transform: uppercase;
}

/* Mobile Dashboard Adjustments */
@media (max-width: 768px) {
    .dash-header {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 1.5rem;
    }

    .stat-card-premium .card-body {
        padding: 1.25rem;
    }

    .stat-icon-box {
        width: 48px;
        height: 48px;
        font-size: 1.2rem;
    }

    .stat-value {
        font-size: 1.5rem;
    }

    .pipeline-item {
        border-right: none !important;
        border-bottom: 1px solid #f3f4f6;
        padding: 1rem;
    }

    .pipeline-item:last-child {
        border-bottom: none;
    }
}

/* Pipeline Board Styles */
.pipeline-board {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    padding: 1rem 0 2rem 0;
    cursor: default;
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 0, 0, 0.1) transparent;
}

.pipeline-board::-webkit-scrollbar {
    height: 6px;
}

.pipeline-board::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 10px;
}

.pipeline-column {
    flex: 0 0 320px;
    background: rgba(241, 245, 249, 0.5);
    border-radius: 1rem;
    padding: 1.25rem;
    min-height: 70vh;
    border: 1px solid rgba(148, 163, 184, 0.1);
}

.pipeline-column h3 {
    font-size: 1rem;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.pipeline-card {
    background: #ffffff;
    border: 1px solid rgba(148, 163, 184, 0.1);
    border-radius: 0.75rem;
    padding: 1.25rem;
    margin-bottom: 1rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.pipeline-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.08);
}

/* Pipeline Stage Badges */
.stage-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 2rem;
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

.stage-prospect {
    background: #f1f5f9;
    color: #64748b;
}

.stage-interested {
    background: #dbeafe;
    color: #2563eb;
}

.stage-sale {
    background: #fae8ff;
    color: #a855f7;
}

.stage-token {
    background: #fae8ff;
    color: #a855f7;
}

.stage-loan {
    background: #fef3c7;
    color: #d97706;
}

.stage-closed {
    background: #dcfce7;
    color: #16a34a;
}

.pipeline-card h4 {
    font-size: 1rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.75rem;
}

.pipeline-card p {
    font-size: 0.825rem;
    color: #64748b;
    margin-bottom: 0.35rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.card-actions select {
    width: 100%;
    margin-top: 1.25rem;
    padding: 0.6rem;
    font-size: 0.85rem;
    border-radius: 0.5rem;
    border: 1px solid #e2e8f0;
    background-color: #f8fafc;
    font-weight: 600;
    color: #475569;
}

/* Sales Pipeline Page Stats */
.broker-dashboard .stats-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.25rem;
    margin-bottom: 2.5rem;
}

.broker-dashboard .stat-card {
    background: #ffffff;
    border-radius: 1rem;
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(148, 163, 184, 0.1);
    transition: transform 0.2s ease;
}

.broker-dashboard .stat-card:hover {
    transform: translateY(-3px);
}

.broker-dashboard .stat-card h3 {
    font-size: 1.75rem;
    font-weight: 800;
    color: #1256b8;
    margin: 0 0 0.25rem 0;
}

.broker-dashboard .stat-card p {
    font-size: 0.7rem;
    font-weight: 800;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0;
}

@media (max-width: 1200px) {
    .broker-dashboard .stats-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .broker-dashboard .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .broker-dashboard .stats-grid {
        grid-template-columns: 1fr;
    }
}



/* --- Premium Modal Height Constraints --- */
#prospectModal .modal-content,
#documentsModal .modal-content {
    max-height: 60vh;
    display: flex;
    flex-direction: column;
}

#prospectModal .modal-body,
#documentsModal .modal-body {
    padding: 10px;
    overflow-y: auto;
    flex-grow: 1;
}

#prospectModal .modal-body::-webkit-scrollbar,
#documentsModal .modal-body::-webkit-scrollbar {
    width: 4px;
}

#prospectModal .modal-body::-webkit-scrollbar-thumb,
#documentsModal .modal-body::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 10px;
}

/* --- Prospect Buyers Modal Styles --- */

.prospect-buyers-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 0;
    width: 100%;
}

.prospect-buyer-item {
    background: #ffffff;
    border-radius: 12px;
    padding: 10px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    display: grid;
    grid-template-columns: 36px 1fr 32px;
    gap: 10px;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
}

#prospectModal .modal-title {
    font-size: 1.1rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 80%;
}

#prospectModalBody {
    padding: 10px;
    overflow-x: hidden;
}

@media (max-width: 380px) {
    .prospect-buyer-item {
        gap: 6px;
        grid-template-columns: 32px 1fr 30px;
    }

    .pb-avatar {
        width: 32px;
        height: 32px;
        font-size: 0.85rem;
    }
}

.pb-avatar {
    width: 36px;
    height: 36px;
    background: var(--primary-soft);
    color: var(--primary-premium);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 0.9rem;
}

.pb-info {
    min-width: 0;
}

.pb-info h6 {
    font-size: 0.9rem;
    font-weight: 800;
    margin-bottom: 1px;
    color: var(--text-main);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pb-meta {
    font-size: 0.725rem;
    color: var(--text-muted);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 1px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pb-meta i {
    width: 12px;
    font-size: 0.65rem;
    opacity: 0.7;
    flex-shrink: 0;
}

.pb-tagged-at {
    font-size: 0.6rem;
    color: #94a3b8;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.2px;
    margin-top: 2px;
    display: block;
}

.pb-actions {
    display: flex;
    justify-content: flex-end;
}

.pb-actions .btn-action {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    background: #f8fafc;
    border: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
}


.action-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    filter: brightness(0.95);
}

.bg-soft-primary {
    background-color: rgba(99, 102, 241, 0.08) !important;
}

.bg-soft-success {
    background-color: rgba(34, 197, 94, 0.08) !important;
}

.bg-soft-info {
    background-color: rgba(6, 182, 212, 0.08) !important;
}

.bg-soft-warning {
    background-color: rgba(245, 158, 11, 0.08) !important;
}

.bg-soft-danger {
    background-color: rgba(239, 68, 68, 0.08) !important;
}

.bg-soft-secondary {
    background-color: rgba(100, 116, 139, 0.08) !important;
}

.border-soft-success {
    border-color: rgba(34, 197, 94, 0.2) !important;
}

.timeline-item-modern {
    border-color: #e2e8f0 !important;
}

.timeline-dot {
    position: absolute;
    left: -6px;
    top: 5px;
    width: 11px;
    height: 11px;
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 0 0 3px currentColor;
}

.timeline-dot.bg-primary {
    color: rgba(18, 86, 184, 0.2);
}

.timeline-dot.bg-success {
    color: rgba(34, 197, 94, 0.2);
}

.timeline-dot.bg-info {
    color: rgba(6, 182, 212, 0.2);
}

.transition-all {
    transition: all 0.2s ease-in-out;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate__fadeIn {
    animation: fadeIn 0.4s ease-out forwards;
}

.fw-900 {
    font-weight: 900 !important;
}

.no-caret::after {
    display: none !important;
}

.notification-bell {
    transition: all 0.3s ease;
}

.notification-bell i {
    transition: all 0.2s ease;
}

.notification-bell:hover i {
    color: var(--primary-premium) !important;
    transform: rotate(15deg);
}

/* --- Heart Button Styling --- */
.btn-heart {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(4px);
}

.btn-heart:hover {
    transform: scale(1.1);
    color: #ef4444;
    background: #ffffff;
    box-shadow: 0 8px 24px rgba(239, 68, 68, 0.2);
}

.btn-heart.active {
    background: #ef4444;
    color: #ffffff;
    box-shadow: 0 8px 24px rgba(239, 68, 68, 0.3);
}

.btn-heart.active:hover {
    background: #dc2626;
}

.btn-share {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #25d366;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(4px);
    text-decoration: none !important;
}

.hover-primary:hover {
    color: var(--primary-premium) !important;
}

.navbar {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.transition-all {
    transition: all 0.3s ease;
}

.hover-lift {
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease !important;
}

.hover-lift:hover {
    transform: translateY(-10px) !important;
}

.hover-lift-sm {
    transition: transform 0.2s ease, box-shadow 0.2s ease !important;
}

.hover-lift-sm:hover {
    transform: translateY(-4px) !important;
}

.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.bg-soft-primary {
    background-color: rgba(18, 86, 184, 0.08) !important;
}

.bg-soft-success {
    background-color: rgba(16, 185, 129, 0.08) !important;
}

.bg-soft-info {
    background-color: rgba(6, 182, 212, 0.08) !important;
}

.bg-soft-warning {
    background-color: rgba(245, 158, 11, 0.08) !important;
}

.bg-soft-danger {
    background-color: rgba(239, 68, 68, 0.08) !important;
}

.bg-soft-secondary {
    background-color: rgba(100, 116, 139, 0.08) !important;
}

.shadow-premium {
    box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.08) !important;
}

.rounded-5 {
    border-radius: 2rem !important;
}

.rounded-left-pill {
    border-top-left-radius: 50rem !important;
    border-bottom-left-radius: 50rem !important;
}

.rounded-right-pill {
    border-top-right-radius: 50rem !important;
    border-bottom-right-radius: 50rem !important;
}

.input-group-premium .form-control.text-center {
    padding-left: 0.25rem !important;
    padding-right: 0.25rem !important;
    font-size: 0.85rem;
    font-weight: 800;
}

.placeholder-light-opacity::placeholder {
    color: rgba(255, 255, 255, 0.5) !important;
}

.btn-white {
    background: #ffffff !important;
    border: 2px solid rgba(255, 255, 255, 0.3) !important;
    color: #1256b8 !important;
    font-weight: 900 !important;
    letter-spacing: 0.03em;
}

.btn-white:hover {
    background: #f0f6ff !important;
    border-color: rgba(255, 255, 255, 0.5) !important;
    color: #0c3d82 !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15) !important;
}

.input-group-premium {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 50rem;
    padding: 0.25rem 0.5rem;
    transition: all 0.3s ease;
}

.input-group-premium:focus-within {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.1);
}

.input-group-premium .input-group-text {
    background: transparent;
    border: none;
    color: #ffffff;
    opacity: 0.6;
    padding-right: 0.5rem;
    display: flex;
    align-items: center;
}

.input-group-premium .form-control,
.input-group-premium .form-select {
    background: transparent !important;
    border: none !important;
    color: #ffffff !important;
    box-shadow: none !important;
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}

.input-group-premium .card-glass-impact {
    cursor: pointer;
}

/* Utility Classes */
.cursor-pointer {
    cursor: pointer;
}

.fw-800 {
    font-weight: 800 !important;
}

.fw-900 {
    font-weight: 900 !important;
}

/* Custom Scrollbar for dropdowns */
#seller-options-container::-webkit-scrollbar {
    width: 4px;
}

#seller-options-container::-webkit-scrollbar-track {
    background: transparent;
}

#seller-options-container::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 10px;
}

#seller-options-container::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.2);
}

.input-group-premium .form-select {
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23ffffff' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e") !important;
    background-repeat: no-repeat !important;
    background-position: right 0.75rem center !important;
    background-size: 10px 10px !important;
    padding-right: 2rem !important;
}

.input-group-premium .form-control::placeholder {
    color: rgba(255, 255, 255, 0.5) !important;
}

.fw-800 {
    font-weight: 800 !important;
}

@media (min-width: 768px) {
    .border-end-md {
        border-right: 1px solid #f1f5f9 !important;
    }
}

@media (max-width: 991px) {
    .navbar-collapse {
        background: #ffffff;
        border-radius: 1rem;
        padding: 1rem;
        margin-top: 1rem;
        box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    }

    .dropdown-menu {
        box-shadow: none;
        background: rgba(18, 86, 184, 0.02);
        border-radius: 0.75rem;
        padding: 0.5rem;
        margin-top: 0 !important;
    }

    .nav-item {
        margin-bottom: 0.25rem;
    }

    .nav-link {
        padding: 0.75rem 1rem !important;
    }
}

.search-prospect-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 2rem;
    padding: 0.25rem 0.75rem;
    min-width: 200px;
    transition: all 0.2s ease;
}

.search-prospect-wrapper:focus-within {
    border-color: #1256b8;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(18, 86, 184, 0.08);
}

.search-prospect-wrapper i {
    font-size: 0.75rem;
    color: #94a3b8;
    margin-right: 0.5rem;
}

.search-prospect-wrapper input {
    border: none !important;
    background: transparent !important;
    font-size: 0.75rem !important;
    font-weight: 600 !important;
    color: #334155 !important;
    width: 100% !important;
    outline: none !important;
    padding: 0.25rem 0 !important;
    box-shadow: none !important;
}

@media (max-width: 991px) {
    .navbar {
        padding: 0.75rem 0 !important;
        width: 100% !important;
        left: 0 !important;
        right: 0 !important;
    }

    /* Target the user's specific container with the d-flex class */
    .navbar>.container-fliud,
    .navbar>.container-fluid {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
        justify-content: space-between !important;
        width: 100% !important;
        max-width: 100% !important;
        padding-left: 1rem !important;
        padding-right: 1rem !important;
        margin: 0 !important;
    }

    .navbar-brand {
        margin-right: auto !important;
        display: flex !important;
        align-items: center !important;
        white-space: nowrap !important;
        font-size: 1.1rem !important;
    }

    .navbar-toggler {
        margin-left: 1rem !important;
        padding: 0.5rem !important;
        flex-shrink: 0 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    /* Fix Notifications on Mobile */
    .notification-bell~.dropdown-menu {
        position: static !important;
        width: 100% !important;
        max-width: 100% !important;
        transform: none !important;
        background: #f8fafc;
        border: 1px solid #e2e8f0;
        box-shadow: none;
        margin-top: 10px !important;
    }

    .notification-bell~.dropdown-menu .dropdown-item {
        white-space: normal !important;
        word-wrap: break-word !important;
        padding: 1rem !important;
        border-bottom: 1px solid #e2e8f0;
    }
}

/* Fix for navbar cutoff on intermediate screens */
@media (min-width: 992px) and (max-width: 1400px) {
    .navbar-nav .nav-link {
        padding: 0.5rem 0.6rem !important;
        font-size: 0.78rem;
        gap: 0.25rem;
    }

    .main-navbar .container {
        max-width: 98% !important;
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .navbar-brand {
        font-size: 1rem;
    }

    .navbar-brand div {
        width: 28px !important;
        height: 28px !important;
    }
}

/* Property View Premium Overhaul */
.property-detail-header {
    margin-bottom: 2.5rem;
}

.property-title-badge {
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 0.4rem 1rem;
    border-radius: 2rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.property-gallery-item {
    position: relative;
    border-radius: 1.5rem;
    overflow: hidden;
    aspect-ratio: 4/3;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.property-gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.property-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.property-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
}

.property-info-card {
    background: #ffffff;
    padding: 1.5rem 1.25rem;
    border-radius: 1.25rem;
    border: 1px solid #f1f5f9;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
    transition: all 0.3s ease;
}

.property-info-card:hover {
    background: #ffffff;
    border-color: #1256b8;
    transform: translateY(-3px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
}

.price-hero-card {
    background: linear-gradient(135deg, #1256b8 0%, #0b4db5 100%);
    padding: 2.5rem !important;
    border-radius: 2rem !important;
    box-shadow: 0 15px 30px rgba(18, 86, 184, 0.2);
}

.price-hero-card .text-muted {
    color: rgba(255, 255, 255, 0.7) !important;
}

.price-hero-card h2 {
    color: #ffffff !important;
    font-size: 2.5rem;
}

.price-hero-card .icon-box {
    background: rgba(255, 255, 255, 0.15) !important;
    backdrop-filter: blur(5px);
}


.chat-bubble {
    padding: 1rem 1.25rem;
    border-radius: 1.25rem;
    margin-bottom: 1rem;
    max-width: 85%;
    position: relative;
}

.chat-bubble.sent {
    background: #1256b8;
    color: #ffffff;
    margin-left: auto;
    border-bottom-right-radius: 0.25rem;
}

.chat-bubble.received {
    background: #f1f5f9;
    color: #1e293b;
    border-bottom-left-radius: 0.25rem;
}

.pipeline-card {
    border: none;
    background: #ffffff;
    border-radius: 1.25rem;
    padding: 1.25rem;
    margin-bottom: 1rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s;
}

.pipeline-card:hover {
    transform: translateX(5px);
}

/* Premium Form System */
.form-card {
    background: #ffffff;
    border-radius: 2rem;
    border: none;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05);
    padding: 2.5rem;
}

.form-label {
    font-weight: 800;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #64748b;
    margin-bottom: 0.75rem;
}

.form-control,
.form-select {
    padding: 0.85rem 1.25rem;
    border-radius: 1rem;
    border: 1.5px solid #f1f5f9;
    font-weight: 600;
    color: #1e293b;
    background-color: #f8fafc;
    transition: all 0.2s ease;
}

.form-control:focus,
.form-select:focus {
    background-color: #ffffff;
    border-color: #1256b8;
    box-shadow: 0 0 0 4px rgba(18, 86, 184, 0.1);
}

.form-control::placeholder {
    color: #94a3b8;
    font-weight: 500;
}

.image-preview-container {
    width: 100%;
    height: 200px;
    border-radius: 1.5rem;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    overflow: hidden;
    border: 2px dashed #e2e8f0;
}

.image-preview-container img {
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
}

.btn-premium {
    padding: 0.85rem 2rem;
    border-radius: 1rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    transition: all 0.3s ease;
}

.btn-premium:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(18, 86, 184, 0.2);
}

.btn-premium-light {
    background: #ffffff;
    color: #1e293b;
    border: 1.5px solid #e2e8f0;
}

.btn-premium-light:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
}

/* List View System (Buyers/Sellers) */
.contact-card {
    background: #ffffff;
    border-radius: 1.5rem;
    border: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    padding: 1.5rem;
    height: 100%;
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.avatar-lg {
    width: 54px;
    height: 54px;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.1rem;
    color: #ffffff;
    text-transform: uppercase;
}

.contact-info h6 {
    margin-bottom: 0.25rem;
    letter-spacing: -0.01em;
}

.contact-meta {
    font-size: 0.7rem;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.list-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid #f8fafc;
}

.search-bar-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.search-bar-wrapper i {
    position: absolute;
    left: 1.25rem;
    z-index: 10;
    color: #94a3b8;
}

.search-bar-wrapper input {
    padding-left: 3.25rem !important;
    padding-right: 6rem !important;
    height: 3.8rem;
    border-radius: 1.25rem;
    border-color: #f1f5f9;
    background: #ffffff;
    width: 100%;
}

.search-bar-wrapper button {
    position: absolute;
    right: 0.5rem;
    z-index: 10;
}

/* Color variations for avatars */
.bg-av-1 {
    background-image: linear-gradient(135deg, #6366f1 0%, #4338ca 100%);
}

.bg-av-2 {
    background-image: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.bg-av-3 {
    background-image: linear-gradient(135deg, #1256b8 0%, #0b4db5 100%);
}

.bg-av-4 {
    background-image: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

.bg-av-5 {
    background-image: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
}

/* Profile System */
.profile-header-card {
    background: #ffffff;
    border-radius: 2rem;
    overflow: hidden;
    position: relative;
}

.profile-cover {
    height: 120px;
    background: linear-gradient(135deg, #0655a4 0%, #343a40 100%);
    position: relative;
}

.profile-avatar-wrapper {
    position: relative;
    margin-top: -60px;
    padding: 0 2.5rem;
    display: flex;
    align-items: flex-end;
    gap: 1.5rem;
}

.profile-avatar-lg {
    width: 120px;
    height: 120px;
    border-radius: 2.5rem;
    border: 6px solid #ffffff;
    object-fit: cover;
    background: #f1f5f9;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
}

.profile-name-area {
    padding-bottom: 0.8rem;
    color: #1e293b;
}

.profile-name-area h2 {
    text-shadow: 0 2px 4px rgba(255, 255, 255, 0.5);
}

.profile-nav-tabs {
    border: none;
    padding: 0 2rem;
    gap: 2rem;
}

.profile-nav-tabs .nav-link {
    border: none;
    padding: 1.5rem 0.5rem;
    font-weight: 800;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #64748b;
    position: relative;
}

.profile-nav-tabs .nav-link.active {
    color: #1256b8;
    background: transparent;
}

.profile-nav-tabs .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: #1256b8;
    border-radius: 4px 4px 0 0;
}

/* --- Mobile Responsiveness --- */
@media (max-width: 768px) {
    .profile-avatar-wrapper {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 0 1.5rem;
        margin-top: -50px;
        gap: 1rem;
    }

    .profile-avatar-lg {
        width: 100px;
        height: 100px;
        border-radius: 1.5rem;
        border-width: 4px;
    }

    .profile-header-card {
        border-radius: 0 0 1.5rem 1.5rem;
        margin-left: -1rem;
        margin-right: -1rem;
        margin-top: -1rem;
    }

    .profile-cover {
        height: 100px;
    }

    .profile-nav-tabs {
        padding: 0 1rem;
        gap: 1rem;
    }

    .profile-nav-tabs .nav-link {
        padding: 1rem 0.2rem;
        font-size: 0.75rem;
    }

    .contact-card {
        padding: 1.5rem;
    }

    .search-bar-wrapper input {
        padding-right: 5rem !important;
        font-size: 0.9rem;
    }

    .profile-nav-tabs {
        padding: 0 1rem;
        gap: 1rem;
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .profile-nav-tabs .nav-link {
        white-space: nowrap;
        padding: 1rem 0.25rem;
        font-size: 0.75rem;
    }
}

@media (max-width: 576px) {

    .h3,
    h1 {
        font-size: 1.6rem !important;
    }

    .btn-premium {
        width: 100%;
        justify-content: center;
    }

    .search-bar-wrapper input {
        padding-right: 4.5rem !important;
    }

    .search-bar-wrapper button {
        padding-left: 0.75rem !important;
        padding-right: 0.75rem !important;
        font-size: 0.75rem;
    }

    .list-actions {
        flex-direction: column;
    }
}

/* --- Premium Navbar System --- */
.main-navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding: 0.75rem 0;
}

.brand-text {
    font-family: 'Poppins', sans-serif;
    letter-spacing: -0.02em;
    color: #1e293b;
}

.main-navbar .nav-link {
    color: #64748b;
    font-weight: 700;
    font-size: 0.85rem;
    padding: 0.75rem 1.25rem !important;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.main-navbar .nav-link:hover,
.main-navbar .nav-link.active {
    color: #1256b8;
}

/* Mobile Toggle Customization */
.menu-toggle-btn {
    width: 40px;
    height: 40px;
    padding: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4px;
}

.toggler-icon {
    display: block;
    width: 22px;
    height: 2px;
    background: #1e293b;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Mobile Menu Specifics */
@media (max-width: 991.98px) {
    .navbar-collapse {
        flex-basis: 100%;
        flex-grow: 1;
        background: #ffffff;
        border-radius: 1.5rem;
        margin: 1rem 0;
        padding: 1.5rem;
        box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
        border: 1px solid rgba(0, 0, 0, 0.05);
        width: 100%;
    }

    .main-navbar .nav-link {
        padding: 0.85rem 1.25rem !important;
        border-radius: 0.75rem;
        margin-bottom: 0.15rem;
        font-size: 0.95rem;
        width: 100%;
    }

    .main-navbar .nav-link.active {
        background: #f1f5f9;
        color: #1256b8;
    }

    .dropdown-menu {
        border: none;
        box-shadow: none;
        padding-left: 2.5rem;
        background: #f8fafc;
        border-radius: 0.75rem;
        margin: 0.5rem 0;
    }

    .dropdown-item {
        padding: 0.75rem 1rem;
        font-weight: 600;
        font-size: 0.8rem;
    }
}

/* --- Chat System Redesign --- */
.chat-layout {
    display: flex;
    height: calc(100vh - 120px);
    background: #ffffff;
    border-radius: 2rem;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
}

.chat-sidebar {
    width: 350px;
    border-right: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    background: #f8fafc;
}

.chat-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    background: #ffffff;
}

.chat-list-container {
    flex-grow: 1;
    overflow-y: auto;
}

.chat-item {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    gap: 1rem;
    align-items: center;
    text-decoration: none !important;
}

.chat-item:hover {
    background: #f1f5f9;
}

.chat-item.active {
    background: #ffffff;
    border-left: 4px solid #1256b8;
}

.chat-bubble-container {
    display: flex;
    flex-direction: column;
    max-width: 75%;
}

.chat-bubble {
    padding: 0.85rem 1.25rem;
    border-radius: 1.25rem;
    position: relative;
    font-size: 0.95rem;
    line-height: 1.5;
    word-break: break-word;
}

.bubble-received {
    align-self: flex-start;
    background: #f1f5f9;
    color: #1e293b;
    border-bottom-left-radius: 0.25rem;
}

.bubble-sent {
    align-self: flex-end;
    background: #1256b8;
    color: #ffffff;
    border-bottom-right-radius: 0.25rem;
}

.chat-messages-viewport {
    flex-grow: 1;
    padding: 2rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    background-image: radial-gradient(#e2e8f0 1px, transparent 1px);
    background-size: 20px 20px;
}

.chat-composer {
    padding: 1.5rem;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.chat-composer-inner {
    background: #f1f5f9;
    border-radius: 1.5rem;
    padding: 0.5rem;
    display: flex;
    align-items: flex-end;
    gap: 0.5rem;
}

.chat-composer textarea {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0.5rem 1rem;
    resize: none;
    max-height: 150px;
    font-size: 0.95rem;
}

@media (max-width: 992px) {
    .chat-layout {
        height: calc(100vh - 100px);
        border-radius: 0;
    }

    .chat-sidebar {
        width: 100%;
    }

    .chat-active-view .chat-sidebar {
        display: none;
    }

    .chat-active-view .chat-content {
        display: flex;
    }

    .chat-content {
        display: none;
    }
}

/* --- Premium Dashboard Enhancements --- */
.dashboard-premium {
    padding-bottom: 2rem;
}

.bg-gradient-primary {
    background: linear-gradient(135deg, #1256b8 0%, #0c3d82 100%);
}

.card-glass-impact {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0, 0, 0, 0.05) !important;
    backdrop-filter: blur(10px);
    cursor: pointer;
}

.card-glass-impact:hover {
    transform: translateY(-8px);
    box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.15) !important;
}

.icon-blur-box {
    width: 60px;
    height: 60px;
    background: rgba(18, 86, 184, 0.08);
    border-radius: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.card-glass-impact:hover .icon-blur-box {
    transform: scale(1.1) rotate(5deg);
}

.bg-gradient-primary .icon-blur-box {
    background: rgba(255, 255, 255, 0.15);
}

.animate-pulse {
    animation: pulse 2.5s infinite;
}

@keyframes pulse {
    0% {
        opacity: 0.4;
        transform: scale(0.95);
    }

    50% {
        opacity: 1;
        transform: scale(1.05);
    }

    100% {
        opacity: 0.4;
        transform: scale(0.95);
    }
}

.chart-center-data {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 10;
}

.dot-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.timeline-premium {
    position: relative;
    padding-left: 0.5rem;
}

.timeline-item-premium {
    position: relative;
    transition: all 0.2s ease;
}

.timeline-item-premium:hover {
    transform: translateX(5px);
}

.timeline-icon-box {
    width: 36px;
    height: 36px;
    border-radius: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.card-subtitle-small {
    font-size: 0.65rem;
    font-weight: 900;
    color: #1256b8;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 0.35rem;
    display: block;
    opacity: 0.7;
}

.bg-light-soft {
    background-color: #f8fafc !important;
}

.rounded-4 {
    border-radius: 1.25rem !important;
}

.fw-900 {
    font-weight: 900 !important;
}

/* ── Property Cards (Imported from index.php) ──────────────────────────────── */
.prop-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.08), 0 4px 10px -5px rgba(0, 0, 0, 0.04);
    padding: 1.25rem 1.25rem 1rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.prop-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.12), 0 8px 16px -8px rgba(0, 0, 0, 0.06);
}

.prop-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: .6rem;
}

.prop-card-meta {
    display: flex;
    align-items: center;
    gap: .5rem;
    flex-wrap: wrap;
}

.prop-lt-pill {
    font-size: 11px;
    font-weight: 600;
    padding: 2px 10px;
    border-radius: 20px;
    letter-spacing: .3px;
}

.prop-type-pill {
    font-size: 11px;
    font-weight: 600;
    padding: 2px 10px;
    border-radius: 20px;
    letter-spacing: .3px;
    color: #fff;
}

.lt-resale {
    background: #f0fdf4 !important;
    color: #166534 !important;
}

.lt-rental {
    background: #eff6ff !important;
    color: #1d4ed8 !important;
}

.lt-launch {
    background: #fef3c7 !important;
    color: #92400e !important;
}

.lt-fresh {
    background: #fdf4ff !important;
    color: #7e22ce !important;
}

.prop-status-dot {
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    padding: 5px 12px;
    border-radius: 10px;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.prop-status-dot:hover {
    background: #e2e8f0;
    transform: translateY(-1px);
}

.prop-checkbox {
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.prop-card-title {
    font-size: .91rem;
    font-weight: 600;
    color: #1e293b;
    line-height: 1.4;
    margin: 0 0 .4rem;
}

.prop-card-location {
    font-size: .8rem;
    color: #64748b;
    margin-bottom: .9rem;
    display: flex;
    align-items: center;
    gap: .35rem;
}

/* Stats row */
.prop-stats {
    display: flex;
    gap: 1.25rem;
    padding-bottom: .85rem;
    margin-bottom: .85rem;
    border-bottom: 1px solid #f1f5f9;
}

.prop-stat-value {
    font-size: 1.05rem;
    font-weight: 700;
    color: #0f172a;
}

.prop-stat-unit {
    font-size: .72rem;
    color: #94a3b8;
}

.prop-stat-label {
    font-size: .68rem;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: .5px;
    margin-top: 1px;
}

.prop-stat-id {
    font-size: .78rem;
    font-weight: 600;
    color: #64748b;
    font-family: monospace;
}

/* Status form */
.prop-status-form {
    display: flex;
    gap: .5rem;
    margin-bottom: .75rem;
}

.prop-status-select {
    font-size: .82rem;
    border-radius: 8px;
    border-color: #e2e8f0;
    color: #334155;
}

.prop-update-btn {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #475569;
    font-size: .82rem;
    border-radius: 8px;
    padding: 0 .85rem;
    white-space: nowrap;
    cursor: pointer;
    transition: background .15s;
}

.prop-update-btn:hover {
    background: #e2e8f0;
}

/* Action buttons */
.prop-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
    margin-top: auto;
}

.prop-btn-primary {
    background: #1e293b;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: .82rem;
    padding: .35rem .85rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    flex-grow: 1;
    justify-content: center;
    transition: background .15s;
}

.prop-btn-primary:hover {
    background: #0f172a;
    color: #fff;
}

.prop-btn-icon {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #475569;
    border-radius: 8px;
    font-size: .82rem;
    padding: .35rem .6rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    transition: background .15s;
}

.prop-btn-icon:hover {
    background: #e2e8f0;
    color: #1e293b;
}

/* ── Pipeline Board (Imported from pipeline.php) ──────────────────────────────── */
.pipeline-board-container {
    margin: 0 -1.5rem;
    padding: 0 1.5rem;
}

.pipeline-board {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    cursor: default;
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 0, 0, 0.05) transparent;
}

.pipeline-board::-webkit-scrollbar {
    height: 4px;
}

.pipeline-board::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 10px;
}

.pipeline-column {
    flex: 0 0 300px;
    background: rgba(241, 245, 249, 0.4);
    border-radius: 1.25rem;
    padding: 1.25rem;
    min-height: 60vh;
    border: 1px solid rgba(148, 163, 184, 0.05);
}

.column-header h3 {
    font-size: 0.85rem;
    font-weight: 800;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.pipeline-card {
    background: #ffffff;
    border: 1px solid rgba(148, 163, 184, 0.1);
    border-radius: 1rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.04);
    transition: all 0.25s ease;
}

.pipeline-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.08);
}

.stage-badge {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    border-radius: 2rem;
    font-size: 0.55rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.stage-prospect {
    background: #f1f5f9;
    color: #64748b;
}

.stage-interested {
    background: #dbeafe;
    color: #2563eb;
}

.stage-sale {
    background: #f3e8ff;
    color: #9333ea;
}

.stage-loan {
    background: #fef3c7;
    color: #d97706;
}

.stage-closed {
    background: #dcfce7;
    color: #16a34a;
}

.stage-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

/* ── Broker Settings (Imported from settings.php) ──────────────────────────────── */
.settings-toggle-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: .85rem 1rem;
    border-radius: 10px;
    border: 1.5px solid #e2e8f0;
    background: #f8fafc;
    transition: all .2s;
}

.settings-toggle-row.active {
    border-color: #3b82f6;
    background: #eff6ff;
}

.settings-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: .85rem 1rem;
    border-radius: 10px;
    border: 1.5px solid #e2e8f0;
    background: #f8fafc;
    transition: all .2s;
    margin-bottom: 0;
}

.settings-section-header.active {
    border-color: #3b82f6;
    background: #eff6ff;
}

.settings-checklist {
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
    max-height: 220px;
    overflow-y: auto;
}

.settings-check-item {
    display: flex;
    align-items: center;
    gap: .6rem;
    padding: .5rem .85rem;
    border-bottom: 1px solid #f1f5f9;
    cursor: pointer;
    transition: background .15s;
}

.settings-check-item:last-child {
    border-bottom: none;
}

.settings-check-item:hover {
    background: #f8fafc;
}

.settings-check-item.selected {
    background: #eff6ff;
    border-color: #bfdbfe;
}

.settings-check-item.selected .form-check-label {
    color: #1d4ed8;
    font-weight: 600;
}

.settings-field-card {
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    background: #fff;
    transition: all .2s;
    position: relative;
}

.settings-field-card:hover {
    border-color: #93c5fd;
    background: #f8fafc;
}

.settings-field-card.selected {
    border-color: #3b82f6;
    background: #eff6ff;
}

.settings-field-card.sensitive {
    border-color: #fbbf24;
}

.settings-field-card.sensitive.selected {
    border-color: #ef4444;
    background: #fff1f2;
}

.settings-field-label {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .85rem 1rem;
    cursor: pointer;
    width: 100%;
    margin: 0;
}

.settings-field-input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.settings-field-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .9rem;
    color: #64748b;
    flex-shrink: 0;
    transition: all .2s;
}

.settings-field-card.selected .settings-field-icon {
    background: #3b82f6;
    color: #fff;
}

.settings-field-card.sensitive .settings-field-icon {
    background: #fef3c7;
    color: #92400e;
}

.settings-field-card.sensitive.selected .settings-field-icon {
    background: #ef4444;
    color: #fff;
}

.settings-field-name {
    font-size: .88rem;
    font-weight: 600;
    color: #1e293b;
    display: block;
}

.settings-field-desc {
    font-size: .75rem;
    color: #94a3b8;
    display: block;
}

.settings-field-card.selected .settings-field-name {
    color: #1d4ed8;
}

.settings-field-card.sensitive.selected .settings-field-name {
    color: #b91c1c;
}

.settings-field-badge {
    font-size: .7rem;
    background: #fef3c7;
    color: #92400e;
    padding: 1px 7px;
    border-radius: 20px;
    font-weight: 600;
    margin-top: 2px;
    display: inline-block;
}

.settings-field-check {
    color: #cbd5e1;
    transition: color .2s;
    flex-shrink: 0;
    font-size: 1.1rem;
}

.settings-field-card.selected .settings-field-check {
    color: #3b82f6;
}

.settings-field-card.sensitive.selected .settings-field-check {
    color: #ef4444;
}

.btn-select-all {
    background: none;
    border: 1px solid #cbd5e1;
    color: #475569;
    font-size: .75rem;
    font-weight: 600;
    padding: 2px 10px;
    border-radius: 20px;
    cursor: pointer;
    transition: all .15s;
    white-space: nowrap;
}

.btn-select-all:hover,
.btn-select-all.all-selected {
    background: #eff6ff;
    border-color: #3b82f6;
    color: #1d4ed8;
}

/* ── Token Modal (Imported from token_modal.php) ──────────────────────────────── */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 1rem;
}

.modal-card {
    background: #ffffff;
    border-radius: 1.5rem;
    width: 100%;
    max-width: 550px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-header-token {
    background: linear-gradient(135deg, #1256b8 0%, #0c3d82 100%);
    padding: 2rem;
    color: #ffffff;
    text-align: center;
}

.modal-header-token h2 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.025em;
}

.modal-body-token {
    padding: 2rem;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
    background: #f8fafc;
    padding: 1.25rem;
    border-radius: 1rem;
    margin-bottom: 2rem;
    border: 1px solid #e2e8f0;
}

.info-item label {
    display: block;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #64748b;
    margin-bottom: 0.25rem;
}

.info-item span {
    display: block;
    font-size: 1rem;
    font-weight: 700;
    color: #0f172a;
}

.form-group label {
    font-size: 0.9rem;
    font-weight: 700;
    color: #334155;
    margin-bottom: 0.5rem;
    display: block;
}

.btn-advance {
    background: #1256b8;
    color: white;
    border: none;
    padding: 0.85rem 1.5rem;
    width: 100%;
    border-radius: 0.85rem;
    font-weight: 800;
    font-size: 1rem;
    box-shadow: 0 4px 6px -1px rgba(18, 86, 184, 0.2);
    transition: all 0.2s ease;
    margin-top: 1rem;
}

.btn-advance:hover {
    background: #0b4db5;
    transform: translateY(-1px);
    box-shadow: 0 10px 15px -3px rgba(18, 86, 184, 0.3);
}

.btn-cancel {
    display: block;
    text-align: center;
    margin-top: 1.25rem;
    color: #64748b;
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none;
    transition: color 0.2s ease;
}

.btn-cancel:hover {
    color: #1e293b;
    text-decoration: underline;
}

.price-text {
    color: #1256b8 !important;
}

/* ── Buyer View (Imported from view_buyer.php) ──────────────────────────────── */
.shadow-sm-hover:hover {
    box-shadow: 0 .125rem .25rem rgba(0, 0, 0, .075) !important;
}

/* ── Buyer Registration (Imported from register.php) ────────────────────────── */
.buyer-form-card {
    max-width: 980px;
    margin: 0 auto;
}

.buyer-form-card .card {
    border: none;
    border-radius: 1rem;
}

.buyer-form-card .section-divider {
    height: 1px;
    background: #e9ecef;
    margin: 1.5rem 0;
}

.buyer-form-card .form-label {
    font-weight: 600;
}

.buyer-form-card .input-group-text {
    width: 3.2rem;
    justify-content: center;
    background: #f8f9fa;
    border-right: 0;
    color: #6c757d;
}

.buyer-form-card .input-group-text .bi {
    color: #6c757d;
}

.buyer-form-card .form-control,
.buyer-form-card .form-select {
    border-left: 0;
    border-radius: 0 0.5rem 0.5rem 0;
}

.buyer-form-card .form-control::placeholder,
.buyer-form-card .form-select::placeholder,
.buyer-form-card textarea::placeholder {
    color: #ced4da;
    opacity: 1;
}

.buyer-form-card .form-control.is-invalid,
.buyer-form-card .form-select.is-invalid {
    box-shadow: none;
}

.buyer-form-card .btn-group.d-flex {
    width: 100%;
    flex-direction: column;
    gap: 0.5rem;
}

.buyer-form-card .btn-group.d-flex .btn {
    width: 100%;
    min-width: 0;
    text-align: center;
    padding: 0.75rem 0.8rem;
    border-radius: 0.5rem;
    border-width: 1px;
}

.buyer-form-card .btn-group.d-flex .btn-check:checked+.btn,
.buyer-form-card .btn-group.d-flex .btn:focus {
    background-color: #495057;
    color: #fff;
    border-color: #495057;
}

.buyer-form-card .info-badge {
    font-size: 0.85rem;
    letter-spacing: 0.04em;
}

/* ── Change Password (Imported from change-password.php) ────────────────────── */
.input-group-premium.bg-light-soft {
    background-color: #f8fafc !important;
    border: 1px solid #eef2f6 !important;
}

.input-group-premium.bg-light-soft:focus-within {
    background-color: #ffffff !important;
    border-color: #f59e0b !important;
    box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.08) !important;
}

.input-group-premium.bg-light-soft .form-control {
    color: #1e293b !important;
}

.toggle-pw {
    text-decoration: none !important;
}

/* ── My Interests (Imported from my-interests.php) ──────────────────────────── */
.bg-soft-danger {
    background-color: rgba(239, 68, 68, 0.08) !important;
    color: #dc2626 !important;
}

.bg-soft-warning {
    background-color: rgba(245, 158, 11, 0.08) !important;
    color: #d97706 !important;
}

/* ── Client Profile (Imported from profile.php) ────────────────────────────── */
.op-6 {
    opacity: 0.6;
}

.input-group-premium.bg-light-soft {
    background-color: #f8fafc !important;
    border: 1px solid #eef2f6 !important;
}

.input-group-premium.bg-light-soft:focus-within {
    background-color: #ffffff !important;
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 0 4px rgba(18, 86, 184, 0.05) !important;
}

.input-group-premium.bg-light-soft .form-control {
    color: #1e293b !important;
}

/* ── Client Requirements (Imported from requirements.php) ────────────────── */
.btn-soft-primary {
    background: rgba(18, 86, 184, .08);
    color: #1256b8;
    border: none;
}

.btn-soft-primary:hover {
    background: rgba(18, 86, 184, .16);
    color: #0c3d82;
}

.btn-soft-danger {
    background: rgba(239, 68, 68, .08);
    color: #dc2626;
    border: none;
}

.btn-soft-danger:hover {
    background: rgba(239, 68, 68, .16);
    color: #991b1b;
}

.input-group-premium.bg-light-soft .form-select {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%231256b8' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e") !important;
}

/* ── Client View Property (Imported from view-property.php) ────────────────── */
.border-light-premium {
    border: 2px solid #f1f5f9;
}

.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-clamp: 3;
}

/* ── Prospect Buyers (Imported from prospect_buyers.php) ────────────────── */
.no-scrollbar::-webkit-scrollbar {
    display: none;
}

.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.stage-token-rcv {
    background-color: #a855f7;
}

.stage-sale-initiated {
    background-color: #a855f7;
}

.stage-loan-processing {
    background-color: #f59e0b;
}

.stage-deal-cancelled {
    background-color: #ef4444;
}

.prospect-list::-webkit-scrollbar {
    width: 4px;
}

.prospect-list::-webkit-scrollbar-thumb {
    background: #e2e8f0;
    border-radius: 10px;
}






/* --- Bulk Actions & Sharing Section --- */
.bulk-actions-card {
    border-radius: 1.5rem !important;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid rgba(18, 86, 184, 0.05) !important;
}

.bulk-actions-card .card-header {
    background: #ffffff !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.03) !important;
    padding: 1.25rem 1.5rem !important;
}

.bulk-actions-card .card-header h6 {
    font-weight: 800;
    font-size: 1rem;
    color: var(--primary-premium);
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.bulk-actions-card .form-label {
    font-size: 0.75rem;
    /* Increased from 0.65rem */
    font-weight: 800;
    letter-spacing: 0.05em;
    color: #64748b !important;
    margin-bottom: 0.75rem !important;
}

/* --- High-Fidelity Bulk Actions --- */
.bulk-actions-card {
    border-radius: 1.5rem !important;
    background: #ffffff;
    border: 1px solid #eef2f6 !important;
    box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.05) !important;
}

.bulk-actions-card .card-header {
    background: #f8fafc !important;
    padding: 1.25rem 1.5rem !important;
    border-bottom: 1px solid #eef2f6 !important;
}

.selection-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 1rem;
    color: #64748b;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.selection-header i {
    color: var(--primary-premium);
    font-size: 0.9rem;
}

.selection-list-wrapper {
    background: #ffffff;
    border: 1.5px solid #f1f5f9;
    border-radius: 1rem;
    transition: all 0.2s ease;
}

.selection-list-wrapper:hover {
    border-color: #cbd5e1;
}

.selection-list-container.unified-list {
    height: 320px;
    overflow-y: auto;
    padding: 10px;
    scrollbar-width: none;
}

.selection-list-container.unified-list::-webkit-scrollbar {
    display: none;
}

.list-category-label {
    background: #f1f5f9;
    color: #475569;
    font-size: 0.65rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 6px 12px;
    border-radius: 6px;
    margin: 10px 0 6px 0;
    display: flex;
    align-items: center;
}

.selection-item {
    margin-bottom: 2px;
}

.custom-check {
    position: relative;
    display: flex;
    align-items: center;
    padding: 10px 12px;
    border-radius: 0.75rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.custom-check:hover {
    background: #f8fafc;
}

.custom-check input[type="checkbox"] {
    appearance: none;
    width: 18px;
    height: 18px;
    border: 2px solid #cbd5e1;
    border-radius: 5px;
    background: #fff;
    cursor: pointer;
    position: relative;
    margin-right: 12px;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.custom-check input[type="checkbox"]:checked {
    background: var(--primary-premium);
    border-color: var(--primary-premium);
}

.custom-check input[type="checkbox"]:checked::after {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: white;
    font-size: 10px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.custom-check label {
    font-size: 0.85rem;
    font-weight: 700;
    color: #334155;
    cursor: pointer;
    user-select: none;
    line-height: 1;
}

.custom-check:has(input:checked) {
    background: var(--primary-soft);
}

.custom-check:has(input:checked) label {
    color: var(--primary-premium);
}

/* Action Buttons */
.btn-bulk-execute {
    background: #1256b8 !important;
    color: #ffffff !important;
    border: none;
    padding: 1rem !important;
    border-radius: 1rem;
    font-weight: 800;
    font-size: 0.8rem;
    letter-spacing: 0.05em;
    box-shadow: 0 10px 20px -5px rgba(18, 86, 184, 0.3);
    transition: all 0.3s ease;
}

.btn-bulk-execute:hover {
    background: #0d428a !important;
    /* Slightly darker for contrast */
    color: #ffffff !important;
    transform: translateY(-3px);
    box-shadow: 0 15px 25px -5px rgba(18, 86, 184, 0.4);
}

/* --- Broker Settings Page --- */
.settings-toggle-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    background: #ffffff;
    border: 1px solid #f1f5f9;
    border-radius: 1.25rem;
    transition: all 0.3s ease;
    margin-bottom: 1rem;
}

.settings-toggle-row.active {
    background: var(--primary-soft);
    border-color: var(--primary-premium);
}

.settings-checklist {
    background: #f8fafc;
    border: 1.5px solid #f1f5f9;
    border-radius: 1rem;
    height: 180px;
    overflow-y: auto;
    padding: 0.75rem;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 transparent;
}

.settings-check-item {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    border-radius: 0.75rem;
    background: #ffffff;
    margin-bottom: 0.5rem;
    border: 1px solid transparent;
    transition: all 0.2s ease;
    cursor: pointer;
}

.settings-check-item:hover {
    background: #f1f5f9;
}

.settings-check-item.selected {
    background: var(--primary-soft);
    border-color: var(--primary-premium);
    color: var(--primary-premium);
    font-weight: 700;
}

.btn-select-all {
    background: transparent;
    border: none;
    color: var(--primary-premium);
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0;
    transition: opacity 0.2s;
}

.btn-select-all:hover {
    text-decoration: underline;
    opacity: 0.8;
}

.settings-field-card {
    position: relative;
    background: #ffffff;
    border: 2px solid #f1f5f9;
    border-radius: 1.25rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
}

.settings-field-card:hover {
    border-color: #e2e8f0;
    transform: translateY(-3px);
    box-shadow: 0 12px 20px -10px rgba(0, 0, 0, 0.08);
}

.settings-field-card.selected {
    border-color: var(--primary-premium);
    background: var(--primary-soft);
}

.settings-field-card.sensitive {
    border-left: 4px solid #ef4444;
}

.settings-field-input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.settings-field-label {
    display: flex;
    align-items: center;
    padding: 1.25rem;
    cursor: pointer;
    margin-bottom: 0;
    width: 100%;
}

.settings-field-icon {
    width: 40px;
    height: 40px;
    background: #f1f5f9;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    color: #64748b;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.settings-field-card.selected .settings-field-icon {
    background: var(--primary-premium);
    color: #ffffff;
}

.settings-field-name {
    display: block;
    font-weight: 800;
    font-size: 0.95rem;
    color: #334155;
    margin-bottom: 2px;
}

.settings-field-desc {
    display: block;
    font-size: 0.75rem;
    color: #64748b;
    line-height: 1.3;
}

.settings-field-badge {
    display: inline-block;
    font-size: 0.6rem;
    font-weight: 900;
    text-transform: uppercase;
    color: #ef4444;
    background: #fee2e2;
    padding: 2px 6px;
    border-radius: 4px;
    margin-top: 4px;
}

.settings-field-check {
    color: #cbd5e1;
    font-size: 1.25rem;
    transition: all 0.3s ease;
    opacity: 0.3;
}

.settings-field-card.selected .settings-field-check {
    color: var(--primary-premium);
    opacity: 1;
}

.settings-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem;
    background: #f8fafc;
    border: 1px solid #eef2f6;
    border-radius: 1rem;
    margin-top: 2rem;
}

.settings-section-header.active {
    background: #ffffff;
    border-color: var(--primary-premium);
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

#fullDetailsFields {
    background: #ffffff;
    border: 1px solid var(--primary-premium);
    border-top: none;
    border-bottom-left-radius: 1rem;
    border-bottom-right-radius: 1rem;
    padding: 0 1.25rem 1.25rem 1.25rem;
    box-shadow: inset 0 10px 20px -10px rgba(18, 86, 184, 0.05);
}

@media (max-width: 768px) {
    .selection-list-container {
        height: 160px;
    }

    .settings-checklist {
        height: 140px;
    }
}

/* Property Editor Premium Styles */
.edit-container {
    padding-top: 1.5rem;
    padding-bottom: 5rem;
}

.form-card-premium {
    background: #ffffff;
    border-radius: 2rem;
    border: none;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.05);
    padding: 2.5rem;
    margin-bottom: 2rem;
}

.property-edit-preview {
    width: 100%;
    aspect-ratio: 4/3;
    border-radius: 1.25rem;
    overflow: hidden;
    margin-bottom: 1.25rem;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    background: #f8fafc;
    border: 2px solid #f1f5f9;
}

.property-edit-preview img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

@media (max-width: 768px) {
    .edit-container {
        padding-left: 0.25rem !important;
        padding-right: 0.25rem !important;
        padding-top: 0.5rem !important;
    }

    .form-card-premium {
        padding: 1.25rem 0.75rem !important;
        border-radius: 1.25rem !important;
        margin-bottom: 1rem;
    }

    .property-edit-preview {
        aspect-ratio: 1/1 !important;
        max-width: 180px;
        margin: 0 auto 1rem auto;
    }

    .edit-container h1 {
        font-size: 1.25rem !important;
        margin-bottom: 0.25rem !important;
    }

    .edit-container p {
        font-size: 0.8rem !important;
    }

    .edit-container .btn-light {
        padding: 0.35rem 0.75rem !important;
        font-size: 0.6rem !important;
        white-space: nowrap;
        /* Prevent wrapping */
    }

    .edit-container .badge {
        font-size: 0.55rem !important;
        padding: 0.35rem 0.6rem !important;
    }
}

/* --- Styles from broker-signup.php --- */
/* Mobile-Specific Native App Styling */


.input-group,
.form-control {
    background: #f8fafc !important;
    border-radius: 12px !important;
    border: 1px solid #e2e8f0 !important;
    padding: 10px 15px !important;
}

.btn-primary {
    border-radius: 12px !important;
    padding: 14px !important;
    background: #1e293b !important;
    border: none !important;
}

h5.section-title {
    font-size: 0.8rem;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 800;
    margin-top: 20px;
    padding-left: 5px;
}

@media (min-width: 769px) {
    .broker-header {
        display: none;
    }

    .auth-page {
        padding-top: 30px;
    }
}

/* --- Styles from client-dashboard.php --- */
.bg-soft-warning {
    background-color: rgba(245, 158, 11, .08) !important;
}

/* --- Styles from client-login.php --- */
/* Mobile-Specific Native App Styling */


.input-group {
    background: #f1f5f9 !important;
    border-radius: 12px !important;
    overflow: hidden;
    border: 1px solid #e2e8f0 !important;
    transition: all 0.2s ease;
}

.input-group:focus-within {
    border-color: #002d62 !important;
    box-shadow: 0 0 0 4px rgba(0, 45, 98, 0.05);
    background: #ffffff !important;
}

.input-group-text {
    background: transparent !important;
    border: none !important;
    color: #64748b !important;
}

.form-control {
    background: transparent !important;
    border: none !important;
    font-size: 16px !important;
    /* Prevents iOS/Android auto-zoom */
    padding: 12px 0 !important;
}

.btn-primary {
    border-radius: 12px !important;
    padding: 14px !important;
    font-weight: 700 !important;
    letter-spacing: 0.5px;
    background: #002d62 !important;
    border: none !important;
    box-shadow: 0 4px 12px rgba(0, 45, 98, 0.2) !important;
}

.btn-outline-light {
    border-radius: 12px !important;
    border: 1px solid #e2e8f0 !important;
    padding: 12px !important;
}

.brand-logo-section {
    padding: 30px 0 15px 0;
    background: linear-gradient(135deg, #002d62 0%, #004080 100%);
    border-radius: 0 0 30px 30px;
    margin-bottom: 20px;
    color: white;
    text-align: center;
}

.brand-logo-section i {
    color: #ffffff !important;
    opacity: 0.9;
}

.brand-logo-section h1 {
    color: #ffffff !important;
}

.brand-logo-section p {
    color: rgba(255, 255, 255, 0.7) !important;
}

/* Desktop Adjustments */
@media (min-width: 769px) {
    .brand-logo-section {
        display: none;
    }

    .auth-page {
        padding-top: 50px;
    }
}

/* --- Styles from client-signup.php --- */
/* Mobile-Specific Native App Styling */


.input-group,
.form-control {
    background: #f1f5f9 !important;
    border-radius: 12px !important;
    border: 1px solid #e2e8f0 !important;
}

.btn-primary {
    border-radius: 12px !important;
    padding: 14px !important;
    background: #002d62 !important;
    border: none !important;
}

@media (min-width: 769px) {
    .brand-header {
        display: none;
    }

    .auth-page {
        padding-top: 30px;
    }
}

/* --- Styles from client_verify_otp.php --- */
/* Mobile-Specific Native App Styling */


.otp-input .otp-input {
    background: #f1f5f9 !important;
    border-radius: 12px !important;
    border: 1px solid #e2e8f0 !important;
    padding: 15px !important;
    font-size: 24px !important;
    text-align: center;
    letter-spacing: 5px;
    font-weight: 700;
}

.btn-primary {
    border-radius: 12px !important;
    padding: 14px !important;
    background: #10b981 !important;
    border: none !important;
}

@media (min-width: 769px) {
    .verify-header {
        display: none;
    }

    .auth-page {
        padding-top: 50px;
    }
}

/* --- Styles from login.php --- */
/* Mobile-Specific Native App Styling */


.input-group {
    background: #f8fafc !important;
    border-radius: 12px !important;
    border: 1px solid #e2e8f0 !important;
}

.btn-primary {
    border-radius: 12px !important;
    padding: 14px !important;
    background: #1e293b !important;
    border: none !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
}

@media (min-width: 769px) {
    .admin-header {
        display: none;
    }

    .auth-page {
        padding-top: 50px;
    }
}

/* --- Styles from otp-login.php --- */
/* Mobile-Specific Native App Styling */


.form-select,
.form-control {
    background: #f1f5f9 !important;
    border-radius: 12px !important;
    border: 1px solid #e2e8f0 !important;
    padding: 12px !important;
}

.btn-primary {
    border-radius: 12px !important;
    padding: 14px !important;
    background: #0f172a !important;
    border: none !important;
}

@media (min-width: 769px) {
    .otp-header {
        display: none;
    }

    .auth-page {
        padding-top: 50px;
    }
}

/* --- Styles from otp-verify.php --- */
/* Mobile-Specific Native App Styling */


.otp-input .otp-input {
    background: #f1f5f9 !important;
    border-radius: 12px !important;
    border: 1px solid #e2e8f0 !important;
    padding: 15px !important;
    font-size: 24px !important;
    text-align: center;
    letter-spacing: 5px;
    font-weight: 700;
}

.btn-primary {
    border-radius: 12px !important;
    padding: 14px !important;
    background: #0f172a !important;
    border: none !important;
}

@media (min-width: 769px) {
    .verify-header {
        display: none;
    }

    .auth-page {
        padding-top: 50px;
    }
}

/* --- Styles from view-property.php --- */
/* Premium Gallery Styling */
.property-gallery-item {
    position: relative;
    border-radius: 2.5rem;
    overflow: hidden;
    background: #f8fafc;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.property-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 2.5rem;
    transition: transform 0.6s ease;
}

.property-gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.property-gallery-item:hover img {
    transform: scale(1.05);
}

/* Mobile Optimizations */
@media (max-width: 768px) {
    .property-gallery-item {
        border-radius: 1.5rem;
    }

    .property-gallery-item img {
        border-radius: 1.5rem;
    }

    .col-md-8.d-flex.flex-column.gap-3 {
        gap: 10px !important;
    }

    .col-md-4.d-flex.flex-column.gap-3 {
        flex-direction: row !important;
        overflow-x: auto;
        padding-bottom: 10px;
        -webkit-overflow-scrolling: touch;
    }

    .col-md-4.d-flex.flex-column.gap-3 .property-gallery-item {
        flex: 0 0 120px !important;
        height: 80px !important;
        aspect-ratio: auto !important;
    }

    .col-md-8 .property-gallery-item:nth-child(2) {
        display: none;
        /* Hide second large image on mobile to save space */
    }
}

.stage-badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 9px;
    font-weight: 800;
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.stage-prospect {
    background: #94a3b8;
}

.stage-interested {
    background: #1256b8;
}

.stage-sale_initiated {
    background: #8b5cf6;
}

.stage-loan_processing {
    background: #f59e0b;
}

.stage-closed {
    background: #10b981;
}

.stage-rejected {
    background: #ef4444;
}

.btn-soft-primary {
    background-color: rgba(18, 86, 184, 0.08);
    color: #1256b8;
    border: none;
}

.btn-soft-primary:hover {
    background-color: rgba(18, 86, 184, 0.15);
    color: #0b4db5;
}

.btn-soft-secondary {
    background-color: rgba(100, 116, 139, 0.1);
    border: none;
}

.bg-soft-info {
    background-color: rgba(6, 182, 212, 0.1) !important;
}

.bg-soft-success {
    background-color: rgba(16, 185, 129, 0.1) !important;
}

.fw-500 {
    font-weight: 500 !important;
}

.fw-600 {
    font-weight: 600 !important;
}

.fw-800 {
    font-weight: 800 !important;
}

.fw-900 {
    font-weight: 900 !important;
}

.letter-spacing-1 {
    letter-spacing: 0.05em;
}

.breadcrumb-item+.breadcrumb-item::before {
    content: "\f105";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    font-size: 0.7rem;
    color: #94a3b8;
}

/* --- Styles from view-property.php --- */
.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    backdrop-filter: blur(10px);
}

.lightbox-overlay.active {
    display: flex;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 85%;
    text-align: center;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 85vh;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    object-fit: contain;
}

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 30px;
    color: white;
    font-size: 40px;
    cursor: pointer;
    opacity: 0.7;
    transition: 0.3s;
}

.lightbox-close:hover {
    opacity: 1;
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    padding: 20px;
    cursor: pointer;
    border-radius: 50%;
    transition: 0.3s;
    font-size: 20px;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background: rgba(255, 255, 255, 0.2);
}

.lightbox-prev {
    left: 40px;
}

.lightbox-next {
    right: 40px;
}

.lightbox-caption {
    color: white;
    margin-top: 15px;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

/* --- Styles from cancel_deal_modal.php --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 1rem;
}

.modal-card {
    background: #ffffff;
    border-radius: 1.5rem;
    width: 100%;
    max-width: 550px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-header {
    background: linear-gradient(135deg, #ef4444 0%, #b91c1c 100%);
    padding: 2rem;
    color: #ffffff;
    text-align: center;
}

.modal-header h2 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.025em;
}

.modal-body {
    padding: 2rem;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
    background: #fef2f2;
    padding: 1.25rem;
    border-radius: 1rem;
    margin-bottom: 2rem;
    border: 1px solid #fee2e2;
}

.info-item label {
    display: block;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #991b1b;
    margin-bottom: 0.25rem;
}

.info-item span {
    display: block;
    font-size: 1rem;
    font-weight: 700;
    color: #0f172a;
}

.btn-cancel-deal {
    background: #ef4444;
    color: white;
    border: none;
    padding: 0.85rem 1.5rem;
    width: 100%;
    border-radius: 0.85rem;
    font-weight: 800;
    font-size: 1rem;
    box-shadow: 0 4px 6px -1px rgba(239, 68, 68, 0.2);
    transition: all 0.2s ease;
    margin-top: 1rem;
}

.btn-cancel-deal:hover {
    background: #dc2626;
    transform: translateY(-1px);
    box-shadow: 0 10px 15px -3px rgba(239, 68, 68, 0.3);
}

.btn-back {
    display: block;
    text-align: center;
    margin-top: 1.25rem;
    color: #64748b;
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none;
    transition: color 0.2s ease;
}

.btn-back:hover {
    color: #1e293b;
    text-decoration: underline;
}

.warning-box {
    background: #fffbeb;
    border: 1px solid #fef3c7;
    padding: 1rem;
    border-radius: 0.75rem;
    margin-bottom: 1.5rem;
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
}

.warning-icon {
    color: #d97706;
    font-size: 1.25rem;
}

.warning-text {
    color: #92400e;
    font-size: 0.875rem;
    line-height: 1.5;
}

/* --- Styles from close_deal_modal.php --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 1rem;
}

.modal-card {
    background: #ffffff;
    border-radius: 1.5rem;
    width: 100%;
    max-width: 550px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-header {
    background: #ffffff;
    padding: 2rem;
    color: #1e293b;
    text-align: left;
    border-bottom: 1px solid #f1f5f9;
}

.modal-header h2 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: -0.025em;
}

.modal-body {
    padding: 2rem;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    background: #f8fafc;
    padding: 1rem;
    border-radius: 0.75rem;
    margin-bottom: 1.5rem;
    border: 1px solid #e2e8f0;
}

.info-item label {
    display: block;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #64748b;
    margin-bottom: 0.25rem;
}

.info-item span {
    display: block;
    font-size: 0.95rem;
    font-weight: 700;
    color: #0f172a;
}

.form-label {
    display: block;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #1e293b;
    font-size: 0.95rem;
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    border: 1px solid #cbd5e1;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.2s ease;
}

.form-control:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    outline: none;
}

.btn-close-deal {
    background: #2563eb;
    color: white;
    border: none;
    padding: 0.85rem 1.5rem;
    width: 100%;
    border-radius: 0.5rem;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.2s ease;
    margin-top: 1.5rem;
}

.btn-close-deal:hover {
    background: #1d4ed8;
    transform: translateY(-1px);
}

.btn-back {
    display: block;
    text-align: center;
    margin-top: 1rem;
    color: #64748b;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
}

.btn-back:hover {
    color: #1e293b;
}

/* --- Styles from edit_buyer.php --- */
.buyer-form-card {
    max-width: 980px;
    margin: 0 auto;
}

.buyer-form-card .card {
    border: none;
    border-radius: 1rem;
}

.buyer-form-card .section-divider {
    height: 1px;
    background: #e9ecef;
    margin: 1.5rem 0;
}

.buyer-form-card .form-label {
    font-weight: 600;
}

.buyer-form-card .input-group-text {
    width: 3.2rem;
    justify-content: center;
    background: #f8f9fa;
    border-right: 0;
    color: #6c757d;
}

.buyer-form-card .input-group-text .bi {
    color: #6c757d;
}

.buyer-form-card .form-control,
.buyer-form-card .form-select {
    border-left: 0;
    border-radius: 0 0.5rem 0.5rem 0;
}

.buyer-form-card .form-control::placeholder,
.buyer-form-card .form-select::placeholder,
.buyer-form-card textarea::placeholder {
    color: #ced4da;
    opacity: 1;
}

.buyer-form-card .form-control.is-invalid,
.buyer-form-card .form-select.is-invalid {
    box-shadow: none;
}

.buyer-form-card .btn-group.d-flex {
    width: 100%;
    flex-direction: column;
    gap: 0.5rem;
}

.buyer-form-card .btn-group.d-flex .btn {
    width: 100%;
    min-width: 0;
    text-align: center;
    padding: 0.75rem 0.8rem;
    border-radius: 0.5rem;
    border-width: 1px;
}

.buyer-form-card .btn-group.d-flex .btn-check:checked+.btn,
.buyer-form-card .btn-group.d-flex .btn:focus {
    background-color: #495057;
    color: #fff;
    border-color: #495057;
}

.buyer-form-card .info-badge {
    font-size: 0.85rem;
    letter-spacing: 0.04em;
}

/* --- Styles from loan_modal.php --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 1rem;
}

.modal-card {
    background: #ffffff;
    border-radius: 1.5rem;
    width: 100%;
    max-width: 550px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-header {
    background: #002d62 !important;
    padding: 2rem;
    color: #ffffff;
    text-align: center;
}

.modal-header h2 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.025em;
}

.modal-body {
    padding: 2rem;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
    background: #f8fafc;
    padding: 1.25rem;
    border-radius: 1rem;
    margin-bottom: 2rem;
    border: 1px solid #e2e8f0;
}

.info-item label {
    display: block;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #64748b;
    margin-bottom: 0.25rem;
}

.info-item span {
    display: block;
    font-size: 1rem;
    font-weight: 700;
    color: #0f172a;
}

.form-group label {
    font-size: 0.9rem;
    font-weight: 700;
    color: #334155;
    margin-bottom: 0.5rem;
    display: block;
}

.btn-advance {
    background: #d97706;
    color: white;
    border: none;
    padding: 0.85rem 1.5rem;
    width: 100%;
    border-radius: 0.85rem;
    font-weight: 800;
    font-size: 1rem;
    box-shadow: 0 4px 6px -1px rgba(217, 119, 6, 0.2);
    transition: all 0.2s ease;
    margin-top: 1rem;
}

.btn-advance:hover {
    background: #b45309;
    transform: translateY(-1px);
    box-shadow: 0 10px 15px -3px rgba(217, 119, 6, 0.3);
}

.btn-cancel {
    display: block;
    text-align: center;
    margin-top: 1.25rem;
    color: #64748b;
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none;
    transition: color 0.2s ease;
}

.btn-cancel:hover {
    color: #1e293b;
    text-decoration: underline;
}

/* --- Styles from profile.php --- */
@media (max-width: 768px) {
    .container-fluid.py-4 {
        padding: 0 !important;
        margin: 0 !important;
    }

    .profile-header-card {
        border-radius: 0 !important;
        margin: 0 !important;
        box-shadow: none !important;
        border: none !important;
        background: #ffffff !important;
    }

    .profile-cover {
        height: 90px !important;
        background: #002d62 !important;
        border-radius: 0 !important;
    }

    .profile-avatar-wrapper {
        margin-top: -35px !important;
        padding: 0 1rem !important;
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        gap: 0 !important;
    }

    .profile-avatar-lg {
        width: 75px !important;
        height: 75px !important;
        border-radius: 18px !important;
        border: 3px solid #ffffff !important;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08) !important;
    }

    .profile-name-area h2 {
        font-size: 1.2rem !important;
        margin-top: 0.5rem !important;
        font-weight: 800 !important;
    }

    .profile-nav-tabs {
        background: #ffffff !important;
        margin: 1rem 0 0 0 !important;
        padding: 0 1rem !important;
        border-bottom: 1px solid #f1f5f9 !important;
        overflow-x: auto !important;
        display: flex !important;
        scrollbar-width: none;
    }

    .profile-nav-tabs .nav-link {
        padding: 0.8rem 0 !important;
        margin-right: 1.25rem !important;
        font-size: 0.7rem !important;
        font-weight: 700 !important;
    }

    .form-card {
        margin: 1rem !important;
        border-radius: 16px !important;
        padding: 1.25rem !important;
        box-shadow: 0 2px 15px rgba(0, 0, 0, 0.03) !important;
        border: 1px solid #f1f5f9 !important;
    }

    .profile-cover .btn-premium-light {
        display: none !important;
    }

    .profile-header-card.mb-5 {
        margin-bottom: 0 !important;
    }
}

/* --- Styles from view-property.php --- */
.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    backdrop-filter: blur(10px);
}

.lightbox-overlay.active {
    display: flex;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 85%;
    text-align: center;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 85vh;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    object-fit: contain;
}

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 30px;
    color: white;
    font-size: 40px;
    cursor: pointer;
    opacity: 0.7;
    transition: 0.3s;
}

.lightbox-close:hover {
    opacity: 1;
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    padding: 20px;
    cursor: pointer;
    border-radius: 50%;
    transition: 0.3s;
    font-size: 20px;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background: rgba(255, 255, 255, 0.2);
}

.lightbox-prev {
    left: 40px;
}

.lightbox-next {
    right: 40px;
}

.lightbox-caption {
    color: white;
    margin-top: 15px;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.property-gallery-item {
    position: relative;
    border-radius: 2.5rem;
    overflow: hidden;
    background: #f8fafc;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.property-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 2.5rem;
    transition: transform 0.6s ease;
}

.property-gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.property-gallery-item:hover img {
    transform: scale(1.05);
}

/* Mobile Optimizations */
@media (max-width: 768px) {
    .property-gallery-item {
        border-radius: 1.5rem;
    }

    .property-gallery-item img {
        border-radius: 1.5rem;
    }

    .col-md-8.d-flex.flex-column.gap-3 {
        gap: 10px !important;
    }

    .col-md-4.d-flex.flex-column.gap-3 {
        flex-direction: row !important;
        overflow-x: auto;
        padding-bottom: 10px;
        -webkit-overflow-scrolling: touch;
        padding-left: 15px;
        padding-right: 15px;
    }

    .col-md-4.d-flex.flex-column.gap-3 .property-gallery-item {
        flex: 0 0 120px !important;
        height: 80px !important;
        aspect-ratio: auto !important;
    }

    .col-md-8 .property-gallery-item:nth-child(2) {
        display: none;
        /* Hide second large image on mobile to save space */
    }
}

/* --- Styles from header.php --- */
/* Native App Look & Feel */
:root {
    --app-bar-height: 56px;
    --bottom-nav-height: 64px;
    --safe-area-inset-top: env(safe-area-inset-top, 0px);
    --safe-area-inset-bottom: env(safe-area-inset-bottom, 0px);
}

/* Hide mobile bars by default */
.app-bar,
.bottom-nav {
    display: none !important;
}

@media (max-width: 991.98px) {
    body {
        padding-bottom: calc(var(--bottom-nav-height) + var(--safe-area-inset-bottom));
        background-color: #f8f9fa;
        -webkit-tap-highlight-color: transparent;
    }

    .navbar-desktop {
        display: none !important;
    }

    /* Native Header (App Bar) */
    .app-bar {
        display: flex !important;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        height: calc(var(--app-bar-height) + var(--safe-area-inset-top));
        padding-top: var(--safe-area-inset-top);
        background: #002d62;
        color: #ffffff !important;
        align-items: center;
        justify-content: space-between;
        padding-left: 16px;
        padding-right: 16px;
        z-index: 4000;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    }

    .app-bar-title {
        font-family: 'Poppins', sans-serif;
        font-size: 1.1rem;
        font-weight: 600;
        margin: 0;
        color: #ffffff !important;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .app-bar-actions {
        display: flex;
        align-items: center;
        gap: 12px;
    }

    .app-bar-btn {
        background: transparent;
        border: none;
        color: white;
        padding: 8px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.1rem;
    }

    .app-bar-btn:active {
        background: rgba(255, 255, 255, 0.1);
    }

    /* Native Bottom Navigation */
    .bottom-nav {
        display: flex !important;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        height: calc(var(--bottom-nav-height) + var(--safe-area-inset-bottom));
        padding-bottom: var(--safe-area-inset-bottom);
        background: white;
        justify-content: space-around;
        align-items: center;
        z-index: 4000;
        border-top: 1px solid #eee;
        box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
    }

    .bottom-nav-item {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-decoration: none;
        color: #666;
        font-size: 0.65rem;
        font-weight: 600;
        height: 100%;
        transition: color 0.2s;
    }

    .bottom-nav-item i {
        font-size: 1.25rem;
        margin-bottom: 4px;
    }

    .bottom-nav-item.active {
        color: #002d62;
    }

    .bottom-nav-item:active {
        background: #f0f4f8;
    }

    /* Container padding for mobile */
    .container.py-4,
    .container-fluid.py-4 {
        margin-top: calc(var(--app-bar-height) + var(--safe-area-inset-top));
        padding-top: 1rem !important;
    }

    /* Offcanvas positioning - between app-bar and bottom-nav */
    .offcanvas {
        position: fixed !important;
        top: calc(var(--app-bar-height) + var(--safe-area-inset-top)) !important;
        bottom: calc(var(--bottom-nav-height) + var(--safe-area-inset-bottom)) !important;
        height: auto !important;
        margin-top: 0 !important;
    }

    /* Scroll optimization */
    .offcanvas-body {
        -webkit-overflow-scrolling: touch;
    }

    /* Prevent layout shift on focus */
    input:focus,
    textarea:focus {
        font-size: 16px !important;
    }

    /* Hide elements not needed in App view */
    .is-native-app .navbar-desktop,
    .is-native-app .breadcrumb {
        display: none !important;
    }
}

@media (min-width: 992px) {

    .app-bar,
    .bottom-nav {
        display: none !important;
    }
}

.animate-touch {
    transition: transform 0.1s ease;
}

.animate-touch:active {
    transform: scale(0.95);
}

/* --- Styles from index.php --- */
.prop-thumbnail {
    position: relative;
    width: 100%;
    height: 180px;
    border-radius: 12px;
    overflow: hidden;
    background: #f1f5f9;
}

.prop-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.prop-card:hover .prop-thumbnail img {
    transform: scale(1.08);
}

.prop-thumbnail-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    font-size: 2rem;
}

.prop-thumbnail-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 12px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3) 0%, transparent 40%);
    pointer-events: none;
}

.prop-id-tag {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(4px);
    color: #1e293b;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.65rem;
    font-weight: 900;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.prop-checkbox {
    pointer-events: auto;
    width: 18px !important;
    height: 18px !important;
    border-radius: 4px !important;
    margin-top: 2px !important;
    border: 2px solid white !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2) !important;
}

.prop-card {
    background: #fff;
    border-radius: 1.25rem;
    padding: 1rem;
    margin-bottom: 1.25rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border: 1px solid #f1f5f9;
}

.prop-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px -8px rgba(0, 0, 0, 0.15) !important;
}

/* New Card UI Components */
.prop-card-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 0.75rem;
}

.prop-type-pill {
    color: #fff;
    padding: 2px 10px;
    border-radius: 4px;
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
}

.prop-lt-pill {
    background: #f1f5f9;
    color: #475569;
    padding: 2px 10px;
    border-radius: 4px;
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
}

.prop-status-dot {
    font-size: 0.65rem;
    font-weight: 800;
    margin-left: auto;
}

.prop-card-title {
    font-size: 1rem;
    font-weight: 900;
    color: #1e293b;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.prop-card-location {
    font-size: 0.75rem;
    color: #64748b;
    font-weight: 600;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.prop-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    margin-bottom: 1.25rem;
    background: #f8fafc;
    padding: 0.75rem;
    border-radius: 0.75rem;
}

.prop-stat {
    display: flex;
    flex-direction: column;
}

.prop-stat-value {
    font-size: 0.85rem;
    font-weight: 900;
    color: #1e293b;
}

.prop-stat-label {
    font-size: 0.6rem;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
}

.prop-stat-unit {
    font-size: 0.65rem;
    font-weight: 700;
    color: #64748b;
    margin-left: 2px;
}

.prop-stat-id {
    font-size: 0.7rem;
    font-weight: 800;
    color: #1256b8;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.prop-status-form {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.prop-status-select {
    flex: 1;
    font-size: 0.75rem !important;
    padding: 0.5rem !important;
    font-weight: 800 !important;
}

.prop-update-btn {
    background: #1e293b;
    color: #fff;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 0.6rem;
    font-size: 0.75rem;
    font-weight: 800;
    transition: opacity 0.2s;
}

.prop-update-btn:active {
    opacity: 0.8;
}

.prop-actions {
    display: flex;
    gap: 0.4rem;
}

.prop-btn-primary {
    flex: 1;
    background: #1256b8;
    color: #fff;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.6rem;
    border-radius: 0.6rem;
    font-size: 0.75rem;
    font-weight: 800;
}

.prop-btn-icon {
    width: 38px;
    height: 38px;
    background: #fff;
    color: #1e293b;
    border: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.6rem;
    font-size: 0.85rem;
    text-decoration: none;
}

.prop-btn-icon:hover {
    background: #f1f5f9;
}

/* --- Styles from prospect_buyers.php --- */
.pb-page-header {
    background: linear-gradient(135deg, #1256b8 0%, #0c3d82 100%);
    border-radius: 1.5rem;
    padding: 1.5rem 2rem;
    margin-bottom: 1.5rem;
    color: white;
}

.pb-stat-pill {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 2rem;
    padding: 0.35rem 1rem;
    font-size: 0.7rem;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: white;
}

.pb-property-card {
    background: white;
    border-radius: 1.25rem;
    border: 1px solid #f1f5f9;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.05);
    margin-bottom: 1.5rem;
    overflow: hidden;
}

.pb-property-header {
    background: linear-gradient(90deg, #f8fafc, #f1f5f9);
    border-bottom: 1px solid #e2e8f0;
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.pb-property-type-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.pb-property-title {
    font-size: 0.82rem;
    font-weight: 900;
    color: #1e293b;
    letter-spacing: -0.01em;
}

.pb-property-meta {
    font-size: 0.65rem;
    font-weight: 700;
    color: #64748b;
    margin-top: 1px;
}

.pb-buyer-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1.25rem;
    border-bottom: 1px solid #f8fafc;
    transition: background 0.2s;
}

.pb-buyer-row:last-child {
    border-bottom: none;
}

.pb-buyer-row:hover {
    background: #f8fafc;
}

.pb-buyer-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    color: white;
    font-size: 0.8rem;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    text-transform: uppercase;
}

.pb-buyer-info {
    flex: 1;
    min-width: 0;
}

.pb-buyer-name {
    font-size: 0.82rem;
    font-weight: 800;
    color: #1e293b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pb-buyer-phone {
    font-size: 0.68rem;
    font-weight: 600;
    color: #94a3b8;
    margin-top: 1px;
}

.pb-stage-badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 9px;
    border-radius: 2rem;
    font-size: 0.6rem;
    font-weight: 900;
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    flex-shrink: 0;
}

.pb-stage-form {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex-shrink: 0;
}

.pb-stage-select {
    border: 1.5px solid #e2e8f0;
    border-radius: 0.6rem;
    font-size: 0.7rem;
    font-weight: 800;
    color: #475569;
    background: white;
    padding: 0.3rem 0.5rem;
    cursor: pointer;
    outline: none;
    transition: border-color 0.2s;
    min-width: 105px;
}

.pb-stage-select:focus {
    border-color: #3b82f6;
}

.pb-submit-btn {
    width: 32px;
    height: 32px;
    border-radius: 0.6rem;
    background: #1e293b;
    color: white;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.75rem;
    transition: background 0.2s, transform 0.15s;
    flex-shrink: 0;
}

.pb-submit-btn:hover {
    background: #3b82f6;
    transform: scale(1.1);
}

.pb-empty-buyers {
    padding: 2rem;
    text-align: center;
    color: #94a3b8;
}

.pb-empty-buyers i {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    opacity: 0.3;
    display: block;
}

.pb-empty-buyers p {
    font-size: 0.75rem;
    font-weight: 700;
    margin: 0;
}

.pb-no-properties {
    text-align: center;
    padding: 4rem 2rem;
    background: white;
    border-radius: 1.5rem;
    border: 2px dashed #e2e8f0;
}

.pb-no-properties i {
    font-size: 3rem;
    color: #cbd5e1;
    display: block;
    margin-bottom: 1rem;
}

.pb-tag-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.65rem;
    font-weight: 800;
    color: #3b82f6;
    text-decoration: none;
    background: rgba(59, 130, 246, 0.08);
    border-radius: 2rem;
    padding: 0.3rem 0.75rem;
    transition: background 0.2s;
    white-space: nowrap;
}

.pb-tag-btn:hover {
    background: rgba(59, 130, 246, 0.15);
    color: #2563eb;
}

.pb-pipeline-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.65rem;
    font-weight: 800;
    color: #8b5cf6;
    text-decoration: none;
    background: rgba(139, 92, 246, 0.08);
    border-radius: 2rem;
    padding: 0.3rem 0.75rem;
    transition: background 0.2s;
    white-space: nowrap;
}

.pb-pipeline-btn:hover {
    background: rgba(139, 92, 246, 0.15);
    color: #7c3aed;
}

.pb-count-badge {
    background: #1e293b;
    color: white;
    border-radius: 2rem;
    font-size: 0.6rem;
    font-weight: 900;
    padding: 2px 8px;
    margin-left: 0.3rem;
}

@media (max-width: 576px) {
    .pb-page-header {
        padding: 1rem 1.25rem;
    }

    .pb-buyer-row {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .pb-stage-form {
        width: 100%;
    }

    .pb-stage-select {
        flex: 1;
    }
}

/* --- Styles from prospect_buyers.php --- */
@keyframes tmSlideUp {
    from {
        opacity: 0;
        transform: translateY(32px) scale(.97);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* --- Styles from tag_buyers.php --- */
.tb-header {
    background: linear-gradient(135deg, #1256b8 0%, #0c3d82 100%);
    border-radius: 1.25rem;
    padding: 1.25rem 1.5rem;
    color: white;
    margin-bottom: 1.5rem;
}

.tb-card {
    background: white;
    border-radius: 1.25rem;
    border: 1px solid #f1f5f9;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.tb-search-bar {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #f1f5f9;
    background: #f8fafc;
}

.tb-search-input {
    border: 1.5px solid #e2e8f0;
    border-radius: 0.75rem;
    font-size: 0.82rem;
    font-weight: 600;
    padding: 0.55rem 0.9rem 0.55rem 2.2rem;
    width: 100%;
    outline: none;
    transition: border-color 0.2s;
    background: white url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' fill='%2394a3b8' viewBox='0 0 16 16'%3E%3Cpath d='M11.742 10.344a6.5 6.5 0 1 0-1.397 1.398h-.001c.03.04.062.078.098.115l3.85 3.85a1 1 0 0 0 1.415-1.414l-3.85-3.85a1.007 1.007 0 0 0-.115-.099zm-5.242 1.656a5.5 5.5 0 1 1 0-11 5.5 5.5 0 0 1 0 11z'/%3E%3C/svg%3E") no-repeat 0.7rem center;
}

.tb-search-input:focus {
    border-color: #3b82f6;
}

.tb-buyer-item {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.85rem 1.25rem;
    border-bottom: 1px solid #f8fafc;
    cursor: pointer;
    transition: background 0.15s;
}

.tb-buyer-item:last-child {
    border-bottom: none;
}

.tb-buyer-item:hover {
    background: #f8fafc;
}

.tb-buyer-item.already-tagged {
    opacity: 0.5;
}

.tb-buyer-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    color: white;
    font-size: 0.85rem;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    text-transform: uppercase;
}

.tb-buyer-info {
    flex: 1;
    min-width: 0;
}

.tb-buyer-name {
    font-size: 0.82rem;
    font-weight: 800;
    color: #1e293b;
}

.tb-buyer-sub {
    font-size: 0.68rem;
    font-weight: 600;
    color: #94a3b8;
    margin-top: 1px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tb-check {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 2px solid #e2e8f0;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    font-size: 0.6rem;
    color: transparent;
}

.tb-buyer-item.selected .tb-check {
    background: #3b82f6;
    border-color: #3b82f6;
    color: white;
}

.tb-buyer-item.already-tagged .tb-check {
    background: #22c55e;
    border-color: #22c55e;
    color: white;
}

.tb-already-badge {
    font-size: 0.6rem;
    font-weight: 800;
    background: rgba(34, 197, 94, 0.12);
    color: #16a34a;
    border-radius: 2rem;
    padding: 2px 8px;
    flex-shrink: 0;
}

.tb-footer {
    padding: 1rem 1.25rem;
    border-top: 1px solid #f1f5f9;
    background: #f8fafc;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.tb-selected-info {
    font-size: 0.75rem;
    font-weight: 800;
    color: #475569;
}

.tb-selected-info span {
    color: #3b82f6;
    font-size: 0.85rem;
}

.tb-submit-btn {
    background: linear-gradient(135deg, #1e293b, #0f172a);
    color: white;
    border: none;
    border-radius: 2rem;
    padding: 0.55rem 1.5rem;
    font-size: 0.78rem;
    font-weight: 800;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.15s;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.tb-submit-btn:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.tb-submit-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none;
}

.tb-cancel-btn {
    color: #64748b;
    font-size: 0.78rem;
    font-weight: 700;
    text-decoration: none;
    padding: 0.55rem 1rem;
    border-radius: 2rem;
    background: white;
    border: 1.5px solid #e2e8f0;
    transition: background 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.tb-cancel-btn:hover {
    background: #f1f5f9;
    color: #1e293b;
}

.tb-empty {
    text-align: center;
    padding: 3rem 1.5rem;
    color: #94a3b8;
}

.tb-empty i {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 0.75rem;
    opacity: 0.3;
}




/* Clean Unified Auth Style */

/* ============================================================
   CLEAN UNIFIED AUTH STYLING (Card-Based)
   ============================================================ */
.auth-page {
    background-color: #f0f2f5 !important;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 20px 0;
}

.auth-card {
    border-radius: 20px !important;
    border: none !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08) !important;
    background: #ffffff !important;
}

.auth-card .card-body {
    padding: 40px !important;
}

@media (max-width: 576px) {
    .auth-card .card-body {
        padding: 30px 20px !important;
    }
}

.bg-soft-primary {
    background-color: #eef2f7 !important;
}

.input-group-text {
    background-color: #f8fafc !important;
    border-right: none !important;
    color: #64748b !important;
}

.form-control {
    background-color: #f8fafc !important;
    border-left: none !important;
    padding: 12px 15px !important;
    font-size: 15px !important;
}

.btn-primary {
    background-color: #0d47a1 !important;
    /* Deep Blue as in screenshot */
    border: none !important;
    border-radius: 12px !important;
    padding: 14px !important;
    font-weight: 700 !important;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: #1565c0 !important;
    transform: translateY(-2px);
}

.form-label {
    font-weight: 700 !important;
    color: #64748b !important;
    font-size: 0.8rem !important;
    margin-bottom: 8px !important;
}

.otp-input {
    letter-spacing: 5px !important;
    text-align: center !important;
    font-size: 24px !important;
}


/* --- Chat Mobile Enhancements --- */
@media (max-width: 991.98px) {

    .chat-mobile-fix~.footer,
    .chat-mobile-fix~div+.footer {
        display: none !important;
    }

    .chat-mobile-fix {
        position: fixed;
        top: var(--app-bar-height);
        bottom: var(--bottom-nav-height);
        left: 0 !important;
        right: 0 !important;
        height: auto !important;
        margin: 0 !important;
        border-radius: 0 !important;
        display: flex;
        overflow: hidden;
        z-index: 1000;
        background: #fff;
        width: 100vw !important;
        max-width: 100vw !important;
    }

    .chat-mobile-fix .chat-sidebar {
        width: 100% !important;
        display: block;
        height: 100%;
        overflow-y: auto;
    }

    .chat-mobile-fix .chat-content {
        display: none;
        width: 100% !important;
        height: 100%;
    }

    .chat-mobile-fix.chat-active-view .chat-sidebar {
        display: none !important;
    }

    .chat-mobile-fix.chat-active-view .chat-content {
        display: flex !important;
        flex-direction: column;
    }

    .chat-mobile-fix .chat-messages-viewport {
        flex: 1;
        overflow-y: auto;
        padding: 1rem;
        background: #f8fafc;
    }

    .chat-mobile-fix .chat-composer {
        background: #fff;
        padding: 0.5rem;
        border-top: 1px solid #eee;
    }
}


/* --- Phone View Specific Refinements --- */
@media (max-width: 576px) {
    .chat-mobile-fix .chat-messages-viewport {
        background-image: none !important;
        /* Clean background for phones */
        padding: 0.75rem !important;
        gap: 1rem !important;
    }

    .chat-mobile-fix .chat-bubble-container {
        max-width: 92% !important;
        /* Wider bubbles on small screens */
    }

    .chat-mobile-fix .chat-bubble {
        padding: 0.7rem 1rem !important;
        font-size: 0.9rem !important;
    }

    /* Sidebar list optimization */
    .chat-mobile-fix .chat-item {
        padding: 0.75rem 1rem !important;
    }

    .chat-mobile-fix .avatar-lg {
        width: 40px !important;
        height: 40px !important;
        min-width: 40px !important;
    }

    /* Composer optimization for native keyboard */
    .chat-mobile-fix .chat-composer {
        padding: 8px 10px calc(8px + var(--safe-area-inset-bottom)) 10px !important;
    }

    .chat-mobile-fix .chat-composer-inner {
        border-radius: 20px !important;
        padding: 4px !important;
    }

    .chat-mobile-fix .chat-composer textarea {
        padding: 6px 12px !important;
        font-size: 16px !important;
        /* Prevents auto-zoom on iOS/Android focus */
    }
}


.chat-messages-viewport {
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    /* Extra smooth on iOS */
}


/* --- Authentication Mobile Optimization --- */
@media (max-width: 576px) {
    .auth-page {
        background-color: #ffffff !important;
        /* Pure white for clean mobile look */
        padding: 10px 0 !important;
        align-items: flex-start !important;
        /* Start from top on mobile */
    }

    .auth-card {
        box-shadow: none !important;
        border-radius: 0 !important;
    }

    .auth-card .card-body {
        padding: 20px 15px !important;
    }

    .auth-card h1 {
        font-size: 1.5rem !important;
    }

    .auth-card p.text-muted {
        font-size: 0.85rem !important;
    }

    /* Make buttons and inputs even more finger-friendly */
    .auth-card .btn-primary,
    .auth-card .btn-outline-light {
        padding-top: 15px !important;
        padding-bottom: 15px !important;
        border-radius: 14px !important;
    }

    .auth-card .form-control {
        height: 52px !important;
        border-radius: 0 12px 12px 0 !important;
    }

    .auth-card .input-group-text {
        border-radius: 12px 0 0 12px !important;
    }

    .auth-card .bg-soft-primary {
        width: 54px !important;
        height: 54px !important;
    }
}


/* --- Additional Auth Refinements --- */
@media (max-width: 576px) {
    .auth-page .container {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    /* Ensure form labels are readable but compact */
    .auth-card .form-label {
        font-size: 0.7rem !important;
        margin-bottom: 5px !important;
    }

    /* Polish the checkbox area */
    .auth-card .form-check-label {
        font-size: 0.8rem !important;
    }

    /* Responsive margins */
    .auth-card .mb-4 {
        margin-bottom: 1.5rem !important;
    }
}


/* --- Global Mobile Font Size Scaling (Reset to Default) --- */
@media (max-width: 991.98px) {
    html {
        font-size: 100% !important;
        /* Restored to default for exact match */
    }
}


/* --- Mobile UI Compression --- */
@media (max-width: 768px) {
    .card-body {
        padding: 1rem !important;
    }

    .chat-item h6 {
        font-size: 0.85rem !important;
    }

    .chat-item p {
        font-size: 0.75rem !important;
    }

    .btn {
        font-size: 0.85rem !important;

    }

    .btn-lg {
        font-size: 0.95rem !important;
        padding: 0.8rem 1.5rem !important;
    }
}


/* --- Logo Visibility Polish --- */
.navbar-brand img,
.app-bar img {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: brightness(0.95);
    padding: 2px;
}

.auth-card img[alt="Logo"] {
    background: #f8fafc;
    padding: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}


/* --- Chat Bubble Layout (Restored to Default) --- */
.align-self-end .chat-bubble {
    background-color: #0d47a1 !important;
    color: white !important;
}


.cursor-pointer {
    cursor: pointer;
}

#seller-options-container::-webkit-scrollbar {
    width: 4px;
}

#seller-options-container::-webkit-scrollbar-track {
    background: transparent;
}

#seller-options-container::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 10px;
}

/* Center Modals Globally */
.modal-dialog {
    display: flex !important;
    align-items: center !important;
    min-height: calc(100% - 3.5rem) !important;
}

@media (max-width: 576px) {
    .modal-dialog {
        min-height: calc(100% - 1rem) !important;
    }
}

/* ==========================================================================
   GLOBAL UI OVERRIDES - Command Center Stabilization
   ========================================================================== */

/* 1. Global Modal Centering */
.modal-dialog {
    display: flex !important;
    align-items: center !important;
    min-height: calc(100% - 3.5rem) !important;
    margin: 1.75rem auto !important;
}

@media (max-width: 576px) {
    .modal-dialog {
        min-height: calc(100% - 1rem) !important;
        margin: 0.5rem auto !important;
    }
}

.modal-content {
    border: none !important;
    border-radius: 1.5rem !important;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1) !important;
}

/* 2. Form Field Refinements */
.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color, #2563eb) !important;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1) !important;
}

/* ===================================================
   PUBLIC PROPERTY VIEW PAGE — Premium Styles
   =================================================== */

/* Hero gallery */
.pub-hero {
    position: relative;
    width: 100%;
    border-radius: 16px;
    overflow: hidden;
    background: #0f1c3f;
}

.pub-hero-main {
    width: 100%;
    height: 360px;
    object-fit: cover;
    display: block;
    transition: opacity 0.3s ease;
}

.pub-hero-thumbs {
    display: flex;
    gap: 8px;
    padding: 8px;
    background: rgba(0, 0, 0, 0.35);
}

.pub-hero-thumb {
    flex: 1;
    height: 72px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    opacity: 0.65;
    transition: opacity 0.2s, transform 0.2s, box-shadow 0.2s;
    border: 2px solid transparent;
}

.pub-hero-thumb:hover,
.pub-hero-thumb.active {
    opacity: 1;
    transform: scale(1.04);
    border-color: #fff;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}

/* Price chip */
.pub-price-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(90deg, #1565c0, #1a3a8f);
    color: #fff;
    border-radius: 50px;
    padding: 9px 22px;
    font-size: 1.18rem;
    font-weight: 800;
    box-shadow: 0 4px 18px rgba(21, 101, 192, .28);
    letter-spacing: -0.01em;
}

/* Property detail rows */
.prop-detail-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 0;
    border-bottom: 1px solid #f1f5f9;
}

.prop-detail-row:last-child {
    border-bottom: none;
    padding-bottom: 0;

    /* --- Global Mobile Font Size Scaling (Reset to Default) --- */
    @media (max-width: 991.98px) {
        html {
            font-size: 100% !important;
            /* Restored to default for exact match */
        }
    }


    /* --- Mobile UI Compression --- */
    @media (max-width: 768px) {
        .card-body {
            padding: 1rem !important;
        }

        .chat-item h6 {
            font-size: 0.85rem !important;
        }

        .chat-item p {
            font-size: 0.75rem !important;
        }

        .btn {
            font-size: 0.85rem !important;

        }

        .btn-lg {
            font-size: 0.95rem !important;
            padding: 0.8rem 1.5rem !important;
        }
    }


    /* --- Logo Visibility Polish --- */
    .navbar-brand img,
    .app-bar img {
        background: rgba(255, 255, 255, 0.1);
        backdrop-filter: brightness(0.95);
        padding: 2px;
    }

    .auth-card img[alt="Logo"] {
        background: #f8fafc;
        padding: 10px;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    }


    /* --- Chat Bubble Layout (Restored to Default) --- */
    .align-self-end .chat-bubble {
        background-color: #0d47a1 !important;
        color: white !important;
    }


    .cursor-pointer {
        cursor: pointer;
    }

    #seller-options-container::-webkit-scrollbar {
        width: 4px;
    }

    #seller-options-container::-webkit-scrollbar-track {
        background: transparent;
    }

    #seller-options-container::-webkit-scrollbar-thumb {
        background: rgba(0, 0, 0, 0.1);
        border-radius: 10px;
    }

    /* Center Modals Globally */
    .modal-dialog {
        display: flex !important;
        align-items: center !important;
        min-height: calc(100% - 3.5rem) !important;
    }

    @media (max-width: 576px) {
        .modal-dialog {
            min-height: calc(100% - 1rem) !important;
        }
    }

    /* ==========================================================================
   GLOBAL UI OVERRIDES - Command Center Stabilization
   ========================================================================== */

    /* 1. Global Modal Centering */
    .modal-dialog {
        display: flex !important;
        align-items: center !important;
        min-height: calc(100% - 3.5rem) !important;
        margin: 1.75rem auto !important;
    }

    @media (max-width: 576px) {
        .modal-dialog {
            min-height: calc(100% - 1rem) !important;
            margin: 0.5rem auto !important;
        }
    }

    .modal-content {
        border: none !important;
        border-radius: 1.5rem !important;
        box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1) !important;
    }

    /* 2. Form Field Refinements */
    .form-control:focus,
    .form-select:focus {
        border-color: var(--primary-color, #2563eb) !important;
        box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1) !important;
    }

    /* ===================================================
   PUBLIC PROPERTY VIEW PAGE — Premium Styles
   =================================================== */

    /* Hero gallery */
    .pub-hero {
        position: relative;
        width: 100%;
        border-radius: 16px;
        overflow: hidden;
        background: #0f1c3f;
    }

    .pub-hero-main {
        width: 100%;
        height: 360px;
        object-fit: cover;
        display: block;
        transition: opacity 0.3s ease;
    }

    .pub-hero-thumbs {
        display: flex;
        gap: 8px;
        padding: 8px;
        background: rgba(0, 0, 0, 0.35);
    }

    .pub-hero-thumb {
        flex: 1;
        height: 72px;
        object-fit: cover;
        border-radius: 8px;
        cursor: pointer;
        opacity: 0.65;
        transition: opacity 0.2s, transform 0.2s, box-shadow 0.2s;
        border: 2px solid transparent;
    }

    .pub-hero-thumb:hover,
    .pub-hero-thumb.active {
        opacity: 1;
        transform: scale(1.04);
        border-color: #fff;
        box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
    }

    /* Price chip */
    .pub-price-chip {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        background: linear-gradient(90deg, #1565c0, #1a3a8f);
        color: #fff;
        border-radius: 50px;
        padding: 9px 22px;
        font-size: 1.18rem;
        font-weight: 800;
        box-shadow: 0 4px 18px rgba(21, 101, 192, .28);
        letter-spacing: -0.01em;
    }

    /* Property detail rows */
    .prop-detail-row {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 13px 0;
        border-bottom: 1px solid #f1f5f9;
    }

    .prop-detail-row:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }

    .prop-detail-icon {
        width: 38px;
        height: 38px;
        border-radius: 10px;
        background: #eff6ff;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #1565c0;
        flex-shrink: 0;
        font-size: 0.9rem;
    }

    .prop-detail-label {
        font-size: 0.68rem;
        color: #94a3b8;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.06em;
        line-height: 1;
        margin-bottom: 3px;
    }

    .prop-detail-value {
        font-size: 0.93rem;
        color: #1e293b;
        font-weight: 600;
        line-height: 1.2;
    }

    /* Broker card */
    .broker-card {
        background: linear-gradient(135deg, #f8faff, #eef4ff);
        border: 1.5px solid #dbeafe;
        border-radius: 16px;
        padding: 1.25rem;
    }

    .broker-avatar {
        width: 52px;
        height: 52px;
        border-radius: 50%;
        background: linear-gradient(135deg, #1565c0, #1a3a8f);
        display: flex;
        align-items: center;
        justify-content: center;
        color: #fff;
        font-size: 1.3rem;
        flex-shrink: 0;
        overflow: hidden;
    }

    /* Section label */
    .section-label {
        font-size: 0.68rem;
        font-weight: 800;
        text-transform: uppercase;
        letter-spacing: 0.08em;
        color: #94a3b8;
        margin-bottom: 0.85rem;
    }

    /* Responsive */
    @media (max-width: 767px) {
        .pub-hero-main {
            height: 220px;
        }

        .pub-hero-thumbs {
            display: none;
        }

        .pub-price-chip {
            font-size: 1rem;
            padding: 8px 18px;
        }
    }


}
/* Fix Modal Z-Index to overlay app-bar */
.modal { z-index: 5055 !important; }
.modal-backdrop { z-index: 5050 !important; }
