/* ═══════════════════════════════════════════════
   GeoPoint Studio — dark GIS theme
   ═══════════════════════════════════════════════ */

:root {
  --bg: #0b1220;
  --bg-2: #101a2e;
  --panel: #141f38;
  --panel-2: #1a2744;
  --line: #24355c;
  --line-soft: #1d2b4a;
  --text: #e7edf7;
  --text-dim: #93a4c4;
  --accent: #2dd4bf;        /* teal */
  --accent-2: #38bdf8;      /* sky */
  --accent-grad: linear-gradient(135deg, #2dd4bf, #38bdf8);
  --warn: #fbbf24;
  --danger: #f87171;
  --ok: #4ade80;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(0, 0, 0, .35);
  --font: "Vazirmatn", "Segoe UI", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body { height: 100%; }

body {
  font-family: var(--font);
  background:
    radial-gradient(1200px 500px at 80% -10%, rgba(45, 212, 191, .09), transparent 60%),
    radial-gradient(900px 400px at 10% 0%, rgba(56, 189, 248, .08), transparent 55%),
    var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.55;
}

/* ── RTL (Persian) ─────────────────────────── */
html[dir="rtl"] body { text-align: right; }
html[dir="rtl"] .step-arrow { transform: scaleX(-1); }
html[dir="rtl"] .crop-rect { direction: ltr; }

/* ═══════ HEADER ═══════ */
.app-header {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 14px 28px;
  background: rgba(13, 20, 38, .85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 900;
  flex-wrap: wrap;
}

.brand { display: flex; align-items: center; gap: 12px; cursor: pointer; }
.brand-icon {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  font-size: 22px;
  background: var(--accent-grad);
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(45, 212, 191, .35);
}
.brand h1 { font-size: 18px; font-weight: 800; letter-spacing: .3px; }
.brand-sub { font-size: 12px; color: var(--text-dim); }

.steps { display: flex; align-items: center; gap: 10px; margin-inline: auto; flex-wrap: wrap; }
.step-btn {
  display: flex; align-items: center; gap: 8px;
  background: transparent; border: 1px solid var(--line);
  color: var(--text-dim);
  padding: 7px 14px; border-radius: 999px;
  font-family: inherit; font-size: 13px; font-weight: 600;
  cursor: pointer; transition: all .2s;
}
.step-btn:hover { border-color: var(--accent); color: var(--text); transform: translateY(-1px); }
.step-btn.active {
  background: var(--accent-grad);
  color: #04211d;
  border-color: transparent;
  box-shadow: 0 4px 16px rgba(45, 212, 191, .35);
}
.step-num {
  width: 20px; height: 20px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(255,255,255,.15);
  font-size: 11px;
}
.step-btn.active .step-num { background: rgba(4,33,29,.25); }
.step-arrow { color: var(--line); font-size: 14px; }

.lang-toggle {
  background: var(--panel-2);
  border: 1px solid var(--line);
  color: var(--text);
  padding: 8px 16px; border-radius: 999px;
  font-family: inherit; font-size: 13px; font-weight: 700;
  cursor: pointer; transition: all .2s;
}
.lang-toggle:hover { border-color: var(--accent-2); }

.header-right { display: flex; align-items: center; gap: 10px; margin-inline-start: auto; }

.wallet-chip {
  display: inline-flex; align-items: center; gap: 6px;
  background: linear-gradient(135deg, rgba(45,212,191,.15), rgba(56,189,248,.15));
  border: 1px solid rgba(45,212,191,.45);
  color: var(--text);
  padding: 7px 16px; border-radius: 999px;
  font-family: inherit; font-size: 13.5px; font-weight: 800;
  cursor: pointer; transition: all .2s;
}
.wallet-chip:hover { border-color: var(--accent); box-shadow: 0 0 14px rgba(45,212,191,.25); transform: translateY(-1px); }
.wallet-chip .wallet-unit { color: var(--accent); font-size: 11px; margin-inline-start: -3px; }

/* ═══ auth modal ═══ */
.modal.small { max-width: 420px; }
.auth-tabs { display: flex; gap: 6px; background: var(--bg-2); padding: 5px; border-radius: 10px; }
.auth-tab {
  flex: 1; padding: 8px; border: none; border-radius: 8px;
  background: transparent; color: var(--text-dim);
  font-family: inherit; font-size: 13px; font-weight: 700; cursor: pointer; transition: all .2s;
}
.auth-tab.active { background: var(--accent-grad); color: #04211d; }
#authForm { display: flex; flex-direction: column; gap: 10px; }
#authForm label { font-size: 12px; color: var(--text-dim); margin-top: 4px; }
#authForm input {
  background: var(--bg-2); border: 1px solid var(--line); border-radius: 10px;
  color: var(--text); padding: 11px 12px; font-family: inherit; font-size: 14px;
  transition: border-color .2s;
}
#authForm input:focus { outline: none; border-color: var(--accent); }
.btn.full { width: 100%; }
.privacy-note { font-size: 11.5px; color: var(--text-dim); text-align: center; margin-top: 4px; }
.ref-notice { font-size: 12.5px; color: var(--accent); background: rgba(45,212,191,.08); padding: 8px 10px; border-radius: 8px; }

/* ═══ wallet modal ═══ */
.wallet-balance {
  text-align: center;
  background: var(--bg-2); border: 1px solid var(--line); border-radius: 14px;
  padding: 18px;
}
.wb-label { display: block; font-size: 12px; color: var(--text-dim); text-transform: uppercase; letter-spacing: .5px; }
.wb-amount { font-size: 34px; font-weight: 800; color: var(--accent); }
.wb-unit { font-size: 14px; color: var(--text-dim); }

.ref-box {
  border: 1px dashed rgba(45,212,191,.4); background: rgba(45,212,191,.05);
  border-radius: 12px; padding: 14px;
}
.ref-title { font-size: 13px; font-weight: 700; margin-bottom: 10px; }
.ref-row { display: flex; gap: 8px; }
.ref-row input {
  flex: 1; background: var(--bg-2); border: 1px solid var(--line); border-radius: 8px;
  color: var(--text); padding: 9px 10px; font-family: ui-monospace, Consolas, monospace; font-size: 12px;
}
.ref-hint { font-size: 11.5px; color: var(--text-dim); margin-top: 8px; }

.tx-title { font-size: 12.5px; font-weight: 700; color: var(--text-dim); margin: 6px 0 8px; }
.tx-wrap { max-height: 240px; overflow: auto; }
.tx-table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.tx-table th { text-align: left; color: var(--text-dim); font-size: 11px; text-transform: uppercase; padding: 6px 8px; border-bottom: 1px solid var(--line); }
html[dir="rtl"] .tx-table th { text-align: right; }
.tx-table td { padding: 7px 8px; border-bottom: 1px solid var(--line-soft); }
.tx-pos { color: var(--ok); font-weight: 700; text-align: end; }
.tx-neg { color: var(--danger); font-weight: 700; text-align: end; }
.tx-date { color: var(--text-dim); font-size: 11px; white-space: nowrap; }

/* ═══ cost modal ═══ */
.cost-body {
  background: rgba(251,191,36,.07); border: 1px solid rgba(251,191,36,.35);
  border-radius: 10px; padding: 14px; font-size: 13.5px; line-height: 1.7;
}

/* ═══════ LAYOUT / PANELS ═══════ */
main { max-width: 1180px; margin: 0 auto; padding: 28px 20px 60px; }

.panel { display: none; animation: fadeUp .35s ease; }
.panel.active { display: block; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.panel-head { margin-bottom: 22px; }
.panel-head h2 { font-size: 22px; font-weight: 800; margin-bottom: 6px; }
.hint { color: var(--text-dim); font-size: 13.5px; }

/* ═══════ STEP 1 CARDS ═══════ */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; }

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  display: flex; flex-direction: column; gap: 14px;
  box-shadow: var(--shadow);
  transition: transform .2s, border-color .2s;
}
.card:hover { transform: translateY(-3px); border-color: #2e4a86; }
.card-icon { font-size: 30px; }
.card h3 { font-size: 16px; font-weight: 700; }
.card-desc { font-size: 12.5px; color: var(--text-dim); flex-grow: 1; }

textarea {
  width: 100%;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--text);
  padding: 12px;
  font-family: ui-monospace, Consolas, monospace;
  font-size: 13px;
  resize: vertical;
  transition: border-color .2s;
}
textarea:focus { outline: none; border-color: var(--accent); }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: none; border-radius: 10px;
  padding: 10px 18px;
  font-family: inherit; font-size: 13.5px; font-weight: 700;
  cursor: pointer; transition: all .2s;
}
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none !important; }
.btn.primary { background: var(--accent-grad); color: #04211d; box-shadow: 0 4px 16px rgba(45,212,191,.3); }
.btn.primary:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(45,212,191,.45); }
.btn.secondary { background: var(--panel-2); color: var(--text); border: 1px solid var(--line); }
.btn.secondary:hover { border-color: var(--accent-2); transform: translateY(-1px); }
.btn.ghost { background: transparent; color: var(--text-dim); border: 1px dashed var(--line); }
.btn.ghost:hover { color: var(--text); border-color: var(--accent); }
.btn.danger:hover { color: var(--danger); border-color: var(--danger); }
.btn.small { padding: 6px 12px; font-size: 12px; }
.btn.big { padding: 13px 26px; font-size: 14.5px; }
.file-btn { position: relative; overflow: hidden; align-self: flex-start; cursor: pointer; }

/* drop zone */
.drop-zone {
  border: 2px dashed var(--line);
  border-radius: 12px;
  padding: 26px 14px;
  text-align: center;
  cursor: pointer;
  transition: all .2s;
  background: var(--bg-2);
}
.drop-zone:hover, .drop-zone.dragover { border-color: var(--accent); background: rgba(45,212,191,.06); }
.dz-icon { font-size: 34px; display: block; margin-bottom: 6px; }
.dz-inner p { font-size: 13px; color: var(--text-dim); }

/* status + progress */
.image-status { font-size: 12.5px; color: var(--text-dim); padding: 8px 10px; border-radius: 8px; background: var(--bg-2); }
.image-status.ok { color: var(--ok); border: 1px solid rgba(74,222,128,.3); }
.image-status.err { color: var(--danger); border: 1px solid rgba(248,113,113,.3); }
.ocr-progress { display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--text-dim); }
.ocr-progress .bar { flex: 1; height: 8px; background: var(--bg-2); border-radius: 99px; overflow: hidden; }
.ocr-progress .bar-fill { height: 100%; width: 0%; background: var(--accent-grad); border-radius: 99px; transition: width .2s; }

.panel-actions { display: flex; justify-content: flex-end; margin-top: 24px; }
.panel-actions.two { justify-content: space-between; }

/* ═══════ STEP 2 TABLE ═══════ */
.validation-bar {
  padding: 12px 16px; border-radius: 10px; margin-bottom: 16px;
  font-size: 13px; font-weight: 600;
  border: 1px solid;
}
.validation-bar.warn { color: var(--warn); border-color: rgba(251,191,36,.4); background: rgba(251,191,36,.08); }
.validation-bar.ok { color: var(--ok); border-color: rgba(74,222,128,.4); background: rgba(74,222,128,.08); }

.table-wrap {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: auto;
  max-height: 440px;
  background: var(--panel);
}
table { width: 100%; border-collapse: collapse; font-size: 13px; }
thead th {
  position: sticky; top: 0;
  background: var(--panel-2);
  color: var(--text-dim);
  text-align: left;
  padding: 10px 12px;
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: .4px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
html[dir="rtl"] thead th { text-align: right; }
tbody td { padding: 6px 8px; border-bottom: 1px solid var(--line-soft); white-space: nowrap; }
tbody tr:hover { background: rgba(56,189,248,.05); }
tbody tr.invalid { background: rgba(248,113,113,.08); }
tbody tr.invalid td.cell-x, tbody tr.invalid td.cell-y { color: var(--danger); }

td input {
  width: 110px;
  background: var(--bg-2);
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--text);
  padding: 7px 9px;
  font-family: ui-monospace, Consolas, monospace;
  font-size: 13px;
  transition: border-color .2s;
}
td input:focus { outline: none; border-color: var(--accent); }
td.cell-lat, td.cell-lon { color: var(--text-dim); font-family: ui-monospace, Consolas, monospace; font-size: 12px; }
td.cell-no { font-weight: 700; color: var(--accent); }
.row-del {
  background: transparent; border: none; cursor: pointer;
  color: var(--text-dim); font-size: 15px; padding: 4px 8px; border-radius: 6px;
  transition: all .2s;
}
.row-del:hover { color: var(--danger); background: rgba(248,113,113,.12); }

.table-actions { display: flex; gap: 10px; margin-top: 14px; }

/* ═══════ STEP 3 MAP ═══════ */
.map-toolbar {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px 12px 0 0;
  padding: 10px 14px;
}
.toggle { cursor: pointer; }
.toggle input { accent-color: var(--accent); margin-inline-end: 5px; }
.toggle span { font-size: 13px; color: var(--text-dim); }
.toggle input:checked + span { color: var(--text); font-weight: 700; }
.spacer { flex: 1; }

.map-canvas { height: 460px; border-radius: 0 0 12px 12px; border: 1px solid var(--line); border-top: none; z-index: 1; }
.map-note { margin-top: 10px; font-size: 12.5px; color: var(--text-dim); }

/* leaflet dark-ish tweaks */
.leaflet-container { background: #0d1524; font-family: var(--font); }

/* ═══════ STEP 4 EXPORT ═══════ */
.export-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.export-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  display: flex; flex-direction: column; gap: 12px;
  box-shadow: var(--shadow);
  transition: transform .2s, border-color .2s;
}
.export-card:hover { transform: translateY(-3px); }
.export-card p { font-size: 12.5px; color: var(--text-dim); flex-grow: 1; }
.ec-icon { font-size: 30px; }
.accent-excel { border-top: 3px solid #22c55e; }
.accent-kml { border-top: 3px solid #3b82f6; }
.accent-kmz { border-top: 3px solid #f59e0b; }
.accent-geo { border-top: 3px solid #a855f7; }

/* ═══════ CROP MODAL ═══════ */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(5, 10, 20, .8);
  backdrop-filter: blur(6px);
  display: grid; place-items: center;
  z-index: 1000;
  animation: fadeIn .2s;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.modal {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  width: min(880px, 94vw);
  max-height: 92vh;
  display: flex; flex-direction: column; gap: 14px;
  box-shadow: var(--shadow);
}
.modal-head { display: flex; justify-content: space-between; align-items: center; }
.modal-head h3 { font-size: 16px; }
.modal-close { background: transparent; border: none; color: var(--text-dim); font-size: 17px; cursor: pointer; padding: 4px 8px; border-radius: 8px; }
.modal-close:hover { color: var(--danger); background: rgba(248,113,113,.12); }
.crop-stage {
  position: relative;
  overflow: auto;
  max-height: 62vh;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: crosshair;
  line-height: 0;
}
.crop-stage img { display: block; max-width: none; user-select: none; }
.crop-rect {
  position: absolute;
  border: 2px solid var(--accent);
  background: rgba(45, 212, 191, .18);
  box-shadow: 0 0 0 9999px rgba(5, 10, 20, .45);
  pointer-events: none;
  display: none;
}

/* ─── Flatten (perspective correction) ─── */
.flatten-quad {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 5;
}
.flatten-quad svg.fq-svg {
  position: absolute;
  left: 0; top: 0;
  pointer-events: none;
}
.flatten-quad .fh {
  position: absolute;
  width: 14px; height: 14px;
  margin: 0;
  border: 2px solid #fff;
  border-radius: 50%;
  background: #4aa8ff;
  box-shadow: 0 0 0 2px rgba(74, 168, 255, .55), 0 2px 8px rgba(0, 0, 0, .5);
  pointer-events: auto;
  cursor: grab;
  transition: transform .12s ease, box-shadow .12s ease;
}
.flatten-quad .fh:hover {
  transform: scale(1.25);
  box-shadow: 0 0 0 3px rgba(74, 168, 255, .8), 0 2px 10px rgba(0, 0, 0, .6);
}
.flatten-quad .fh:active { cursor: grabbing; }
.flatten-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 12px;
}
.flatten-tip {
  font-size: 13px;
  color: rgba(224, 224, 224, 0.65);
  margin-left: 4px;
}

/* ─── Batch mode (multiple images) ─── */
.batch-bar {
  margin-top: 14px;
  padding: 12px 14px;
  background: rgba(12, 15, 26, 0.5);
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: 12px;
}
.bb-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.bb-head > span {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text);
}
.bb-actions { display: flex; gap: 8px; }
.batch-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}
.batch-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  background: var(--panel-2);
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  transition: border-color .2s ease;
}
.batch-item.current { border-color: rgba(56, 189, 248, .6); }
.batch-item .bi-thumb {
  width: 44px; height: 44px;
  object-fit: cover;
  border-radius: 7px;
  border: 1px solid var(--line);
  flex: 0 0 auto;
  background: #0d1526;
}
.batch-item .bi-info { min-width: 0; }
.batch-item .bi-name {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 150px;
}
.batch-item .bi-status {
  display: block;
  font-size: 11px;
  margin-top: 2px;
  color: var(--text-dim);
}
.batch-item .bi-status.ok { color: var(--ok); }
.batch-item .bi-status.err { color: var(--danger); }
.batch-item .bi-status.skipped { color: var(--text-dim); }
.batch-item .bi-status.work { color: var(--accent-2); }

/* crop-modal batch bar */
.crop-batch {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 12px;
  padding: 10px 14px;
  background: rgba(56, 189, 248, .07);
  border: 1px solid rgba(56, 189, 248, .3);
  border-radius: 10px;
}
.cb-progress { font-size: 13px; font-weight: 800; color: var(--accent-2); }
.cb-name {
  font-size: 12.5px;
  color: var(--text-dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 220px;
}
.batch-auto {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-inline-start: auto;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-dim);
  cursor: pointer;
  user-select: none;
}
.batch-auto input { accent-color: var(--accent); cursor: pointer; }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; }

/* ─── OCR engine picker ─── */
.engine-picker {
  margin-top: 16px;
  padding: 14px 16px;
  background: rgba(12, 15, 26, 0.5);
  border: 1px solid rgba(255, 200, 50, 0.1);
  border-radius: 12px;
}
.engine-label {
  font-size: 12px;
  letter-spacing: 0.5px;
  color: rgba(224, 224, 224, 0.5);
  text-transform: uppercase;
  margin-bottom: 10px;
}
.engine-opts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.engine-opt {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px;
  border: 1px solid rgba(255, 200, 50, 0.12);
  border-radius: 10px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, transform 0.15s;
  background: rgba(0, 0, 0, 0.2);
}
.engine-opt:hover { border-color: rgba(255, 200, 50, 0.35); transform: translateY(-1px); }
.engine-opt:has(input:checked) {
  border-color: #FFC832;
  background: rgba(255, 200, 50, 0.08);
  box-shadow: 0 0 0 1px rgba(255, 200, 50, 0.4);
}
.engine-opt input { display: none; }
.eo-title { font-size: 13px; font-weight: 700; color: #E0E0E0; }
.engine-opt:has(input:checked) .eo-title { color: #FFC832; }
.eo-desc { font-size: 11px; color: rgba(224, 224, 224, 0.5); line-height: 1.5; }
.engine-setup {
  margin-top: 10px;
  font-size: 12px;
  color: #FFB800;
  line-height: 1.6;
}
@media (max-width: 640px) {
  .engine-opts { grid-template-columns: 1fr; }
}

/* ═══════ TOAST ═══════ */
.toast {
  position: fixed; bottom: 24px; left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: var(--panel-2);
  border: 1px solid var(--accent);
  color: var(--text);
  padding: 12px 22px;
  border-radius: 999px;
  font-size: 13.5px; font-weight: 600;
  box-shadow: var(--shadow);
  opacity: 0;
  transition: all .3s ease;
  z-index: 2000;
  max-width: 90vw;
  text-align: center;
}
.toast.show { transform: translateX(-50%) translateY(0); opacity: 1; }
.toast.err { border-color: var(--danger); }

.hidden { display: none !important; }

/* ═══════════════════════════════════════════════
   LANDING / HOME PAGE
   ═══════════════════════════════════════════════ */
body.on-landing main { display: none; }
body.on-landing .steps { display: none; }
body.on-landing #goHome { display: none; }
body.on-landing #walletChip { display: none !important; }
body.in-app #landing { display: none; }
body.in-app #goHome { display: inline-flex; }

#landing {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ── hero ── */
.land-hero {
  text-align: center;
  padding: 84px 24px 64px;
  max-width: 900px;
  margin: 0 auto;
  position: relative;
}
.land-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  padding: 8px 18px;
  border-radius: 999px;
  color: var(--accent);
  background: rgba(45, 212, 191, .08);
  border: 1px solid rgba(45, 212, 191, .35);
  margin-bottom: 26px;
}
.land-title {
  font-size: clamp(38px, 6.5vw, 66px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -.5px;
  margin-bottom: 22px;
}
.land-title .grad {
  background: var(--accent-grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.land-sub {
  font-size: 17px;
  color: var(--text-dim);
  max-width: 640px;
  margin: 0 auto 34px;
  line-height: 1.75;
}
.land-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.land-cta .btn.big { padding: 14px 34px; font-size: 16px; }
.btn.primary.big { box-shadow: 0 8px 24px rgba(45, 212, 191, .25); transition: all .2s; }
.btn.primary.big:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(45, 212, 191, .35); }
.land-inputs-hint {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: center;
  margin-top: 34px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-dim);
}
.land-inputs-hint i { font-style: normal; opacity: .4; }

/* ── how it works ── */
.land-how {
  max-width: 1100px;
  margin: 0 auto;
  padding: 30px 24px 70px;
  width: 100%;
}
.land-h2 {
  text-align: center;
  font-size: clamp(26px, 4vw, 36px);
  font-weight: 800;
}
.land-h2sub {
  text-align: center;
  color: var(--text-dim);
  margin: 8px 0 40px;
  font-size: 15.5px;
}
.how-step {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  margin-bottom: 22px;
  box-shadow: var(--shadow);
}
.hs-head { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 22px; }
.hs-num {
  flex: 0 0 auto;
  width: 44px; height: 44px;
  display: grid; place-items: center;
  font-size: 20px; font-weight: 800;
  color: #06222b;
  background: var(--accent-grad);
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(45, 212, 191, .35);
}
.hs-head h3 { font-size: 20px; font-weight: 800; margin-bottom: 4px; }
.hs-head p { color: var(--text-dim); font-size: 14px; }

/* step 1: three input ways */
.input-ways {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.way-card {
  background: var(--panel-2);
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  padding: 18px;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.way-card:hover {
  transform: translateY(-4px);
  border-color: rgba(45, 212, 191, .45);
  box-shadow: 0 12px 28px rgba(0, 0, 0, .4);
}
.way-card h4 { font-size: 15.5px; font-weight: 800; margin: 14px 0 6px; }
.way-card > p { font-size: 13px; color: var(--text-dim); line-height: 1.65; }

/* example mocks */
.ex-mock {
  direction: ltr;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #0d1526;
}
.ex-title {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text-dim);
  padding: 8px 12px;
  background: rgba(13, 20, 38, .9);
  border-bottom: 1px solid var(--line-soft);
  letter-spacing: .3px;
}
.excel-mock table { width: 100%; border-collapse: collapse; font-size: 12px; }
.excel-mock td, .excel-mock th {
  border: 1px solid var(--line-soft);
  padding: 6px 10px;
  text-align: right;
  font-variant-numeric: tabular-nums;
  background: #0f1a30;
}
.excel-mock .ex-merged td {
  text-align: center;
  font-weight: 800;
  font-size: 12.5px;
  color: var(--accent);
  background: linear-gradient(135deg, rgba(45,212,191,.16), rgba(56,189,248,.16));
  border: 1px solid rgba(45, 212, 191, .4);
}
.excel-mock .ex-head th {
  font-weight: 700;
  color: var(--accent-2);
  background: #12203a;
}
.excel-mock .ex-dots td { text-align: center; color: var(--text-dim); letter-spacing: 2px; }
.text-mock pre {
  direction: ltr;
  margin: 0;
  padding: 14px 16px;
  font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
  font-size: 12.5px;
  line-height: 1.7;
  color: #9be8e0;
  white-space: pre;
  overflow-x: auto;
}
.pic-frame {
  position: relative;
  margin: 10px;
  height: 118px;
  border-radius: 8px;
  background:
    linear-gradient(140deg, #16243f, #0e1830);
  border: 1px solid var(--line);
  box-shadow: 0 8px 20px rgba(0, 0, 0, .45);
  transform: rotate(-1.6deg);
  transition: transform .25s ease;
  overflow: hidden;
}
.way-card:hover .pic-frame { transform: rotate(0deg) scale(1.02); }
.pic-table {
  position: absolute;
  left: 16px; top: 16px;
  right: 30px;
  background: rgba(13, 22, 40, .92);
  border: 1px solid rgba(56, 189, 248, .3);
  border-radius: 6px;
  padding: 8px 10px;
  font-size: 10.5px;
  font-variant-numeric: tabular-nums;
}
.p-row { display: flex; gap: 8px; justify-content: space-between; color: #cfe3ff; padding: 2px 0; }
.p-row b { color: var(--accent); font-weight: 700; }
.pic-crop {
  position: absolute;
  left: 8px; top: 8px;
  width: 74px; height: 62px;
  border: 2px dashed rgba(45, 212, 191, .8);
  border-radius: 4px;
  background: rgba(45, 212, 191, .06);
  pointer-events: none;
}

/* steps 2 & 3 */
.how-steps-23 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
.hs-visual {
  direction: ltr;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #0d1526;
  overflow: hidden;
}
.map-mock svg { display: block; width: 100%; height: auto; }
.files-mock {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 22px;
}
.file-chip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 800;
  padding: 14px 10px;
  border-radius: 10px;
  border: 1px solid var(--line);
  transition: transform .2s ease;
}
.file-chip:hover { transform: translateY(-3px); }
.chip-kml { background: rgba(45, 212, 191, .12); border-color: rgba(45, 212, 191, .4); color: #9be8e0; }
.chip-kmz { background: rgba(56, 189, 248, .12); border-color: rgba(56, 189, 248, .4); color: #a5d8ff; }
.chip-xlsx { background: rgba(74, 222, 128, .1); border-color: rgba(74, 222, 128, .35); color: #a7f3c8; }
.chip-geo { background: rgba(251, 191, 36, .1); border-color: rgba(251, 191, 36, .35); color: #fde9b3; }

/* CTA band + footer */
.land-band {
  text-align: center;
  margin: 10px auto 60px;
  max-width: 720px;
  padding: 48px 32px;
  border-radius: 20px;
  background:
    radial-gradient(500px 200px at 50% -30%, rgba(45, 212, 191, .18), transparent 65%),
    linear-gradient(135deg, rgba(45,212,191,.06), rgba(56,189,248,.06)),
    var(--panel);
  border: 1px solid rgba(45, 212, 191, .3);
  box-shadow: var(--shadow);
}
.land-band h2 { font-size: clamp(22px, 3.4vw, 30px); font-weight: 800; margin-bottom: 10px; }
.land-band p { color: var(--text-dim); font-size: 14.5px; margin-bottom: 24px; }
.land-footer {
  margin-top: auto;
  text-align: center;
  padding: 26px 16px;
  font-size: 12.5px;
  color: var(--text-dim);
  border-top: 1px solid var(--line-soft);
  opacity: .85;
}

/* landing responsive */
@media (max-width: 900px) {
  .input-ways { grid-template-columns: 1fr; }
  .how-steps-23 { grid-template-columns: 1fr; }
  .land-hero { padding-top: 56px; }
}

/* responsive */
@media (max-width: 760px) {
  .app-header { gap: 12px; padding: 12px 16px; }
  .steps { order: 3; width: 100%; justify-content: center; }
  .header-right { margin-inline-start: auto; }
  .wallet-chip { padding: 6px 10px; font-size: 12px; }
  .map-canvas { height: 340px; }
  .panel-actions.two { flex-direction: column-reverse; gap: 10px; }
  .panel-actions.two .btn { width: 100%; }
}
