:root {
  --ink: #14212e;
  --ink-2: #56697d;
  --page: #f4efec;
  --hairline: #cfdcec;
  --blue: #1e6ec8;
  --navy: #0b2242;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  background: var(--page);
  color: var(--ink);
  font-family: "Segoe UI", Tahoma, "Noto Naskh Arabic", "Arial", sans-serif;
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
}
.wrap { max-width: 960px; margin: 0 auto; padding: 14px 14px 40px; }
h2 { font-size: 22px; margin: 6px 0 10px; }
p { margin: 8px 0; }
.lead { color: var(--ink); }
.caption, small { color: var(--ink-2); font-size: 13px; }
.closing { color: var(--ink-2); font-size: 13px; text-align: center; margin-top: 24px; }
.flash { background: #eaf3ff; border: 1px solid #b9d2f0; color: #123a63; border-radius: 10px; padding: 8px 12px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 44px; padding: 10px 16px; border-radius: 10px; border: 1px solid var(--hairline);
  background: #fff; color: var(--ink); font: inherit; font-weight: 600; cursor: pointer; text-decoration: none;
}
.btn.primary { background: var(--blue); border-color: var(--blue); color: #fff; }
.btn.ghost { background: transparent; border-color: transparent; color: var(--blue); }
.btn.sm { min-height: 38px; padding: 6px 12px; font-size: 14px; }
.btn[disabled] { opacity: .55; cursor: default; }
.btn:active { transform: translateY(1px); }

.group { background: #fff; border: 1px solid var(--hairline); border-radius: 16px; padding: 14px; margin: 14px 0; }
.group-label { color: var(--ink-2); font-size: 13px; }
.field { display: block; margin: 10px 0; }
.field span { display: block; color: var(--ink-2); font-size: 13px; margin-bottom: 4px; }
.field input {
  width: 100%; min-height: 44px; border: 1px solid var(--hairline); border-radius: 10px;
  padding: 10px 12px; font: inherit; background: #fff; color: var(--ink);
}
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; }
.chip { min-height: 40px; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--hairline); background: #fff; font: inherit; cursor: pointer; }
.chip.on { background: var(--blue); border-color: var(--blue); color: #fff; font-weight: 600; }

.callout { border-radius: 12px; padding: 10px 14px; margin: 10px 0; }
.callout strong { display: block; margin-bottom: 2px; }
.callout.warn { background: #fdf1e0; color: #6b4a00; }
.callout.note { background: #eef4fb; color: #123a63; }

.rows { display: flex; flex-direction: column; gap: 8px; }
.row { display: grid; grid-template-columns: 28px 1fr auto; gap: 10px; align-items: center; border: 1px solid var(--hairline); border-radius: 10px; padding: 8px 10px; }
.row .num { color: var(--ink-2); }
.row .rname { display: flex; flex-direction: column; }
.row .rval { font-weight: 700; color: var(--blue); white-space: nowrap; }

.lt-hero { background: #e6edf3; border-radius: 16px; display: flex; justify-content: center; padding: 8px; margin: 4px 0 0; }
.lt-hero img { width: min(260px, 80%); border-radius: 12px; height: auto; display: block; }
.lt-banner { background: var(--navy); color: #fff; border-radius: 12px; padding: 14px 16px; margin: 12px 0; display: flex; flex-direction: column; gap: 4px; }
.lt-banner strong { font-size: 20px; }
.lt-banner span { color: #b9d2f0; }
.lt-bar { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }

.lt-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 640px) { .lt-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 960px) { .lt-grid { grid-template-columns: 1fr 1fr 1fr; } }
.lt-card { border: 1px solid var(--hairline); border-radius: 12px; padding: 12px; display: flex; flex-direction: column; gap: 6px; background: #fff; }
.lt-card[data-sold] { opacity: .72; }
.lt-ph { background: var(--navy); color: #fff; border-radius: 12px; height: 110px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; }
.lt-ph span { font-size: 24px; }
.lt-ph small { color: #9fc2ee; }
.lt-name { font-weight: 600; direction: ltr; text-align: right; }
.lt-sub { color: var(--ink-2); direction: ltr; text-align: right; font-size: 14px; }
.lt-price { font-weight: 700; color: var(--blue); font-size: 18px; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.lt-old { color: var(--ink-2); font-weight: 400; font-size: 14px; }
.lt-specs { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; margin: 4px 0; font-size: 14px; }
.lt-specs dt { color: var(--ink-2); }
.lt-specs dd { margin: 0; }
.lt-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.lt-sold { background: #f2e3e3; color: #8a2b2b; border-radius: 6px; padding: 4px 8px; font-weight: 600; font-size: 12px; align-self: flex-start; }
.lt-offer { background: #fff3d6; color: #6b4a00; border-radius: 6px; padding: 4px 8px; font-weight: 600; font-size: 12px; align-self: flex-start; }

.lt-admin { display: flex; flex-direction: column; gap: 10px; margin-top: 8px; }
.lt-admin-row { border: 1px solid var(--hairline); border-radius: 12px; padding: 10px; display: flex; flex-direction: column; gap: 8px; background: #fff; }
.lt-admin-head { display: flex; flex-wrap: wrap; gap: 8px; align-items: baseline; }
.lt-admin-head strong { font-size: 16px; }
.lt-admin-head span { color: var(--ink-2); font-size: 13px; }
.lt-admin-head em { background: #f2e3e3; color: #8a2b2b; border-radius: 6px; padding: 2px 8px; font-style: normal; font-size: 12px; }
.lt-admin-price { display: grid; grid-template-columns: 1fr; gap: 8px; align-items: end; }
@media (min-width: 640px) { .lt-admin-price { grid-template-columns: 260px auto; } }

.lt-order { border: 1px solid var(--hairline); border-radius: 12px; padding: 10px; display: flex; flex-direction: column; gap: 6px; background: #fff; }
.lt-order[data-done] { opacity: .7; }
.lt-order[data-cancelled] { opacity: .6; border-style: dashed; }
.lt-order-head { display: flex; flex-wrap: wrap; gap: 8px; align-items: baseline; }
.lt-order-head strong { font-size: 16px; }
.lt-order-head span { color: var(--ink-2); font-size: 13px; }
.lt-order-head em { background: #dff0e2; color: #256b35; border-radius: 6px; padding: 2px 8px; font-style: normal; font-size: 12px; }
.lt-order-head em.lt-badge-off { background: #f2e3e3; color: #8a2f2f; }
.lt-order-line { color: var(--ink-2); }
.lt-pay { display: flex; flex-direction: column; gap: 8px; }
.lt-pay-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; border: 1px solid var(--hairline); border-radius: 10px; padding: 8px 10px; background: #fff; }

.lt-paynum { display: flex; align-items: center; justify-content: space-between; gap: 10px; border: 1px dashed #9fb6d2; border-radius: 12px; background: #f4f8fd; padding: 10px 12px; margin: 8px 0; }
.lt-paynum-num { font-size: 20px; font-weight: 700; letter-spacing: .5px; color: #123a63; }

.lt-file { display: block; position: relative; border: 1px dashed #9fb6d2; border-radius: 12px; background: #f4f8fd; padding: 14px; text-align: center; color: #123a63; font-weight: 600; cursor: pointer; margin: 10px 0; }
.lt-file input { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; cursor: pointer; }
.lt-shot-wrap { border: 1px solid var(--hairline); border-radius: 12px; padding: 6px; background: #fff; margin: 8px 0; }
.lt-shot { display: block; width: 100%; height: auto; border-radius: 8px; }
