/* ==========================================================================
   MRET — My Real Estate Token
   Палитра из логотипа: глубокий синий, золото монеты, ледяной голубой «микросхемы»
   ========================================================================== */

:root {
  --bg: #070b16;
  --bg-2: #0b1122;
  --surface: #10172e;
  --surface-2: #151e3a;
  --surface-3: #1b2647;
  --line: rgba(150, 175, 235, 0.12);
  --line-strong: rgba(150, 175, 235, 0.22);
  --text: #eaf0ff;
  --text-2: #c3cbe3;
  --muted: #8a94b3;

  --gold: #e2b354;
  --gold-hi: #f7dc92;
  --gold-lo: #a7782a;
  --gold-grad: linear-gradient(135deg, #f7dc92 0%, #e2b354 45%, #b8862f 100%);
  --ice: #7fd4ff;
  --ice-hi: #c4ecff;
  --ice-grad: linear-gradient(135deg, #c4ecff 0%, #7fd4ff 60%, #4aa8e0 100%);

  --ok: #45d49a;
  --warn: #f5b94a;
  --err: #ff6b7a;
  --info: #7fd4ff;

  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 20px 60px -20px rgba(0, 0, 0, 0.6);
  --container: 1200px;

  --font-head: 'Unbounded', 'Segoe UI', system-ui, sans-serif;
  --font-body: 'Manrope', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-mono: ui-monospace, 'Cascadia Mono', 'SFMono-Regular', Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--ice); text-decoration: none; }
a:hover { color: var(--ice-hi); }
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 600; line-height: 1.15; margin: 0 0 0.5em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
::selection { background: rgba(226, 179, 84, 0.35); }
:focus-visible { outline: 2px solid var(--ice); outline-offset: 2px; border-radius: 6px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.muted { color: var(--muted); }
.mono { font-family: var(--font-mono); font-size: 0.9em; word-break: break-all; }
.gold-text { background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ice-text { background: var(--ice-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hidden { display: none !important; }
.show-sm { display: none !important; }
@media (max-width: 640px) { .show-sm { display: revert !important; } }
.unit { font-size: 0.5em; letter-spacing: 0; }
.center { text-align: center; }
.stack > * + * { margin-top: 16px; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.spacer { flex: 1; }

/* ── Header ─────────────────────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(7, 11, 22, 0.72);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--line);
}
.site-header .container { display: flex; align-items: center; gap: 24px; height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--text); font-family: var(--font-head); font-weight: 700; font-size: 1.15rem; letter-spacing: 0.04em; }
.brand:hover { color: var(--text); }
.brand img { width: 40px; height: 40px; filter: drop-shadow(0 4px 14px rgba(226, 179, 84, 0.35)); }
.brand small { display: block; font-family: var(--font-body); font-weight: 500; font-size: 0.68rem; letter-spacing: 0.08em; color: var(--muted); text-transform: uppercase; }
.nav { display: flex; gap: 4px; margin-left: 12px; }
.nav a { color: var(--text-2); padding: 8px 14px; border-radius: 999px; font-weight: 500; font-size: 0.95rem; transition: background 0.2s, color 0.2s; }
.nav a:hover, .nav a.active { color: var(--text); background: rgba(255, 255, 255, 0.06); }
.header-actions { margin-left: auto; display: flex; gap: 10px; align-items: center; }
.burger { display: none; background: none; border: 1px solid var(--line-strong); color: var(--text); border-radius: 10px; width: 42px; height: 42px; cursor: pointer; }
.burger svg { width: 20px; height: 20px; }

/* ── Buttons ────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px; border: 1px solid transparent;
  font: 600 0.95rem/1.2 var(--font-body); cursor: pointer; white-space: nowrap;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s, border-color 0.2s, color 0.2s;
  color: var(--text); background: var(--surface-2); text-decoration: none;
}
.btn:hover { transform: translateY(-1px); color: var(--text); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-gold { background: var(--gold-grad); color: #1d1405; box-shadow: 0 8px 30px -8px rgba(226, 179, 84, 0.6); }
.btn-gold:hover { color: #1d1405; box-shadow: 0 12px 36px -8px rgba(226, 179, 84, 0.8); }
.btn-ice { background: var(--ice-grad); color: #04182a; box-shadow: 0 8px 30px -10px rgba(127, 212, 255, 0.6); }
.btn-ice:hover { color: #04182a; }
.btn-ghost { background: transparent; border-color: var(--line-strong); color: var(--text); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.05); border-color: rgba(150, 175, 235, 0.35); }
.btn-danger { background: rgba(255, 107, 122, 0.12); border-color: rgba(255, 107, 122, 0.35); color: #ffb3bb; }
.btn-danger:hover { background: rgba(255, 107, 122, 0.2); color: #ffd0d5; }
.btn-sm { padding: 8px 16px; font-size: 0.875rem; }
.btn-lg { padding: 16px 30px; font-size: 1.05rem; }
.btn-block { width: 100%; }
.btn .spinner { width: 16px; height: 16px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin 0.7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Hero ───────────────────────────────────────────────────────────────── */
.hero { position: relative; padding: 96px 0 80px; overflow: hidden; isolation: isolate; }
.hero::before {
  content: ''; position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(600px 400px at 78% 40%, rgba(226, 179, 84, 0.20), transparent 70%),
    radial-gradient(500px 380px at 20% 10%, rgba(127, 212, 255, 0.12), transparent 70%),
    radial-gradient(900px 500px at 50% 120%, rgba(60, 90, 200, 0.18), transparent 70%);
}
.hero::after {
  content: ''; position: absolute; inset: 0; z-index: -1; opacity: 0.5;
  background-image:
    linear-gradient(rgba(127, 212, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(127, 212, 255, 0.06) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at 60% 40%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 60% 40%, #000 20%, transparent 75%);
}
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 48px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 8px; border-radius: 999px;
  background: rgba(127, 212, 255, 0.08); border: 1px solid rgba(127, 212, 255, 0.22);
  color: var(--ice-hi); font-size: 0.85rem; font-weight: 600; margin-bottom: 24px;
}
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ice); box-shadow: 0 0 12px var(--ice); }
.hero h1 { margin-bottom: 24px; }
.hero .lead { font-size: 1.2rem; color: var(--text-2); max-width: 600px; margin-bottom: 36px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-facts { display: flex; gap: 36px; margin-top: 48px; flex-wrap: wrap; }
.hero-facts div { display: flex; flex-direction: column; }
.hero-facts b { font-family: var(--font-head); font-size: 1.5rem; font-weight: 600; }
.hero-facts span { color: var(--muted); font-size: 0.9rem; }

.coin-stage { position: relative; display: grid; place-items: center; aspect-ratio: 1; max-width: 460px; margin-left: auto; width: 100%; }
.coin-stage::before {
  content: ''; position: absolute; inset: 12%; border-radius: 50%;
  background: radial-gradient(circle, rgba(226, 179, 84, 0.45), transparent 65%); filter: blur(30px);
}
.coin-stage .ring { position: absolute; border-radius: 50%; border: 1px solid rgba(127, 212, 255, 0.18); }
.coin-stage .ring.r1 { inset: 2%; }
.coin-stage .ring.r2 { inset: -6%; border-style: dashed; border-color: rgba(226, 179, 84, 0.18); animation: spin 60s linear infinite; }
.coin-stage img { position: relative; width: 82%; filter: drop-shadow(0 30px 50px rgba(0, 0, 0, 0.6)); animation: float 6s ease-in-out infinite; }
@keyframes float { 0%, 100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-14px) rotate(2deg); } }
.coin-chip {
  position: absolute; display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 14px;
  background: rgba(16, 23, 46, 0.85); border: 1px solid var(--line-strong); backdrop-filter: blur(8px);
  font-size: 0.85rem; box-shadow: var(--shadow); white-space: nowrap;
}
.coin-chip b { display: block; font-family: var(--font-head); font-size: 0.95rem; font-weight: 600; }
.coin-chip small { color: var(--muted); }
.coin-chip .ico { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; flex: none; }
.coin-chip .ico svg { width: 18px; height: 18px; }
.coin-chip.c1 { left: -4%; top: 16%; }
.coin-chip.c2 { right: -6%; bottom: 14%; }
.ico-gold { background: rgba(226, 179, 84, 0.16); color: var(--gold-hi); }
.ico-ice { background: rgba(127, 212, 255, 0.14); color: var(--ice-hi); }
.ico-ok { background: rgba(69, 212, 154, 0.14); color: var(--ok); }

/* ── Sections ───────────────────────────────────────────────────────────── */
section { padding: 96px 0; position: relative; }
.section-head { max-width: 720px; margin-bottom: 56px; }
.section-head.center { margin-left: auto; margin-right: auto; }
.section-head .kicker { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); margin-bottom: 14px; display: block; }
.section-head p { color: var(--text-2); font-size: 1.1rem; }
.alt { background: linear-gradient(180deg, var(--bg-2), var(--bg)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; counter-reset: step; position: relative; }
.steps::before {
  content: ''; position: absolute; top: 34px; left: 10%; right: 10%; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), var(--ice), transparent); opacity: 0.4;
}
.step { position: relative; text-align: center; padding: 0 6px; }
.step .num {
  width: 68px; height: 68px; margin: 0 auto 20px; border-radius: 50%; display: grid; place-items: center;
  background: var(--surface); border: 1px solid var(--line-strong); position: relative; color: var(--gold-hi);
  box-shadow: 0 0 0 6px var(--bg-2);
}
.step .num svg { width: 26px; height: 26px; }
.step .num::after {
  counter-increment: step; content: counter(step); position: absolute; top: -4px; right: -4px;
  width: 24px; height: 24px; border-radius: 50%; background: var(--gold-grad); color: #1d1405;
  font: 700 0.75rem/24px var(--font-head);
}
.step h3 { font-size: 1rem; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 0.92rem; margin: 0; }

/* Cards */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.card-glow { position: relative; overflow: hidden; }
.card-glow::before { content: ''; position: absolute; width: 260px; height: 260px; top: -130px; right: -100px; border-radius: 50%; background: radial-gradient(circle, rgba(226, 179, 84, 0.18), transparent 70%); pointer-events: none; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.feature .ico { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 20px; }
.feature .ico svg { width: 24px; height: 24px; }
.feature h3 { margin-bottom: 10px; }
.feature p { color: var(--muted); margin: 0; }

/* Token compare */
.token-card { padding: 36px; }
.token-card .tag { display: inline-block; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; padding: 5px 12px; border-radius: 999px; margin-bottom: 20px; }
.token-card ul { list-style: none; padding: 0; margin: 20px 0 0; }
.token-card li { display: flex; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); color: var(--text-2); }
.token-card li svg { width: 20px; height: 20px; flex: none; margin-top: 3px; color: var(--gold); }

/* Calculator */
.calc { display: grid; grid-template-columns: 1fr 1fr; gap: 0; padding: 0; overflow: hidden; }
.calc > div { padding: 40px; }
.calc-out { background: linear-gradient(160deg, rgba(226, 179, 84, 0.12), rgba(127, 212, 255, 0.05)); border-left: 1px solid var(--line); display: flex; flex-direction: column; justify-content: center; }
.calc-out .big { font-family: var(--font-head); font-size: clamp(2rem, 4vw, 3rem); font-weight: 600; line-height: 1.1; margin: 8px 0 12px; word-break: break-word; }
.range { width: 100%; margin: 18px 0 6px; accent-color: var(--gold); }

/* FAQ */
.faq { max-width: 820px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 40px 22px 0; font-weight: 600; font-size: 1.08rem; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ''; position: absolute; right: 6px; top: 50%; width: 12px; height: 12px; border-right: 2px solid var(--gold); border-bottom: 2px solid var(--gold); transform: translateY(-75%) rotate(45deg); transition: transform 0.2s; }
.faq details[open] summary::after { transform: translateY(-25%) rotate(-135deg); }
.faq details p { color: var(--text-2); padding-bottom: 20px; margin: 0; }

/* CTA band */
.cta-band { border-radius: 28px; padding: 64px; text-align: center; position: relative; overflow: hidden; background: linear-gradient(135deg, #18213f, #0f1530); border: 1px solid var(--line-strong); }
.cta-band::before { content: ''; position: absolute; inset: 0; background: radial-gradient(500px 260px at 15% 0%, rgba(226, 179, 84, 0.22), transparent 70%), radial-gradient(500px 260px at 85% 100%, rgba(127, 212, 255, 0.16), transparent 70%); }
.cta-band > * { position: relative; }
.cta-band p { color: var(--text-2); font-size: 1.1rem; max-width: 560px; margin: 0 auto 32px; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 48px 0; color: var(--muted); font-size: 0.9rem; margin-top: 40px; }
.site-footer .container { display: flex; gap: 32px; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; }
.site-footer nav { display: flex; gap: 20px; flex-wrap: wrap; }
.site-footer nav a { color: var(--text-2); }
.disclaimer { max-width: 560px; font-size: 0.82rem; line-height: 1.5; margin-top: 12px; }

/* ── Forms ──────────────────────────────────────────────────────────────── */
.field { display: flex; flex-direction: column; gap: 8px; }
.field > span, .label { font-size: 0.88rem; font-weight: 600; color: var(--text-2); }
.field small { color: var(--muted); font-size: 0.8rem; }
.req::after { content: ' *'; color: var(--gold); }
.input, select.input, textarea.input {
  width: 100%; padding: 13px 16px; border-radius: var(--radius-sm); border: 1px solid var(--line-strong);
  background: var(--bg-2); color: var(--text); font: 500 1rem/1.4 var(--font-body);
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
.input::placeholder { color: #5d6788; }
.input:hover { border-color: rgba(150, 175, 235, 0.35); }
.input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 4px rgba(226, 179, 84, 0.14); background: var(--surface); }
select.input { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%238a94b3' stroke-width='2'%3E%3Cpath d='M1 1l5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 40px; }
select.input option { background: var(--surface); }
textarea.input { min-height: 110px; resize: vertical; }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px 20px; }
.form-grid .full { grid-column: 1 / -1; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 0.9rem; color: var(--text-2); cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--gold); flex: none; cursor: pointer; }
.form-error { background: rgba(255, 107, 122, 0.1); border: 1px solid rgba(255, 107, 122, 0.35); color: #ffc2c8; padding: 12px 16px; border-radius: var(--radius-sm); font-size: 0.92rem; }

.dropzone {
  border: 1.5px dashed var(--line-strong); border-radius: var(--radius); padding: 28px; text-align: center;
  background: rgba(255, 255, 255, 0.015); cursor: pointer; transition: border-color 0.2s, background 0.2s; position: relative;
}
.dropzone:hover, .dropzone.drag { border-color: var(--gold); background: rgba(226, 179, 84, 0.05); }
.dropzone input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.dropzone .ico { width: 48px; height: 48px; margin: 0 auto 12px; border-radius: 14px; display: grid; place-items: center; }
.dropzone .ico svg { width: 24px; height: 24px; }
.dropzone b { display: block; margin-bottom: 4px; }
.dropzone small { color: var(--muted); }
.file-list { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.file-chip { display: flex; align-items: center; gap: 10px; padding: 6px 8px 6px 6px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); font-size: 0.85rem; max-width: 100%; }
.file-chip img, .file-chip .doc { width: 40px; height: 40px; border-radius: 8px; object-fit: cover; flex: none; }
.file-chip .doc { display: grid; place-items: center; background: rgba(127, 212, 255, 0.1); color: var(--ice); font-size: 0.7rem; font-weight: 700; }
.file-chip .name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 180px; }
.file-chip button { background: none; border: 0; color: var(--muted); cursor: pointer; padding: 4px; border-radius: 6px; line-height: 0; }
.file-chip button:hover { color: var(--err); background: rgba(255, 107, 122, 0.1); }
.file-chip button svg { width: 16px; height: 16px; }

/* ── Auth pages ─────────────────────────────────────────────────────────── */
.auth-wrap { min-height: calc(100vh - 72px); display: grid; grid-template-columns: 1fr 1fr; }
.auth-side { position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: center; padding: 64px; border-right: 1px solid var(--line); background: radial-gradient(600px 400px at 30% 30%, rgba(226, 179, 84, 0.16), transparent 70%), radial-gradient(500px 400px at 80% 90%, rgba(127, 212, 255, 0.10), transparent 70%), var(--bg-2); }
.auth-side img { width: 220px; margin-bottom: 40px; filter: drop-shadow(0 24px 40px rgba(0, 0, 0, 0.5)); animation: float 6s ease-in-out infinite; }
.auth-side ol { padding: 0; margin: 24px 0 0; list-style: none; counter-reset: a; }
.auth-side li { counter-increment: a; display: flex; gap: 14px; padding: 10px 0; color: var(--text-2); }
.auth-side li::before { content: counter(a); flex: none; width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--gold-lo); color: var(--gold-hi); display: grid; place-items: center; font: 600 0.8rem var(--font-head); }
.auth-main { display: flex; align-items: center; justify-content: center; padding: 48px 24px; }
.auth-card { width: 100%; max-width: 440px; }
.auth-card h1 { font-size: 2rem; }
.auth-card form { display: flex; flex-direction: column; gap: 18px; margin-top: 28px; }

/* ── App (cabinet / admin) ──────────────────────────────────────────────── */
.app { display: grid; grid-template-columns: 260px 1fr; min-height: calc(100vh - 72px); }
.sidebar { border-right: 1px solid var(--line); padding: 28px 16px; background: var(--bg-2); position: sticky; top: 72px; height: calc(100vh - 72px); overflow-y: auto; display: flex; flex-direction: column; gap: 4px; }
.sidebar a { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-radius: 12px; color: var(--text-2); font-weight: 500; transition: background 0.15s, color 0.15s; }
.sidebar a svg { width: 20px; height: 20px; flex: none; opacity: 0.8; }
.sidebar a:hover { background: rgba(255, 255, 255, 0.04); color: var(--text); }
.sidebar a.active { background: rgba(226, 179, 84, 0.1); color: var(--gold-hi); }
.sidebar a.active svg { opacity: 1; }
.sidebar a .count { margin-left: auto; font-size: 0.75rem; font-weight: 700; min-width: 24px; height: 22px; padding: 0 7px; border-radius: 999px; background: var(--surface-3); color: var(--text-2); display: grid; place-items: center; }
.sidebar a .count.hot { background: var(--gold-grad); color: #1d1405; }
.sidebar .sep { height: 1px; background: var(--line); margin: 14px 8px; }
.sidebar .side-label { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); padding: 10px 14px 6px; }
.balance-mini { margin-top: auto; padding: 18px; border-radius: 16px; background: linear-gradient(150deg, rgba(226, 179, 84, 0.16), rgba(127, 212, 255, 0.06)); border: 1px solid rgba(226, 179, 84, 0.25); }
.balance-mini small { color: var(--muted); font-size: 0.8rem; }
.balance-mini b { display: block; font-family: var(--font-head); font-size: 1.25rem; font-weight: 600; margin-top: 4px; word-break: break-word; }

.main { padding: 36px 40px 64px; min-width: 0; }
.page-head { display: flex; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 28px; }
.page-head h1 { font-size: 1.8rem; margin: 0; }
.page-head p { margin: 6px 0 0; color: var(--muted); }
.back { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 0.9rem; margin-bottom: 14px; }
.back svg { width: 16px; height: 16px; }

.stat { padding: 22px 24px; }
.stat small { color: var(--muted); font-size: 0.85rem; }
.stat b { display: block; font-family: var(--font-head); font-size: clamp(1.15rem, 1.7vw, 1.6rem); font-weight: 600; margin-top: 6px; word-break: break-word; }
.stat .sub { color: var(--muted); font-size: 0.82rem; margin-top: 4px; }

/* Property cards */
.prop-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 20px; }
.prop-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; color: var(--text); transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s; display: flex; flex-direction: column; }
.prop-card:hover { transform: translateY(-3px); border-color: var(--line-strong); box-shadow: var(--shadow); color: var(--text); }
.prop-card .cover { aspect-ratio: 16 / 10; background: var(--surface-2) center / cover no-repeat; position: relative; }
.prop-card .cover .badge { position: absolute; left: 12px; top: 12px; background-color: rgba(7, 11, 22, 0.8); }
.prop-card .cover .nft-tag { position: absolute; right: 12px; top: 12px; }
.prop-card .body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.prop-card .type { font-size: 0.8rem; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; }
.prop-card .addr { font-weight: 600; line-height: 1.35; }
.prop-card .price { margin-top: auto; padding-top: 12px; display: flex; justify-content: space-between; align-items: baseline; border-top: 1px solid var(--line); font-size: 0.9rem; color: var(--muted); }
.prop-card .price b { color: var(--text); font-family: var(--font-head); font-weight: 600; font-size: 1.05rem; }
.progress { height: 4px; border-radius: 4px; background: var(--surface-3); overflow: hidden; margin-top: 8px; }
.progress i { display: block; height: 100%; background: linear-gradient(90deg, var(--gold), var(--ice)); border-radius: 4px; }

/* Badges */
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px; font-size: 0.78rem; font-weight: 700; white-space: nowrap; backdrop-filter: blur(6px); }
.badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge.s-submitted { background: rgba(245, 185, 74, 0.16); color: #ffd58a; }
.badge.s-verified { background: rgba(127, 212, 255, 0.16); color: var(--ice-hi); }
.badge.s-appraised { background: rgba(160, 140, 255, 0.18); color: #cfc4ff; }
.badge.s-tokenized { background: rgba(226, 179, 84, 0.2); color: var(--gold-hi); }
.badge.s-contracted { background: rgba(69, 212, 154, 0.16); color: #8ff0c6; }
.badge.s-rejected { background: rgba(255, 107, 122, 0.16); color: #ffb3bb; }
.nft-tag { font: 700 0.72rem/1 var(--font-head); padding: 6px 10px; border-radius: 8px; background: rgba(7, 11, 22, 0.75); color: var(--gold-hi); border: 1px solid rgba(226, 179, 84, 0.4); }

/* Stepper */
.stepper { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; margin-bottom: 28px; }
.stepper .st { position: relative; text-align: center; padding: 0 4px; }
.stepper .st::before { content: ''; position: absolute; top: 17px; left: -50%; right: 50%; height: 2px; background: var(--surface-3); z-index: 0; }
.stepper .st:first-child::before { display: none; }
.stepper .st.done::before, .stepper .st.current::before { background: linear-gradient(90deg, var(--gold), var(--gold-hi)); }
.stepper .dot { position: relative; z-index: 1; width: 36px; height: 36px; margin: 0 auto 10px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); border: 2px solid var(--surface-3); color: var(--muted); font: 600 0.85rem var(--font-head); }
.stepper .dot svg { width: 16px; height: 16px; }
.stepper .st.done .dot { background: var(--gold-grad); border-color: transparent; color: #1d1405; }
.stepper .st.current .dot { border-color: var(--gold); color: var(--gold-hi); box-shadow: 0 0 0 6px rgba(226, 179, 84, 0.14); }
.stepper .st.failed .dot { border-color: var(--err); color: var(--err); }
.stepper .st b { display: block; font-size: 0.85rem; font-weight: 600; }
.stepper .st small { display: block; color: var(--muted); font-size: 0.76rem; }

/* Detail layout */
.detail { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 10px 20px; margin: 0; }
.kv dt { color: var(--muted); font-size: 0.9rem; }
.kv dd { margin: 0; font-weight: 500; text-align: right; word-break: break-word; }
.card h2 { font-size: 1.15rem; margin-bottom: 18px; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 10px; }
.gallery a { aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: var(--surface-2); }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.gallery a:hover img { transform: scale(1.05); }
.doc-list { list-style: none; margin: 0; padding: 0; }
.doc-list li { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.doc-list li:first-child { border-top: 0; }
.doc-list .doc { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: rgba(127, 212, 255, 0.1); color: var(--ice); flex: none; }
.doc-list .doc svg { width: 18px; height: 18px; }
.doc-list .meta { min-width: 0; flex: 1; }
.doc-list .meta a { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text); font-weight: 500; }
.doc-list .meta small { color: var(--muted); font-size: 0.78rem; }

.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { position: relative; padding: 0 0 18px 26px; }
.timeline li::before { content: ''; position: absolute; left: 5px; top: 8px; width: 10px; height: 10px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px rgba(226, 179, 84, 0.15); }
.timeline li::after { content: ''; position: absolute; left: 9px; top: 22px; bottom: 0; width: 2px; background: var(--surface-3); }
.timeline li:last-child { padding-bottom: 0; }
.timeline li:last-child::after { display: none; }
.timeline li.rejected::before { background: var(--err); box-shadow: 0 0 0 4px rgba(255, 107, 122, 0.15); }
.timeline b { display: block; font-size: 0.92rem; }
.timeline p { margin: 2px 0 0; color: var(--text-2); font-size: 0.88rem; }
.timeline small { color: var(--muted); font-size: 0.78rem; }

.notice { display: flex; gap: 14px; padding: 18px 20px; border-radius: var(--radius-sm); border: 1px solid; font-size: 0.94rem; }
.notice svg { width: 22px; height: 22px; flex: none; margin-top: 1px; }
.notice b { display: block; margin-bottom: 2px; }
.notice p { margin: 0; color: var(--text-2); }
.notice.info { background: rgba(127, 212, 255, 0.07); border-color: rgba(127, 212, 255, 0.25); color: var(--ice-hi); }
.notice.warn { background: rgba(245, 185, 74, 0.07); border-color: rgba(245, 185, 74, 0.3); color: #ffd58a; }
.notice.err { background: rgba(255, 107, 122, 0.07); border-color: rgba(255, 107, 122, 0.3); color: #ffb3bb; }
.notice.ok { background: rgba(69, 212, 154, 0.07); border-color: rgba(69, 212, 154, 0.3); color: #8ff0c6; }

/* NFT certificate */
.nft-card { position: relative; border-radius: 22px; padding: 24px; overflow: hidden; isolation: isolate; background: linear-gradient(155deg, #1c2650 0%, #111833 55%, #0c1126 100%); border: 1px solid rgba(226, 179, 84, 0.35); box-shadow: 0 30px 60px -30px rgba(226, 179, 84, 0.35); }
.nft-card::before { content: ''; position: absolute; inset: 0; z-index: -1; background: radial-gradient(300px 200px at 100% 0%, rgba(226, 179, 84, 0.25), transparent 70%), radial-gradient(260px 200px at 0% 100%, rgba(127, 212, 255, 0.14), transparent 70%); }
.nft-card::after { content: ''; position: absolute; inset: 0; z-index: -1; opacity: 0.35; background-image: linear-gradient(rgba(127, 212, 255, 0.08) 1px, transparent 1px), linear-gradient(90deg, rgba(127, 212, 255, 0.08) 1px, transparent 1px); background-size: 22px 22px; }
.nft-card .top { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.nft-card .top img { width: 58px; height: 58px; filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.5)); }
.nft-card .top small { display: block; color: var(--muted); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; }
.nft-card .top b { font-family: var(--font-head); font-size: 1.35rem; font-weight: 600; }
.nft-card .value { font-family: var(--font-head); font-size: 1.6rem; font-weight: 600; margin: 4px 0 18px; }
.nft-card .kv dd { font-size: 0.85rem; }

/* Wallet */
.wallet-hero { padding: 32px; display: flex; gap: 28px; align-items: center; flex-wrap: wrap; background: linear-gradient(135deg, rgba(226, 179, 84, 0.16), rgba(16, 23, 46, 1) 55%, rgba(127, 212, 255, 0.08)); border-color: rgba(226, 179, 84, 0.3); }
.wallet-hero img { width: 92px; height: 92px; filter: drop-shadow(0 14px 24px rgba(0, 0, 0, 0.5)); }
.wallet-hero .bal { font-family: var(--font-head); font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 600; line-height: 1.1; word-break: break-word; }
.addr-box { display: flex; align-items: center; gap: 8px; padding: 8px 8px 8px 14px; border-radius: 12px; background: rgba(7, 11, 22, 0.5); border: 1px solid var(--line); max-width: 100%; }
.addr-box code { font-family: var(--font-mono); font-size: 0.85rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; color: var(--text-2); }
.icon-btn { background: var(--surface-2); border: 1px solid var(--line); color: var(--text-2); width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; cursor: pointer; flex: none; }
.icon-btn:hover { color: var(--text); border-color: var(--line-strong); }
.icon-btn svg { width: 16px; height: 16px; }

/* Tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
table.table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.table th { text-align: left; font-size: 0.76rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); padding: 14px 18px; border-bottom: 1px solid var(--line); white-space: nowrap; background: var(--bg-2); }
.table td { padding: 14px 18px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr.click { cursor: pointer; transition: background 0.15s; }
.table tbody tr.click:hover { background: rgba(255, 255, 255, 0.025); }
.table .num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.tx-type { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; white-space: nowrap; }
.tx-type i { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; font-style: normal; }
.tx-type i svg { width: 15px; height: 15px; }

.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 20px; }
.tabs button { background: var(--surface); border: 1px solid var(--line); color: var(--text-2); padding: 8px 16px; border-radius: 999px; font: 600 0.88rem var(--font-body); cursor: pointer; display: inline-flex; gap: 8px; align-items: center; }
.tabs button span { font-size: 0.75rem; padding: 1px 8px; border-radius: 999px; background: var(--surface-3); }
.tabs button:hover { color: var(--text); }
.tabs button.active { background: rgba(226, 179, 84, 0.12); border-color: rgba(226, 179, 84, 0.4); color: var(--gold-hi); }

/* Contract */
.contract-text { white-space: pre-wrap; font-family: var(--font-body); font-size: 0.9rem; line-height: 1.65; color: var(--text-2); background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 24px; max-height: 50vh; overflow: auto; }

/* Empty state */
.empty { text-align: center; padding: 64px 24px; }
.empty img { width: 120px; margin: 0 auto 24px; opacity: 0.9; filter: drop-shadow(0 14px 28px rgba(0, 0, 0, 0.5)); }
.empty p { color: var(--muted); max-width: 420px; margin: 0 auto 24px; }

/* Modal */
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; background: rgba(3, 6, 14, 0.72); backdrop-filter: blur(6px); animation: fade 0.2s ease; }
.modal-box { width: 100%; max-width: 760px; max-height: calc(100vh - 40px); overflow: auto; background: var(--surface); border: 1px solid var(--line-strong); border-radius: 22px; padding: 32px; box-shadow: var(--shadow); animation: pop 0.25s ease; }
.modal-box.sm { max-width: 460px; }
.modal-head { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 20px; }
.modal-head h2 { margin: 0; font-size: 1.3rem; }
.modal-head .icon-btn { margin-left: auto; }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(0.98); } }

/* Success burst */
.success-burst { text-align: center; padding: 12px 0; }
.success-burst img { width: 150px; margin: 0 auto 20px; animation: coin-in 0.9s cubic-bezier(0.2, 0.9, 0.3, 1.3); filter: drop-shadow(0 20px 40px rgba(226, 179, 84, 0.4)); }
.success-burst .big { font-family: var(--font-head); font-size: 2rem; font-weight: 600; word-break: break-word; }
@keyframes coin-in { from { transform: translateY(-40px) rotateY(540deg) scale(0.4); opacity: 0; } }

/* Toast */
.toasts { position: fixed; right: 20px; bottom: 20px; z-index: 200; display: flex; flex-direction: column; gap: 10px; max-width: calc(100vw - 40px); }
.toast { padding: 14px 18px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line-strong); box-shadow: var(--shadow); font-size: 0.92rem; animation: pop 0.25s ease; max-width: 380px; }
.toast.ok { border-color: rgba(69, 212, 154, 0.45); }
.toast.err { border-color: rgba(255, 107, 122, 0.45); }

.skeleton { background: linear-gradient(90deg, var(--surface) 0%, var(--surface-2) 50%, var(--surface) 100%); background-size: 200% 100%; animation: shimmer 1.4s infinite; border-radius: var(--radius); }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 1080px) {
  .steps { grid-template-columns: repeat(3, 1fr); row-gap: 40px; }
  .steps::before { display: none; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .detail { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .nav { display: none; position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; padding: 12px 16px 20px; background: rgba(7, 11, 22, 0.97); border-bottom: 1px solid var(--line); margin: 0; }
  .nav.open { display: flex; }
  .nav a { padding: 12px 14px; }
  .burger { display: grid; place-items: center; }
  .hero { padding: 56px 0 64px; }
  .hero-grid { grid-template-columns: 1fr; }
  .coin-stage { max-width: 260px; margin: 0 auto; order: -1; }
  .coin-chip.c1 { left: 0; }
  .coin-chip.c2 { right: 0; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .calc { grid-template-columns: 1fr; }
  .calc-out { border-left: 0; border-top: 1px solid var(--line); }
  .auth-wrap { grid-template-columns: 1fr; }
  .auth-side { display: none; }
  .app { grid-template-columns: 1fr; }
  .sidebar { position: static; height: auto; flex-direction: row; overflow-x: auto; padding: 10px 16px; gap: 6px; border-right: 0; border-bottom: 1px solid var(--line); }
  .sidebar a { white-space: nowrap; padding: 9px 12px; }
  .sidebar .sep, .sidebar .side-label, .balance-mini { display: none; }
  .main { padding: 24px 16px 48px; }
  section { padding: 64px 0; }
  .cta-band { padding: 40px 24px; }
}
@media (max-width: 640px) {
  .container { padding: 0 16px; }
  .hide-sm { display: none !important; }
  .brand small { display: none; }
  [data-auth-actions] .btn-ghost { display: none; }
  .kv { grid-template-columns: 1fr; gap: 0; }
  .kv dt { font-size: 0.82rem; }
  .kv dd { text-align: left; margin-bottom: 12px; }
  .steps { grid-template-columns: 1fr 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; gap: 12px; }
  .form-grid { grid-template-columns: 1fr; }
  .stepper .st b { font-size: 0.72rem; }
  .stepper .st small { display: none; }
  .card { padding: 20px; }
  .calc > div { padding: 24px; }
  .modal-box { padding: 22px; }
  .hero-facts { gap: 24px; }
  .coin-chip { display: none; }
  .stat b { font-size: 1.25rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
