:root {
    /* Dark Theme Colors */
    --bg-primary: #0a0e27;
    --bg-secondary: #141b2d;
    --bg-tertiary: #1e2742;
    --bg-card: #1a2332;
    --bg-hover: #252d42;
    
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #818cf8;
    --secondary: #ec4899;
    --accent: #10b981;
    
    --text-primary: #f8fafc;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;
    
    --border: #2d3748;
    --border-light: #374151;
    
    --success: #10b981;
    --error: #ef4444;
    --warning: #f59e0b;
    
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.5);
    --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.6);
    
    --glow: 0 0 20px rgba(99, 102, 241, 0.4);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text-primary);
    background: var(--bg-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Top Header */
.top-header {
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
    font-size: 13px;
    position: relative;
    z-index: 1001;
}

.top-header-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 8px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-left-links,
.top-right-links {
    display: flex;
    align-items: center;
    gap: 16px;
}

.link-btn {
    background: none;
    border: none;
    padding: 0;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 13px;
    transition: color 0.2s;
}

.link-btn:hover {
    color: var(--primary-light);
}

/* Navigation */
.main-nav {
    background: var(--bg-secondary);
    box-shadow: var(--shadow-lg);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 0 20px;
    backdrop-filter: blur(10px);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 75px;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 40px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 26px;
    font-weight: 900;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    cursor: pointer;
    transition: transform 0.3s;
}

.logo:hover {
    transform: scale(1.05);
}

.logo i {
    font-size: 30px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-tab {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 15px;
    padding: 8px 0;
    border-bottom: 3px solid transparent;
    transition: all 0.3s;
    position: relative;
}

.nav-tab:hover {
    color: var(--primary-light);
}

.nav-tab.active {
    color: var(--primary-light);
    border-bottom-color: var(--primary);
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.btn-outline {
    padding: 10px 20px;
    border-radius: 8px;
    border: 2px solid var(--primary);
    background: transparent;
    color: var(--primary-light);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 14px;
}

.btn-outline:hover {
    background: var(--primary);
    color: white;
    box-shadow: var(--glow);
    transform: translateY(-2px);
}

.btn-primary {
    padding: 10px 24px;
    border-radius: 8px;
    border: none;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 14px;
    box-shadow: var(--shadow);
}

.btn-primary:hover {
    box-shadow: var(--glow);
    transform: translateY(-2px);
}

.btn-secondary {
    padding: 10px 20px;
    border-radius: 8px;
    border: 2px solid var(--border);
    background: var(--bg-card);
    color: var(--text-primary);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 14px;
}

.btn-secondary:hover {
    border-color: var(--primary);
    color: var(--primary-light);
    transform: translateY(-2px);
}

.btn-icon {
    background: var(--bg-card);
    border: none;
    font-size: 20px;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 10px;
    border-radius: 50%;
    transition: all 0.3s;
    position: relative;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-icon:hover {
    background: var(--bg-hover);
    color: var(--primary-light);
    transform: scale(1.1);
}

.badge-count {
    position: absolute;
    top: 0;
    right: 0;
    background: var(--error);
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

/* User Dropdown */
.user-dropdown-wrapper {
    position: relative;
}

.profile-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    cursor: pointer;
    padding: 8px 14px;
    transition: all 0.3s;
    color: var(--text-primary);
}

.profile-btn:hover {
    background: var(--bg-hover);
    border-color: var(--primary);
}

.profile-btn i {
    font-size: 20px;
    color: var(--primary-light);
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: var(--bg-card);
    box-shadow: var(--shadow-xl);
    border-radius: 12px;
    margin-top: 8px;
    min-width: 220px;
    overflow: hidden;
    border: 1px solid var(--border);
    z-index: 1000;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.2s;
    border-bottom: 1px solid var(--border);
}

.dropdown-menu a:last-child {
    border-bottom: none;
}

.dropdown-menu a:hover {
    background: var(--bg-hover);
    color: var(--primary-light);
    padding-left: 24px;
}

.dropdown-menu a i {
    width: 20px;
    color: var(--primary-light);
}

/* Hero Section with 3D Elements */
.hero-section {
    position: relative;
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 50%, var(--bg-primary) 100%);
    padding: 100px 20px 80px;
    text-align: center;
    overflow: hidden;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-3d-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

/* Animated Background Images */
.hero-bg-image {
    position: absolute;
    opacity: 0.08;
    animation: float 20s infinite ease-in-out;
    filter: blur(1px);
    transition: all 0.3s ease;
}

.hero-bg-image:hover {
    opacity: 0.12;
    transform: scale(1.05);
}

.hero-bg-image.img-1 {
    top: 10%;
    left: 5%;
    width: 120px;
    height: 120px;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><rect x="10" y="30" width="80" height="60" fill="%234F46E5"/><rect x="20" y="10" width="60" height="40" fill="%236366F1"/><rect x="30" y="15" width="15" height="15" fill="%23E0E7FF"/><rect x="55" y="15" width="15" height="15" fill="%23E0E7FF"/><rect x="40" y="40" width="20" height="30" fill="%231E293B"/></svg>') center/contain no-repeat;
    animation-delay: 0s;
}

.hero-bg-image.img-2 {
    top: 60%;
    right: 10%;
    width: 100px;
    height: 100px;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><rect x="15" y="25" width="70" height="50" fill="%2316A34A"/><polygon points="15,25 50,5 85,25" fill="%2322C55E"/><rect x="35" y="45" width="30" height="25" fill="%23E0F2FE"/><circle cx="50" cy="35" r="8" fill="%23F97316"/></svg>') center/contain no-repeat;
    animation-delay: 3s;
    animation-duration: 25s;
}

.hero-bg-image.img-3 {
    top: 20%;
    right: 15%;
    width: 90px;
    height: 90px;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><rect x="20" y="40" width="60" height="40" fill="%23DC2626"/><polygon points="20,40 50,20 80,40" fill="%23EF4444"/><rect x="30" y="55" width="15" height="15" fill="%23FEF2F2"/><rect x="55" y="55" width="15" height="15" fill="%23FEF2F2"/></svg>') center/contain no-repeat;
    animation-delay: 6s;
    animation-duration: 18s;
}

.hero-bg-image.img-4 {
    bottom: 15%;
    left: 12%;
    width: 110px;
    height: 110px;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><rect x="10" y="35" width="80" height="45" fill="%237C3AED"/><rect x="25" y="20" width="50" height="25" fill="%238B5CF6"/><rect x="40" y="50" width="20" height="20" fill="%231E293B"/><circle cx="35" cy="30" r="5" fill="%23F59E0B"/><circle cx="65" cy="30" r="5" fill="%23F59E0B"/></svg>') center/contain no-repeat;
    animation-delay: 9s;
    animation-duration: 22s;
}

.hero-bg-image.img-5 {
    top: 45%;
    left: 45%;
    width: 80px;
    height: 80px;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><rect x="30" y="30" width="40" height="40" fill="%23F59E0B"/><polygon points="30,30 50,10 70,30" fill="%23FBBF24"/><rect x="40" y="45" width="20" height="15" fill="%23782C16"/><rect x="45" y="50" width="10" height="5" fill="%23FED7AA"/></svg>') center/contain no-repeat;
    animation-delay: 12s;
    animation-duration: 20s;
}

/* Floating Animation */
@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    25% {
        transform: translateY(-20px) rotate(5deg);
    }
    50% {
        transform: translateY(-10px) rotate(-3deg);
    }
    75% {
        transform: translateY(-15px) rotate(2deg);
    }
}

/* Pulse Animation for Key Images */
@keyframes pulse {
    0%, 100% {
        opacity: 0.08;
        transform: scale(1);
    }
    50% {
        opacity: 0.15;
        transform: scale(1.1);
    }
}

.hero-bg-image.img-1 {
    animation: float 20s infinite ease-in-out, pulse 4s infinite ease-in-out;
}

.hero-bg-image.img-3 {
    animation: float 18s infinite ease-in-out, pulse 5s infinite ease-in-out;
}

/* Rotate Animation */
@keyframes slowRotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.hero-bg-image.img-5 {
    animation: float 20s infinite ease-in-out, slowRotate 30s infinite linear;
}

/* Animated Background Particles */
.hero-particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--primary);
    border-radius: 50%;
    opacity: 0.3;
    animation: particleFloat 15s infinite linear;
}

.hero-particle.p-1 {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.hero-particle.p-2 {
    top: 40%;
    right: 15%;
    animation-delay: 2s;
}

.hero-particle.p-3 {
    bottom: 30%;
    left: 20%;
    animation-delay: 4s;
}

.hero-particle.p-4 {
    top: 60%;
    right: 25%;
    animation-delay: 6s;
}

.hero-particle.p-5 {
    bottom: 20%;
    right: 10%;
    animation-delay: 8s;
}

@keyframes particleFloat {
    0% {
        transform: translateY(0px) translateX(0px);
        opacity: 0;
    }
    10% {
        opacity: 0.3;
    }
    90% {
        opacity: 0.3;
    }
    100% {
        transform: translateY(-100px) translateX(50px);
        opacity: 0;
    }
}

/* Shimmer Effect */
.hero-shimmer {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 30%,
        rgba(255, 255, 255, 0.03) 50%,
        transparent 70%
    );
    animation: shimmer 8s infinite;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
    }
    100% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
    }
}

/* Enhanced hover effects */
.hero-bg-image:hover {
    opacity: 0.15;
    transform: scale(1.1) rotate(5deg);
    filter: blur(0.5px) drop-shadow(0 0 10px rgba(99, 102, 241, 0.3));
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-bg-image {
        width: 60px !important;
        height: 60px !important;
    }
    
    .hero-bg-image.img-1 {
        width: 70px !important;
        height: 70px !important;
    }
    
    .hero-bg-image.img-4 {
        width: 80px !important;
        height: 80px !important;
    }
    
    .hero-particle {
        width: 2px;
        height: 2px;
    }
}

.shape-1 {
    width: 400px;
    height: 400px;
    top: -100px;
    left: 10%;
    animation-delay: 0s;
}

.shape-2 {
    width: 300px;
    height: 300px;
    top: 50%;
    right: 15%;
    animation-delay: 5s;
}

.shape-3 {
    width: 350px;
    height: 350px;
    bottom: -50px;
    left: 50%;
    animation-delay: 10s;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }
    33% {
        transform: translate(30px, -30px) rotate(120deg);
    }
    66% {
        transform: translate(-20px, 20px) rotate(240deg);
    }
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 1000px;
    margin: 0 auto;
}

.hero-title {
    font-size: 56px;
    font-weight: 900;
    margin-bottom: 20px;
    line-height: 1.2;
    animation: fadeInUp 0.8s ease;
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 20px;
    margin-bottom: 40px;
    color: var(--text-secondary);
    animation: fadeInUp 1s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Search Tabs */
.nb-search-tabs {
    display: inline-flex;
    background: var(--bg-card);
    border-radius: 50px;
    padding: 6px;
    margin-bottom: 24px;
    border: 1px solid var(--border);
    animation: fadeInUp 1.2s ease;
}

.tab-btn {
    padding: 12px 28px;
    border: none;
    background: transparent;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
    color: var(--text-secondary);
    font-size: 15px;
}

.tab-btn.active {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    box-shadow: var(--shadow);
}

.tab-btn:hover:not(.active) {
    color: var(--primary-light);
}

/* Search Row */
.nb-search-row {
    display: grid;
    grid-template-columns: 200px 1fr auto;
    gap: 12px;
    margin-bottom: 20px;
    animation: fadeInUp 1.4s ease;
}

.nb-city-select,
.nb-search-input {
    padding: 16px 20px;
    border-radius: 12px;
    border: 2px solid var(--border);
    background: var(--bg-card);
    color: var(--text-primary);
    font-size: 15px;
    transition: all 0.3s;
}

.nb-city-select:focus,
.nb-search-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: var(--glow);
    background: var(--bg-secondary);
}

.nb-search-btn {
    padding: 16px 32px;
    font-size: 16px;
    border-radius: 12px;
    white-space: nowrap;
}

.nb-owner-strip {
    margin-top: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    color: var(--text-secondary);
    font-size: 15px;
    animation: fadeInUp 1.6s ease;
}

/* Content Sections */
.content-section {
    max-width: 1400px;
    margin: 0 auto;
    padding: 80px 20px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.section-header h2 {
    font-size: 36px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-header a {
    color: var(--primary-light);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}

.section-header a:hover {
    color: var(--secondary);
}

.bg-light {
    background: var(--bg-secondary);
}

/* Benefits Grid */
.nb-benefits {
    text-align: center;
}

.nb-benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.nb-benefit-card {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 40px 30px;
    box-shadow: var(--shadow-lg);
    transition: all 0.4s;
    border: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}

.nb-benefit-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.1), transparent);
    transition: left 0.5s;
}

.nb-benefit-card:hover::before {
    left: 100%;
}

.nb-benefit-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary);
}

.benefit-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: white;
    box-shadow: var(--glow);
}

.nb-benefit-card h3 {
    font-size: 22px;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.nb-benefit-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Stats Section */
.nb-stats {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
    border-radius: 24px;
    margin: 60px auto;
    max-width: 1400px;
    padding: 60px 20px;
}

.nb-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.nb-stat-item {
    text-align: center;
    padding: 30px;
    background: var(--bg-card);
    border-radius: 16px;
    border: 1px solid var(--border);
    transition: all 0.3s;
}

.nb-stat-item:hover {
    transform: scale(1.05);
    border-color: var(--primary);
    box-shadow: var(--glow);
}

.nb-stat-value {
    font-size: 42px;
    font-weight: 900;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 10px;
}

.nb-stat-label {
    font-size: 15px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Property Grid */
.property-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 30px;
}

.property-card {
    background: var(--bg-card);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transition: all 0.4s;
    cursor: pointer;
    border: 1px solid var(--border);
    position: relative;
}

.property-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary);
}

.property-image {
    width: 100%;
    height: 260px;
    object-fit: cover;
    background: var(--bg-secondary);
    transition: transform 0.4s;
}

.property-card:hover .property-image {
    transform: scale(1.1);
}

.property-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    background: var(--bg-card);
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    color: var(--primary-light);
    box-shadow: var(--shadow);
    z-index: 10;
}

.property-favorite {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(26, 35, 50, 0.9);
    backdrop-filter: blur(10px);
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--text-secondary);
    transition: all 0.3s;
    z-index: 10;
}

.property-favorite:hover {
    background: rgba(99, 102, 241, 0.2);
    color: var(--error);
}

.property-favorite.active {
    color: var(--error);
}

.property-card-body {
    padding: 24px;
}

.property-price {
    font-size: 28px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 10px;
}

.property-specs {
    color: var(--text-secondary);
    margin-bottom: 10px;
    font-size: 15px;
}

.property-address {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 12px;
}

.property-type-badge {
    display: inline-block;
    background: var(--bg-secondary);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    color: var(--text-secondary);
    border: 1px solid var(--border);
}

/* Reviews Section */
.reviews-section {
    text-align: center;
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.review-card {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 30px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
    transition: all 0.4s;
    text-align: left;
}

.review-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary);
}

.review-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.review-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    flex-shrink: 0;
}

.review-info {
    flex: 1;
}

.review-name {
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.review-location {
    font-size: 13px;
    color: var(--text-muted);
}

.review-stars {
    color: var(--warning);
    font-size: 14px;
}

.review-text {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 12px;
    font-size: 15px;
}

.review-date {
    font-size: 12px;
    color: var(--text-muted);
}

/* Tools Section */
.tools-section h2 {
    text-align: center;
    margin-bottom: 50px;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.tool-card {
    background: var(--bg-card);
    padding: 50px 40px;
    border-radius: 20px;
    text-align: center;
    box-shadow: var(--shadow-lg);
    cursor: pointer;
    transition: all 0.4s;
    border: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}

.tool-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transform: scaleX(0);
    transition: transform 0.4s;
}

.tool-card:hover::before {
    transform: scaleX(1);
}

.tool-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary);
}

.tool-card i {
    font-size: 56px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 24px;
    display: block;
}

.tool-card h3 {
    margin-bottom: 12px;
    font-size: 22px;
    color: var(--text-primary);
}

.tool-card p {
    color: var(--text-secondary);
    font-size: 15px;
}

/* Modals */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 20px;
    animation: fadeIn 0.3s;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background: var(--bg-card);
    border-radius: 20px;
    padding: 40px;
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-xl);
    animation: slideUp 0.3s;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.ai-modal-content {
    max-width: 700px;
    height: 600px;
    display: flex;
    flex-direction: column;
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 28px;
    cursor: pointer;
    color: var(--text-muted);
    line-height: 1;
    transition: all 0.3s;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.close-modal:hover {
    color: var(--error);
    background: var(--bg-hover);
    transform: rotate(90deg);
}

.modal-content h2 {
    margin-bottom: 30px;
    font-size: 28px;
    color: var(--text-primary);
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 14px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--border);
    border-radius: 10px;
    font-size: 15px;
    font-family: inherit;
    background: var(--bg-secondary);
    color: var(--text-primary);
    transition: all 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: var(--glow);
    background: var(--bg-tertiary);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.btn-block {
    width: 100%;
    padding: 16px;
    font-size: 16px;
    margin-top: 10px;
}

.text-center {
    text-align: center;
    margin-top: 20px;
}

.text-center a {
    color: var(--primary-light);
    text-decoration: none;
    font-weight: 600;
}

.text-center a:hover {
    color: var(--secondary);
}

/* AI Chat */
.ai-chat {
    flex: 1;
    overflow-y: auto;
    margin-bottom: 20px;
    padding: 20px;
    background: var(--bg-secondary);
    border-radius: 12px;
    border: 1px solid var(--border);
}

.ai-message {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
}

.ai-message i {
    color: var(--primary-light);
    font-size: 24px;
    flex-shrink: 0;
}

.ai-message p {
    background: var(--bg-card);
    padding: 16px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    color: var(--text-primary);
    line-height: 1.6;
}

.ai-input-container {
    display: flex;
    gap: 12px;
}

.ai-input-container input {
    flex: 1;
    padding: 14px 18px;
    border: 2px solid var(--border);
    border-radius: 12px;
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-size: 15px;
}

.ai-input-container input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: var(--glow);
}

.ai-input-container button {
    padding: 14px 24px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s;
}

.ai-input-container button:hover {
    box-shadow: var(--glow);
    transform: scale(1.05);
}

/* Owner Dashboard */
.owner-dashboard {
    padding: 40px 20px;
}

.owner-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.owner-header h2 {
    font-size: 32px;
    font-weight: 800;
    color: var(--text-primary);
}

.owner-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

.owner-summary-card {
    background: var(--bg-card);
    padding: 24px;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
    transition: all 0.3s;
}

.owner-summary-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary);
}

.owner-properties h3,
.owner-plans h3 {
    font-size: 24px;
    margin-bottom: 24px;
    color: var(--text-primary);
}

.plans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
    margin-top: 24px;
}

.plan-card {
    background: var(--bg-card);
    padding: 32px;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    border: 2px solid var(--border);
    transition: all 0.3s;
    text-align: center;
}

.plan-card:hover {
    transform: translateY(-6px);
    border-color: var(--primary);
    box-shadow: var(--shadow-xl);
}

.plan-card h4 {
    font-size: 22px;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.plan-card p {
    color: var(--text-secondary);
    margin-bottom: 20px;
    font-size: 14px;
}

.plan-price {
    font-weight: 900;
    font-size: 32px;
    margin: 20px 0;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Utilities */
.hidden {
    display: none !important;
}

.page {
    min-height: calc(100vh - 145px);
}

/* Toast */
.toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--bg-card);
    color: var(--text-primary);
    padding: 16px 24px;
    border-radius: 12px;
    box-shadow: var(--shadow-xl);
    z-index: 3000;
    animation: slideInRight 0.3s;
    border: 1px solid var(--border);
    max-width: 400px;
}

@keyframes slideInRight {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Valuation & Loan Results */
.valuation-result,
.loan-result {
    margin-top: 30px;
    padding: 24px;
    background: var(--bg-secondary);
    border-radius: 12px;
    border: 1px solid var(--border);
}

.result-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}

.result-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.result-label {
    font-weight: 600;
    color: var(--text-secondary);
}

.result-value {
    font-weight: 800;
    font-size: 20px;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Seller vs Buyer modes */
body.seller-mode .hero-section,
body.seller-mode .nb-benefits,
body.seller-mode .nb-stats {
    display: none;
}

body.seller-mode #page-home:not(.browsing-mode) {
    display: none;
}

body.seller-mode #page-dashboard {
    display: block;
}

body.buyer-mode #page-dashboard {
    display: none;
}

body.seller-mode .nav-links {
    display: flex;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .hero-title {
        font-size: 36px;
    }

    .nb-search-row {
        grid-template-columns: 1fr;
    }

    .property-grid {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .nb-benefits-grid,
    .reviews-grid,
    .tools-grid {
        grid-template-columns: 1fr;
    }
}
