:root {
  --bg: #111113; --bg2: #181819; --surface: #1f1f22; --surface2: #272729;
  --border: rgba(255,255,255,0.08); --accent: #e23f3f; --accent-hover: #c02020;
  --text: #ebebeb; --muted: #888;
}
* { box-sizing: border-box; }
body { font-family: 'DM Sans', system-ui, sans-serif; margin: 0; background: var(--bg); color: var(--text); }

header { display: flex; justify-content: space-between; align-items: center;
         padding: 16px 24px; background: #0a0a0a; border-bottom: 1px solid var(--border); flex-wrap: wrap; gap: 10px; }
.brand-header { display: flex; align-items: center; gap: 12px; }
.brand-header img { width: 36px; height: 36px; border-radius: 6px; }
header h1 { margin: 0; font-size: 18px; font-weight: 800; }
header h1 span { font-size: 13px; font-weight: 500; color: var(--muted); display: block; }
header h1 span a { color: var(--accent); text-decoration: none; }
header h1 span a:hover { text-decoration: underline; }
.who { font-size: 13px; color: var(--muted); }
.who a { color: var(--accent); text-decoration: none; }

main { padding: 24px; max-width: 1100px; margin: 0 auto; }
.row { display: flex; gap: 8px; margin-bottom: 16px; align-items: center; }
input[type=text], input[type=password], textarea { padding: 10px 12px; border-radius: 8px; border: 1px solid var(--border);
                    background: var(--surface); color: var(--text); font-size: 14px; font-family: inherit; }
input[type=text]::placeholder, textarea::placeholder { color: var(--muted); }
form.row input[type=text] { flex: 1; }
button { padding: 10px 18px; border-radius: 8px; border: none; background: var(--accent); color: #fff;
         font-size: 14px; cursor: pointer; font-weight: 600; }
button:hover { background: var(--accent-hover); }
.btn-danger { background: var(--surface2); }
.btn-danger:hover { background: #3a3a3c; }

a { color: var(--accent); }
.empty { text-align: center; color: var(--muted); padding: 40px 0; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.card { display: block; background: var(--surface); border: 1px solid var(--border); border-radius: 10px;
        overflow: hidden; text-decoration: none; color: var(--text); }
.card-img { display: block; width: 100%; aspect-ratio: 4/3; background: var(--bg2); overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.no-img { display: flex; align-items: center; justify-content: center; height: 100%; color: var(--muted); font-size: 13px; }
.card-body { padding: 10px 12px; }
.card-title { font-size: 14px; font-weight: 600; margin-bottom: 6px;
              display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-price { font-size: 14px; font-weight: 700; color: var(--accent); }
.badge-sold { background: var(--surface2); color: var(--muted); font-size: 11px; font-weight: 700;
              padding: 2px 8px; border-radius: 10px; vertical-align: middle; }

.oglas-detail { display: grid; grid-template-columns: 1.2fr 1fr; gap: 24px; }
@media (max-width: 700px) { .oglas-detail { grid-template-columns: 1fr; } }
.oglas-images { display: flex; flex-direction: column; gap: 10px; }
.oglas-images img { width: 100%; border-radius: 10px; border: 1px solid var(--border); }
.oglas-info h2 { margin: 0 0 10px; font-size: 22px; }
.oglas-price { font-size: 22px; font-weight: 800; color: var(--accent); margin-bottom: 16px; }
.oglas-desc { white-space: pre-wrap; margin-bottom: 20px; line-height: 1.5; }
.oglas-contact { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 14px; }
.detail-label { font-size: 11px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .5px; margin-bottom: 6px; }

.form-card { display: flex; flex-direction: column; gap: 6px; max-width: 480px; }
.form-card label { font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .5px; margin-top: 10px; }
.form-card button { margin-top: 16px; align-self: flex-start; }
.form-card input[type=file] { color: var(--muted); }

.login-body { display: flex; align-items: center; justify-content: center; height: 100vh; background: var(--bg); }
.login-card { display: flex; flex-direction: column; gap: 10px; padding: 32px; border-radius: 12px;
              border: 1px solid var(--border); background: var(--surface); width: 320px; }
.login-card .brand-header { flex-direction: column; text-align: center; margin-bottom: 10px; }
.login-card .brand-header img { width: 56px; height: 56px; }
.login-card .brand-header h1 { font-size: 20px; }
.err { color: var(--accent); font-size: 13px; margin: 0; }
