:root { --primary: #002f34; --accent: #00b4c6; --bg: #f2f4f5; --text: #002f34; }
* { margin: 0; padding: 0; box-sizing: border-box; font-family: Arial, sans-serif; }
body { background: var(--bg); color: var(--text); }

/* Upgraded Navbar Layout */
.navbar { background: #fff; padding: 15px 6%; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid #ced6d9; position: sticky; top: 0; z-index: 1000; }
.logo { font-size: 24px; font-weight: bold; color: var(--primary); cursor: pointer; }
.nav-actions { display: flex; align-items: center; gap: 20px; }
.nav-link { text-decoration: none; color: var(--primary); font-weight: bold; font-size: 15px; }
.nav-link.active { color: var(--accent); }
.user-welcome { font-size: 14px; color: #555; }

.btn-primary { background: var(--primary); color: #fff; padding: 8px 18px; border-radius: 4px; text-decoration: none; font-weight: bold; transition: 0.2s; }
.btn-primary:hover { background: #004a51; }
.btn-secondary { background: transparent; color: var(--primary); border: 2px solid var(--primary); padding: 7px 16px; border-radius: 4px; text-decoration: none; font-weight: bold; }
.btn-secondary:hover { background: var(--primary); color: #fff; }
.btn-logout { text-decoration: none; color: #c5221f; font-weight: bold; font-size: 14px; border: 1px solid #c5221f; padding: 5px 10px; border-radius: 4px; }

/* Hero and Body */
.hero-search-section { background: #ebeeef; padding: 50px 20px; text-align: center; }
.hero-search-section h1 { font-size: 28px; margin-bottom: 20px; }
.search-container { max-width: 600px; margin: 0 auto; }
.search-container input { width: 100%; padding: 15px; border: 2px solid var(--primary); border-radius: 4px; font-size: 16px; outline: none; }

.container { max-width: 1200px; margin: 40px auto; padding: 0 15px; }
.products-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 25px; }
.product-card { background: #fff; border: 1px solid #ced6d9; border-radius: 4px; overflow: hidden; position: relative; }
.badge { position: absolute; top: 10px; left: 10px; background: var(--primary); color: #fff; padding: 4px 10px; font-size: 12px; font-weight: bold; border-radius: 3px; }

.img-wrapper { width: 100%; height: 170px; background: #eee; }
.img-wrapper img { width: 100%; height: 100%; object-fit: cover; }
.product-details { padding: 15px; }
.price { font-size: 20px; font-weight: bold; color: var(--primary); margin-bottom: 5px; }
.title { font-size: 15px; font-weight: normal; color: #444; margin-bottom: 8px; }
.seller-name, .location-tag { font-size: 13px; color: #666; margin-bottom: 4px; }

.card-footer { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; border-top: 1px solid #eee; padding-top: 10px; }
.date-badge-today { background: #e6f4ea; color: #137333; padding: 3px 10px; font-size: 11px; font-weight: bold; border-radius: 10px; }
.btn-call { text-decoration: none; background: #0073b1; color: #fff; padding: 6px 14px; border-radius: 4px; font-size: 13px; font-weight: bold; }

/* Complete Auth Container & Alerts Layout */
.auth-container { max-width: 450px; margin: 50px auto; background: #fff; padding: 35px; border-radius: 6px; border: 1px solid #ced6d9; box-shadow: 0 4px 10px rgba(0,0,0,0.05); }
.auth-tabs { display: flex; justify-content: space-between; margin-bottom: 25px; border-bottom: 2px solid #eee; }
.tab-btn { background: none; border: none; padding: 10px 20px; font-size: 16px; font-weight: bold; cursor: pointer; color: #888; width: 50%; }
.tab-btn.active { color: var(--primary); border-bottom: 3px solid var(--primary); }

.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 13px; font-weight: bold; margin-bottom: 6px; color: #333; }
.form-group input, .form-group select, .form-group textarea { width: 100%; padding: 10px; border: 1px solid #ced6d9; border-radius: 4px; font-size: 14px; outline: none; }

/* Auto Trigger Alert State Effects */
.input-err { border: 2px solid #c5221f !important; background-color: #fff8f8; }
.input-ok { border: 2px solid #137333 !important; background-color: #f8fff9; }

/* Choice Sug Pills Module Layout */
.suggestion-wrapper { margin-top: 10px; display: flex; gap: 8px; flex-wrap: wrap; }
.sug-pill { padding: 4px 12px; background: #ebeeef; border: 1px solid var(--primary); border-radius: 20px; font-size: 12px; font-weight: bold; cursor: pointer; transition: 0.2s; }
.sug-pill:hover { background: var(--primary); color: #fff; }

.btn-submit { width: 100%; background: var(--primary); color: #fff; border: none; padding: 12px; font-size: 16px; font-weight: bold; border-radius: 4px; cursor: pointer; }
.btn-submit:disabled { background: #ccc; cursor: not-allowed; }

.alert-err { background: #feefec; color: #c5221f; padding: 12px; border-radius: 4px; font-size: 13px; margin-bottom: 15px; text-align: center; font-weight: bold; }
.alert-succ { background: #e6f4ea; color: #137333; padding: 12px; border-radius: 4px; font-size: 13px; margin-bottom: 15px; text-align: center; font-weight: bold; }

/* Ad Post Form Formatting */
.form-page-container { display: flex; justify-content: center; }
.form-card-static { background: #fff; padding: 30px; border-radius: 6px; width: 100%; max-width: 650px; border: 1px solid #ced6d9; }
.form-card-static h2 { margin-bottom: 20px; font-size: 20px; border-bottom: 2px solid #eee; padding-bottom: 10px; }
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.form-grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; }
.preview-container { display: flex; gap: 10px; margin-top: 10px; }
.preview-container img { width: 60px; height: 60px; object-fit: cover; border-radius: 4px; border: 1px solid #ccc; }