/**
 * TopFlow layout & typography utilities (CSP-safe — no inline style="" needed).
 * Prefer these classes over style attributes; JS may still use element.style when needed.
 */

/* ── Display ─────────────────────────────────────────────── */
.u-hidden { display: none; }
.u-block { display: block; }
.u-inline { display: inline; }
.u-inline-block { display: inline-block; }
.u-flex { display: flex; }
.u-inline-flex { display: inline-flex; }
.u-grid { display: grid; }

/* ── Flex / grid ─────────────────────────────────────────── */
.u-flex-wrap { flex-wrap: wrap; }
.u-flex-col { flex-direction: column; }
.u-flex-col-gap-125 { display: flex; flex-direction: column; gap: 1.25rem; }
.u-flex-center-wrap { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.u-align-self-start { align-self: start; }
.u-items-center-wrap { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.u-flex-1 { flex: 1; }
.u-flex-2 { flex: 2; }
.u-flex-shrink-0 { flex-shrink: 0; }
.u-items-center { align-items: center; }
.u-items-start { align-items: flex-start; }
.u-justify-end { justify-content: flex-end; }
.u-gap-035 { gap: 0.35rem; }
.u-gap-05 { gap: 0.5rem; }
.u-gap-075 { gap: 0.75rem; }
.u-gap-12 { gap: 12px; }
.u-min-w-0 { min-width: 0; }
.u-min-w-120 { min-width: 120px; }
.u-min-w-100 { min-width: 100px; }
.u-min-w-180 { min-width: 180px; }
.u-w-100px { width: 100px; }
.u-w-full { width: 100%; }
.u-max-w-full { max-width: 100%; }
.u-max-w-420 { max-width: 420px; }
.u-max-w-28rem { max-width: 28rem; }
.u-max-w-520 { max-width: 520px; }
.u-mx-auto { margin-left: auto; margin-right: auto; }
.u-ml-auto { margin-left: auto; }

/* ── Spacing ─────────────────────────────────────────────── */
.u-m-0 { margin: 0; }
.u-mt-02 { margin-top: 0.2rem; }
.u-mt-05 { margin-top: 0.5rem; }
.u-mt-075 { margin-top: 0.75rem; }
.u-mt-085 { margin-top: 0.85rem; }
.u-mt-1 { margin-top: 1rem; }
.u-mt-15 { margin-top: 1.5rem; }
.u-mt-125 { margin-top: 1.25rem; }
.u-mt-14 { margin-top: 14px; }
.u-mt-03 { margin-top: 0.3rem; }
.u-mt-4px { margin-top: 4px; }
.u-mt-6px { margin-top: 6px; }
.u-mt-n025 { margin-top: -0.25rem; }
.u-mb-05 { margin-bottom: 0.5rem; }
.u-mb-075 { margin-bottom: 0.75rem; }
.u-mb-1 { margin-bottom: 1rem; }
.u-mb-11 { margin-bottom: 1.1rem; }
.u-mb-085 { margin-bottom: 0.85rem; }
.u-mb-10px { margin-bottom: 10px; }
.u-mr-04 { margin-right: 0.4rem; }
.u-mr-6 { margin-right: 6px; }
.u-mr-5 { margin-right: 5px; }
.u-mr-3 { margin-right: 3px; }
.u-ml-04 { margin-left: 0.4rem; }
.u-pt-0 { padding-top: 0; }
.u-pt-1 { padding-top: 1rem; }
.u-py-12 { padding: 12px 0; }
.u-pl-125 { padding-left: 1.25rem; }
.u-pl-11 { padding-left: 1.1rem; }

/* ── Text ────────────────────────────────────────────────── */
.u-text-right { text-align: right; }
.u-text-center { text-align: center; }
.u-preline { margin: 0; white-space: pre-line; }
.u-preline-only { white-space: pre-line; }
.u-fw-400 { font-weight: 400; }
.u-fw-600 { font-weight: 600; }
.u-fw-700 { font-weight: 700; }
.u-fw-800 { font-weight: 800; }
.u-fw-900 { font-weight: 900; }
.u-fs-1 { font-size: 1rem; }
.u-fs-125 { font-size: 1.25rem; }
.u-fs-2 { font-size: 2rem; }
.u-fs-078 { font-size: 0.78rem; }
.u-fs-075 { font-size: 0.75rem; }
.u-fs-08 { font-size: 0.8rem; }
.u-fs-085 { font-size: 0.85rem; }
.u-fs-16 { font-size: 16px; }
.u-fs-25 { font-size: 2.5rem; }
.u-fs-3 { font-size: 3rem; }
.u-fs-072 { font-size: 0.72rem; }
.u-fs-062 { font-size: 0.62rem; }
.u-lh-1 { line-height: 1; }
.u-lh-155 { line-height: 1.55; }
.u-tt-none { text-transform: none; }
.u-tt-upper { text-transform: uppercase; }
.u-ls-0 { letter-spacing: 0; }
.u-ls-tight { letter-spacing: -0.02em; }
.u-opacity-50 { opacity: 0.5; }
.u-opacity-65 { opacity: 0.65; }
.u-opacity-75 { opacity: 0.75; }
.u-opacity-60 { opacity: 0.6; }
.u-no-underline { text-decoration: none; }
.u-v-middle { vertical-align: middle; }
.u-mx-015 { margin: 0 0.15rem; }
.u-mx-5 { margin: 0 5px; }
.u-p-1 { padding: 1rem; }
.u-p-card-empty { padding: 3rem 1rem; text-align: center; }

/* ── Colors ──────────────────────────────────────────────── */
.u-text-link { color: #93c5fd; font-weight: 700; }
.u-text-info { color: #93c5fd; }
.u-text-green { color: #16a34a; }
.u-text-green-bright { color: #22c55e; }
.u-text-green-soft { color: #4ade80; }
.u-text-gold { color: #ca8a04; }
.u-text-gold-bright { color: #fcd34d; }
.u-text-gold-warn { color: #fbbf24; }
.u-text-red-soft { color: #f87171; }
.u-text-danger-soft { color: #fca5a5; }
.u-text-subtle { color: rgba(148, 163, 184, 0.9); font-size: 0.9rem; margin: 0 0 1rem 0; line-height: 1.5; }
.u-text-subtle-sm { color: rgba(148, 163, 184, 0.92); font-size: 0.85rem; margin-top: 0.2rem; }
.u-text-subtle-md { color: rgba(148, 163, 184, 0.92); font-size: 0.9rem; max-width: 280px; font-weight: 600; }
.u-text-subtle-xs { color: rgba(148, 163, 184, 0.75); font-size: 0.9rem; margin: 0; }
.u-text-subtle-center { text-align: center; color: rgba(148, 163, 184, 0.7); font-size: 0.8rem; font-weight: 700; }
.u-text-api-desc { color: rgba(148, 163, 184, 0.85); font-size: 0.86rem; margin-top: 0.2rem; }
.u-text-muted-faint { color: rgba(255, 255, 255, 0.2); }
.u-text-demo { color: rgba(255, 255, 255, 0.65); }
.u-text-subtle-block { display: block; margin-top: 0.5rem; font-weight: 800; color: #cbd5e1; }

/* ── Lists ───────────────────────────────────────────────── */
.u-list-indent { margin: 0; padding-left: 1.25rem; }
.u-list-compact { margin: 0.5rem 0 0; padding-left: 1.2rem; }

/* ── Overflow / position ─────────────────────────────────── */
.u-overflow-x-auto { overflow-x: auto; }
.u-overflow-auto-max100 { max-height: 100px; overflow: auto; }
.u-relative { position: relative; }
.u-relative-z10 { position: relative; z-index: 10; }

/* ── Sections ────────────────────────────────────────────── */
.u-section-pt-0 { padding-top: 0; }

/* ── Forms / controls ────────────────────────────────────── */
.u-min-h-48 { min-height: 48px; }
.u-cursor-pointer { cursor: pointer; }
.u-checkbox-auto { width: auto; }
.u-label-check { font-size: 0.85rem; font-weight: 600; display: flex; align-items: center; gap: 0.5rem; cursor: pointer; }
.u-label-block { display: block; margin-bottom: 0.4rem; }
.u-btn-block-mt { width: 100%; margin-top: 0.5rem; }
.u-btn-upgrade { height: 52px; font-size: 1rem; }
.u-inline-flex-center { display: inline-flex; width: 100%; justify-content: center; }
.u-auth-forgot { margin-top: 10px; text-align: right; }
.u-hr-muted { margin: 1rem 0; border-color: rgba(148, 163, 184, 0.2); }
.u-table-compact { width: 100%; font-size: 0.85rem; }
.u-table-compact-sm { width: 100%; font-size: 0.85rem; margin-top: 8px; }
.u-details-mt { margin: 12px 0; }
.u-summary-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 12px 0; }
.u-empty-icon { font-size: 3rem; color: rgba(148, 163, 184, 0.4); margin-bottom: 1rem; }
.u-icon-muted-lg { font-size: 2.5rem; color: #64748b; }
.u-card-body-center { text-align: center; padding: 2rem 1.25rem; }
.u-grid-col-full { grid-column: 1 / -1; }
.u-break-all { word-break: break-all; }
.u-api-page-pad { padding: 1rem 1rem 3rem; }
.u-api-copy-mt { margin-top: 0.35rem; }
.u-api-footer { text-align: center; margin-top: 2rem; }
.u-text-center-mt12 { text-align: center; margin-top: 12px; font-size: 0.8rem; }
.u-form-flex-1 { flex: 1; min-width: 180px; margin: 0; }
.u-mt-075-block { margin-top: 0.75rem; margin-bottom: 0.75rem; }
.u-alert-mb { margin-bottom: 1rem; }
.u-icon-admin-reply { margin-right: 3px; }
.u-text-center-danger { font-size: 0.85rem; text-align: center; color: #fca5a5; }

/* ── Hints / micro labels (landing) ──────────────────────── */
.u-label-micro {
    font-size: 0.62rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 0 0.1rem;
}

/* ── Animation delays ────────────────────────────────────── */
.u-delay-1 { transition-delay: 0.1s; }
.u-delay-18 { transition-delay: 0.18s; }

/* ── Brand / avatars ─────────────────────────────────────── */
.u-brand-36 { width: 36px; height: 36px; border-radius: 10px; }
.u-avatar-25 { width: 2.5rem; }
.u-img-64 { width: 64px; height: 64px; object-fit: cover; border-radius: 14px; border: 1px solid rgba(255, 255, 255, 0.12); }

/* ── Network dots (landing demo) ─────────────────────────── */
.net-dot--mtn { background: #fcd34d; box-shadow: 0 0 5px rgba(252, 211, 77, 0.55); }
.net-dot--tel { background: #f87171; box-shadow: 0 0 5px rgba(248, 113, 113, 0.55); }
.net-dot--at { background: #93c5fd; box-shadow: 0 0 5px rgba(147, 197, 253, 0.55); }
.net-dot--bt { background: #34d399; box-shadow: 0 0 5px rgba(52, 211, 153, 0.55); }
.net-dot--is { background: #c4b5fd; box-shadow: 0 0 5px rgba(196, 181, 253, 0.55); }

/* ── Status demo (landing) ───────────────────────────────── */
.u-status-confirmed { color: #34d399; }

/* ── Store setup / slug prefix ───────────────────────────── */
.store-slug-prefix {
    background: rgba(255, 255, 255, 0.06);
    color: #94a3b8;
    padding: 0.7rem 0.85rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-right: none;
    border-radius: 12px 0 0 12px;
    font-size: 0.85rem;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
}
.store-slug-input-r { border-radius: 0 12px 12px 0; }
.store-topbar-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; justify-content: flex-end; }
.store-setup-card { max-width: 520px; margin: 1.5rem auto; }
.store-setup-title { margin-top: 0; font-weight: 900; letter-spacing: -0.02em; }
.store-inline-form-grid { margin-top: 0.75rem; display: grid; gap: 0.5rem; max-width: 420px; }
.store-card-mb { margin-bottom: 1rem; }
.store-hint-sm { font-size: 0.78rem; margin: 0.35rem 0 0; }
.store-hint-xs { font-size: 0.75rem; margin: 0.25rem 0 0 0.05rem; }
.store-hint-085 { font-size: 0.85rem; padding: 12px 0; }
.store-badge-paused { background: rgba(248, 113, 113, 0.18); color: #fca5a5; }
.store-color-swatch {
    display: inline-block;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    vertical-align: middle;
}
.store-prices-title { margin-top: 0; font-weight: 900; letter-spacing: -0.02em; }
.store-prices-lead { margin-bottom: 1.1rem; font-size: 0.85rem; }

/* ── Saved recipients (buy-data) ─────────────────────────── */
.tf-saved-recipients-mt { margin-top: 0.75rem; }
.tf-chip-row { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-top: 0.35rem; }

/* ── Impersonation confirm page ──────────────────────────── */
.imp-stop-wrap { max-width: 420px; margin: 4rem auto; text-align: center; }
.imp-stop-form { margin-top: 1.5rem; }
.imp-stop-btn { width: 100%; }
.imp-stop-continue { margin-top: 1rem; }

/* ── Legal / contact prose blocks ────────────────────────── */
.legal-prose-mt { margin-top: 1rem; }
.contact-grid-mt { margin-top: 1.5rem; }

/* ── Monospace cells ─────────────────────────────────────── */
.u-mono-sm { font-family: monospace; font-size: 0.78rem; }

/* ── Dynamic hooks (values set via nonce <style> or data-*) ─ */
.u-bar-h { height: var(--bar-h, 4px); }
.u-bg-dynamic { background: var(--dyn-bg, transparent); }
.u-color-dynamic { color: var(--dyn-color, inherit); }
.u-border-dynamic { border-color: var(--dyn-border, transparent); background: var(--dyn-bg, transparent); }
.u-pe-none { pointer-events: none; }
.u-fs-0875 { font-size: 0.875rem; }
.u-fs-075 { font-size: 0.75rem; }
.u-break-all { word-break: break-all; }
.u-pad-68 { padding: 6px 8px; }
.u-flex-1-auto-break { flex: 1 1 auto; word-break: break-all; }
.u-width-pct { width: var(--bar-pct, 0%); }
.u-txn-amt--credit { color: #22c55e; }
.u-txn-amt--debit { color: #f87171; }
.u-amt-color { color: var(--dyn-color, inherit); }
.u-accent-card {
    --card-accent: var(--dyn-accent, #3b82f6);
    --bar-width: var(--dyn-bar-width, 0%);
    --order: var(--dyn-order, 0);
}
.u-rank-card {
    --order: var(--dyn-order, 0);
    background: var(--dyn-rank-bg, transparent);
}
.u-rank-pill {
    color: var(--dyn-rank-color, inherit);
    border-color: color-mix(in srgb, var(--dyn-rank-color, #fff) 33%, transparent);
    background: color-mix(in srgb, var(--dyn-rank-color, #fff) 9%, transparent);
}
.u-provider-pill {
    background: var(--dyn-pill-bg, transparent);
    color: var(--dyn-pill-color, inherit);
}
.u-order-bar { height: var(--dyn-bar-height, 4px); }
.u-status-tone {
    color: var(--dyn-status-color, inherit);
    font-weight: 800;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.u-dot-color { --dot-color: var(--dyn-dot, #3b82f6); }
.u-net-var { --net-rgb: var(--dyn-net-rgb, ''); --net-accent: var(--dyn-net-accent, ''); }

/* ── Admin notification badge ────────────────────────────── */
.admin-nav-badge {
    position: absolute;
    top: 6px;
    right: calc(50% - 14px);
    min-width: 16px;
    height: 16px;
    border-radius: 999px;
    background: var(--admin-danger);
    color: #ffffff;
    font-size: 0.58rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 3px;
    border: 2px solid rgba(8, 12, 27, 0.92);
    line-height: 1;
}

/* ── Security / incident banners ─────────────────────────── */
.u-banner-row {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    padding: 0.75rem 0.85rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(15, 23, 42, 0.45);
}
.u-banner-icon { font-size: 1.25rem; line-height: 1; }
.u-banner-tag {
    font-size: 0.72rem;
    font-weight: 600;
    opacity: 0.65;
    text-transform: uppercase;
    margin-left: 0.35rem;
}
.u-divider-dashed {
    margin-top: 0.6rem;
    padding-top: 0.6rem;
    text-align: center;
    border-top-style: dashed;
}

/* ── API docs copy blocks ────────────────────────────────── */
.u-api-pre-grid { display: grid; gap: 0.75rem; }

/* ── Chart bar (store analytics — height via --bar-h) ────── */
.store-chart-bar { height: var(--bar-h, 4px); min-height: 4px; }
