/* ZuboEstate Master Design System */
:root {
    --primary: #094a28;
    --primary-dark: #06331b;
    --primary-light: #12703f;
    --primary-subtle: #e8f5e9;
    --accent: #c59b27;
    --accent-gold: #d4af37;
    --accent-light: #fef9e7;
    --footer-bg: #072816;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --text-light: #94a3b8;
    --bg-page: #f8fafc;
    --bg-card: #ffffff;
    --border-color: #e2e8f0;
    --border-focus: #094a28;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
    --shadow-lg: 0 12px 28px rgba(0,0,0,0.12);
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-full: 9999px;
    --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-heading: 'Playfair Display', Georgia, serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: var(--font-sans);
    color: var(--text-main);
    background-color: var(--bg-page);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    width: 100%;
}

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

img {
    max-width: 100%;
    display: block;
}

button, input, select, textarea {
    font-family: inherit;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

/* NAVBAR */
.header-main {
    background: #ffffff;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.brand-wrapper {
    display: flex;
    align-items: center;
    gap: 16px;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 24px;
    font-weight: 800;
    color: var(--accent);
    letter-spacing: -0.5px;
}

.brand-logo span.highlight {
    color: var(--primary);
}

.brand-emblem {
    width: 28px;
    height: 28px;
    color: var(--accent);
}

.city-selector {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    background: #f1f5f9;
    padding: 6px 12px;
    border-radius: var(--radius-full);
    cursor: pointer;
    border: 1px solid var(--border-color);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
    list-style: none;
}

.nav-item {
    position: relative;
    font-weight: 600;
    font-size: 14.5px;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    padding: 10px 0;
    transition: color 0.2s;
}

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

/* NAVBAR DROPDOWNS */
.has-dropdown {
    position: relative;
}

.has-dropdown:hover .nav-dropdown-menu,
.has-dropdown:focus-within .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.nav-dropdown-menu {
    position: absolute;
    top: 100%;
    left: -16px;
    width: 290px;
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.12);
    padding: 12px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
    z-index: 500;
}

.dropdown-link-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: var(--radius-md);
    transition: all 0.15s;
    text-decoration: none;
    color: var(--text-main);
}

.dropdown-link-item:hover {
    background: #f8fafc;
    color: var(--primary);
}

.dropdown-icon-box {
    width: 34px;
    height: 34px;
    border-radius: var(--radius-sm);
    background: #f1f5f9;
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    transition: all 0.15s;
}

.dropdown-link-item:hover .dropdown-icon-box {
    background: var(--primary);
    color: #ffffff;
}

.dropdown-text-title {
    font-size: 13.5px;
    font-weight: 700;
    line-height: 1.2;
}

.dropdown-text-desc {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 2px;
}

/* SVG & Icon Size Constraints */
svg {
    max-width: 100%;
}

.pagination svg, nav[role="navigation"] svg {
    width: 16px !important;
    height: 16px !important;
    max-width: 16px !important;
    max-height: 16px !important;
    display: inline-block !important;
}

/* VERIFIED BROKERS SECTION */
.brokers-section {
    padding: 50px 0;
    background: #f8fafc;
    border-top: 1px solid var(--border-color);
}

.brokers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 22px;
}

.broker-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.2s, box-shadow 0.2s;
    position: relative;
    overflow: hidden;
}

.broker-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary) 0%, var(--accent) 100%);
}

.broker-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.broker-avatar-wrap {
    position: relative;
    width: 68px;
    height: 68px;
    border-radius: 50%;
    margin-bottom: 14px;
}

.broker-avatar-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #ffffff;
    box-shadow: var(--shadow-sm);
}

.broker-badge-check {
    position: absolute;
    bottom: -2px;
    right: -2px;
    background: #0284c7;
    color: #ffffff;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    border: 2px solid #ffffff;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 14px;
}

.btn-post-property {
    background-color: var(--primary);
    color: #ffffff !important;
    padding: 10px 20px;
    border-radius: var(--radius-full);
    font-size: 14px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 14px rgba(9, 74, 40, 0.25);
    transition: all 0.2s;
}

.btn-post-property:hover {
    background-color: var(--primary-light);
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(9, 74, 40, 0.35);
}

.free-pill {
    background: #ffffff;
    color: var(--primary);
    font-size: 10px;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: var(--radius-full);
    text-transform: uppercase;
}

.btn-login {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--primary);
    padding: 8px 14px;
    border-radius: var(--radius-full);
    border: 1px solid var(--border-color);
    transition: background 0.2s;
}

.btn-login:hover {
    background: #f8fafc;
}

.btn-hamburger {
    background: none;
    border: none;
    font-size: 22px;
    color: var(--text-main);
    cursor: pointer;
    padding: 6px;
    border-radius: var(--radius-sm);
}

/* HERO SECTION */
.hero-section {
    position: relative;
    min-height: 480px;
    background: linear-gradient(rgba(10, 20, 15, 0.55), rgba(10, 20, 15, 0.75)), 
                url('https://images.unsplash.com/photo-1545324418-cc1a3fa10c00?auto=format&fit=crop&w=1920&q=80') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 20px 80px;
}

.hero-content {
    max-width: 980px;
    width: 100%;
    text-align: center;
    color: #ffffff;
}

.hero-headline {
    font-family: var(--font-heading);
    font-size: 42px;
    font-weight: 700;
    letter-spacing: -0.5px;
    margin-bottom: 30px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

/* HERO TABS & SEARCH BAR */
.search-widget-container {
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(12px);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 6px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.search-tabs {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 8px 10px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.tab-btn {
    background: transparent;
    border: none;
    color: #cbd5e1;
    font-size: 13px;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tab-btn.active {
    background: var(--primary);
    color: #ffffff;
}

.red-dot {
    width: 7px;
    height: 7px;
    background-color: #ef4444;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 6px #ef4444;
}

.search-form-bar {
    display: flex;
    align-items: center;
    background: #ffffff;
    border-radius: var(--radius-md);
    padding: 6px;
    margin-top: 6px;
    gap: 8px;
}

.search-input-group {
    flex: 2;
    display: flex;
    align-items: center;
    padding: 8px 14px;
    border-right: 1px solid var(--border-color);
}

.search-input-group input {
    width: 100%;
    border: none;
    outline: none;
    font-size: 14px;
    color: var(--text-main);
}

.search-select-group {
    flex: 1.2;
    display: flex;
    align-items: center;
    padding: 8px 10px;
    border-right: 1px solid var(--border-color);
}

.search-select-group select {
    width: 100%;
    border: none;
    outline: none;
    font-size: 13px;
    color: var(--text-main);
    background: transparent;
    cursor: pointer;
}

.btn-ask-ai {
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    color: #0f172a;
    padding: 11px 18px;
    border-radius: var(--radius-md);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    transition: all 0.2s;
}

.btn-ask-ai:hover {
    background: #f1f5f9;
    border-color: var(--accent);
    color: var(--accent);
}

.btn-search-main {
    background: var(--primary);
    color: #ffffff;
    border: none;
    padding: 11px 26px;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
}

.btn-search-main:hover {
    background: var(--primary-light);
}

/* APP DOWNLOAD QR FLOATING WIDGET */
.qr-float-card {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    background: #ffffff;
    padding: 12px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    text-align: center;
    display: none;
}

@media (min-width: 1200px) {
    .qr-float-card {
        display: block;
    }
}

.qr-float-card img {
    width: 85px;
    height: 85px;
    margin: 0 auto;
}

.qr-float-card p {
    font-size: 10px;
    font-weight: 700;
    color: var(--text-muted);
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* SECTION HEADINGS */
.section-title {
    font-size: 26px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 24px;
}

.section-wrapper {
    padding: 48px 0;
}

/* 4 CATEGORY CARDS (Welcome to ZuboEstate) */
.welcome-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
    gap: 20px;
}

.welcome-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 20px;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.2s, box-shadow 0.2s;
}

.welcome-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.card-header-styled {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
}

.card-icon-box {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.icon-blue { background: #e0e7ff; color: #4338ca; }
.icon-orange { background: #ffedd5; color: #c2410c; }
.icon-green { background: #dcfce7; color: #15803d; }
.icon-yellow { background: #fef9c3; color: #a16207; }

.card-title-meta h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-main);
}

.card-title-meta .badge-count {
    font-size: 12px;
    font-weight: 600;
    color: var(--primary);
}

.mini-listing-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 16px;
}

.mini-listing-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px;
    border-radius: var(--radius-sm);
    background: #f8fafc;
    border: 1px solid #f1f5f9;
}

.mini-listing-thumb {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-sm);
    object-fit: cover;
}

.mini-listing-info {
    flex: 1;
}

.mini-listing-info h4 {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-main);
    line-height: 1.3;
}

.mini-listing-info p {
    font-size: 11px;
    color: var(--text-muted);
}

.mini-listing-price {
    font-size: 13px;
    font-weight: 700;
    color: var(--primary);
    white-space: nowrap;
}

.bullet-features-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.bullet-features-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-main);
    padding: 6px 0;
    border-bottom: 1px solid #f8fafc;
}

.bullet-features-list li i {
    color: var(--accent);
}

.card-footer-link {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 700;
    color: var(--text-main);
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid #f1f5f9;
    transition: color 0.2s;
}

.card-footer-link:hover {
    color: var(--primary);
}

/* BEST BUYS VERIFIED CAROUSEL */
.carousel-track {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 16px;
    scrollbar-width: thin;
}

.carousel-track::-webkit-scrollbar {
    height: 6px;
}

.carousel-track::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: var(--radius-full);
}

.sponsored-card {
    flex: 0 0 290px;
    scroll-snap-align: start;
    background: #ffffff;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s, box-shadow 0.2s;
}

.sponsored-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.card-media-wrapper {
    position: relative;
    height: 190px;
    background: #e2e8f0;
}

.card-media-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.badge-sponsored {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(255, 255, 255, 0.95);
    color: #475569;
    font-size: 10px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    box-shadow: var(--shadow-sm);
}

.badge-purpose {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--primary);
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: var(--radius-full);
    text-transform: uppercase;
}

.badge-poster {
    position: absolute;
    bottom: 10px;
    left: 10px;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: var(--radius-full);
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 4px;
}

.badge-owner { background: #059669; }
.badge-broker { background: #4f46e5; }
.badge-builder { background: #d97706; }
.badge-buyer { background: #64748b; }
.badge-admin { background: #dc2626; }

.badge-verified-tick {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: #0284c7;
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    gap: 4px;
}

.sponsored-body {
    padding: 16px;
}

.sponsored-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-main);
    line-height: 1.4;
    height: 40px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.sponsored-price {
    font-size: 17px;
    font-weight: 800;
    color: var(--primary);
    margin: 8px 0 2px;
}

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

/* EXPLORE RESIDENTIAL GRID */
.properties-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 22px;
}

.property-main-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
}

.property-main-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.property-specs-chips {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin: 10px 0;
}

.spec-chip {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    background: #f1f5f9;
    padding: 4px 8px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    gap: 4px;
}

/* VERIFICATION CALLOUT BANNER */
.verification-banner {
    background: linear-gradient(135deg, #094a28 0%, #06331b 100%);
    color: #ffffff;
    border-radius: var(--radius-lg);
    padding: 32px;
    margin: 40px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}

.verification-banner h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 6px;
}

.verification-banner p {
    font-size: 14px;
    color: #cbd5e1;
    max-width: 680px;
}

/* FOOTER */
.site-footer {
    background-color: var(--footer-bg);
    color: #e2e8f0;
    padding: 60px 0 30px;
    margin-top: 60px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 36px;
    margin-bottom: 40px;
}

.footer-col h4 {
    font-size: 15px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 14px;
    position: relative;
    padding-bottom: 6px;
    display: inline-block;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 28px;
    height: 2px;
    background: var(--accent);
}

.footer-cities-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
    font-size: 13px;
    color: #cbd5e1;
}

.footer-cities-list li::after {
    content: '|';
    margin-left: 8px;
    color: #475569;
}

.footer-cities-list li:last-child::after {
    content: '';
}

.footer-cities-list a:hover {
    color: var(--accent);
}

.footer-about-text {
    font-size: 13px;
    line-height: 1.6;
    color: #94a3b8;
}

.social-icons-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.social-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 16px;
    transition: background 0.2s;
}

.social-btn:hover {
    background: var(--accent);
}

.app-store-badges {
    display: flex;
    gap: 10px;
}

.app-badge-btn {
    background: #000000;
    color: #ffffff;
    border: 1px solid #334155;
    border-radius: var(--radius-sm);
    padding: 6px 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 24px;
    text-align: center;
    font-size: 12px;
    color: #64748b;
}

/* SLIDING DRAWER MENU */
.drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(4px);
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.drawer-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

.drawer-sidebar {
    position: fixed;
    top: 0;
    right: 0;
    width: 340px;
    max-width: 85%;
    height: 100%;
    background: #ffffff;
    z-index: 1001;
    box-shadow: -10px 0 30px rgba(0,0,0,0.15);
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.drawer-overlay.open .drawer-sidebar {
    transform: translateX(0);
}

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

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

.drawer-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #e0f2fe;
    color: #0369a1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.drawer-nav-list {
    list-style: none;
    padding: 16px 0;
}

.drawer-nav-item {
    padding: 12px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: 600;
    font-size: 14px;
    color: var(--text-main);
    cursor: pointer;
    transition: background 0.2s;
}

.drawer-nav-item:hover {
    background: #f8fafc;
    color: var(--primary);
}

.drawer-post-card {
    background: var(--accent-light);
    border: 1px solid #fef08a;
    border-radius: var(--radius-md);
    padding: 16px;
    margin: 16px 20px;
}

/* ASK AI MODAL */
.ai-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(6px);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.ai-modal-overlay.open {
    display: flex;
}

.ai-modal-dialog {
    background: #ffffff;
    width: 100%;
    max-width: 600px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    max-height: 85vh;
}

.ai-modal-header {
    background: var(--primary);
    color: #ffffff;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.ai-modal-body {
    padding: 20px;
    overflow-y: auto;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.ai-message-bubble {
    padding: 12px 16px;
    border-radius: var(--radius-md);
    font-size: 13.5px;
    line-height: 1.5;
    max-width: 85%;
}

.ai-bubble-bot {
    background: #f1f5f9;
    color: #1e293b;
    align-self: flex-start;
    border: 1px solid var(--border-color);
}

.ai-bubble-user {
    background: var(--primary);
    color: #ffffff;
    align-self: flex-end;
}

.ai-quick-prompts {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.ai-prompt-chip {
    background: #e2e8f0;
    color: #334155;
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    cursor: pointer;
    border: none;
}

.ai-prompt-chip:hover {
    background: var(--primary-subtle);
    color: var(--primary);
}

.ai-modal-footer {
    padding: 14px 20px;
    border-top: 1px solid var(--border-color);
    display: flex;
    gap: 10px;
}

.ai-modal-footer input {
    flex: 1;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 10px 14px;
    font-size: 13.5px;
    outline: none;
}

.ai-modal-footer input:focus {
    border-color: var(--primary);
}

.ai-modal-footer button {
    background: var(--primary);
    color: #ffffff;
    border: none;
    padding: 0 18px;
    border-radius: var(--radius-md);
    font-weight: 700;
    cursor: pointer;
}

/* FORMS AND DASHBOARD TABLES */
.form-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow-sm);
}

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

.form-label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 6px;
}

.form-control {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 14px;
    outline: none;
    transition: border 0.2s;
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(9, 74, 40, 0.1);
}

.role-selector-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 12px;
    margin-bottom: 20px;
}

.role-card-label {
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 14px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
}

.role-card-label input[type="radio"] {
    display: none;
}

.role-card-label:has(input[type="radio"]:checked) {
    border-color: var(--primary);
    background: var(--primary-subtle);
    color: var(--primary);
    font-weight: 700;
}

.badge-status {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    font-size: 11px;
    font-weight: 700;
}

.status-verified {
    background: #dcfce7;
    color: #15803d;
}

.status-pending {
    background: #fef3c7;
    color: #b45309;
}

.status-rejected {
    background: #fee2e2;
    color: #b91c1c;
}

/* RESPONSIVE */
@media (max-width: 900px) {
    .nav-links {
        display: none;
    }
    .hero-headline {
        font-size: 30px;
    }
    .search-form-bar {
        flex-direction: column;
        padding: 12px;
    }
    .search-input-group, .search-select-group {
        border-right: none;
        border-bottom: 1px solid var(--border-color);
        width: 100%;
    }
    .btn-search-main, .btn-ask-ai {
        width: 100%;
        justify-content: center;
    }
}
