/* ═══════════════════════════════════════════════════════
   MASHROOAK — Admin Panel Stylesheet
   ═══════════════════════════════════════════════════════ */
:root {
  --blue:      #0a183b;
  --blue-d:    #060f24;
  --blue-l:    #f0e8dc;
  --gold:      #c39c73;
  --rent:      #1a6e65;
  --rent-bg:   #e0f2f1;
  --sale:      #0a183b;
  --sale-bg:   #f0e8dc;
  --invest:    #a05e28;
  --invest-bg: #fbe9e7;
  --all-bg:    #f0e8dc;
  --all-c:     #a8845e;
  --text:      #1a2332;
  --text-m:    #4a5568;
  --text-l:    #718096;
  --bg:        #f0f4f9;
  --white:     #ffffff;
  --border:    #e2e8f0;
  --danger:    #e53e3e;
  --success:   #2f855a;
  --shadow:    0 2px 12px rgba(0,0,0,.08);
  --shadow-md: 0 6px 24px rgba(0,0,0,.12);
  --r:         14px;
  --r-sm:      8px;
  --header-h:  64px;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; }
body {
  font-family: 'Cairo', sans-serif;
  background: var(--bg);
  color: var(--text);
  direction: rtl;
  min-height: 100svh;
}
a { text-decoration: none; color: inherit; }
button { font-family: inherit; cursor: pointer; border: none; outline: none; }
input, select, textarea { font-family: inherit; outline: none; }
.hidden { display: none !important; }

.logo-img {
  display: block;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}

.login-logo-img {
  height: clamp(84px, 12vw, 118px);
  max-height: 118px;
}

.adm-logo-img {
  height: 82px;
  filter: brightness(0) invert(1);
}

/* ── Login ─────────────────────────────────────────── */
.login-screen {
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(160deg,#0a2d6e,var(--blue),#1e88e5);
  padding: 20px;
  position: relative;
  overflow: hidden;
}
.login-screen::before {
  content: '';
  position: absolute;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: rgba(255,255,255,.04);
  top: -200px; left: -200px;
}
.login-screen::after {
  content: '';
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,.14), rgba(195,156,115,.08) 60%, transparent);
  bottom: -150px;
  right: -120px;
  animation: adminFloat 12s ease-in-out infinite;
}

@keyframes adminFloat {
  0%, 100% { transform: translateY(0) translateX(0); }
  50% { transform: translateY(-14px) translateX(-10px); }
}
.login-card {
  background: var(--white);
  border-radius: 20px;
  padding: 48px 40px 36px;
  width: min(440px,100%);
  box-shadow: 0 24px 64px rgba(0,0,0,.3);
  position: relative;
  z-index: 1;
  text-align: center;
}
.login-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  padding: 8px 20px;
  margin-bottom: 20px;
}
.login-card h2 { font-size: 22px; font-weight: 800; color: var(--text); margin-bottom: 6px; }
.l-sub { color: var(--text-l); font-size: 14px; margin-bottom: 28px; }

.lfield { display: flex; flex-direction: column; gap: 7px; text-align: right; margin-bottom: 18px; }
.lfield label { font-size: 13px; font-weight: 700; color: var(--text-m); }
.lfield input {
  padding: 13px 16px;
  border: 2px solid var(--border);
  border-radius: 10px;
  font-size: 14px;
  color: var(--text);
  transition: border-color .2s;
}
.lfield input:focus { border-color: var(--blue); }

.btn-login {
  width: 100%;
  background: linear-gradient(135deg,var(--blue-d),var(--blue));
  color: white;
  font-size: 16px;
  font-weight: 700;
  padding: 14px;
  border-radius: 10px;
  transition: opacity .2s, transform .2s;
  box-shadow: 0 4px 16px rgba(21,101,192,.4);
  margin-bottom: 4px;
}
.btn-login:hover { opacity: .9; transform: translateY(-1px); }
.btn-login:disabled { opacity: .6; pointer-events: none; }

.l-err {
  color: var(--danger);
  font-size: 13px;
  font-weight: 600;
  margin-top: 10px;
  padding: 10px 14px;
  background: #fff5f5;
  border-radius: 8px;
  border: 1px solid #fed7d7;
}
.l-back {
  display: inline-block;
  margin-top: 20px;
  color: var(--text-l);
  font-size: 13px;
  transition: color .2s;
}
.l-back:hover { color: var(--blue); }

/* ── Dashboard ──────────────────────────────────────── */
.dashboard { min-height: 100svh; display: flex; flex-direction: column; }

/* ── Header ─────────────────────────────────────────── */
.adm-header {
  background: linear-gradient(135deg,var(--blue-d),var(--blue));
  position: sticky; top: 0; z-index: 100;
  box-shadow: 0 4px 18px rgba(0,0,0,.2);
  backdrop-filter: blur(10px);
}
.adm-header-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 24px;
  height: var(--header-h);
  max-width: 1400px;
  margin-inline: auto;
  width: 100%;
}
.adm-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.adm-tabs {
  display: flex;
  gap: 4px;
  flex: 1;
  justify-content: center;
}
.atab-btn {
  display: flex;
  align-items: center;
  gap: 7px;
  background: rgba(255,255,255,.12);
  color: rgba(255,255,255,.8);
  font-size: 14px;
  font-weight: 600;
  padding: 9px 18px;
  border-radius: 10px;
  border: 1.5px solid rgba(255,255,255,.15);
  transition: all .2s;
  white-space: nowrap;
}
.atab-btn:hover { background: rgba(255,255,255,.22); color: white; }
.atab-btn.active { background: rgba(255,255,255,.95); color: var(--blue); border-color: transparent; }
.atb-ico { font-size: 16px; }

.adm-user {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.adm-username {
  color: rgba(255,255,255,.85);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}
.adm-site-btn {
  background: rgba(255,255,255,.15);
  color: white;
  font-size: 13px;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,.25);
  transition: all .2s;
  white-space: nowrap;
}
.adm-site-btn:hover { background: rgba(255,255,255,.25); }
.adm-logout-btn {
  background: rgba(229,62,62,.2);
  color: #fca5a5;
  font-size: 13px;
  font-weight: 700;
  padding: 7px 14px;
  border-radius: 8px;
  border: 1px solid rgba(229,62,62,.3);
  transition: all .2s;
  white-space: nowrap;
}
.adm-logout-btn:hover { background: rgba(229,62,62,.4); color: white; }
.lang-toggle-btn {
  background: transparent;
  color: #c39c73;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  padding: 6px 11px;
  border-radius: 7px;
  border: 1.5px solid #c39c73;
  cursor: pointer;
  transition: all .2s;
  white-space: nowrap;
  font-family: inherit;
}
.lang-toggle-btn:hover { background: #c39c73; color: #0a183b; }
.adm-hamburger { display: none; color: white; font-size: 22px; background: none; margin-inline-start: auto; }
.adm-mobile-menu {
  display: flex;
  flex-direction: column;
  padding: 8px 0 12px;
  border-top: 1px solid rgba(255,255,255,.15);
}
.adm-mobile-menu button, .adm-mobile-menu a {
  color: rgba(255,255,255,.9);
  font-size: 14px;
  font-weight: 600;
  padding: 12px 24px;
  background: none;
  transition: background .2s;
  text-align: right;
  border: none;
}
.adm-mobile-menu button:hover, .adm-mobile-menu a:hover { background: rgba(255,255,255,.1); }

/* ── Main content ────────────────────────────────────── */
.adm-main {
  flex: 1;
  max-width: 1400px;
  width: 100%;
  margin-inline: auto;
  padding: 32px 28px 48px;
}

.dashboard {
  background:
    radial-gradient(800px 400px at 100% -120px, rgba(10,24,59,.08), transparent 60%),
    radial-gradient(700px 360px at -10% -80px, rgba(195,156,115,.12), transparent 55%),
    var(--bg);
}
.apanel { display: none; }
.apanel.active { display: block; }

.panel-intro { margin-bottom: 28px; }
.panel-intro h2 { font-size: 24px; font-weight: 800; color: var(--text); margin-bottom: 4px; }
.panel-intro p  { color: var(--text-l); font-size: 15px; }

/* ── Stats row ───────────────────────────────────────── */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-bottom: 28px;
}
.stat-card {
  background: var(--white);
  border-radius: var(--r);
  padding: 24px 20px;
  text-align: center;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: transform .2s, box-shadow .2s;
}
.stat-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.sc-icon { font-size: 30px; margin-bottom: 10px; }
.sc-val  { font-size: 38px; font-weight: 900; line-height: 1; margin-bottom: 6px; }
.sc-label { font-size: 13px; font-weight: 600; color: var(--text-m); }
.sc-all    { border-top: 4px solid var(--all-c);    }
.sc-all .sc-val  { color: var(--all-c); }
.sc-rent   { border-top: 4px solid var(--rent);    }
.sc-rent .sc-val  { color: var(--rent); }
.sc-sale   { border-top: 4px solid var(--sale);   }
.sc-sale .sc-val  { color: var(--sale); }
.sc-invest { border-top: 4px solid var(--invest); }
.sc-invest .sc-val { color: var(--invest); }

/* Lead stat cards */
.leads-stats-row { grid-template-columns: repeat(2, 1fr); }
.sc-sub { font-size: 11px; color: var(--text-l); margin-top: 4px; font-weight: 500; }
.sc-lead-val { border-top: 4px solid #c39c73; }
.sc-lead-val .sc-val { color: #a05e28; }
.sc-lead-view { border-top: 4px solid #0a183b; }
.sc-lead-view .sc-val { color: #0a183b; }

/* ── Quick actions ───────────────────────────────────── */
.quick-actions {
  display: flex;
  gap: 12px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}
.qa-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  padding: 12px 24px;
  border-radius: var(--r-sm);
  transition: all .2s;
  border: 2px solid transparent;
}
.qa-add    { background: var(--blue); color: white; box-shadow: 0 4px 12px rgba(21,101,192,.3); }
.qa-add:hover { background: var(--blue-d); transform: translateY(-2px); }
.qa-manage { background: var(--white); color: var(--text); border-color: var(--border); }
.qa-manage:hover { border-color: var(--blue); color: var(--blue); transform: translateY(-2px); }
.qa-site   { background: var(--white); color: var(--text); border-color: var(--border); }
.qa-site:hover { border-color: var(--blue); color: var(--blue); transform: translateY(-2px); }
.qa-pwd    { background: var(--white); color: var(--text); border-color: var(--border); }
.qa-pwd:hover { border-color: var(--gold); color: var(--gold); transform: translateY(-2px); }

/* ── Recent list ─────────────────────────────────────── */
.recent-wrap {
  background: var(--white);
  border-radius: var(--r);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  overflow: hidden;
}
.recent-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  border-bottom: 1px solid var(--border);
}
.recent-bar h3 { font-size: 16px; font-weight: 700; }
.btn-sm-text { background: none; color: var(--blue); font-size: 14px; font-weight: 700; }
.btn-sm-text:hover { text-decoration: underline; }
.recent-list { padding: 8px 0; }

.recent-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 24px;
  border-bottom: 1px solid var(--border);
  transition: background .15s;
}
.recent-item:last-child { border-bottom: none; }
.recent-item:hover { background: #f8fafc; }
.ri-thumb {
  width: 56px; height: 46px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}
.ri-thumb img { width: 100%; height: 100%; object-fit: cover; }
.ri-thumb video { width: 100%; height: 100%; object-fit: cover; display: block; }
.ri-info { flex: 1; min-width: 0; }
.ri-title { font-size: 14px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ri-meta  { font-size: 12px; color: var(--text-l); margin-top: 2px; }
.ri-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 50px;
  color: white;
  white-space: nowrap;
  flex-shrink: 0;
}
.badge-rent   { background: var(--rent); }
.badge-sale   { background: var(--sale); }
.badge-invest { background: var(--invest); }
.ri-price {
  font-size: 13px;
  font-weight: 800;
  color: var(--blue);
  white-space: nowrap;
  flex-shrink: 0;
  min-width: 120px;
  text-align: center;
}

/* ── Add form ────────────────────────────────────────── */
.add-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 24px;
  align-items: start;
}
.fcard {
  background: var(--white);
  border-radius: var(--r);
  padding: 24px 28px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  margin-bottom: 20px;
}
.fcard:last-child { margin-bottom: 0; }
.fcard-title {
  font-size: 15px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--bg);
}
.frow { display: flex; gap: 16px; margin-bottom: 16px; }
.frow:last-child { margin-bottom: 0; }
.field { display: flex; flex-direction: column; gap: 7px; flex: 1; }
.field.w-full { flex: none; width: 100%; }
.field label { font-size: 13px; font-weight: 700; color: var(--text-m); }
.field input, .field select, .field textarea {
  padding: 11px 14px;
  border: 2px solid var(--border);
  border-radius: var(--r-sm);
  font-size: 14px;
  color: var(--text);
  transition: border-color .2s;
  background: var(--white);
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--blue); }
.field textarea { resize: vertical; min-height: 100px; }
.req { color: var(--danger); }
.opt { color: var(--text-l); font-weight: 400; font-style: normal; font-size: 11px; }

.price-preview {
  font-size: 13px;
  font-weight: 700;
  color: var(--blue);
  padding: 8px 12px;
  background: var(--blue-l);
  border-radius: 6px;
  margin-top: -8px;
  margin-bottom: 16px;
}

/* ── Photo upload ────────────────────────────────────── */
.fcard-photos { position: sticky; top: calc(var(--header-h) + 20px); }
.photo-badge {
  background: var(--bg);
  color: var(--text-m);
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 50px;
  margin-inline-start: 8px;
}
.upload-zone {
  border: 2.5px dashed var(--border);
  border-radius: var(--r);
  padding: 28px 16px;
  text-align: center;
  cursor: pointer;
  transition: all .2s;
  background: #fafbfe;
}
.upload-zone:hover, .upload-zone.drag-over {
  border-color: var(--blue);
  background: var(--blue-l);
}
.uz-icon { font-size: 36px; margin-bottom: 8px; }
.uz-main { font-size: 15px; font-weight: 700; color: var(--text); margin-bottom: 6px; }
.uz-or   { font-size: 12px; color: var(--text-l); display: block; margin-bottom: 8px; }
.uz-browse {
  background: var(--blue);
  color: white;
  font-size: 13px;
  font-weight: 700;
  padding: 9px 20px;
  border-radius: 8px;
  margin-bottom: 10px;
  transition: background .2s;
}
.uz-browse:hover { background: var(--blue-d); }
.uz-hint { font-size: 12px; color: var(--text-l); }

.previews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(88px, 1fr));
  gap: 10px;
  margin-top: 16px;
}
.preview-item {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 1;
  border: 2px solid var(--border);
  background: var(--bg);
}
.preview-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.preview-item video { width: 100%; height: 100%; object-fit: cover; display: block; }
.preview-remove {
  position: absolute;
  top: 4px;
  left: 4px;
  width: 22px;
  height: 22px;
  background: rgba(229,62,62,.9);
  color: white;
  border-radius: 50%;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s;
  line-height: 1;
}
.preview-remove:hover { background: var(--danger); }
.preview-num {
  position: absolute;
  bottom: 4px;
  right: 4px;
  background: rgba(0,0,0,.55);
  color: white;
  font-size: 10px;
  font-weight: 700;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.fcard-submit { text-align: center; }
.btn-submit-main {
  width: 100%;
  background: linear-gradient(135deg,var(--blue-d),var(--blue));
  color: white;
  font-size: 16px;
  font-weight: 800;
  padding: 15px;
  border-radius: var(--r-sm);
  transition: opacity .2s, transform .2s;
  box-shadow: 0 4px 16px rgba(21,101,192,.35);
  margin-bottom: 10px;
}
.btn-submit-main:hover:not(:disabled) { opacity: .9; transform: translateY(-1px); }
.btn-submit-main:disabled { opacity: .6; pointer-events: none; }
.btn-form-reset {
  width: 100%;
  background: var(--bg);
  color: var(--text-m);
  font-size: 14px;
  font-weight: 600;
  padding: 11px;
  border-radius: var(--r-sm);
  border: 1.5px solid var(--border);
  transition: all .2s;
}
.btn-form-reset:hover { border-color: #999; }
.form-result {
  margin-top: 14px;
  font-size: 14px;
  font-weight: 600;
  padding: 12px 16px;
  border-radius: 8px;
  line-height: 1.5;
}
.form-result.ok  { background: #f0fff4; color: var(--success); border: 1px solid #9ae6b4; }
.form-result.err { background: #fff5f5; color: var(--danger);  border: 1px solid #feb2b2; }

/* ── Manage ──────────────────────────────────────────── */
.manage-toolbar {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 20px;
  background: var(--white);
  border-radius: var(--r);
  padding: 16px 20px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}
.manage-search {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg);
  border-radius: 8px;
  padding: 9px 14px;
  flex: 1;
  min-width: 200px;
  border: 1.5px solid var(--border);
  color: var(--text-l);
  transition: border-color .2s;
}
.manage-search:focus-within { border-color: var(--blue); color: var(--blue); }
.manage-search input {
  border: none;
  background: none;
  font-size: 14px;
  color: var(--text);
  flex: 1;
}
.manage-type-btns { display: flex; gap: 6px; flex-wrap: wrap; }
.mt-btn {
  background: var(--bg);
  color: var(--text-m);
  font-size: 13px;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: 8px;
  border: 1.5px solid var(--border);
  transition: all .2s;
  white-space: nowrap;
}
.mt-btn:hover { border-color: var(--blue); color: var(--blue); }
.mt-btn.active { background: var(--blue); color: white; border-color: var(--blue); }

.btn-refresh {
  background: var(--white);
  color: var(--blue);
  font-size: 13px;
  font-weight: 700;
  padding: 9px 18px;
  border-radius: 8px;
  border: 1.5px solid var(--blue);
  transition: all .2s;
  white-space: nowrap;
}
.btn-refresh:hover { background: var(--blue); color: white; }

.btn-export {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--white);
  color: var(--success);
  font-size: 13px;
  font-weight: 700;
  padding: 9px 16px;
  border-radius: 8px;
  border: 1.5px solid var(--success);
  transition: all .2s;
  white-space: nowrap;
}
.btn-export:hover { background: var(--success); color: white; }

.manage-meta {
  color: var(--text-l);
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 16px;
}
.manage-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

/* Manage property card */
.mprop-card {
  background: var(--white);
  border-radius: var(--r);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: transform .2s, box-shadow .2s;
  display: flex;
  flex-direction: column;
}
.mprop-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.mprop-photo {
  position: relative;
  height: 180px;
  overflow: hidden;
  background: var(--bg);
}
.mprop-photo.media-clickable { cursor: zoom-in; }
.mprop-placeholder {
  width: 100%; height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 46px;
}
.mprop-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 50px;
  color: white;
}
.mprop-info { padding: 16px 18px; flex: 1; }
.mprop-title {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mprop-title-en {
  font-size: 12px;
  color: var(--text-l);
  margin-bottom: 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mprop-price {
  font-size: 16px;
  font-weight: 900;
  color: var(--blue);
  margin-bottom: 8px;
}
.mprop-meta { display: flex; gap: 12px; font-size: 12px; color: var(--text-l); flex-wrap: wrap; }
.mprop-photo img, .mprop-photo video { width: 100%; height: 100%; object-fit: contain; background: var(--bg); display: block; }
.mprop-foot {
  padding: 12px 18px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.mprop-id  { font-size: 11px; color: var(--text-l); }
.mprop-foot-btns { display: flex; gap: 8px; }
.btn-mprop-edit {
  background: #eff6ff;
  color: var(--blue);
  font-size: 13px;
  font-weight: 700;
  padding: 7px 14px;
  border-radius: 8px;
  border: 1.5px solid #bfdbfe;
  transition: all .2s;
}
.btn-mprop-edit:hover { background: var(--blue); color: white; border-color: var(--blue); }
.btn-mprop-del {
  background: #fff5f5;
  color: var(--danger);
  font-size: 13px;
  font-weight: 700;
  padding: 7px 14px;
  border-radius: 8px;
  border: 1.5px solid #fed7d7;
  transition: all .2s;
}
.btn-mprop-del:hover { background: var(--danger); color: white; border-color: var(--danger); }

/* ── Valuation requests ─────────────────────────────── */
.valuation-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.vreq-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r);
  box-shadow: var(--shadow);
  padding: 16px;
  transition: transform .2s, box-shadow .2s;
}

.vreq-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.vreq-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}

.vreq-name {
  font-size: 16px;
  font-weight: 800;
  color: var(--text);
}

.vreq-badge {
  font-size: 11px;
  font-weight: 800;
  border-radius: 50px;
  padding: 5px 10px;
  color: white;
}

.vreq-badge.rent { background: var(--rent); }
.vreq-badge.sale { background: var(--sale); }

.vreq-meta {
  display: grid;
  gap: 6px;
  font-size: 13px;
  color: var(--text-m);
  margin-bottom: 10px;
}

.vreq-meta strong {
  color: var(--text);
  font-weight: 700;
}

.vreq-status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.vreq-status-tag {
  font-size: 11px;
  font-weight: 800;
  padding: 5px 10px;
  border-radius: 999px;
  white-space: nowrap;
}

.vreq-status-tag.pending {
  color: #92400e;
  background: #fef3c7;
}

.vreq-status-tag.contacted {
  color: #166534;
  background: #dcfce7;
}

.vreq-status-tag.follow_up {
  color: #3730a3;
  background: #e0e7ff;
}

.vreq-status-select {
  min-width: 150px;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 7px 10px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text);
  background: #fff;
}

.vreq-status-select:focus {
  border-color: var(--blue);
}

.vreq-details {
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--text-m);
  min-height: 64px;
}

.vreq-foot {
  margin-top: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.vreq-time {
  font-size: 12px;
  color: var(--text-l);
}
.btn-vreq-del {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 700;
  color: var(--danger);
  background: rgba(229,62,62,.07);
  border: 1.5px solid rgba(229,62,62,.2);
  border-radius: 8px;
  padding: 5px 12px;
  transition: background .15s, border-color .15s;
  white-space: nowrap;
}
.btn-vreq-del:hover {
  background: rgba(229,62,62,.14);
  border-color: rgba(229,62,62,.45);
}

/* ── Delete modal ────────────────────────────────────── */
.del-overlay {
  position: fixed; inset: 0; z-index: 500;
  background: rgba(0,0,0,.6);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.del-modal {
  background: var(--white);
  border-radius: 20px;
  padding: 40px 32px 32px;
  max-width: 400px;
  width: 100%;
  text-align: center;
  box-shadow: 0 24px 60px rgba(0,0,0,.25);
  animation: popIn .2s ease;
}
@keyframes popIn {
  from { transform: scale(.92); opacity: 0; }
  to   { transform: scale(1);   opacity: 1; }
}
.del-ico { font-size: 48px; margin-bottom: 12px; }
.del-modal h3 { font-size: 20px; font-weight: 800; margin-bottom: 8px; }
.del-modal p  { color: var(--text-m); font-size: 14px; line-height: 1.7; margin-bottom: 24px; }
.del-btns { display: flex; gap: 10px; justify-content: center; }
.btn-del-yes {
  background: var(--danger);
  color: white;
  font-size: 15px;
  font-weight: 700;
  padding: 12px 28px;
  border-radius: 10px;
  transition: background .2s;
}
.btn-del-yes:hover { background: #c53030; }
.btn-del-no {
  background: var(--bg);
  color: var(--text-m);
  font-size: 15px;
  font-weight: 600;
  padding: 12px 28px;
  border-radius: 10px;
  border: 1.5px solid var(--border);
  transition: all .2s;
}
.btn-del-no:hover { border-color: #999; }

/* ── Edit modal ──────────────────────────────────────── */
.edit-overlay {
  position: fixed; inset: 0; z-index: 500;
  background: rgba(0,0,0,.6);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.edit-modal {
  background: var(--white);
  border-radius: 20px;
  width: min(720px, 100%);
  max-height: 90svh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 24px 60px rgba(0,0,0,.3);
  animation: popIn .2s ease;
}
.edit-modal-hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 28px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.edit-modal-hd h3 { font-size: 18px; font-weight: 800; }
.edit-close-btn {
  width: 32px; height: 32px;
  background: var(--bg);
  border-radius: 50%;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s;
  line-height: 1;
}
.edit-close-btn:hover { background: #e2e8f0; }
.edit-modal-body {
  overflow-y: auto;
  padding: 20px 28px;
  flex: 1;
}
.edit-modal-body .fcard {
  box-shadow: none;
  border: 1.5px solid var(--border);
}
.edit-modal-ft {
  display: flex;
  gap: 10px;
  padding: 16px 28px;
  border-top: 1px solid var(--border);
  flex-shrink: 0;
}
.edit-existing-photos {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(88px, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}
.edit-existing-photo {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 1;
  border: 2px solid var(--border);
  background: var(--bg);
  transition: opacity .2s;
}
.edit-existing-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.edit-existing-photo video { width: 100%; height: 100%; object-fit: cover; display: block; }
.edit-existing-photo.removed { opacity: .35; }
.edit-existing-photo.removed .preview-remove { background: rgba(113,128,150,.9); }
.edit-upload-zone {
  border: 2px dashed var(--border);
  border-radius: var(--r);
  padding: 14px 16px;
  text-align: center;
  cursor: pointer;
  transition: all .2s;
  background: #fafbfe;
}
.edit-upload-zone:hover, .edit-upload-zone.drag-over {
  border-color: var(--blue);
  background: var(--blue-l);
}
.edit-upload-zone p { font-size: 13px; color: var(--text-m); margin: 6px 0 8px; }
.edit-upload-zone button {
  background: var(--blue);
  color: white;
  font-size: 13px;
  font-weight: 700;
  padding: 8px 18px;
  border-radius: 8px;
  transition: background .2s;
}
.edit-upload-zone button:hover { background: var(--blue-d); }

/* ── Responsive ─────────────────────────────────────── */
@media (max-width: 1000px) {
  .add-layout { grid-template-columns: 1fr; }
  .fcard-photos { position: static; }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 700px) {
  .adm-tabs, .adm-user { display: none; }
  .adm-hamburger { display: block; }
  .adm-main { padding: 20px 16px 32px; }
  .adm-logo-img { height: 50px; }
  .stats-row { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .sc-val { font-size: 28px; }
  .frow { flex-direction: column; }
  .manage-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .login-card { padding: 32px 24px 28px; }
  .stats-row { grid-template-columns: 1fr 1fr; }
  .quick-actions { flex-direction: column; }
}

/* ── Valuation photo thumbnails ──────────────────────── */
.vreq-photos {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(76px, 1fr));
  gap: 8px;
  margin-top: 12px;
  padding: 10px;
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: 12px;
}
.vreq-thumb {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 9px;
  border: 1.5px solid var(--border);
  cursor: pointer;
  transition: transform .15s, box-shadow .15s, border-color .15s;
  display: block;
}
.vreq-thumb:hover {
  transform: scale(1.07);
  box-shadow: 0 6px 20px rgba(0,0,0,.22);
  border-color: var(--gold);
}

/* ── Photo lightbox ──────────────────────────────────── */
.photo-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(6,15,36,.93);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  backdrop-filter: blur(6px);
}
.lb-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  max-width: min(88vw, 960px);
}
.lb-inner img {
  max-width: 100%;
  max-height: 78vh;
  border-radius: 14px;
  object-fit: contain;
  box-shadow: 0 16px 60px rgba(0,0,0,.6);
}
.lb-inner video {
  max-width: 100%;
  max-height: 78vh;
  border-radius: 14px;
  object-fit: contain;
  box-shadow: 0 16px 60px rgba(0,0,0,.6);
  background: #000;
}
.lb-counter {
  color: rgba(255,255,255,.6);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .5px;
}
.lb-close {
  position: fixed;
  top: 18px;
  left: 22px;
  background: rgba(255,255,255,.12);
  color: #fff;
  font-size: 18px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s;
  z-index: 10000;
}
.lb-close:hover { background: rgba(255,255,255,.25); }
.lb-prev, .lb-next {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,.12);
  color: #fff;
  font-size: 28px;
  line-height: 1;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s;
  z-index: 10000;
}
.lb-prev { right: 20px; }
.lb-next { left: 20px; }
.lb-prev:hover, .lb-next:hover { background: rgba(255,255,255,.25); }
