/* ============================================================
   NYUMBAFIND — COMPONENTS
   Buttons, forms, cards, modals, tags, plan cards, upload
============================================================ */

/* ---- Primary button ---- */
.pri-btn {
  width: 100%; padding: 14px;
  background: linear-gradient(135deg, var(--sky), var(--sky-dark));
  color: white; border-radius: 13px; font-size: 14px; font-weight: 700;
  transition: all .2s; box-shadow: 0 4px 16px rgba(14,165,233,.35);
  letter-spacing: .3px; display: flex; align-items: center;
  justify-content: center; gap: 8px;
}
.pri-btn:hover    { transform: translateY(-1px); box-shadow: 0 8px 28px rgba(14,165,233,.45); }
.pri-btn:active   { transform: translateY(0); }
.pri-btn:disabled { background: var(--subtext); cursor: not-allowed; transform: none; box-shadow: none; }

/* ---- Back button ---- */
.back-btn {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; color: var(--subtext); margin-bottom: 28px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 20px; padding: 7px 14px; font-weight: 500; transition: all .2s;
}
.back-btn:hover { color: var(--sky); border-color: var(--sky); }

/* ---- Form group ---- */
.fg { margin-bottom: 14px; }
.fg label {
  display: block; font-size: 11px; font-weight: 700;
  color: var(--text); margin-bottom: 5px; letter-spacing: .2px;
}
.fg input, .fg select {
  width: 100%; padding: 12px 14px;
  border: 1.5px solid var(--border); border-radius: 12px;
  font-size: 14px; background: var(--surface); color: var(--text);
  outline: none; transition: border-color .2s, box-shadow .2s;
  -webkit-appearance: none;
}
.fg input:focus, .fg select:focus {
  border-color: var(--sky);
  box-shadow: 0 0 0 3px rgba(14,165,233,.12);
}
.fg input::placeholder { color: var(--subtext); }
.fg small { display: block; font-size: 11px; color: var(--subtext); margin-top: 4px; }

/* ---- Tab row ---- */
.tab-row {
  display: flex; background: var(--sky-pale);
  border-radius: 12px; padding: 4px; gap: 4px; margin-bottom: 22px;
}
.tab-btn {
  flex: 1; padding: 10px; border-radius: 9px;
  font-size: 13px; font-weight: 600; color: var(--subtext); transition: all .2s;
}
.tab-btn.active {
  background: var(--surface); color: var(--text);
  box-shadow: 0 2px 8px rgba(14,165,233,.15);
}

/* ---- Role badge ---- */
.role-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--sky-pale); border: 1px solid var(--border2);
  padding: 6px 14px; border-radius: 20px;
  font-size: 11px; font-weight: 700; color: var(--sky-dark);
  margin-bottom: 14px; letter-spacing: .3px;
}

/* ---- Auth headings ---- */
.auth-title { font-family: var(--serif); font-size: 32px; font-weight: 700; margin-bottom: 6px; }
.auth-sub   { font-size: 13px; color: var(--subtext); margin-bottom: 8px; line-height: 1.6; }

/* ---- Notice boxes ---- */
.free-notice {
  background: linear-gradient(135deg,#ECFDF5,#D1FAE5);
  border: 1px solid #6EE7B7; border-radius: 12px;
  padding: 12px 16px; margin-bottom: 20px;
  font-size: 12px; color: #065F46;
  display: flex; align-items: center; gap: 10px;
}
.free-notice .fn-icon { font-size: 20px; }
.monthly-notice {
  background: linear-gradient(135deg, var(--sky-pale), #BAE6FD);
  border: 1px solid var(--border2); border-radius: 12px;
  padding: 14px 16px; margin-bottom: 20px;
  font-size: 12px; color: var(--sky-deep);
}
.monthly-notice h5 { font-weight: 700; margin-bottom: 8px; font-size: 13px; }
.notice-box {
  background: var(--sky-pale); border: 1px solid var(--border2);
  border-radius: 12px; padding: 12px 14px; margin-bottom: 14px;
  font-size: 12px; color: var(--mid); line-height: 1.6;
}
.notice-box h5 { font-weight: 700; margin-bottom: 4px; font-size: 12px; }
.notice-box ul  { padding-left: 14px; }
.notice-box li  { margin-bottom: 2px; }

/* ---- Plan mini (auth screens) ---- */
.plan-mini { display: flex; flex-direction: column; gap: 6px; }
.plan-mini-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 7px 10px; background: white;
  border-radius: 8px; border: 1px solid var(--border);
}
.plan-mini-item .pn { font-weight: 600; font-size: 12px; }
.plan-mini-item .pp { font-weight: 700; color: var(--sky-dark); font-size: 12px; }

/* ---- Tags ---- */
.tag       { font-size:10px;font-weight:600;padding:3px 8px;border-radius:8px;background:var(--sky-pale);color:var(--sky-deep);border:1px solid var(--border); }
.tag.green { background:#D1FAE5;color:#065F46;border-color:#6EE7B7; }
.tag.sky   { background:var(--sky-pale);color:var(--sky-dark);border-color:var(--border2); }
.tag-row   { display:flex;flex-wrap:wrap;gap:5px;margin-bottom:10px; }

/* ---- Listing card ---- */
.listing-card {
  background: var(--surface); border-radius: 20px; overflow: hidden;
  margin-bottom: 14px; border: 1px solid var(--border);
  box-shadow: var(--sh); transition: transform .2s, box-shadow .2s;
  animation: fadeUp .35s ease both; cursor: pointer;
}
.listing-card:hover   { transform: translateY(-3px); box-shadow: var(--sh2); }
.listing-card.featured { border-color: var(--sky); box-shadow: 0 4px 20px rgba(14,165,233,.2); }
.card-img {
  height: 160px;
  background: linear-gradient(135deg, var(--sky-pale), var(--border));
  position: relative; display: flex; align-items: center;
  justify-content: center; font-size: 52px; overflow: hidden;
}
.card-img img  { position:absolute;inset:0;width:100%;height:100%;object-fit:cover; }
.img-overlay   { position:absolute;inset:0;background:linear-gradient(to bottom,transparent 50%,rgba(10,22,40,.5)); }
.price-tag     { position:absolute;top:10px;left:10px;background:linear-gradient(135deg,var(--sky),var(--sky-dark));color:white;font-size:12px;font-weight:700;padding:5px 12px;border-radius:10px;box-shadow:0 2px 8px rgba(14,165,233,.4); }
.area-tag      { position:absolute;top:10px;right:10px;background:rgba(10,22,40,.75);color:white;font-size:10px;font-weight:600;padding:4px 10px;border-radius:10px;backdrop-filter:blur(6px); }
.feat-badge    { position:absolute;bottom:8px;left:10px;background:linear-gradient(135deg,var(--sky-light),var(--sky));color:white;font-size:9px;font-weight:800;padding:3px 8px;border-radius:8px; }
.wm            { position:absolute;bottom:8px;right:10px;font-size:9px;font-weight:700;color:rgba(255,255,255,.9);background:rgba(10,22,40,.5);padding:3px 8px;border-radius:10px;backdrop-filter:blur(4px); }
.card-body     { padding: 14px; }
.card-body h4  { font-size: 15px; font-weight: 700; margin-bottom: 8px; }
.card-footer   { display:flex;align-items:center;justify-content:space-between;padding-top:10px;border-top:1px solid var(--border); }
.agent-info    { font-size: 11px; color: var(--subtext); }
.card-actions  { display: flex; gap: 6px; }

/* ---- WhatsApp + fav buttons ---- */
.wa-btn  { display:flex;align-items:center;gap:5px;background:var(--wa);color:white;border-radius:9px;padding:7px 12px;font-size:11px;font-weight:700;transition:all .2s; }
.wa-btn:hover { background:#1DB954;transform:scale(1.05); }
.fav-btn { width:34px;height:34px;border-radius:9px;border:1.5px solid var(--border);background:var(--surface);display:flex;align-items:center;justify-content:center;font-size:16px;transition:all .2s;cursor:pointer; }
.fav-btn:hover,.fav-btn.saved { background:#FEE2E2;border-color:#FCA5A5; }

/* ---- Lock box ---- */
.lock-box {
  display:flex;align-items:center;gap:8px;
  background:linear-gradient(135deg,var(--sky-pale),#BAE6FD);
  border:1px solid var(--border2);border-radius:10px;
  padding:9px 12px;margin-top:8px;font-size:11px;color:var(--sky-deep);cursor:pointer;transition:all .2s;
}
.lock-box:hover { background:linear-gradient(135deg,#BAE6FD,#7DD3FC); }

/* ---- Empty/error states ---- */
.empty-state     { text-align:center;padding:48px 20px;color:var(--subtext); }
.empty-state .ei { font-size:48px;margin-bottom:12px; }
.empty-state h4  { font-size:16px;font-weight:600;color:var(--text);margin-bottom:6px; }
.empty-state p   { font-size:13px;line-height:1.6; }
.error-state     { text-align:center;padding:32px 20px;background:var(--surface);border:1px solid var(--border);border-radius:var(--r);margin:16px 0; }
.retry-btn       { padding:9px 20px;background:linear-gradient(135deg,var(--sky),var(--sky-dark));color:white;border-radius:10px;font-size:12px;font-weight:700;margin-top:12px; }

/* ---- Skeleton ---- */
.skel-card { background:var(--surface);border-radius:20px;overflow:hidden;margin-bottom:14px;border:1px solid var(--border); }
.skel-img  { height:156px;background:linear-gradient(90deg,var(--sky-pale) 25%,#BAE6FD 50%,var(--sky-pale) 75%);background-size:200% 100%;animation:shimmer 1.4s infinite; }
.skel-line { height:12px;border-radius:6px;background:linear-gradient(90deg,var(--sky-pale) 25%,#BAE6FD 50%,var(--sky-pale) 75%);background-size:200% 100%;animation:shimmer 1.4s infinite;margin:10px 14px; }

/* ---- Modals ---- */
.modal-overlay { display:none;position:fixed;inset:0;z-index:200;background:rgba(10,22,40,.7);backdrop-filter:blur(8px);align-items:flex-end; }
.modal-overlay.open { display:flex; }
.modal-sheet   { background:var(--surface);border-radius:24px 24px 0 0;padding:20px 18px 40px;width:100%;max-height:92vh;overflow-y:auto;animation:slideUp .3s cubic-bezier(.34,1.56,.64,1); }
.sheet-handle  { width:40px;height:4px;background:var(--border);border-radius:2px;margin:0 auto 18px; }
.sheet-title   { font-family:var(--serif);font-size:24px;font-weight:700;margin-bottom:4px;color:var(--text); }
.sheet-sub     { font-size:12px;color:var(--subtext);margin-bottom:18px; }
.divider-line  { height:1px;background:var(--border);margin:16px 0; }

/* ---- Plan cards ---- */
.plan-card { border:1.5px solid var(--border);border-radius:16px;padding:16px 14px;margin-bottom:10px;cursor:pointer;transition:all .2s; }
.plan-card:hover,.plan-card.sel { border-color:var(--sky);background:linear-gradient(135deg,var(--sky-pale),#BAE6FD); }
.plan-card.pop { border-color:var(--sky-light); }
.plan-top      { display:flex;align-items:center;justify-content:space-between;margin-bottom:8px; }
.plan-card h4  { font-size:15px;font-weight:700; }
.plan-price    { font-family:var(--serif);font-size:24px;font-weight:700;color:var(--sky-dark); }
.plan-price span { font-family:var(--sans);font-size:11px;color:var(--subtext); }
.plan-card ul  { font-size:11px;color:var(--subtext);padding-left:14px; }
.plan-card li  { margin-bottom:3px; }
.pop-badge     { background:linear-gradient(135deg,var(--sky),var(--sky-dark));color:white;font-size:9px;font-weight:800;padding:3px 8px;border-radius:8px;letter-spacing:.3px; }

/* ---- Premium plan cards ---- */
.prem-card       { border:1.5px solid var(--border);border-radius:14px;padding:14px;margin-bottom:8px;cursor:pointer;transition:all .2s;display:flex;align-items:center;justify-content:space-between; }
.prem-card:hover,.prem-card.sel { border-color:var(--sky);background:var(--sky-pale); }
.prem-card h4    { font-size:13px;font-weight:700;margin-bottom:3px; }
.prem-card p     { font-size:11px;color:var(--subtext); }
.prem-price      { font-family:var(--serif);font-size:22px;font-weight:700;color:var(--sky-dark);white-space:nowrap; }
.prem-price span { font-family:var(--sans);font-size:10px;color:var(--subtext); }

/* ---- Photo upload ---- */
.upload-zone { border:2px dashed var(--border2);border-radius:16px;padding:28px 16px;text-align:center;cursor:pointer;transition:all .2s;background:var(--sky-pale);margin-bottom:12px; }
.upload-zone:hover { border-color:var(--sky);background:#BAE6FD; }
.upload-zone .uz-icon { font-size:32px;margin-bottom:8px; }
.upload-zone p  { font-size:12px;color:var(--mid); }
.upload-zone strong { color:var(--sky); }
.photo-rules    { margin-top:10px;text-align:left;background:var(--surface);border:1px solid var(--border);border-radius:10px;padding:10px 12px; }
.photo-rules p  { font-size:10px;color:var(--subtext);margin-bottom:4px;font-weight:600; }
.photo-rules ul { font-size:10px;color:var(--mid);padding-left:14px; }
.photo-rules li { margin-bottom:2px; }
.photo-count-lbl { font-size:11px;font-weight:700;color:var(--sky-dark);margin:6px 0; }
.photo-count-lbl.warn { color:var(--danger); }
.img-previews  { display:flex;gap:8px;flex-wrap:wrap;margin-bottom:12px; }
.preview-thumb { position:relative;width:72px;height:56px;border-radius:10px;overflow:hidden;border:1.5px solid var(--border); }
.preview-thumb img { width:100%;height:100%;object-fit:cover; }
.preview-thumb .pwm { position:absolute;bottom:2px;right:2px;font-size:7px;font-weight:800;background:rgba(10,22,40,.6);color:rgba(255,255,255,.9);padding:1px 5px;border-radius:5px; }
.preview-thumb .rm-photo { position:absolute;top:2px;right:2px;width:16px;height:16px;background:var(--danger);color:white;border-radius:50%;font-size:9px;font-weight:900;display:flex;align-items:center;justify-content:center;cursor:pointer; }

/* ---- Feature grid ---- */
.feat-grid { display:grid;grid-template-columns:1fr 1fr;gap:7px;margin-bottom:14px; }
.feat-item { display:flex;align-items:center;gap:7px;padding:9px 11px;border:1.5px solid var(--border);border-radius:10px;cursor:pointer;font-size:12px;transition:all .15s; }
.feat-item input { accent-color:var(--sky);width:15px;height:15px;cursor:pointer;flex-shrink:0; }
.feat-item.checked { border-color:var(--sky);background:var(--sky-pale); }

/* ---- Expiry options ---- */
.expiry-opts { display:flex;gap:7px;margin-bottom:14px; }
.exp-opt     { flex:1;padding:9px 6px;border:1.5px solid var(--border);border-radius:10px;font-size:11px;font-weight:600;text-align:center;cursor:pointer;color:var(--subtext);transition:all .15s; }
.exp-opt.sel { border-color:var(--sky);background:var(--sky-pale);color:var(--sky-dark); }

/* ---- Zone map ---- */
.zone-grid { display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-bottom:16px; }
.zone-card  { background:var(--sky-pale);border:1.5px solid var(--border);border-radius:14px;padding:14px 12px;cursor:pointer;transition:all .2s; }
.zone-card:hover,.zone-card.open { border-color:var(--sky);background:#BAE6FD; }
.zone-card h4 { font-size:13px;font-weight:700;margin-bottom:4px;color:var(--text); }
.zone-card p  { font-size:10px;color:var(--subtext); }
.zone-avg     { font-size:10px;color:var(--moss);font-weight:700;margin-top:5px; }
.zone-areas   { max-height:0;overflow:hidden;transition:max-height .35s ease;display:flex;flex-wrap:wrap;gap:5px;margin-top:0; }
.zone-card.open .zone-areas { max-height:200px;margin-top:10px; }
.z-area-tag   { font-size:10px;font-weight:600;padding:3px 9px;border-radius:8px;background:var(--sky);color:white;cursor:pointer;transition:opacity .15s; }
.z-area-tag:hover { opacity:.8; }

/* ---- Mpamba payment box ---- */
.mpamba-box   { background:linear-gradient(135deg,#0D3460,#0A1628);border:1px solid rgba(14,165,233,.25);border-radius:12px;padding:14px 16px;margin-bottom:16px; }
.mpamba-box h4 { font-size:12px;font-weight:700;color:var(--sky-light);margin-bottom:8px;display:flex;align-items:center;gap:6px; }
.mpamba-box p  { font-size:12px;color:#7DD3FC;line-height:1.6; }
.mpamba-box .till { font-size:16px;font-weight:700;color:#BAE6FD;margin:4px 0;display:block; }

/* ---- Terms text ---- */
.terms-text   { font-size:11px;color:var(--subtext);text-align:center;margin-top:14px;line-height:1.6; }
.terms-text a { color:var(--sky);cursor:pointer; }
