:root {
    --primary: #1a202c;
    --primary-dark: #101621;
    --accent: #d69e2e;
    --accent-hover: #b7791f;
    --bg-body: #f4f7f6;
    --sidebar-width: 260px;
    --text-main: #2d3748;
    --text-light: #718096;
    --white: #ffffff;
    --nav-height: 75px;
    --success: #48bb78;
    --danger: #f56565;
    --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);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; scroll-behavior: smooth; }

body { 
    font-family: 'Inter', system-ui, -apple-system, sans-serif; 
    background: var(--bg-body); 
    color: var(--text-main); 
    line-height: 1.6; 
}

a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* Utilities */
.container { max-width: 1280px; margin: 0 auto; padding: 0 20px; }
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 12px 28px; border-radius: 8px; font-weight: 600; cursor: pointer; border: none; font-size: 1rem; transition: var(--transition); gap: 8px; }
.btn-sm { padding: 8px 16px; font-size: 0.85rem; }
.btn-primary { background: var(--primary); color: white; }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-accent { background: var(--accent); color: white; }
.btn-accent:hover { background: var(--accent-hover); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-outline { border: 2px solid var(--primary); color: var(--primary); background: transparent; }
.btn-outline:hover { background: var(--primary); color: white; }
.btn-danger { background: var(--danger); color: white; }
.text-center { text-align: center; }
.section-pad { padding: 80px 0; }
.hidden { display: none !important; }

/* Forms */
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 8px; font-weight: 600; font-size: 0.95rem; color: var(--text-main); }
.form-group input, .form-group select, .form-group textarea { width: 100%; padding: 12px; border: 1px solid #e2e8f0; border-radius: 8px; outline: none; transition: 0.2s; font-size: 1rem; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(214, 158, 46, 0.1); }

/* Navbar */
.navbar { position: fixed; top: 0; left: 0; width: 100%; height: var(--nav-height); background: rgba(255,255,255,0.98); backdrop-filter: blur(12px); z-index: 1000; box-shadow: var(--shadow-sm); display: flex; align-items: center; }
.nav-content { display: flex; justify-content: space-between; align-items: center; width: 100%; }
.logo { font-size: 1.8rem; font-weight: 900; color: var(--primary); letter-spacing: -1px; display: flex; align-items: center; gap: 5px; }
.logo span { color: var(--accent); }
.nav-links { display: flex; gap: 30px; align-items: center; }
.nav-links a { font-weight: 500; font-size: 0.95rem; position: relative; color: var(--text-main); }
.nav-links a:hover { color: var(--accent); }

/* Mobile Menu */
.hamburger { display: none; font-size: 1.8rem; cursor: pointer; color: var(--primary); }
.mobile-menu { position: fixed; top: var(--nav-height); left: 0; width: 100%; background: white; padding: 20px; box-shadow: 0 10px 20px rgba(0,0,0,0.1); transform: translateY(-150%); transition: var(--transition); z-index: 999; display: flex; flex-direction: column; gap: 15px; }
.mobile-menu.open { transform: translateY(0); }
.mobile-menu a { display: block; padding: 15px; border-bottom: 1px solid #eee; font-weight: 600; }

/* Hero Section */
.hero { height: 90vh; background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.7)), url('https://images.unsplash.com/photo-1564013799919-ab600027ffc6?ixlib=rb-1.2.1&auto=format&fit=crop&w=1920&q=80'); background-size: cover; background-position: center; display: flex; align-items: center; justify-content: center; color: white; text-align: center; padding-top: var(--nav-height); }
.hero h1 { font-size: clamp(2.5rem, 5vw, 4.5rem); margin-bottom: 20px; font-weight: 800; line-height: 1.1; text-shadow: 0 2px 10px rgba(0,0,0,0.3); }
.hero p { font-size: 1.25rem; margin-bottom: 35px; max-width: 700px; margin-left: auto; margin-right: auto; opacity: 0.95; }

/* Home Sections */
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; margin-top: 50px; }
.feature-card { background: white; padding: 40px 30px; border-radius: 16px; text-align: center; transition: var(--transition); border: 1px solid #edf2f7; position: relative; overflow: hidden; }
.feature-card:hover { transform: translateY(-10px); box-shadow: var(--shadow-lg); border-color: var(--accent); }
.feature-icon { font-size: 3rem; margin-bottom: 20px; display: inline-block; background: #fffaf0; padding: 20px; border-radius: 50%; color: var(--accent); }

.stats-section { background: var(--primary); color: white; padding: 60px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; text-align: center; }
.stat-item h3 { font-size: 2.5rem; color: var(--accent); margin-bottom: 5px; }

/* Filter Bar */
.filter-bar { background: white; padding: 25px; border-radius: 16px; box-shadow: 0 20px 40px rgba(0,0,0,0.1); display: flex; gap: 15px; flex-wrap: wrap; margin-top: -60px; position: relative; z-index: 10; max-width: 1100px; margin-left: auto; margin-right: auto; border: 1px solid rgba(0,0,0,0.05); }
.filter-bar select, .filter-bar input { flex: 1; padding: 16px; border: 1px solid #e2e8f0; border-radius: 8px; min-width: 160px; font-size: 1rem; outline: none; }
.filter-bar select:focus, .filter-bar input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(214, 158, 46, 0.1); }

/* Listings Grid */
.grid-layout { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 30px; margin-top: 40px; }
.card { background: white; border-radius: 16px; overflow: hidden; box-shadow: var(--shadow-md); transition: var(--transition); border: 1px solid #f0f0f0; }
.card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.card-img-wrapper { height: 240px; position: relative; overflow: hidden; }
.card-img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.card:hover .card-img { transform: scale(1.05); }
.card-badge { position: absolute; top: 15px; left: 15px; padding: 6px 14px; border-radius: 20px; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; color: white; z-index: 2; letter-spacing: 0.5px; }
.card-body { padding: 25px; }
.card-price { font-size: 1.5rem; font-weight: 800; color: var(--primary); margin-bottom: 5px; }
.card-title { font-size: 1.15rem; font-weight: 600; margin-bottom: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* FAQ & Testimonials */
.faq-item { background: white; border-radius: 8px; margin-bottom: 15px; padding: 20px; box-shadow: 0 2px 4px rgba(0,0,0,0.05); cursor: pointer; transition: 0.2s; }
.faq-item:hover { transform: translateX(5px); border-left: 4px solid var(--accent); }
.faq-question { font-weight: 600; font-size: 1.1rem; display: flex; justify-content: space-between; }
.faq-answer { margin-top: 10px; color: var(--text-light); display: none; }
.faq-item.active .faq-answer { display: block; }

.testimonial-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.testimonial-card { background: white; padding: 30px; border-radius: 12px; box-shadow: var(--shadow-card); position: relative; }
.quote-icon { font-size: 3rem; color: #edf2f7; position: absolute; top: 20px; right: 20px; }

/* DASHBOARD LAYOUT (Premium SaaS) */
.dash-wrapper { display: flex; min-height: 100vh; background: #f8f9fa; }

/* Sidebar */
.dash-sidebar { width: var(--sidebar-width); background: var(--primary); color: white; position: fixed; height: 100vh; padding: 20px; display: flex; flex-direction: column; transition: 0.3s; z-index: 100; }
.dash-logo { font-size: 1.5rem; font-weight: 800; margin-bottom: 40px; padding-left: 10px; color: white; display: flex; align-items: center; gap: 5px; }
.dash-logo span { color: var(--accent); }
.sidebar-menu { flex: 1; }
.menu-item { display: flex; align-items: center; gap: 12px; padding: 14px 15px; color: #cbd5e0; border-radius: 8px; margin-bottom: 5px; cursor: pointer; transition: 0.2s; font-weight: 500; }
.menu-item:hover, .menu-item.active { background: rgba(255,255,255,0.1); color: white; }
.menu-item i { width: 20px; text-align: center; }
.user-profile { margin-top: auto; padding: 15px; background: rgba(255,255,255,0.05); border-radius: 12px; display: flex; align-items: center; gap: 10px; }
.user-avatar { width: 40px; height: 40px; background: var(--accent); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: bold; color: white; }

/* Main Content */
.dash-main { margin-left: var(--sidebar-width); flex: 1; padding: 30px 40px; }
.dash-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 40px; }
.dash-title h2 { font-size: 1.8rem; color: var(--primary); font-weight: 700; }
.dash-title p { color: var(--text-light); }
.dash-toggle { display: none; font-size: 1.5rem; cursor: pointer; color: var(--primary); margin-right: 15px; }

/* Dashboard Cards */
.dash-stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 25px; margin-bottom: 40px; }
.stat-card { background: white; padding: 25px; border-radius: 16px; box-shadow: var(--shadow-sm); display: flex; align-items: center; justify-content: space-between; border: 1px solid #f1f1f1; position: relative; overflow: hidden; }
.stat-card::after { content: ''; position: absolute; bottom: 0; left: 0; height: 4px; width: 100%; background: linear-gradient(90deg, var(--accent), transparent); opacity: 0.5; }
.stat-info h3 { font-size: 2rem; font-weight: 800; color: var(--primary); margin-bottom: 5px; }
.stat-info p { color: var(--text-light); font-size: 0.9rem; font-weight: 500; }
.stat-icon { width: 50px; height: 50px; background: #fffaf0; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; color: var(--accent); }

/* Dashboard Tables & Sections */
.section-box { background: white; border-radius: 16px; padding: 30px; box-shadow: var(--shadow-sm); border: 1px solid #f1f1f1; margin-bottom: 30px; }
.table-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.modern-table { width: 100%; border-collapse: collapse; }
.modern-table th { text-align: left; padding: 15px; color: var(--text-light); font-weight: 600; font-size: 0.85rem; text-transform: uppercase; border-bottom: 2px solid #edf2f7; }
.modern-table td { padding: 16px 15px; border-bottom: 1px solid #edf2f7; color: var(--text-main); font-size: 0.95rem; }
.modern-table tr:hover td { background: #f9fafb; }
.status-pill { padding: 4px 12px; border-radius: 20px; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; }
.status-active { background: #c6f6d5; color: #22543d; }
.status-pending { background: #feebc8; color: #744210; }

/* CSS Charts */
.chart-container { margin-top: 20px; }
.bar-chart { display: flex; align-items: flex-end; height: 150px; gap: 10px; padding-bottom: 10px; border-bottom: 1px solid #eee; }
.bar { flex: 1; background: var(--accent); border-radius: 4px 4px 0 0; opacity: 0.7; transition: 0.3s; position: relative; }
.bar:hover { opacity: 1; transform: scaleY(1.05); transform-origin: bottom; }
.bar::before { content: attr(data-val); position: absolute; top: -25px; left: 50%; transform: translateX(-50%); font-size: 0.75rem; color: var(--primary); font-weight: bold; opacity: 0; transition: 0.2s; }
.bar:hover::before { opacity: 1; }

/* Footer */
.footer { background: var(--primary); color: white; padding: 70px 0 20px; margin-top: 80px; }
.footer-links { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 40px; margin-bottom: 40px; }
.footer h4 { margin-bottom: 20px; color: var(--accent); font-size: 1.2rem; }
.footer ul li { margin-bottom: 12px; color: #a0aec0; cursor: pointer; transition: 0.2s; }
.footer ul li:hover { color: white; padding-left: 5px; }

/* Mobile */
@media (max-width: 1024px) {
    .dash-sidebar { transform: translateX(-100%); width: 280px; }
    .dash-sidebar.active { transform: translateX(0); }
    .dash-main { margin-left: 0; padding: 20px; }
    .dash-toggle { display: block; }
}
@media (max-width: 768px) {
    .nav-links { display: none; }
    .hamburger { display: block; }
    .hero h1 { font-size: 2.5rem; }
    .filter-bar { margin-top: 20px; flex-direction: column; }
    .stats-grid { grid-template-columns: 1fr 1fr; }
    .dash-stats-grid { grid-template-columns: 1fr; }
    .section-box { padding: 20px; }
}