:root {
    --pm-green: #059669;
    --pm-green-hover: #047857;
    --pm-green-light: #d1fae5;
    --pm-green-50: rgba(5, 150, 105, 0.08);
    --pm-green-dark: #064e3b;
    --pm-black: #000000;
    --pm-white: #ffffff;
    --pm-gray-50: #f9fafb;
    --pm-gray-100: #f3f4f6;
    --pm-gray-200: #e5e7eb;
    --pm-gray-300: #d1d5db;
    --pm-gray-400: #9ca3af;
    --pm-gray-500: #6b7280;
    --pm-gray-600: #4b5563;
    --pm-gray-700: #374151;
    --pm-gray-800: #1f2937;
    --pm-gray-900: #111827;
    --pm-danger: #ef4444;
    --pm-warning: #f59e0b;
    --pm-info: #3b82f6;
    --pm-success: #10b981;
    --pm-radius: 0.75rem;
    --pm-radius-sm: 0.5rem;
    --pm-shadow-sm: 0 1px 2px rgba(0,0,0,.05);
    --pm-shadow: 0 1px 3px rgba(0,0,0,.1), 0 1px 2px rgba(0,0,0,.06);
    --pm-shadow-md: 0 4px 6px rgba(0,0,0,.07), 0 2px 4px rgba(0,0,0,.06);
    --pm-shadow-lg: 0 10px 15px rgba(0,0,0,.1), 0 4px 6px rgba(0,0,0,.05);
    --pm-transition: all 0.2s ease;
}

*, *::before, *::after { box-sizing: border-box; }

body {
    font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
    background-color: var(--pm-gray-50);
    color: var(--pm-gray-900);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 1.6;
}

a { color: var(--pm-green); text-decoration: none; transition: var(--pm-transition); }
a:hover { color: var(--pm-green-hover); }

/* ===== NAVBAR ===== */
.navbar-pm {
    background: var(--pm-black);
    padding: 0.5rem 0;
    box-shadow: 0 4px 20px rgba(0,0,0,.25);
    z-index: 1030;
}
.navbar-pm .navbar-brand {
    color: var(--pm-green);
    font-weight: 800;
    font-size: 1.35rem;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}
.navbar-pm .navbar-brand i { font-size: 1.5rem; }
.navbar-pm .navbar-brand:hover { color: var(--pm-green); opacity: 0.9; }
.navbar-pm .nav-link {
    color: rgba(255,255,255,.75);
    font-size: 0.875rem;
    font-weight: 500;
    padding: 0.5rem 0.85rem;
    border-radius: var(--pm-radius-sm);
    transition: var(--pm-transition);
}
.navbar-pm .nav-link:hover { color: #fff; background: rgba(255,255,255,.08); }
.navbar-pm .nav-link.active { color: var(--pm-green); }
.navbar-pm .btn-outline-green {
    color: var(--pm-green);
    border-color: var(--pm-green);
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.35rem 1rem;
    border-radius: 50px;
}
.navbar-pm .btn-outline-green:hover { background: var(--pm-green); color: #fff; }
.navbar-pm .dropdown-menu {
    border: 1px solid var(--pm-gray-200);
    box-shadow: var(--pm-shadow-lg);
    border-radius: var(--pm-radius);
    padding: 0.5rem;
    margin-top: 0.5rem;
}
.navbar-pm .dropdown-item {
    border-radius: var(--pm-radius-sm);
    font-size: 0.875rem;
    padding: 0.5rem 0.75rem;
}
.navbar-pm .dropdown-item:hover { background: var(--pm-green-50); color: var(--pm-green); }

/* ===== BUTTONS ===== */
.btn { font-weight: 600; font-size: 0.875rem; border-radius: var(--pm-radius-sm); transition: var(--pm-transition); }
.btn-orange, .btn-green {
    background: var(--pm-green);
    border-color: var(--pm-green);
    color: #fff;
}
.btn-orange:hover, .btn-orange:focus, .btn-green:hover, .btn-green:focus {
    background: var(--pm-green-hover);
    border-color: var(--pm-green-hover);
    color: #fff;
    box-shadow: 0 4px 12px rgba(5,150,105,.3);
}
.btn-outline-orange, .btn-outline-green {
    color: var(--pm-green);
    border-color: var(--pm-green);
}
.btn-outline-orange:hover, .btn-outline-green:hover {
    background: var(--pm-green);
    border-color: var(--pm-green);
    color: #fff;
}
.btn-dark-pm {
    background: var(--pm-black);
    border-color: var(--pm-black);
    color: #fff;
}
.btn-dark-pm:hover { background: var(--pm-gray-800); color: #fff; }
.btn-lg { padding: 0.65rem 1.5rem; font-size: 1rem; border-radius: var(--pm-radius); }
.btn-sm { font-size: 0.8rem; padding: 0.3rem 0.65rem; }

/* ===== CARDS ===== */
.card {
    border: 1px solid var(--pm-gray-200);
    border-radius: var(--pm-radius);
    overflow: hidden;
    background: #fff;
    box-shadow: var(--pm-shadow-sm);
    transition: var(--pm-transition);
}
.card:hover { box-shadow: var(--pm-shadow-md); }
.card-img-top { height: 200px; object-fit: cover; }
.card-header { background: var(--pm-gray-50); border-bottom: 1px solid var(--pm-gray-200); font-weight: 600; }

/* ===== HERO ===== */
.hero-section {
    background: linear-gradient(135deg, var(--pm-black) 0%, var(--pm-gray-900) 50%, var(--pm-green-dark) 100%);
    color: #fff;
    padding: 5rem 0 4rem;
    position: relative;
    overflow: hidden;
}
.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(5,150,105,.15) 0%, transparent 70%);
    border-radius: 50%;
}
.hero-section h1 { font-weight: 800; font-size: 2.75rem; letter-spacing: -1px; margin-bottom: 1rem; }
.hero-section .lead { font-size: 1.1rem; color: rgba(255,255,255,.75); max-width: 600px; margin: 0 auto 2rem; }
.hero-section .search-box { max-width: 580px; margin: 0 auto; }
.hero-section .form-control {
    border: 2px solid transparent;
    background: rgba(255,255,255,.12);
    color: #fff;
    backdrop-filter: blur(10px);
    border-radius: 50px;
    padding: 0.75rem 1.25rem;
    font-size: 1rem;
}
.hero-section .form-control::placeholder { color: rgba(255,255,255,.5); }
.hero-section .form-control:focus { border-color: var(--pm-green); background: rgba(255,255,255,.15); box-shadow: 0 0 0 3px rgba(5,150,105,.2); color: #fff; }
.hero-section .btn { border-radius: 50px; padding: 0.75rem 1.5rem; }

/* ===== SECTION HEADERS ===== */
.section-title {
    font-weight: 700;
    font-size: 1.4rem;
    color: var(--pm-gray-900);
    margin-bottom: 1.5rem;
    letter-spacing: -0.3px;
}
.section-title::after {
    content: '';
    display: block;
    width: 40px;
    height: 3px;
    background: var(--pm-green);
    margin-top: 0.5rem;
    border-radius: 2px;
}

/* ===== BADGES ===== */
.badge-orange, .badge-green { background-color: var(--pm-green) !important; color: #fff !important; }
.badge-status { font-size: 0.7rem; padding: 0.35em 0.7em; font-weight: 600; border-radius: 50px; letter-spacing: 0.3px; }
.badge { font-weight: 600; }

/* ===== FOOTER ===== */
.footer-pm {
    background: var(--pm-black);
    color: rgba(255,255,255,.6);
    padding: 3rem 0 1.5rem;
    margin-top: auto;
}
.footer-pm h6 { color: var(--pm-green); font-weight: 700; font-size: 0.9rem; margin-bottom: 1rem; text-transform: uppercase; letter-spacing: 0.5px; }
.footer-pm a { color: rgba(255,255,255,.5); font-size: 0.85rem; display: block; padding: 0.2rem 0; }
.footer-pm a:hover { color: var(--pm-green); padding-left: 4px; }
.footer-pm hr { border-color: rgba(255,255,255,.08); margin: 2rem 0 1rem; }

/* ===== AUTH PAGES ===== */
.auth-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--pm-gray-50) 0%, var(--pm-green-light) 100%);
    padding: 1rem;
}
.auth-card {
    max-width: 440px;
    width: 100%;
    border: none;
    border-radius: 1rem;
    box-shadow: var(--pm-shadow-lg);
}
.auth-card .form-control { border-radius: var(--pm-radius-sm); border: 1.5px solid var(--pm-gray-300); padding: 0.6rem 0.85rem; }
.auth-card .form-control:focus { border-color: var(--pm-green); box-shadow: 0 0 0 3px rgba(5,150,105,.12); }
.auth-card .form-select { border-radius: var(--pm-radius-sm); border: 1.5px solid var(--pm-gray-300); }

/* ===== SIDEBAR ===== */
.sidebar-pm {
    height: calc(100vh - 56px);
    background: var(--pm-black);
    padding-top: 1rem;
    padding-bottom: 2rem;
    width: 250px;
    position: fixed;
    top: 56px;
    left: 0;
    overflow-y: auto;
    z-index: 100;
}
.sidebar-pm .nav-link {
    color: rgba(255,255,255,.65);
    padding: 0.55rem 1.2rem;
    font-size: 0.85rem;
    font-weight: 500;
    border-left: 3px solid transparent;
    transition: var(--pm-transition);
    display: flex;
    align-items: center;
}
.sidebar-pm .nav-link i { width: 20px; text-align: center; }
.sidebar-pm .nav-link:hover { color: #fff; background: rgba(255,255,255,.05); }
.sidebar-pm .nav-link.active {
    color: var(--pm-green);
    border-left-color: var(--pm-green);
    background: rgba(5,150,105,.08);
    font-weight: 600;
}
.sidebar-pm .nav-header {
    color: var(--pm-gray-500);
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    padding: 1.2rem 1.2rem 0.3rem;
    font-weight: 700;
}
.main-content {
    margin-left: 250px;
    padding: 1.5rem 2rem;
    min-height: calc(100vh - 56px);
    background: var(--pm-gray-50);
}

/* ===== FORMS ===== */
.form-control, .form-select {
    border-radius: var(--pm-radius-sm);
    border: 1.5px solid var(--pm-gray-300);
    font-size: 0.875rem;
    transition: var(--pm-transition);
}
.form-control:focus, .form-select:focus {
    border-color: var(--pm-green);
    box-shadow: 0 0 0 3px rgba(5,150,105,.1);
}
.form-label { font-weight: 600; color: var(--pm-gray-700); margin-bottom: 0.35rem; }
.form-check-input:checked { background-color: var(--pm-green); border-color: var(--pm-green); }

/* ===== DATATABLES ===== */
.dataTables_wrapper .dataTables_filter input { border-radius: var(--pm-radius-sm); border: 1.5px solid var(--pm-gray-300); padding: .35rem .75rem; font-size: .85rem; }
.dataTables_wrapper .dataTables_filter input:focus { border-color: var(--pm-green); outline: none; box-shadow: 0 0 0 3px rgba(5,150,105,.1); }
.dataTables_wrapper .dataTables_length select { border-radius: var(--pm-radius-sm); border: 1.5px solid var(--pm-gray-300); padding: .25rem; font-size: .85rem; }
.dataTables_wrapper .dataTables_info, .dataTables_wrapper .dataTables_length label { font-size: .9rem; color: var(--pm-gray-700); font-weight: 500; }
.dataTables_wrapper .page-link { color: var(--pm-green); }
.dataTables_wrapper .page-item.active .page-link { background: var(--pm-green); border-color: var(--pm-green); }
.dt-buttons .btn { font-size: .8rem !important; color: #fff !important; background: var(--pm-green) !important; border-color: var(--pm-green) !important; }
.dt-buttons .btn:hover { background: var(--pm-green-hover) !important; }

/* ===== GOOGLE TRANSLATE ===== */
#google_translate_element { display: inline-block; }
.goog-te-gadget { font-family: inherit !important; font-size: 0.8rem !important; color: rgba(255,255,255,.5) !important; }
.goog-te-gadget .goog-te-combo { background: rgba(255,255,255,.1); color: #fff; border: 1px solid rgba(255,255,255,.2); border-radius: var(--pm-radius-sm); padding: 0.3rem 0.5rem; font-size: 0.8rem; outline: none; cursor: pointer; }
.goog-te-gadget .goog-te-combo:focus { border-color: var(--pm-green); }
.goog-te-gadget .goog-te-combo option { color: #000; background: #fff; }
.goog-te-gadget > span { display: none !important; }
.goog-te-banner-frame { display: none !important; }
body { top: 0 !important; }

/* ===== TABLES ===== */
.table { font-size: 0.875rem; }
.table th {
    font-size: 0.7rem;
    text-transform: uppercase;
    color: var(--pm-gray-500);
    font-weight: 700;
    letter-spacing: 0.5px;
    border-bottom: 2px solid var(--pm-gray-200);
    padding: 0.75rem;
    white-space: nowrap;
}
.table td { padding: 0.75rem; vertical-align: middle; border-bottom: 1px solid var(--pm-gray-100); }
.table-hover tbody tr:hover { background: var(--pm-green-50); }

/* ===== MODAL ===== */
.modal-content { border: none; border-radius: var(--pm-radius); box-shadow: var(--pm-shadow-lg); }
.modal-header { border-bottom: 1px solid var(--pm-gray-200); }
.modal-title { font-weight: 700; }

/* ===== TOAST ===== */
.toast-container { position: fixed; top: 1rem; right: 1rem; z-index: 9999; }
.toast { border-radius: var(--pm-radius-sm); border: none; box-shadow: var(--pm-shadow-lg); }

/* ===== SPINNER ===== */
.spinner-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(255,255,255,.8); z-index: 9998;
    display: flex; align-items: center; justify-content: center;
    backdrop-filter: blur(4px);
}
.spinner-border { color: var(--pm-green) !important; }

/* ===== TEXT UTILITIES ===== */
.text-orange, .text-green { color: var(--pm-green) !important; }
.bg-orange-light, .bg-green-light { background-color: var(--pm-green-50) !important; }

/* ===== VIDEO ===== */
.video-thumb {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: var(--pm-radius);
    cursor: pointer;
    transition: var(--pm-transition);
}
.video-thumb:hover { transform: scale(1.02); box-shadow: var(--pm-shadow-md); }

/* ===== IMAGE PLACEHOLDER ===== */
.img-placeholder {
    background: var(--pm-gray-100);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--pm-gray-400);
}

/* ===== PRODUCT GRID ===== */
.product-grid .card { transition: transform 0.2s ease, box-shadow 0.2s ease; }
.product-grid .card:hover { transform: translateY(-6px); box-shadow: var(--pm-shadow-lg); }
.product-price { font-weight: 800; color: var(--pm-green); font-size: 1.1rem; }

/* ===== CHAT ===== */
.chat-bubble {
    max-width: 75%;
    padding: 0.7rem 1rem;
    border-radius: 1.2rem;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    line-height: 1.4;
    box-shadow: var(--pm-shadow-sm);
}
.chat-bubble.sent {
    background: var(--pm-green);
    color: #fff;
    margin-left: auto;
    border-bottom-right-radius: 0.3rem;
}
.chat-bubble.received {
    background: #fff;
    border: 1px solid var(--pm-gray-200);
    border-bottom-left-radius: 0.3rem;
}

/* ===== BROWSE NAVIGATION ===== */
.building-card { transition: transform 0.2s ease, box-shadow 0.2s ease; }
.building-card:hover { transform: translateY(-6px); box-shadow: 0 8px 25px rgba(5,150,105,.15); border-color: var(--pm-green); }
.city-btn, .scope-btn { transition: var(--pm-transition); border-radius: 50px !important; padding: 0.4rem 1rem !important; }

/* ===== NAV TABS ===== */
.nav-tabs { border-bottom: 2px solid var(--pm-gray-200); }
.nav-tabs .nav-link {
    color: var(--pm-gray-500);
    font-weight: 600;
    font-size: 0.875rem;
    border: none;
    border-bottom: 2px solid transparent;
    padding: 0.5rem 1rem;
    margin-bottom: -2px;
}
.nav-tabs .nav-link:hover { color: var(--pm-green); border-color: transparent; }
.nav-tabs .nav-link.active { color: var(--pm-green); border-bottom-color: var(--pm-green); background: none; }

/* ===== ALERTS ===== */
.alert { border-radius: var(--pm-radius-sm); border: none; font-size: 0.9rem; }
.alert-success { background: var(--pm-green-light); color: var(--pm-green-dark); }
.alert-warning { background: #fef3c7; color: #92400e; }

/* ===== PROGRESS BAR ===== */
.progress { border-radius: 50px; background: var(--pm-gray-200); }
.progress-bar { border-radius: 50px; }
.bg-warning { background-color: var(--pm-green) !important; }

/* ===== RESPONSIVE ===== */
@media (max-width: 991.98px) {
    .sidebar-pm {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        box-shadow: 4px 0 20px rgba(0,0,0,.3);
    }
    .sidebar-pm.show { transform: translateX(0); }
    .main-content { margin-left: 0; padding: 1rem; }
    .hero-section { padding: 3rem 0 2.5rem; }
    .hero-section h1 { font-size: 2rem; }
}

@media (max-width: 767.98px) {
    .hero-section { padding: 2.5rem 0 2rem; }
    .hero-section h1 { font-size: 1.6rem; }
    .hero-section .lead { font-size: 0.95rem; }
    .section-title { font-size: 1.2rem; }
    .main-content { padding: 0.75rem; }
    .table-responsive { font-size: 0.8rem; }
    .card-img-top { height: 160px; }
    .video-thumb { height: 160px; }
    .btn-group-sm .btn { font-size: 0.7rem; padding: 0.2rem 0.4rem; }
    .footer-pm { padding: 2rem 0 1rem; }
    .footer-pm .col-md-2, .footer-pm .col-md-4 { margin-bottom: 1.5rem; }
    .chat-bubble { max-width: 85%; font-size: 0.85rem; }
    .d-flex.gap-2 { gap: 0.5rem !important; }
}

@media (max-width: 575.98px) {
    .hero-section h1 { font-size: 1.4rem; }
    body { font-size: 0.9rem; }
    .container { padding-left: 0.75rem; padding-right: 0.75rem; }
    .card { border-radius: var(--pm-radius-sm); }
    h4 { font-size: 1.2rem; }
    .navbar-pm .navbar-brand { font-size: 1.15rem; }
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--pm-gray-100); }
::-webkit-scrollbar-thumb { background: var(--pm-gray-300); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--pm-gray-400); }

/* ===== GOOGLE FONT IMPORT ===== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');
