/*  styles/account.css — buyer / seller ka dashboard (`app/yard-account.js`).
    ===========================================================================
    2 Nov 2026. Rang sirf `yard.css` ke token se -- ek bhi naya hex nahi.
    Rangeen jhalak `color-mix` se, aur uske theek pehle saadi keemat, taaki jo
    browser `color-mix` na samjhe wo bina tint ke dikhaye (§18 ka tareeka).

    Phone pehle (§23): base phone ka hai, badi screen `min-width` ka apwaad,
    aur har apwaad apne base rule ke BAAD. Sabse chhota akshar 12px (§30).
    =========================================================================== */

.ya { display: grid; gap: 14px; }

/* ── sar ────────────────────────────────────────────────────────────────── */
.ya-hero {
  padding: 18px 16px; border-radius: var(--r-lg);
  border: 1px solid var(--line); background: var(--surface);
  background-image: var(--grad-soft);
}
.ya-eyebrow {
  margin: 0; font-size: 12px; font-weight: 800; letter-spacing: .08em;
  text-transform: uppercase; color: var(--a2);
}
.ya-h1 { margin: 6px 0 0; font-size: 22px; font-weight: 800; letter-spacing: -.3px; line-height: 1.25; color: var(--ink); }
.ya-line { margin: 6px 0 0; font-size: 14px; line-height: 1.5; color: var(--ink-2); }
/*  Jitne ank utne barabar khaane -- buyer ke teen, seller ke do. Pakke
    `repeat(3)` par seller ke card ke bagal me ek khaali khaana bachta tha. */
.ya-stats {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 8px; margin-top: 14px;
}
.ya-stat {
  padding: 10px 8px; border-radius: var(--r); text-align: center;
  background: var(--bg-2); border: 1px solid var(--line);
}
.ya-stat b { display: block; font-size: 20px; font-weight: 800; color: var(--ink); line-height: 1.2; }
.ya-stat span { display: block; margin-top: 2px; font-size: 12px; line-height: 1.3; color: var(--ink-3); }
.ya-hero-go { margin-top: 14px; width: 100%; min-height: 44px; }

/* ── khaane (tabs) ──────────────────────────────────────────────────────── */
.ya-tabs {
  display: flex; gap: 4px; padding: 4px; border-radius: var(--r);
  background: var(--surface); border: 1px solid var(--line);
}
.ya-tab {
  flex: 1 1 0; min-width: 0; min-height: 44px; padding: 0 4px;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  font: inherit; font-size: 13.5px; font-weight: 700; white-space: nowrap;
  color: var(--ink-2); background: transparent; border: 1px solid transparent;
  border-radius: var(--r-sm); cursor: pointer;
}
.ya-tab.on { color: var(--ink); background: var(--surface-3); border-color: var(--line-strong); }
.ya-tab:focus-visible { outline: 2px solid var(--a2); outline-offset: 1px; }
/*  Ginti chaar khaane ki qataar ko 320px par todti thi -- phone par wo hero
    ke teen ank me dikhti hai, yahan 400px se upar. */
.ya-n {
  display: none; min-width: 22px; padding: 1px 6px; border-radius: var(--r-pill);
  font-size: 12px; font-weight: 800; color: var(--ink); background: var(--surface-2);
}

.ya-sec { margin: 0; font-size: 13px; line-height: 1.5; color: var(--ink-2); }
.ya-list { display: grid; gap: 12px; }

/* ── ghar ka card ───────────────────────────────────────────────────────── */
.ya-prop {
  padding: 12px; border-radius: var(--r-lg);
  background: var(--surface); border: 1px solid var(--line);
}
.ya-prop-row { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 12px; align-items: start; }
.ya-ph {
  display: flex; align-items: center; justify-content: center;
  aspect-ratio: 1 / 1; width: 100%; overflow: hidden; border-radius: var(--r);
  background: var(--surface-2); border: 1px solid var(--line);
}
.ya-ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ya-ph-none { font-size: 28px; color: var(--ink-3); }
.ya-prop-b { min-width: 0; display: grid; gap: 4px; }
.ya-prop-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.ya-price { font-size: 18px; font-weight: 800; letter-spacing: -.3px; line-height: 1.3; color: var(--ink); padding-top: 2px; }
.ya-ttl {
  font-size: 15px; font-weight: 700; line-height: 1.35; color: var(--ink); text-decoration: none;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
a.ya-ttl:hover { text-decoration: underline; }
.ya-place { margin: 0; font-size: 13px; line-height: 1.4; color: var(--ink-2); }
.ya-facts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 2px; }
.ya-facts span {
  font-size: 12px; font-weight: 600; padding: 3px 8px; border-radius: var(--r-sm);
  background: var(--surface-2); border: 1px solid var(--line); color: var(--ink);
}
.ya-heart {
  flex: none; width: 44px; height: 44px; margin: -6px -6px 0 0; padding: 0;
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
  border-radius: 50%; border: 1px solid var(--line-strong); background: var(--bg-2);
}
/*  Bharav bhi badalta hai, sirf rang nahi -- colour-blind ko farq dikhe. */
.ya-heart svg { fill: none; stroke: var(--ink); stroke-width: 1.8; }
.ya-heart.on { border-color: var(--due); }
.ya-heart.on svg { fill: var(--due); stroke: var(--due); }
.ya-heart:focus-visible { outline: 2px solid var(--a2); outline-offset: 2px; }

.ya-acts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 12px; }
.ya-btn { min-height: 44px; padding: 10px 12px; font-size: 14px; }
.ya-acts .ya-btn { width: 100%; }
.ya-done {
  margin: 12px 0 0; padding: 10px 12px; border-radius: var(--r);
  font-size: 14px; font-weight: 700; line-height: 1.45; color: var(--ok);
  background: var(--surface-2); border: 1px solid var(--line-strong);
  background: color-mix(in srgb, var(--ok) 12%, transparent);
  border-color: color-mix(in srgb, var(--ok) 45%, transparent);
}

/* ── visit ki booking ───────────────────────────────────────────────────── */
.ya-book {
  margin-top: 12px; padding: 14px; border-radius: var(--r);
  background: var(--bg-2); border: 1px solid var(--line-strong);
}
.ya-book-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.ya-book-h b { font-size: 15px; color: var(--ink); }
.ya-x {
  width: 44px; height: 44px; margin: -8px -8px -8px 0; padding: 0; cursor: pointer;
  font: inherit; font-size: 24px; line-height: 1; color: var(--ink-2);
  background: transparent; border: 0; border-radius: var(--r-sm);
}
.ya-lbl {
  display: block; margin: 14px 0 6px; font-size: 12px; font-weight: 800;
  letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3);
}
.ya-in {
  width: 100%; min-height: 48px; padding: 0 12px; box-sizing: border-box;
  font: inherit; font-size: 16px; color: var(--ink); color-scheme: dark;
  background: var(--bg); border: 1px solid var(--line-strong); border-radius: var(--r-sm);
}
.ya-in:focus { outline: 2px solid var(--a2); outline-offset: 1px; border-color: var(--a2); }
.ya-slots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.ya-slot {
  min-height: 52px; padding: 6px 2px; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px;
  font: inherit; color: var(--ink-2);
  background: transparent; border: 1px solid var(--line-strong); border-radius: var(--r-sm);
}
.ya-slot-n { font-size: 13px; font-weight: 700; line-height: 1.25; }
.ya-slot-t { font-size: 12px; font-weight: 600; line-height: 1.25; }
.ya-slot.on {
  color: var(--ink); border-color: var(--a2); background: var(--surface-2);
  background: color-mix(in srgb, var(--a2) 14%, transparent);
}
.ya-wide { width: 100%; margin-top: 14px; }

/* ── soochi ki qataar (visit) ───────────────────────────────────────────── */
.ya-row {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 10px;
  padding: 14px; border-radius: var(--r);
  background: var(--surface); border: 1px solid var(--line);
}
.ya-row-b { min-width: 0; }
.ya-row-t { display: block; font-size: 15px; font-weight: 700; line-height: 1.35; color: var(--ink); text-decoration: none; }
a.ya-row-t:hover { text-decoration: underline; }
.ya-row-s { margin: 3px 0 0; font-size: 13px; line-height: 1.45; color: var(--ink-2); }

.ya-chip {
  flex: none; display: inline-flex; align-items: center; white-space: nowrap;
  font-size: 12px; font-weight: 800; padding: 4px 10px; border-radius: var(--r-pill);
  border: 1px solid var(--line-strong); background: var(--surface-2); color: var(--ink-2);
}
.ya-ok   { color: var(--ok);   background: color-mix(in srgb, var(--ok) 12%, transparent);   border-color: color-mix(in srgb, var(--ok) 45%, transparent); }
.ya-bad  { color: var(--due);  background: color-mix(in srgb, var(--due) 12%, transparent);  border-color: color-mix(in srgb, var(--due) 45%, transparent); }
.ya-warn { color: var(--warn); background: color-mix(in srgb, var(--warn) 12%, transparent); border-color: color-mix(in srgb, var(--warn) 45%, transparent); }
.ya-info { color: var(--a2);   background: color-mix(in srgb, var(--a2) 12%, transparent);   border-color: color-mix(in srgb, var(--a2) 45%, transparent); }
.ya-mut  { color: var(--ink-2); }

/* ── hisab-kitab ────────────────────────────────────────────────────────── */
.ya-box {
  padding: 14px; margin-bottom: 12px; border-radius: var(--r-lg);
  background: var(--surface); border: 1px solid var(--line);
}
.ya-box.lost { border-color: var(--due); }
.ya-box-h { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.ya-box-t { display: block; font-size: 15px; font-weight: 800; color: var(--ink); }
.ya-steps { margin-top: 14px; }
.ya-bar { height: 8px; border-radius: var(--r-pill); background: var(--surface-3); overflow: hidden; }
.ya-bar i { display: block; height: 100%; border-radius: var(--r-pill); background: var(--grad); }
.ya-steps.lost .ya-bar i { background: var(--due); }
.ya-steps-l { display: flex; justify-content: space-between; gap: 8px; margin-top: 6px; font-size: 12px; color: var(--ink-3); }
.ya-steps-l b { font-weight: 700; color: var(--ink-2); text-align: center; }
.ya-steps.lost .ya-steps-l b { color: var(--due); }
.ya-moneys { margin-top: 10px; }
.ya-money { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); }
.ya-money span { font-size: 13px; color: var(--ink-2); }
.ya-money b { font-size: 14px; font-weight: 800; color: var(--ink); }
.ya-money.raw b { color: var(--ink-2); }
.ya-fine { margin: 8px 0 0; font-size: 12px; line-height: 1.5; color: var(--ink-3); }

.ya-figs {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px;
  margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line); text-align: center;
}
.ya-figs b { display: block; font-size: 18px; font-weight: 800; color: var(--ink); }
.ya-figs span { display: block; font-size: 12px; color: var(--ink-3); }

/* ── khaali, load, galti ────────────────────────────────────────────────── */
.ya-empty {
  padding: 28px 16px; text-align: center; border-radius: var(--r-lg);
  background: var(--surface); border: 1px dashed var(--line-strong);
}
.ya-empty-t { margin: 0; font-size: 15px; font-weight: 700; color: var(--ink); }
.ya-empty-s { margin: 6px 0 0; font-size: 13.5px; line-height: 1.5; color: var(--ink-2); }
.ya-empty .ya-btn { margin-top: 14px; }
.ya-load { display: grid; gap: 12px; }
.ya-sk { height: 116px; border-radius: var(--r-lg); }
.ya-err { margin: 0; }
.ya-retry { margin-left: 8px; min-height: 36px; }

/* ── badi screen ────────────────────────────────────────────────────────── */
@media (min-width: 400px) {
  .ya-n { display: inline-flex; justify-content: center; }
}
@media (min-width: 480px) {
  .ya-hero { padding: 22px 20px; }
  .ya-h1 { font-size: 24px; }
  .ya-prop { padding: 14px; }
  .ya-prop-row { grid-template-columns: 120px minmax(0, 1fr); gap: 14px; }
  .ya-hero-go { width: auto; }
}
