/* VCM Admin · click-dummy stylesheet (Filament-inspired) */
:root {
  --ink: #14171C;
  --gold: #C3A25F;
  --gold-deep: #97783A;
  --gold-soft: #F6EFDF;
  --bg: #F4F3EF;
  --card: #FFFFFF;
  --text: #23272E;
  --text-2: #6A7180;
  --line: #E5E2D9;
  --green: #2D7A5E; --green-bg: #EEFAF4;
  --amber: #C47A1A; --amber-bg: #FFF6E8;
  --red: #B83B3B;   --red-bg: #FDF0F0;
  --blue: #3A7D9E;  --blue-bg: #EFF7FA;
  --shadow-1: 0 1px 3px rgba(20,23,28,.06), 0 1px 2px rgba(20,23,28,.04);
  --shadow-2: 0 8px 24px rgba(20,23,28,.12), 0 2px 6px rgba(20,23,28,.06);
  --r-sm: 6px; --r-md: 10px; --r-lg: 14px;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  background: var(--bg); color: var(--text); line-height: 1.5; -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea {
  font-family: inherit; font-size: 15px; color: var(--text);
  border: 1px solid var(--line); border-radius: var(--r-sm); padding: 10px 12px; background: #fff;
  width: 100%; min-height: 44px;
}
select {
  appearance: none; -webkit-appearance: none; -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2397783A' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 13px center; background-size: 14px;
  padding-right: 40px; font-weight: 700; cursor: pointer;
  transition: border-color .15s, background-color .15s;
}
select:hover { border-color: var(--gold); background-color: #FFFDF8; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--gold); outline-offset: 0; border-color: var(--gold-deep); }
label { display: block; font-size: 12px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--text-2); margin: 14px 0 5px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; border-radius: var(--r-sm); font-weight: 700; font-size: 14.5px;
  padding: 11px 20px; min-height: 44px; transition: background .15s;
}
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: #272C34; }
.btn-gold { background: linear-gradient(to bottom right, #CDAB63, #A8853F); color: #fff; }
.btn-gold:hover { background: linear-gradient(to bottom right, #B99450, #8E6E30); }
.btn-soft { background: var(--gold-soft); color: var(--gold-deep); }
.btn-soft:hover { background: #EEE2C6; }
.btn-danger { background: var(--red-bg); color: var(--red); }
.btn-danger:hover { background: #F8DEDE; }
.btn-sm { padding: 7px 13px; min-height: 36px; font-size: 13px; }

/* ── Login ─ */
.login-screen {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(140deg, #14171C, #23282F); padding: 20px;
}
.login-card { background: #fff; border-radius: var(--r-lg); box-shadow: var(--shadow-2); width: 100%; max-width: 400px; padding: 36px 32px; }
.login-logo { text-align: center; margin-bottom: 26px; }
.login-logo b { font-size: 24px; letter-spacing: .06em; color: var(--ink); display: block; }
.login-logo span { color: var(--gold-deep); font-size: 11px; letter-spacing: .32em; text-transform: uppercase; font-weight: 700; }
.login-card .btn { width: 100%; margin-top: 22px; }
.login-note { text-align: center; font-size: 12.5px; color: var(--text-2); margin-top: 16px; }

/* ── Shell ─ */
.shell { display: none; min-height: 100vh; }
.shell.on { display: grid; grid-template-columns: 232px 1fr; }
.sidebar { background: var(--ink); color: rgba(255,255,255,.85); padding: 22px 14px; display: flex; flex-direction: column; gap: 4px; }
.side-logo { padding: 4px 12px 20px; }
.side-logo b { color: #fff; font-size: 18px; letter-spacing: .05em; display: block; }
.side-logo span { color: var(--gold); font-size: 9.5px; letter-spacing: .3em; text-transform: uppercase; font-weight: 700; }
.side-link {
  display: flex; align-items: center; gap: 11px; padding: 11px 13px; border-radius: var(--r-sm);
  font-weight: 700; font-size: 14.5px; color: rgba(255,255,255,.75); background: transparent; border: 0; text-align: left; width: 100%;
}
.side-link:hover { background: rgba(255,255,255,.07); color: #fff; }
.side-link.on { background: var(--gold); color: var(--ink); }
.side-link .cnt { margin-left: auto; background: var(--red); color: #fff; font-size: 11px; font-weight: 800; border-radius: 100px; padding: 1px 8px; }
.side-foot { margin-top: auto; padding: 12px; font-size: 12px; color: rgba(255,255,255,.45); }
.side-foot a { color: var(--gold); font-weight: 700; }

.main { padding: 26px 5vw 90px; max-width: none; }
.topbar { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin-bottom: 24px; flex-wrap: wrap; }
.topbar h1 { font-size: 25px; font-weight: 800; letter-spacing: -.01em; }
.topbar .who { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 14px; color: var(--text-2); }
.avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--gold); color: var(--ink); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 14px; }

.view { display: none; }
.view.on { display: block; }

/* Cards + stats */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-1); padding: 20px 22px; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; margin-bottom: 22px; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md); padding: 16px 18px; }
.stat b { display: block; font-size: 28px; font-weight: 800; color: var(--ink); }
.stat span { font-size: 13px; font-weight: 700; color: var(--text-2); }
.stat.g b { color: var(--green); } .stat.a b { color: var(--amber); } .stat.r b { color: var(--red); } .stat.gold b { color: var(--gold-deep); }

/* Cars table */
.table-tools { display: flex; gap: 10px; margin-bottom: 16px; flex-wrap: wrap; }
.table-tools input { max-width: 300px; }
.car-rows { display: flex; flex-direction: column; gap: 10px; }
.car-row {
  display: grid; grid-template-columns: 92px 1.6fr 120px 150px auto; gap: 14px; align-items: center;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md); padding: 10px 14px 10px 10px;
}
.car-row img { width: 92px; height: 66px; object-fit: cover; border-radius: var(--r-sm); }
.car-row .nm b { display: block; font-size: 15px; color: var(--ink); }
.car-row .nm span { font-size: 12.5px; color: var(--text-2); font-weight: 600; }
.price-edit { font-weight: 800; color: var(--gold-deep); font-size: 15.5px; background: transparent; border: 1px dashed transparent; border-radius: 6px; padding: 6px 8px; text-align: left; min-height: 36px; width: auto; }
.price-edit:hover { border-color: var(--gold); background: var(--gold-soft); }
.status-select {
  width: auto; min-height: 36px; border: 0; border-radius: 100px;
  font-weight: 800; font-size: 12px; letter-spacing: .05em; text-transform: uppercase;
  padding: 7px 34px 7px 16px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23555' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-position: right 12px center; background-size: 12px;
}
.status-select.available { background-color: var(--green-bg); color: var(--green); }
.status-select.reserved { background-color: var(--amber-bg); color: var(--amber); }
.status-select.sold { background-color: var(--red-bg); color: var(--red); }
.status-select:hover { border: 0; filter: brightness(.97); }
.row-actions { display: flex; gap: 6px; justify-content: flex-end; flex-wrap: wrap; }
.act-btn {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-sm);
  min-height: 38px; padding: 7px 13px; font-weight: 700; font-size: 12.5px; color: var(--text);
  transition: background .15s, border-color .15s, color .15s;
}
.act-btn svg { flex: 0 0 auto; }
.act-btn:hover { background: var(--gold-soft); border-color: var(--gold); color: var(--gold-deep); }

/* Wizard */
.steps { display: flex; gap: 6px; margin-bottom: 22px; flex-wrap: wrap; }
.step { flex: 1; min-width: 120px; text-align: center; font-size: 12.5px; font-weight: 800; color: var(--text-2); padding: 9px 6px; border-radius: var(--r-sm); background: var(--card); border: 1px solid var(--line); }
.step.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.step.done { background: var(--gold-soft); color: var(--gold-deep); border-color: var(--gold); }
.wiz-panel { display: none; }
.wiz-panel.on { display: block; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 0 18px; }
.grid-2 > div, .grid-3 > div { display: flex; flex-direction: column; justify-content: flex-end; }
.grid-2 label, .grid-3 label { line-height: 1.3; }
#w-desc-en, #w-desc-el { min-height: 210px; line-height: 1.55; }
.extras-check { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px; margin-top: 8px; }
.extras-check label {
  display: flex; align-items: center; gap: 9px; margin: 0; text-transform: none; letter-spacing: 0;
  font-size: 14px; font-weight: 600; color: var(--text); background: var(--bg); border: 1px solid var(--line);
  border-radius: var(--r-sm); padding: 10px 12px; cursor: pointer;
}
.extras-check input { width: 17px; height: 17px; min-height: 0; accent-color: var(--gold-deep); }
.extras-check label:has(input:checked) { background: var(--gold-soft); border-color: var(--gold); }
.wiz-nav { display: flex; justify-content: space-between; gap: 10px; margin-top: 26px; }

.photo-drop {
  border: 2px dashed var(--line); border-radius: var(--r-md); padding: 30px 18px; text-align: center;
  color: var(--text-2); font-weight: 600; background: var(--card); cursor: pointer;
}
.photo-drop:hover, .photo-drop.drag { border-color: var(--gold); background: var(--gold-soft); }
.photo-drop b { display: block; color: var(--ink); font-size: 16px; margin-bottom: 4px; }
.photo-previews { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 10px; margin-top: 14px; }
.photo-previews .ph { position: relative; cursor: grab; }
.photo-previews .ph.dragging { opacity: .4; }
.photo-previews .ph.drag-over img { outline: 2px solid var(--gold); outline-offset: 1px; }
.photo-previews .ph-main {
  position: absolute; bottom: 5px; left: 5px; z-index: 2;
  background: var(--gold); color: var(--ink); font-size: 10px; font-weight: 800;
  letter-spacing: .05em; text-transform: uppercase; border-radius: 100px; padding: 2px 8px;
}
.photo-previews img { aspect-ratio: 4/3; object-fit: cover; border-radius: var(--r-sm); width: 100%; }
.photo-previews .rm { position: absolute; top: 5px; right: 5px; background: rgba(14,17,20,.75); color: #fff; border: 0; border-radius: 50%; width: 26px; height: 26px; font-size: 13px; }
.translate-row { display: flex; align-items: center; gap: 10px; margin-top: 8px; flex-wrap: wrap; }
.hint { font-size: 12.5px; color: var(--text-2); margin-top: 6px; }

/* Inquiries */
.inq { border-left: 4px solid var(--gold); }
.inq.handled { border-left-color: var(--line); opacity: .72; }
.inq-head { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.inq-head b { font-size: 15.5px; }
.inq-head time { font-size: 12.5px; color: var(--text-2); font-weight: 700; }
.inq-car { display: inline-block; background: var(--gold-soft); color: var(--gold-deep); font-weight: 800; font-size: 12.5px; border-radius: 100px; padding: 4px 12px; margin-bottom: 10px; }
.inq-msg { background: var(--bg); border-radius: var(--r-sm); padding: 12px 14px; font-size: 14.5px; margin-bottom: 12px; white-space: pre-line; }
.inq-meta { font-size: 13.5px; color: var(--text-2); font-weight: 600; margin-bottom: 12px; }
.inq-meta a { color: var(--gold-deep); font-weight: 800; }

/* Modal */
.modal-wrap { position: fixed; inset: 0; background: rgba(14,17,20,.55); z-index: 100; display: none; align-items: flex-start; justify-content: center; padding: 30px 14px; overflow-y: auto; }
.modal-wrap.on { display: flex; }
.modal { background: #fff; border-radius: var(--r-lg); box-shadow: var(--shadow-2); width: 100%; max-width: 640px; padding: 26px 26px 30px; }
.modal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.modal-head h2 { font-size: 20px; }
.modal-close { background: var(--bg); border: 1px solid var(--line); border-radius: 8px; width: 38px; height: 38px; font-size: 16px; }
.modal-sub { color: var(--text-2); font-size: 14px; margin-bottom: 18px; }
.copy-field { display: grid; grid-template-columns: 130px 1fr auto; gap: 10px; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--line); }
.copy-field:last-child { border-bottom: 0; }
.copy-field b { font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--text-2); }
.copy-field span { font-weight: 700; font-size: 14.5px; word-break: break-word; }
.copy-btn { background: var(--gold-soft); color: var(--gold-deep); border: 0; border-radius: 6px; font-weight: 800; font-size: 12px; padding: 7px 12px; min-height: 34px; white-space: nowrap; }
.copy-btn:hover { background: #EEE2C6; }
.copy-btn.ok { background: var(--green-bg); color: var(--green); }
.post-preview { background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-md); padding: 18px; white-space: pre-wrap; font-size: 14.5px; margin: 14px 0; max-height: 380px; overflow-y: auto; }

/* Content editor */
.content-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 22px; }
textarea.tall { min-height: 110px; resize: vertical; }
.save-note { display: none; color: var(--green); font-weight: 800; font-size: 14px; margin-left: 12px; }
.save-note.on { display: inline; }

/* Toast */
.toast {
  position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%) translateY(20px);
  background: var(--ink); color: #fff; font-weight: 700; font-size: 14px;
  border-radius: 100px; padding: 12px 24px; box-shadow: var(--shadow-2); opacity: 0; pointer-events: none;
  transition: opacity .2s, transform .2s; z-index: 200;
}
.toast.on { opacity: 1; transform: translateX(-50%) translateY(0); }

/* Mobile */
.mobile-nav { display: none; }
@media (max-width: 860px) {
  .shell.on { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .main { padding: 18px 16px 110px; }
  .car-row { grid-template-columns: 76px 1fr; grid-template-rows: auto auto; }
  .car-row img { width: 76px; height: 56px; grid-row: span 2; }
  .car-row .price-edit { justify-self: start; }
  .row-actions { grid-column: 2; justify-content: flex-start; }
  .act-btn .lbl { display: none; }
  .act-btn { min-width: 40px; justify-content: center; }
  .grid-2, .grid-3, .content-grid { grid-template-columns: 1fr; }
  .mobile-nav {
    display: flex; position: fixed; bottom: 0; left: 0; right: 0; z-index: 90;
    background: var(--ink); padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
    justify-content: space-around;
  }
  .mobile-nav button {
    background: transparent; border: 0; color: rgba(255,255,255,.7); font-weight: 700; font-size: 11px;
    display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 6px 10px; border-radius: 8px; min-width: 60px;
  }
  .mobile-nav button.on { color: var(--gold); }
  .mobile-nav .ic { font-size: 20px; }
}
