/* Buyer dashboard + orders admin. Builds on styles.css (same tokens, outlines and shadows). */
.acct { max-width: 860px; }
.acct h1 { margin-bottom: 0; }
.acct-loading { margin-top: 24px; font-weight: 600; }
.acct-card { margin-top: 24px; padding: 26px; background: var(--surface); border: var(--line) solid var(--ink); border-radius: 22px; box-shadow: 10px 10px 0 var(--pink); }
.signin { max-width: 440px; }
.signin .g { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--yellow); border: 2px solid var(--ink); color: #15121f; font-size: 0.85rem; }
.or { display: flex; align-items: center; gap: 10px; margin: 20px 0 16px; font-size: 0.82rem; font-weight: 700; color: var(--muted); }
.or::before, .or::after { content: ""; flex: 1; border-top: 2px dashed var(--ink); opacity: 0.4; }

.order { margin-top: 28px; padding: 24px; background: var(--surface); border: var(--line) solid var(--ink); border-radius: 22px; box-shadow: 10px 10px 0 var(--cyan); }
.order + .order { margin-top: 36px; }
.order-top { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: flex-start; }
.order h2 { font-family: var(--display); font-size: clamp(1.6rem, 4vw, 2.2rem); letter-spacing: -0.04em; line-height: 1; margin: 0; }
.order .domain { margin-top: 8px; }
.order-meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin: 20px 0 6px; }
.order-meta > div { padding: 10px 14px; border: 2px solid var(--ink); border-radius: 14px; background: var(--bg); }
.order-meta dt { font-size: 0.68rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.order-meta dd { margin: 2px 0 0; font-family: var(--display); font-weight: 800; font-size: 1.1rem; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.status-pill { font-family: var(--display); font-weight: 800; font-size: 0.85rem; padding: 6px 12px; border: 2px solid var(--ink); border-radius: 999px; color: #15121f; background: var(--yellow); white-space: nowrap; transform: rotate(-2deg); }
.status-pill.s-complete, .status-pill.s-domain_transferred { background: var(--lime); }
.status-pill.s-code_delivered { background: var(--cyan); }

.progress { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 0; }
.progress li { position: relative; display: grid; grid-template-columns: 40px 1fr; gap: 12px; padding-bottom: 18px; }
.progress li:not(:last-child)::after { content: ""; position: absolute; left: 18px; top: 38px; bottom: 2px; border-left: 3px dashed var(--ink); opacity: 0.35; }
.progress .dot { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; border: var(--line) solid var(--ink); background: var(--surface); color: var(--muted); }
.progress li.done .dot { background: var(--lime); color: #15121f; box-shadow: var(--shadow-sm); }
.progress li.now .dot { background: var(--pink); color: #fff; box-shadow: var(--shadow-sm); }
.progress strong { display: block; font-family: var(--display); font-size: 1.08rem; padding-top: 5px; }
.progress span { font-weight: 500; font-size: 0.93rem; color: var(--muted); }
.progress li.done span, .progress li.now span { color: var(--text); }

.sub { font-family: var(--display); font-size: 1.2rem; letter-spacing: -0.02em; margin: 22px 0 10px; }
.links { display: flex; flex-wrap: wrap; gap: 10px; }
.links a.btn { font-size: 0.95rem; }
.updates { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.updates li { padding: 12px 14px; border: 2px solid var(--ink); border-radius: 14px; background: var(--bg); }
.updates time { display: block; font-size: 0.75rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); }
.updates p { margin: 4px 0 0; font-weight: 500; white-space: pre-wrap; overflow-wrap: anywhere; }
.empty { margin-top: 24px; padding: 24px; border: 2px dashed var(--ink); border-radius: 18px; background: var(--surface); font-weight: 600; }

/* admin */
.admin-tools { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }
.admin-tools input { flex: 1; min-width: 200px; font: inherit; font-weight: 600; padding: 11px 16px; border: var(--line) solid var(--ink); border-radius: 14px; background: var(--surface); color: var(--text); box-shadow: var(--shadow-sm); }
.admin-edit { margin-top: 20px; padding-top: 18px; border-top: 2px dashed var(--ink); display: grid; gap: 12px; }
.admin-edit .row { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-end; }
.admin-edit .row .field { flex: 1; min-width: 180px; margin: 0; }
.admin-edit select, .admin-edit input, .admin-edit textarea { font: inherit; font-weight: 600; padding: 10px 14px; border: var(--line) solid var(--ink); border-radius: 12px; background: var(--surface); color: var(--text); }
.admin-edit textarea { min-height: 72px; resize: vertical; }
.buyer-notes { margin: 12px 0 0; padding: 10px 14px; border-left: 4px solid var(--pink); background: var(--bg); font-weight: 500; white-space: pre-wrap; }
.link-x { font: inherit; font-size: 0.8rem; font-weight: 800; margin-left: 4px; background: none; border: 0; cursor: pointer; color: #d0105a; }
@media (max-width: 520px) { .order, .acct-card { padding: 18px; box-shadow: 6px 6px 0 var(--cyan); } }

/* Bank-transfer invoices */
.invoice-open { border-style: dashed; }
.s-awaiting { background: #fde68a; color: #15121f; }

/* Recent visitors (admin) */
.visitors { margin-top: 40px; }
.visitors-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 6px; }
.visitors-head select { font: inherit; padding: 6px 10px; border: var(--line) solid var(--ink); border-radius: 10px; background: var(--surface); color: var(--text); }
.visit-list { display: grid; gap: 8px; margin: 10px 0; }
.visit { border: var(--line) solid var(--ink); border-radius: 14px; background: var(--surface); padding: 10px 14px; }
.visit.hot { background: var(--subtle); }
.visit summary { cursor: pointer; display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.v-place { font-weight: 700; }
.visit.bot { opacity: .6; }
.v-tag { font-size: .72rem; font-weight: 700; color: var(--muted); border: 1px solid currentColor; border-radius: 6px; padding: 0 5px; margin-left: 4px; }
.v-meta { color: var(--muted); font-size: 0.9rem; }
.visit ol { margin: 8px 0 2px; padding-left: 20px; font-size: 0.92rem; }

/* Live dashboard (admin) */
.live { margin: 8px 0 40px; display: grid; gap: 14px; }
.live[hidden] { display: none; }
.live-ctl { display: flex; align-items: center; gap: 10px; }
.live-ctl select { font: inherit; padding: 6px 10px; border: var(--line) solid var(--ink); border-radius: 10px; background: var(--surface); color: var(--text); }
.live-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.kpi { border: var(--line) solid var(--ink); border-radius: 14px; background: var(--surface); padding: 12px 14px; display: grid; gap: 2px; }
.kpi span { font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.kpi b { font: 800 2rem/1.1 "Bricolage Grotesque", system-ui, sans-serif; font-variant-numeric: tabular-nums; }
.kpi small { color: var(--muted); }
.live-card { border: var(--line) solid var(--ink); border-radius: 14px; background: var(--surface); padding: 14px 16px; min-width: 0; }
.live-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 14px; }
.live-card svg { display: block; overflow: visible; }
.live-card .bar { fill: var(--accent); opacity: .85; }
.live-card .bar-all { fill: var(--accent); opacity: .22; }
.live-card .buy { fill: none; stroke: var(--pink); stroke-width: 3; stroke-linejoin: round; }
.live-card .ax { stroke: var(--muted); stroke-width: 1; }
.live-card .tk { fill: var(--muted); font-size: 11px; }
.live-legend { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin: 6px 0 0; }
.live-legend .k-bar, .live-legend .k-buy { display: inline-block; width: 14px; height: 10px; border-radius: 3px; background: var(--accent); }
.live-legend .k-all { display: inline-block; width: 14px; height: 10px; border-radius: 3px; background: var(--accent); opacity: .22; margin-left: 10px; }
.live-legend .k-buy { height: 3px; background: var(--pink); margin-left: 10px; }
.live-bars { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.live-bars li { position: relative; display: flex; justify-content: space-between; gap: 10px; padding: 4px 8px; border-radius: 8px; overflow: hidden; font-size: .92rem; }
.live-bars li span { position: relative; z-index: 1; overflow-wrap: anywhere; }
.live-bars li b { position: relative; z-index: 1; font-variant-numeric: tabular-nums; }
.live-bars li i { position: absolute; inset: 0 auto 0 0; background: var(--subtle); }
.live-feed { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; max-height: 360px; overflow-y: auto; }
.live-feed li { display: grid; grid-template-columns: 22px 1fr; gap: 6px; font-size: .92rem; }
.live-feed li div { min-width: 0; overflow-wrap: anywhere; }
.live-feed em { color: var(--muted); font-style: normal; }
.live-feed time { display: block; color: var(--muted); font-size: .8rem; }
.live-feed .f-sale, .live-feed .f-buy { font-weight: 700; }
.live .empty.small { margin: 0; padding: 12px; font-size: .9rem; }
.live-table { overflow-x: auto; }
.live-table table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.live-table th, .live-table td { text-align: left; padding: 6px 8px; border-bottom: 1px solid var(--subtle); white-space: nowrap; font-variant-numeric: tabular-nums; }
.live-table td:first-child { white-space: normal; overflow-wrap: anywhere; }
.scroll-bar { display: inline-block; vertical-align: middle; width: 60px; height: 8px; border-radius: 4px; background: var(--subtle); overflow: hidden; }
.scroll-bar i { display: block; height: 100%; background: var(--accent); }
