:root {
  --bg: #0d0f14; --panel: #151922; --panel2: #1b2030; --line: #262c3d; --text: #e9ecf3; --muted: #8d95a8;
  --accent: #d97757; --accent2: #f0a37f; --ok: #3fb68b; --warn: #e0a84a; --bad: #e0605a; --r: 14px;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.55 Inter, system-ui, -apple-system, Segoe UI, Roboto, sans-serif; }
a { color: var(--accent2); text-decoration: none; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
header.top { position: sticky; top: 0; z-index: 5; background: rgba(13,15,20,.85); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
header.top .wrap { display: flex; align-items: center; gap: 24px; height: 64px; }
.logo { font-weight: 800; letter-spacing: -.02em; color: var(--text); display: flex; align-items: center; gap: 10px; }
.logo i { width: 26px; height: 26px; border-radius: 8px; background: linear-gradient(135deg, var(--accent), #7b5cff); display: inline-block; }
nav { display: flex; gap: 20px; margin-left: auto; align-items: center; }
nav a { color: var(--muted); font-size: 15px; } nav a:hover { color: var(--text); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; cursor: pointer; border-radius: 11px; padding: 12px 22px; font: 600 15px/1 inherit; font-family: inherit; background: var(--accent); color: #fff; transition: .15s; }
.btn:hover { background: #e8875f; } .btn.ghost { background: transparent; border: 1px solid var(--line); color: var(--text); } .btn.ghost:hover { border-color: var(--muted); }
.btn.sm { padding: 8px 14px; font-size: 14px; } .btn:disabled { opacity: .5; cursor: default; }
.hero { padding: 96px 0 72px; text-align: center; }
.badge { display: inline-block; padding: 6px 14px; border: 1px solid var(--line); border-radius: 99px; color: var(--muted); font-size: 13px; margin-bottom: 22px; }
.hero h1 { font-size: clamp(36px, 6vw, 60px); line-height: 1.05; letter-spacing: -.03em; margin: 0 0 18px; }
.hero h1 span { background: linear-gradient(90deg, var(--accent2), #a58bff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p { color: var(--muted); font-size: 19px; max-width: 640px; margin: 0 auto 32px; }
.cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.stats { display: flex; gap: 40px; justify-content: center; margin-top: 48px; color: var(--muted); font-size: 14px; flex-wrap: wrap; }
.stats b { display: block; color: var(--text); font-size: 26px; }
section { padding: 64px 0; border-top: 1px solid var(--line); }
section h2 { font-size: 32px; letter-spacing: -.02em; margin: 0 0 8px; } section .sub { color: var(--muted); margin: 0 0 32px; }
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; }
.card h3 { margin: 0 0 6px; font-size: 18px; } .card p { margin: 0; color: var(--muted); font-size: 15px; }
.step { font: 700 13px/1 inherit; color: var(--accent2); margin-bottom: 12px; display: block; }
.price { display: grid; grid-template-columns: 1.2fr 1fr; gap: 24px; align-items: center; background: linear-gradient(135deg, #1a1e2b, #151922); border: 1px solid var(--line); border-radius: 20px; padding: 36px; }
.price .amount { font-size: 56px; font-weight: 800; letter-spacing: -.03em; } .price .amount small { font-size: 18px; color: var(--muted); font-weight: 500; }
.price ul { margin: 0; padding: 0; list-style: none; } .price li { padding: 6px 0 6px 28px; position: relative; color: var(--muted); }
.price li::before { content: '✓'; position: absolute; left: 0; color: var(--ok); font-weight: 700; }
details { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 16px 20px; margin-bottom: 10px; }
summary { cursor: pointer; font-weight: 600; } details p { color: var(--muted); margin: 10px 0 0; }
footer { border-top: 1px solid var(--line); padding: 32px 0; color: var(--muted); font-size: 13px; }
footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
/* app */
.app { padding: 40px 0 80px; min-height: calc(100vh - 140px); }
.center { max-width: 460px; margin: 40px auto; text-align: center; }
.muted { color: var(--muted); } .small { font-size: 13px; }
.list { display: flex; flex-direction: column; gap: 10px; }
.row { display: flex; align-items: center; gap: 14px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 14px 18px; cursor: pointer; color: var(--text); }
.row:hover { border-color: #3a4259; } .row .grow { flex: 1; min-width: 0; } .row .grow div { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pill { font-size: 12px; padding: 4px 10px; border-radius: 99px; background: var(--panel2); color: var(--muted); white-space: nowrap; }
.pill.UNPAID { color: var(--warn); } .pill.PAID { color: #7fb4ff; } .pill.SENT { color: var(--accent2); } .pill.CONFIRMED { color: var(--ok); } .pill.ROLLED_BACK { color: var(--bad); }
.head { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; flex-wrap: wrap; } .head h2 { margin: 0; font-size: 24px; } .head .sp { flex: 1; }
.chat { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); display: flex; flex-direction: column; height: 60vh; min-height: 380px; }
.msgs { flex: 1; overflow-y: auto; padding: 18px; display: flex; flex-direction: column; gap: 8px; }
.msg { max-width: 78%; padding: 10px 14px; border-radius: 14px; white-space: pre-wrap; word-wrap: break-word; font-size: 15px; }
.msg.me { align-self: flex-end; background: #3a2a24; border-bottom-right-radius: 4px; } .msg.them { align-self: flex-start; background: var(--panel2); border-bottom-left-radius: 4px; }
.msg time { display: block; font-size: 11px; color: var(--muted); margin-top: 4px; }
.compose { display: flex; gap: 10px; padding: 12px; border-top: 1px solid var(--line); }
.compose textarea { flex: 1; resize: none; height: 46px; background: var(--bg); color: var(--text); border: 1px solid var(--line); border-radius: 10px; padding: 12px; font: inherit; }
.note { background: var(--panel2); border: 1px solid var(--line); border-radius: 12px; padding: 14px 18px; margin-bottom: 16px; color: var(--muted); font-size: 15px; }
.note.warn { border-color: #5a4521; } .err { color: var(--bad); margin-top: 12px; min-height: 1.4em; }
.split { display: grid; grid-template-columns: 340px 1fr; gap: 16px; } .split .list { max-height: 72vh; overflow-y: auto; }
.row.active { border-color: var(--accent); } .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex: none; }
@media (max-width: 760px) { .price { grid-template-columns: 1fr; } nav a.hide-m { display: none; } .split { grid-template-columns: 1fr; } .msg { max-width: 90%; } }
