:root {
    --primary: #2563eb; --primary-dark: #1d4ed8; --accent: #10b981; --gold: #f59e0b;
    --bg-body: #f0f2f5; --bg-card: #ffffff; --text-main: #1f2937; --border: #ddd;
    --shadow: 0 2px 8px rgba(0,0,0,0.08);
}
[data-theme="dark"] {
    --primary: #60a5fa; --primary-dark: #3b82f6; --bg-body: #111827; --bg-card: #1f2937; --text-main: #f3f4f6; --border: #374151;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
body { font-family: 'Outfit', sans-serif; background: var(--bg-body); color: var(--text-main); margin: 0; padding-bottom: 50px; }

/* HEADER */
.main-header { background: var(--bg-card); box-shadow: var(--shadow); position: sticky; top: 0; z-index: 100; padding-bottom: 5px;}
.header-top { display: flex; justify-content: space-between; align-items: center; padding: 10px 15px; }
.logo-area { font-size: 1.3rem; font-weight: 800; color: var(--primary); display: flex; align-items: center; gap: 8px; }

/* SCROLL NAV */
.scroll-nav { display: flex; gap: 10px; overflow-x: auto; padding: 5px 15px; scrollbar-width: none; }
.scroll-nav::-webkit-scrollbar { display: none; }
.nav-pill { white-space: nowrap; background: var(--bg-body); border: 1px solid var(--border); padding: 8px 16px; border-radius: 20px; font-weight: 600; color: var(--text-main); font-size: 0.9rem; }
.active-pill { background: var(--primary); color: white; border-color: var(--primary); }

/* LAYOUT */
.layout-wrapper { display: flex; flex-direction: column; max-width: 1200px; margin: 0 auto; padding: 15px; gap: 20px; }
@media (min-width: 900px) {
    .layout-wrapper { flex-direction: row; align-items: flex-start; }
    .sidebar { width: 300px; position: sticky; top: 120px; } /* Sidebar mai lat pt reclame */
    .content-area { flex: 1; }
}

/* RECLAME MAI MARI SI PRIORITARE */
.ad-card { margin-bottom: 25px; position: relative; border-radius: 12px; overflow: hidden; box-shadow: 0 4px 15px rgba(0,0,0,0.1); border: 1px solid var(--border); }
.ad-card img { width: 100%; display: block; }
.ad-placeholder { border: 2px dashed var(--primary); background: rgba(37,99,235,0.05); border-radius: 10px; padding: 30px; text-align: center; color: var(--primary); font-weight: bold; margin-bottom: 20px; cursor: pointer; }

/* GRID */
.grid-container { display: grid; grid-template-columns: 1fr; gap: 15px; }
@media (min-width: 600px) { .grid-container { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); } }

.card { background: var(--bg-card); border-radius: 12px; padding: 15px; box-shadow: var(--shadow); position: relative; border: 1px solid transparent; }
.card img { width: 100%; height: 200px; object-fit: cover; border-radius: 8px; margin-bottom: 10px; background: #eee; }
.card h3 { margin: 5px 0; font-size: 1.1rem; }
.price { font-size: 1.2rem; color: var(--accent); font-weight: 800; display: block; margin-bottom: 5px; }

.promoted-card { border: 2px solid var(--gold); background: linear-gradient(to bottom, var(--bg-card), #fffbeb); }
.promoted-badge { position: absolute; top: 10px; left: 10px; background: var(--gold); color: black; font-weight: bold; padding: 4px 8px; border-radius: 4px; font-size: 0.8rem; }

/* ELEMENTS */
.btn-solid { background: var(--primary); color: white; border: none; padding: 12px; border-radius: 8px; font-weight: bold; font-size: 1rem; cursor: pointer; }
.btn-outline { background: transparent; border: 1px solid var(--border); color: var(--text-main); padding: 10px; border-radius: 8px; font-weight: bold; }
.btn-sm-primary { background: var(--primary); color: white; border: none; padding: 6px 12px; border-radius: 6px; font-weight: bold; }
.w-100 { width: 100%; }
.btn-call { display: block; background: #25d366; color: white; text-align: center; padding: 12px; border-radius: 8px; text-decoration: none; font-weight: bold; font-size: 1.1rem; margin: 15px 0; }
.btn-gold { background: var(--gold); color: black; border: none; padding: 10px; border-radius: 8px; font-weight: bold; }

input, textarea, select { width: 100%; padding: 12px; border: 1px solid var(--border); border-radius: 8px; margin-bottom: 10px; background: var(--bg-body); color: var(--text-main); font-size: 16px; }

/* TICKER */
.news-ticker-bar { background: #111827; color: white; height: 35px; overflow: hidden; display: flex; font-size: 0.9rem; }
.ticker-label { background: #ef4444; padding: 0 10px; display: flex; align-items: center; font-weight: bold; z-index: 2; }
.ticker-track { flex: 1; position: relative; }
.ticker-content { position: absolute; white-space: nowrap; height: 100%; display: flex; align-items: center; animation: ticker 20s linear infinite; }
@keyframes ticker { 0% { transform: translateX(100%); } 100% { transform: translateX(-100%); } }

/* MODALS */
.modal-overlay { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.85); z-index: 9999; justify-content: center; align-items: flex-end; }
.modal-card { background: var(--bg-card); width: 100%; max-width: 600px; padding: 25px; border-radius: 20px 20px 0 0; max-height: 90vh; overflow-y: auto; position: relative; animation: slideUp 0.3s ease; }
@media (min-width: 600px) { .modal-overlay{align-items:center;} .modal-card{border-radius:16px; width:90%;} }
@keyframes slideUp { from {transform: translateY(100%);} to {transform: translateY(0);} }
.close-modal { position: absolute; top: 15px; right: 15px; background: #eee; border: none; width: 35px; height: 35px; border-radius: 50%; font-size: 1.5rem; display: flex; justify-content: center; align-items: center; }

/* BIZ MODAL */
.biz-header { display: flex; align-items: center; gap: 15px; margin-bottom: 15px; }
.biz-avatar { width: 70px; height: 70px; border-radius: 50%; object-fit: cover; }
.btn-sm-call { background: #25d366; color: white; padding: 5px 10px; border-radius: 15px; text-decoration: none; font-size: 0.8rem; font-weight: bold; }
.biz-list div { border-bottom: 1px solid var(--border); padding: 10px 0; }

.mobile-filters { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 10px; margin-bottom: 10px; }
.filter-chip { background: var(--bg-card); border: 1px solid var(--border); padding: 6px 12px; border-radius: 15px; white-space: nowrap; font-size: 0.9rem; }
.active-chip { background: var(--text-main); color: var(--bg-body); }
.gold-chip { border-color: var(--gold); color: #b45309; }

.theme-btn { position: fixed; bottom: 20px; right: 20px; width: 45px; height: 45px; border-radius: 50%; background: var(--text-main); color: var(--bg-body); border: none; font-size: 1.2rem; box-shadow: 0 4px 10px rgba(0,0,0,0.3); z-index: 500; }
.main-footer { text-align: center; padding: 30px; color: #777; font-size: 0.8rem; }
.auth-tabs { display: flex; border-bottom: 1px solid var(--border); margin-bottom: 20px; }
.auth-tab { flex: 1; background: none; border: none; padding: 10px; font-weight: bold; color: var(--text-muted); }
.auth-tab.active-tab { border-bottom: 2px solid var(--primary); color: var(--primary); }