:root {
    /* Color Palette */
    --primary-color: #4F46E5;
    --primary-light: #EEF2FF;
    --secondary-color: #10B981;
    --bg-color: #F8FAFC;
    --card-bg: #FFFFFF;
    --text-main: #0F172A;
    --text-muted: #64748B;
    --border-color: #E2E8F0;
    
    /* Gradients */
    --gradient-1: linear-gradient(135deg, #6366F1 0%, #8B5CF6 100%);
    --gradient-2: linear-gradient(135deg, #3B82F6 0%, #2DD4BF 100%);
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    
    /* Status Colors */
    --success: #10B981;
    --success-light: #D1FAE5;
    --warning: #F59E0B;
    --warning-light: #FEF3C7;
    --danger: #EF4444;
    --danger-light: #FEE2E2;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.5;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

/* App Container */
.app {
    width: 100%;
    height: 100vh;
    background-color: var(--bg-color);
    position: relative;
    overflow: hidden;
}

/* Screens */
.screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg-color);
    display: none; /* hidden by default */
    flex-direction: column;
    animation: fadeIn 0.3s ease-in-out;
    overflow-y: auto;
    overflow-x: hidden;
}

.screen.active {
    display: flex;
}

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

/* Reusable Components */
.content {
    flex: 1;
    padding: 20px;
    padding-bottom: 20px; /* Space for scroll */
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
}

.pb-100 {
    padding-bottom: 100px; /* Space for bottom nav */
}

.mt-20 { margin-top: 20px; }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
    font-family: inherit;
}

.btn:active {
    transform: scale(0.98);
}

.btn-primary {
    background: var(--gradient-1);
    color: white;
    box-shadow: 0 4px 14px 0 rgba(99, 102, 241, 0.39);
}

.btn-primary:hover {
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.5);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-main);
}

.btn-block {
    width: 100%;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 14px;
    border-radius: 8px;
}

.icon-btn {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-main);
    transition: all 0.2s;
    position: relative;
}

/* Header */
.app-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 10;
    border-bottom: 1px solid rgba(226, 232, 240, 0.5);
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    transition: transform 0.3s ease-in-out;
}

.app-header.hidden {
    transform: translateY(-100%);
}

.app-header h2 {
    font-size: 20px;
    font-weight: 700;
}

.header-actions {
    display: flex;
    gap: 12px;
    align-items: center;
    position: relative;
}

/* Badges */
.badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: var(--danger);
    color: white;
    font-size: 10px;
    font-weight: bold;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
}

/* Bottom Navigation */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 800px;
    height: 70px;
    background: white;
    display: flex;
    justify-content: space-around;
    align-items: center;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.05);
    z-index: 100;
    transition: transform 0.3s ease-in-out;
}

.bottom-nav.hidden {
    transform: translate(-50%, 100%);
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-family: inherit;
    transition: all 0.3s;
    width: 25%;
}

.nav-item i {
    font-size: 24px;
    transition: transform 0.3s;
}

.nav-item span {
    font-size: 11px;
    font-weight: 500;
}

.nav-item.active {
    color: var(--primary-color);
}

.nav-item.active i {
    transform: translateY(-2px);
    font-weight: 600;
}

/* 1. Login Screen */
#login-screen {
    background: white;
    justify-content: center;
}

.login-container {
    padding: 30px;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
}

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

.logo i {
    font-size: 64px;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.logo h1 {
    font-size: 28px;
    margin-top: 10px;
    color: var(--text-main);
}

.logo p {
    color: var(--text-muted);
    font-size: 14px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.input-group {
    position: relative;
    margin-bottom: 20px;
}

.input-group i {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 20px;
}

.input-group input {
    width: 100%;
    padding: 16px 16px 16px 48px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    font-size: 16px;
    font-family: inherit;
    background: var(--bg-color);
    transition: all 0.3s;
}

.input-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    background: white;
    box-shadow: 0 0 0 4px var(--primary-light);
}

.auth-links {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}

.auth-links a {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
}

/* 2. Dashboard */
.earnings-card {
    background: var(--gradient-1);
    border-radius: 20px;
    padding: 24px;
    display: flex;
    justify-content: space-between;
    color: white;
    box-shadow: var(--shadow-lg);
    margin-bottom: 24px;
}

.earning-item {
    text-align: center;
}

.earning-item .label {
    font-size: 12px;
    opacity: 0.8;
    margin-bottom: 4px;
}

.earning-item h3 {
    font-size: 20px;
    font-weight: 700;
}

.divider {
    width: 1px;
    background: rgba(255,255,255,0.2);
    height: 40px;
    align-self: center;
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}

.metric-card {
    background: white;
    border-radius: 16px;
    padding: 16px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: transform 0.2s;
}

.metric-card:active {
    transform: scale(0.95);
}

.metric-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
    font-size: 20px;
}

.bg-blue { background: #DBEAFE; color: #2563EB; }
.bg-pink { background: #FCE7F3; color: #DB2777; }
.bg-green { background: #D1FAE5; color: #059669; }

.metric-data h4 {
    font-size: 18px;
    color: var(--text-main);
}

.metric-data p {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 2px;
}

.section-block {
    margin-bottom: 24px;
}

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

.section-header h3 {
    font-size: 18px;
}

.section-header a {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
}

.horizontal-scroll {
    display: flex;
    overflow-x: auto;
    gap: 16px;
    padding-bottom: 8px;
    scrollbar-width: none;
}

.horizontal-scroll::-webkit-scrollbar {
    display: none;
}

.lead-card {
    min-width: 260px;
    background: white;
    border-radius: 16px;
    padding: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.lead-info h4 {
    font-size: 16px;
    margin-bottom: 4px;
}

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

.visit-card {
    display: flex;
    background: white;
    border-radius: 16px;
    padding: 16px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    gap: 16px;
}

.visit-date {
    background: var(--primary-light);
    color: var(--primary-color);
    border-radius: 12px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 60px;
}

.visit-date .day {
    font-size: 20px;
    font-weight: 700;
}

.visit-date .month {
    font-size: 12px;
    text-transform: uppercase;
    font-weight: 600;
}

.visit-details h4 {
    font-size: 16px;
    margin-bottom: 4px;
}

.visit-details p {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.visit-details .time {
    font-size: 12px;
    font-weight: 500;
    color: var(--primary-color);
    background: var(--primary-light);
    padding: 4px 8px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* 3. Property Listings */
.property-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
}

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

.property-item {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    cursor: pointer;
    transition: transform 0.2s;
}

.property-item:active {
    transform: scale(0.98);
}

.prop-img-container {
    height: 180px;
    position: relative;
}

.prop-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.badge-status {
    position: absolute;
    top: 16px;
    left: 16px;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    color: white;
    backdrop-filter: blur(4px);
}

.bg-sale { background: rgba(16, 185, 129, 0.9); }
.bg-rent { background: rgba(99, 102, 241, 0.9); }

.prop-details {
    padding: 14px 16px;
}

.prop-details .prop-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 6px;
}

.prop-details .prop-id-label {
    font-size: 11px;
    color: #94a3b8;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}

.prop-details h4 {
    font-size: 16px;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 0;
    line-height: 1.3;
}

.prop-details .prop-rating {
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.prop-details .prop-rating span {
    font-weight: 600;
    color: #334155;
}

.prop-details .prop-tags {
    font-size: 13px;
    color: #64748b;
    margin-bottom: 6px;
}

.prop-details .prop-loc {
    font-size: 13px;
    color: #94a3b8;
    display: flex;
    align-items: center;
    gap: 4px;
}

.prop-details .price {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.prop-details .location {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.prop-meta {
    display: flex;
    gap: 12px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-main);
    background: var(--bg-color);
    padding: 8px 12px;
    border-radius: 8px;
    display: inline-flex;
}

/* Property Detail Form */
.image-upload-area {
    height: 160px;
    border: 2px dashed var(--border-color);
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    margin-bottom: 24px;
    background: white;
    cursor: pointer;
}

.image-upload-area i {
    font-size: 32px;
    margin-bottom: 8px;
    color: var(--primary-color);
}

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

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

.form-group input, 
.form-group textarea, 
.form-group select {
    width: 100%;
    padding: 14px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    font-family: inherit;
    font-size: 15px;
    background: white;
}

.form-group input:focus, 
.form-group textarea:focus, 
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px var(--primary-light);
}

.form-row {
    display: flex;
    gap: 16px;
}

.form-group.half {
    flex: 1;
}

.amenities-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag {
    padding: 8px 16px;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    font-size: 14px;
    cursor: pointer;
}

.tag.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* 4. Leads & Notifications */
.tabs {
    display: flex;
    background: #E2E8F0;
    padding: 4px;
    border-radius: 12px;
    margin-bottom: 20px;
}

.tab {
    flex: 1;
    padding: 10px;
    text-align: center;
    border: none;
    background: transparent;
    border-radius: 8px;
    font-weight: 500;
    font-family: inherit;
    color: var(--text-muted);
    cursor: pointer;
}

.tab.active {
    background: white;
    color: var(--text-main);
    box-shadow: var(--shadow-sm);
}

.lead-item-detailed {
    background: white;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 16px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.lead-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 18px;
}

.bg-gradient-1 { background: var(--gradient-1); }
.bg-gradient-2 { background: var(--gradient-2); }

.lead-header h4 {
    font-size: 16px;
}

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

.lead-body {
    background: var(--bg-color);
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 16px;
    font-size: 14px;
}

.lead-body p { margin-bottom: 4px; }
.lead-body p:last-child { margin-bottom: 0; }

.lead-actions-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.btn-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 10px;
    border-radius: 12px;
    border: none;
    font-family: inherit;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s;
}

.btn-action:active { transform: scale(0.95); }
.btn-action i { font-size: 20px; }

.bg-green-light { background: #D1FAE5; color: #059669; }
.bg-blue-light { background: #DBEAFE; color: #2563EB; }
.bg-purple-light { background: #F3E8FF; color: #9333EA; }

/* 5. Finance Dashboard */
.finance-summary {
    background: #0F172A;
    border-radius: 24px;
    padding: 24px;
    color: white;
    margin-bottom: 24px;
    position: relative;
    overflow: hidden;
}

.finance-summary::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 150px;
    height: 150px;
    background: var(--primary-color);
    border-radius: 50%;
    opacity: 0.5;
    filter: blur(40px);
}

.finance-main {
    margin-bottom: 24px;
    position: relative;
    z-index: 1;
}

.finance-main p {
    color: #94A3B8;
    font-size: 14px;
    margin-bottom: 4px;
}

.finance-main h2 {
    font-size: 36px;
    font-weight: 700;
}

.finance-row {
    display: flex;
    gap: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
    position: relative;
    z-index: 1;
}

.finance-col {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    flex: 1;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-top: 6px;
}

.finance-col p {
    color: #94A3B8;
    font-size: 12px;
    margin-bottom: 2px;
}

.finance-col h4 {
    font-size: 18px;
    font-weight: 600;
}

.bg-success { background: var(--success); }
.bg-warning { background: var(--warning); }

.transaction-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.transaction-item {
    background: white;
    border-radius: 16px;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 16px;
    border: 1px solid var(--border-color);
}

.txn-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.txn-details {
    flex: 1;
}

.txn-details h4 {
    font-size: 15px;
    margin-bottom: 4px;
}

.txn-details p {
    font-size: 12px;
    color: var(--text-muted);
}

.txn-amount {
    text-align: right;
}

.txn-amount h4 {
    font-size: 16px;
    margin-bottom: 4px;
}

.text-success { color: var(--success); }
.text-warning { color: var(--warning); }

.status {
    font-size: 11px;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 6px;
}

.status.completed {
    background: var(--success-light);
    color: var(--success);
}

.status.pending {
    background: var(--warning-light);
    color: var(--warning);
}

.profile-pic {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: url('https://images.unsplash.com/photo-1472099645785-5658abf4ff4e?ixlib=rb-1.2.1&auto=format&fit=facearea&facepad=2&w=256&h=256&q=80') center/cover;
    border: 2px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

/* Clickable Utility */
.clickable {
    cursor: pointer;
    transition: transform 0.2s;
}

.clickable:active {
    transform: scale(0.98);
}

/* Search & Filter Row */
.search-filter-row {
    display: flex;
    gap: 12px;
    align-items: center;
}

.search-bar {
    flex: 1;
    position: relative;
}

.search-bar i {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

.search-bar input {
    width: 100%;
    padding: 12px 16px 12px 40px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    background: white;
    font-family: inherit;
    font-size: 14px;
    box-shadow: var(--shadow-sm);
    transition: all 0.2s;
}

.search-bar input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px var(--primary-light);
}

.filter-btn {
    box-shadow: var(--shadow-sm);
}

/* Filter Pills */
.filter-pills {
    display: flex;
    gap: 12px;
    align-items: center;
}

.pill {
    padding: 8px 16px;
    border-radius: 20px;
    background: white;
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    font-family: inherit;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
    white-space: nowrap;
}

.pill.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.pill-badge {
    background: var(--danger);
    color: white;
    font-size: 10px;
    font-weight: bold;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pill.active .pill-badge {
    background: white;
    color: var(--primary-color);
}

/* Updated Lead Item */
.lead-item-detailed {
    position: relative;
}

.lead-tag {
    position: absolute;
    top: 16px;
    right: 16px;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
}

.tag-rent {
    background: var(--success-light);
    color: var(--success);
}

.tag-sale {
    background: #DBEAFE; /* blue light */
    color: #2563EB; /* blue */
}

.lead-footer p {
    font-size: 11px;
    color: var(--text-muted);
    text-align: center;
    border-top: 1px solid var(--border-color);
    padding-top: 12px;
}

/* Profile Dropdown Menu */
.profile-pic {
    cursor: pointer;
}

.dropdown-menu {
    position: absolute;
    top: 50px;
    right: 0;
    width: 220px;
    background: white;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
    padding: 8px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease-in-out;
    z-index: 1000;
}

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

.dropdown-header {
    padding: 12px 16px;
}

.dropdown-header h4 {
    font-size: 15px;
    color: var(--text-main);
    margin-bottom: 2px;
}

.dropdown-header p {
    font-size: 12px;
    color: var(--text-muted);
}

.dropdown-divider {
    height: 1px;
    background: var(--border-color);
    margin: 8px 0;
}

.dropdown-item {
    width: 100%;
    text-align: left;
    padding: 10px 16px;
    background: transparent;
    border: none;
    font-family: inherit;
    font-size: 14px;
    color: var(--text-main);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: background 0.2s;
}

.dropdown-item:hover {
    background: var(--bg-color);
}

.dropdown-item i {
    font-size: 18px;
    color: var(--text-muted);
}

.dropdown-item.text-danger {
    color: var(--danger);
}

.dropdown-item.text-danger i {
    color: var(--danger);
}

/* Floating Action Button */
.fab-btn {
    position: fixed;
    bottom: 80px;
    right: 20px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--primary-gradient);
    color: white;
    font-size: 24px;
    border: none;
    box-shadow: 0 8px 16px rgba(79, 70, 229, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    z-index: 99;
}

.fab-btn:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 12px 20px rgba(79, 70, 229, 0.4);
}

.fab-btn:active {
    transform: scale(0.95);
}

/* Inclusions Box */
.inclusions-box {
    background: white;
    border-radius: 16px;
    padding: 20px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.inclusion-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.inclusion-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    font-size: 14px;
    color: var(--text-main);
}

.inclusion-list i {
    font-size: 18px;
}

.inclusion-list.simple li {
    padding: 4px 0;
    font-size: 13px;
    color: var(--text-muted);
}

/* Property Detail Screen Enhancements */
.property-top-card {
    background: white;
    border-radius: 16px;
    padding: 16px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.owner-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.owner-info h4 {
    font-size: 16px;
    margin-bottom: 2px;
}

.owner-info .phone-number {
    font-size: 13px;
    color: var(--text-muted);
}

.prop-mini-details p {
    font-size: 14px;
    color: var(--text-main);
    margin-bottom: 4px;
}

.action-buttons-slider {
    display: flex;
    gap: 12px;
    padding-bottom: 8px;
}

.action-btn-circle {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: 72px;
    height: 72px;
    border-radius: 16px;
    background: white;
    border: 1px solid var(--border-color);
    font-family: inherit;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
}

.action-btn-circle i {
    font-size: 24px;
}

.action-btn-circle span {
    font-size: 11px;
    font-weight: 600;
}

.notes-card {
    background: #FFFBEB; /* Soft yellow for notes */
    border-radius: 16px;
    padding: 16px;
    border: 1px dashed #FCD34D;
}

.notes-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.notes-header h4 {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #92400E;
}

.notes-preview p {
    font-size: 14px;
    color: #92400E;
}

.note-date {
    font-size: 11px;
    color: #B45309 !important;
}

/* Modal Overlay */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    backdrop-filter: blur(4px);
}

.modal-content {
    background: white;
    width: 100%;
    max-width: 400px;
    border-radius: 20px;
    padding: 20px;
    box-shadow: var(--shadow-lg);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 12px;
}

.modal-header h3 {
    font-size: 18px;
}

/* =========================================
   Property Details Data Grids 
   ========================================= */
.key-details-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    background: #f8fafc;
    border-radius: 12px;
    padding: 16px;
    border: 1px solid var(--border-color);
}

.detail-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.detail-item .label {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 500;
}

.detail-item .value {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-color);
}

.amenities-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.amenity {
    background: white;
    border: 1px solid var(--border-color);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-color);
}

.amenity i {
    color: var(--primary-color);
    font-size: 16px;
}

/* Toast Notification */
.toast {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: white;
    padding: 12px 20px;
    border-radius: 30px;
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 9999;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    font-size: 14px;
    animation: slideDown 0.3s ease forwards;
}

.toast.error {
    background: #e74c3c;
}

@keyframes slideDown {
    from { top: -50px; opacity: 0; }
    to { top: 20px; opacity: 1; }
}

/* ============================================================
   OTP LOGIN STYLES
   ============================================================ */

/* Login Method Tabs */
.login-tabs {
    display: flex;
    background: #E2E8F0;
    padding: 4px;
    border-radius: 12px;
    margin-bottom: 28px;
    gap: 4px;
}

.login-tab {
    flex: 1;
    padding: 12px 16px;
    text-align: center;
    border: none;
    background: transparent;
    border-radius: 10px;
    font-weight: 600;
    font-family: inherit;
    font-size: 14px;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.login-tab i {
    font-size: 16px;
}

.login-tab.active {
    background: white;
    color: var(--primary-color);
    box-shadow: 0 2px 8px rgba(79, 70, 229, 0.15);
}

.login-tab:hover:not(.active) {
    color: var(--text-main);
}

/* OTP Input Group - 4 individual digit boxes */
.otp-input-group {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 24px;
}

.otp-digit {
    width: 56px;
    height: 62px;
    text-align: center;
    font-size: 24px;
    font-weight: 700;
    font-family: 'Outfit', sans-serif;
    border: 2px solid var(--border-color);
    border-radius: 14px;
    background: var(--bg-color);
    color: var(--text-main);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
    caret-color: var(--primary-color);
}

.otp-digit:focus {
    border-color: var(--primary-color);
    background: white;
    box-shadow: 0 0 0 4px var(--primary-light);
    transform: translateY(-2px);
}

.otp-digit.filled {
    border-color: var(--primary-color);
    background: var(--primary-light);
    color: var(--primary-color);
}

.otp-digit.error {
    border-color: var(--danger);
    background: var(--danger-light);
    animation: otpShake 0.4s ease;
}

@keyframes otpShake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-6px); }
    50% { transform: translateX(6px); }
    75% { transform: translateX(-4px); }
}

/* OTP Action Buttons */
.otp-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 16px;
}

.btn-link {
    background: none;
    border: none;
    color: var(--primary-color);
    font-size: 13px;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    padding: 6px 0;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 3px;
}

.btn-link:hover {
    text-decoration: underline;
}

.btn-link:disabled {
    color: var(--text-muted);
    cursor: default;
    text-decoration: none;
}

#resend-timer {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 400;
}

/* Loading state for OTP buttons */
.btn.loading {
    pointer-events: none;
    opacity: 0.7;
}

.btn.loading::after {
    content: '';
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
    margin-left: 8px;
}

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

/* Toggle Switch UI */
.toggle-switch { position: relative; width: 44px; height: 24px; border-radius: 24px; cursor: pointer; transition: background-color 0.3s ease; display: flex; align-items: center; }
.toggle-switch.active { background-color: #3b82f6; }
.toggle-switch.inactive { background-color: #cbd5e1; }
.toggle-switch-handle { position: absolute; left: 2px; width: 20px; height: 20px; background: white; border-radius: 50%; box-shadow: 0 1px 3px rgba(0,0,0,0.2); transition: transform 0.3s cubic-bezier(0.4, 0.0, 0.2, 1); }
.toggle-switch.active .toggle-switch-handle { transform: translateX(20px); }

/* Swiggy Form Grid UI */
.swiggy-form-grid { display: grid; grid-template-columns: 1fr; gap: 16px; margin-top: 16px; }
@media (min-width: 768px) { .swiggy-form-grid { grid-template-columns: 1fr 1fr; } .swiggy-col-span-2 { grid-column: span 2; } }
.swiggy-input-group { position: relative; }
.swiggy-input-group label { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: #475569; margin-bottom: 6px; }
.swiggy-input-group input, .swiggy-input-group select, .swiggy-input-group textarea { width: 100%; padding: 14px 16px; border: 1px solid #e2e8f0; border-radius: 12px; font-family: inherit; font-size: 14px; color: #0f172a; transition: all 0.2s ease; background: #f8fafc; box-sizing: border-box; }
.swiggy-input-group input:focus, .swiggy-input-group select:focus, .swiggy-input-group textarea:focus { outline: none; border-color: #6366f1; background: #fff; box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1); }
.swiggy-input-group i { color: #8b5cf6; font-size: 16px; }


/* Unified Lead Card Styles */
.lead-unified-card { background: #fff; border-radius: 16px; padding: 16px; box-shadow: 0 4px 12px rgba(0,0,0,0.03); border: 1px solid #f1f5f9; transition: all 0.2s; display: flex; flex-direction: column; gap: 12px; }
.lead-header-row { display: flex; justify-content: space-between; align-items: flex-start; }
.lead-user-info { display: flex; gap: 12px; align-items: center; }
.lead-avatar { width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; color: white; font-size: 16px; }
.lead-name { font-size: 15px; font-weight: 700; color: #0f172a; margin: 0; }
.lead-phone { font-size: 13px; color: #64748b; margin-top: 2px; }
.lead-status-row { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.lead-status-pill { padding: 4px 12px; border-radius: 20px; font-size: 11px; font-weight: 700; }
.pill-rent { background: #dbeafe; color: #1d4ed8; }
.pill-sale { background: #dcfce7; color: #166534; }
.lead-property-card { background: #f8fafc; border-radius: 12px; padding: 10px; display: flex; gap: 12px; align-items: center; border: 1px solid #e2e8f0; position: relative; }
.lead-prop-img { width: 60px; height: 60px; border-radius: 8px; object-fit: cover; }
.lead-prop-details { flex: 1; }
.lead-prop-title { font-size: 14px; font-weight: 600; color: #1e293b; margin: 0; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.lead-prop-loc { font-size: 12px; color: #64748b; margin-top: 2px; display: flex; align-items: center; gap: 4px; }
.lead-prop-meta { font-size: 11px; color: #94a3b8; margin-top: 4px; }
.lead-actions-minimal { margin-left: auto; display: flex; gap: 8px; align-self: flex-end; }
.btn-circle { width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; border: none; cursor: pointer; transition: all 0.2s; }
.btn-wa { background: #dcfce7; color: #166534; font-size: 18px; }
.btn-call { background: #eff6ff; color: #2563eb; font-size: 18px; }

