/* ── Reset & base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Sora', sans-serif; font-size: 14px; background: #f4f2ee; color: #1a1a18; line-height: 1.6; }
a { color: inherit; text-decoration: none; }

/* ── Sidebar layout ── */
:root { --sidebar-w: 220px; --sidebar-collapsed-w: 54px; }
body.has-sidebar { display: flex; min-height: 100vh; }

.sidebar {
    width: var(--sidebar-w);
    background: linear-gradient(180deg, #0f1728 0%, #0b1120 100%);
    border-right: 1px solid rgba(255,255,255,.05);
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0; left: 0; bottom: 0;
    z-index: 200;
    overflow-y: auto;
    overflow-x: hidden;
    transition: width .22s ease;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,.14) transparent;
}
/* Thin, theme-matched scrollbar (WebKit) */
.sidebar::-webkit-scrollbar { width: 8px; }
.sidebar::-webkit-scrollbar-track { background: transparent; }
.sidebar::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,.10);
    border-radius: 8px;
    border: 2px solid transparent;
    background-clip: content-box;
}
.sidebar:hover::-webkit-scrollbar-thumb { background: rgba(255,255,255,.18); background-clip: content-box; }
.sidebar-content {
    margin-left: var(--sidebar-w);
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    transition: margin-left .22s ease;
}

/* ── Mobile top bar + off-canvas drawer (hidden on desktop) ── */
.mobile-topbar { display: none; }
.sidebar-overlay { display: none; }

@media (max-width: 768px) {
    /* body.has-sidebar is a ROW flex container (sidebar + content on desktop). On mobile
       the sidebar goes position:fixed off-canvas, but the now-visible .mobile-topbar would
       otherwise become an in-flow flex ITEM sitting as a tall side column (~40% width) next
       to the content. Switch to a column so the top bar is a full-width strip above content. */
    body.has-sidebar { flex-direction: column; }

    .mobile-topbar {
        display: flex; align-items: center; gap: 12px; width: 100%;
        position: sticky; top: 0; z-index: 210;
        background: #0f172a; color: #f1f5f9; padding: 10px 16px;
    }
    .mobile-burger { background: none; border: none; color: #f1f5f9; font-size: 22px; cursor: pointer; line-height: 1; padding: 0; }
    .mobile-topbar-title { font-size: 14px; font-weight: 600; }

    /* Sidebar slides off-canvas; content takes full width. */
    .sidebar {
        transform: translateX(-100%);
        width: 260px;
        transition: transform .22s ease;
        box-shadow: 0 0 30px rgba(0,0,0,.4);
    }
    body.sidebar-open .sidebar { transform: translateX(0); }
    .sidebar-content { margin-left: 0 !important; }
    body.sidebar-collapsed .sidebar-content { margin-left: 0 !important; }

    /* Desktop collapse toggle is irrelevant on mobile. */
    .sidebar-toggle { display: none; }

    .sidebar-overlay {
        position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 199;
    }
    body.sidebar-open .sidebar-overlay { display: block; }
}

/* ── Collapsed sidebar ── */
.sidebar.collapsed {
    width: var(--sidebar-collapsed-w);
}
body.sidebar-collapsed .sidebar-content {
    margin-left: var(--sidebar-collapsed-w);
}
.sidebar.collapsed .sidebar-brand-title,
.sidebar.collapsed .sidebar-brand-sub,
.sidebar.collapsed .sidebar-link span:not(.sidebar-icon),
.sidebar.collapsed .sidebar-footer .sidebar-status span:not(.status-dot),
.sidebar.collapsed .sidebar-logout {
    display: none;
}
.sidebar.collapsed .sidebar-brand { padding: 18px 10px 14px; justify-content: center; }
.sidebar.collapsed .sidebar-brand-icon { margin: 0; }
.sidebar.collapsed .sidebar-nav { padding: 10px 4px; }
.sidebar.collapsed .sidebar-link { padding: 10px 0; justify-content: center; }
.sidebar.collapsed .sidebar-icon { width: auto; margin: 0; }
.sidebar.collapsed .sidebar-footer { align-items: center; padding: 12px 4px 16px; }
.sidebar.collapsed .sidebar-status { justify-content: center; }

/* ── Sidebar toggle button ── */
.sidebar-toggle {
    position: absolute; top: 16px; right: -12px;
    width: 24px; height: 24px; border-radius: 50%;
    background: #1e293b; border: 1px solid rgba(255,255,255,.12);
    color: #94a3b8; display: flex; align-items: center; justify-content: center;
    cursor: pointer; z-index: 201; transition: all .15s;
    font-size: 12px; line-height: 1;
}
.sidebar-toggle:hover { background: #334155; color: #e2e8f0; }
.sidebar.collapsed .sidebar-toggle { right: -12px; }

/* Sidebar brand */
.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 18px 16px 14px;
    border-bottom: 1px solid rgba(255,255,255,.07);
}
.sidebar-brand-icon {
    width: 34px; height: 34px;
    background: #1877F2;
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}

/* MeshTack logo used inside brand icon containers (sidebar, login, register, landing).
   The emblem is full-colour on a transparent background, so the coloured box behind it
   is removed and the image is contained within the slot. */
.has-logo { background: transparent !important; }
.brand-logo-img { width: 100%; height: 100%; object-fit: contain; display: block; }
.sidebar-brand-title { font-size: 13px; font-weight: 600; color: #f1f5f9; }
.sidebar-brand-sub   { font-size: 11px; color: #64748b; margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 130px; }

/* Persona switcher (SuperAdmin) — segmented pill toggle */
.persona-switcher {
    display: flex;
    gap: 3px;
    margin: 10px;
    padding: 3px;
    background: rgba(255,255,255,.05);
    border-radius: 9px;
}
.persona-btn {
    flex: 1;
    padding: 6px 8px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-family: 'Sora', sans-serif;
    font-size: 11px;
    font-weight: 600;
    color: #93a1b8;
    background: transparent;
    transition: color .14s ease, background .14s ease, box-shadow .14s ease;
}
.persona-btn:hover { color: #dbe4f0; }
.persona-btn.active {
    background: linear-gradient(180deg, #2b8bff, #1877F2);
    color: #fff;
    box-shadow: 0 2px 6px rgba(24,119,242,.35);
}
.sidebar.collapsed .persona-switcher { display: none; }

/* Sidebar nav */
.sidebar-nav    { flex: 1; padding: 10px 8px; }
.sidebar-section { display: flex; flex-direction: column; gap: 2px; }
.sidebar-divider { border: none; border-top: 1px solid rgba(255,255,255,.06); margin: 10px 8px; }

.sidebar-link {
    position: relative;
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 8px 11px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    color: #9aa7bd;
    transition: background .14s ease, color .14s ease;
    text-decoration: none;
}
.sidebar-link:hover { background: rgba(255,255,255,.055); color: #eef3fb; }
.sidebar-link:hover .sidebar-icon { transform: scale(1.08); }
.sidebar-link.active {
    background: linear-gradient(90deg, rgba(24,119,242,.28), rgba(24,119,242,.09));
    color: #fff;
    font-weight: 600;
    box-shadow: inset 0 0 0 1px rgba(24,119,242,.32);
}
/* Glowing accent bar on the active item */
.sidebar-link.active::before {
    content: "";
    position: absolute; left: 3px; top: 50%;
    transform: translateY(-50%);
    width: 3px; height: 17px;
    border-radius: 3px;
    background: #3b9dff;
    box-shadow: 0 0 8px rgba(59,157,255,.65);
}
.sidebar-icon {
    font-size: 15px; width: 22px; text-align: center; flex-shrink: 0;
    transition: transform .14s ease;
}

/* Collapsible nav groups */
.sidebar-group { display: flex; flex-direction: column; }
.sidebar-group + .sidebar-group { border-top: 1px solid rgba(255,255,255,.045); }
.sidebar-group-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    background: none;
    border: none;
    cursor: pointer;
    padding: 7px 10px;
    margin: 7px 0 2px;
    border-radius: 7px;
    font-family: 'Sora', sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .07em;
    text-transform: uppercase;
    color: #5f6f8a;
    transition: color .14s ease, background .14s ease;
}
.sidebar-group:first-child .sidebar-group-header { margin-top: 0; }
.sidebar-group-header:hover { color: #b3c0d6; background: rgba(255,255,255,.04); }
.sidebar-group-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sidebar-group-caret {
    font-size: 9px; color: #48566f; flex-shrink: 0;
    transition: transform .2s ease, color .14s ease;
}
.sidebar-group-header:hover .sidebar-group-caret { color: #8695ae; }
.sidebar-group.collapsed .sidebar-group-caret { transform: rotate(-90deg); }
.sidebar-group-items { display: flex; flex-direction: column; gap: 2px; }
.sidebar-group.collapsed .sidebar-group-items { display: none; }

/* Icon-rail (whole sidebar collapsed): hide group headers, always show item icons */
.sidebar.collapsed .sidebar-group-header { display: none; }
.sidebar.collapsed .sidebar-group.collapsed .sidebar-group-items { display: flex; }
.sidebar.collapsed .sidebar-group { margin-top: 6px; }
.sidebar.collapsed .sidebar-group + .sidebar-group { border-top-color: rgba(255,255,255,.07); }

/* Sidebar footer */
.sidebar-footer {
    padding: 12px 12px 16px;
    border-top: 1px solid rgba(255,255,255,.07);
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.sidebar-status { display: flex; align-items: center; gap: 6px; }
.sidebar-logout {
    width: 100%;
    padding: 7px 10px;
    background: rgba(255,255,255,.06);
    border: none;
    border-radius: 7px;
    color: #94a3b8;
    font-size: 12px;
    cursor: pointer;
    text-align: left;
    font-family: 'Sora', sans-serif;
    transition: background .12s;
}
.sidebar-logout:hover { background: rgba(255,255,255,.1); color: #e2e8f0; }

/* Main content area */
.main-content { padding: 28px 28px; flex: 1; }

/* ── Navbar (kept for standalone pages that don't use sidebar) ── */
.navbar { background: #fff; border-bottom: 0.5px solid #e0ddd6; position: sticky; top: 0; z-index: 100; }
.nav-inner { max-width: 1280px; margin: 0 auto; padding: 0 24px; height: 56px; display: flex; align-items: center; gap: 32px; }
.nav-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-icon { width: 32px; height: 32px; background: #1877F2; border-radius: 8px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.brand-title { font-size: 15px; font-weight: 600; color: #1a1a18; display: block; line-height: 1.2; }
.brand-sub { font-size: 11px; color: #888; display: block; }
.nav-links { display: flex; gap: 4px; margin-left: 16px; }
.nav-link { padding: 6px 12px; border-radius: 6px; font-size: 13px; color: #666; transition: all .12s; }
.nav-link:hover { background: #f4f2ee; color: #1a1a18; }
.nav-link.active { background: #f4f2ee; color: #1877F2; font-weight: 500; }
.nav-status { margin-left: auto; display: flex; align-items: center; gap: 6px; font-size: 12px; color: #888; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: #22c55e; animation: pulse 2s infinite; }
@keyframes pulse { 0%,100%{opacity:1}50%{opacity:.4} }

/* ── Layout ── */
.main-content { max-width: 1280px; margin: 0 auto; padding: 28px 24px; }
/* Sidebar layout uses the FULL width — the 1280 cap + centering above is only for
   standalone navbar pages (login/marketing). Scoped + higher specificity so it wins
   regardless of source order, without touching those standalone pages. */
body.has-sidebar .main-content { width: 100%; max-width: none; margin: 0; }
.footer { text-align: center; padding: 24px; font-size: 12px; color: #aaa; border-top: 0.5px solid #e0ddd6; margin-top: 40px; }
.footer a { color: #1877F2; }

/* ── Alerts ── */
.alert { padding: 10px 16px; border-radius: 8px; font-size: 13px; margin-bottom: 16px; }
.alert-success { background: #f0fdf4; color: #166534; border: 0.5px solid #bbf7d0; }
.alert-error { background: #fef2f2; color: #991b1b; border: 0.5px solid #fecaca; }

/* ── Page header ── */
.page-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.page-title { font-size: 22px; font-weight: 600; color: #1a1a18; }
.page-sub { font-size: 13px; color: #888; margin-top: 2px; }
.product-header { display: flex; align-items: center; gap: 14px; }
.product-icon-lg { font-size: 32px; line-height: 1; }
.header-actions { display: flex; gap: 8px; }

/* ── Stats ── */
.stats-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 12px; margin-bottom: 20px; }
.stat-card { background: #fff; border: 0.5px solid #e0ddd6; border-radius: 10px; padding: 16px; }
.stat-label { font-size: 11px; font-weight: 500; color: #888; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 6px; }
.stat-value { font-size: 28px; font-weight: 600; color: #1a1a18; }
.accent-green { color: #16a34a; }
.accent-blue { color: #1877F2; }

/* ── Cards ── */
.card { background: #fff; border: 0.5px solid #e0ddd6; border-radius: 12px; overflow: hidden; }
.card.p-0 { padding: 0; }
.card-padded { padding: 24px; }       /* use on .card for standalone/login pages */
.card.mb-16 { margin-bottom: 16px; }
.card.mt-16 { margin-top: 16px; }
.card-header { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; border-bottom: 0.5px solid #e0ddd6; }
.card-title { font-size: 13px; font-weight: 600; color: #1a1a18; }
.card-link { font-size: 12px; color: #1877F2; }
.card-count { font-size: 12px; color: #888; background: #f4f2ee; padding: 2px 8px; border-radius: 10px; }

/* ── Two column ── */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* ── Subscription list ── */
.sub-list { padding: 8px; }
.sub-row { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 8px; cursor: pointer; transition: background .12s; }
.sub-row:hover { background: #f9f8f5; }
.sub-icon { font-size: 20px; width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; background: #f4f2ee; border-radius: 8px; }
.sub-info { flex: 1; }
.sub-name { font-size: 13px; font-weight: 500; }
.sub-meta { font-size: 11px; color: #888; }

/* ── Badges ── */
.badge { font-size: 11px; padding: 3px 8px; border-radius: 10px; font-weight: 500; }
.badge-on { background: #f0fdf4; color: #16a34a; border: 0.5px solid #bbf7d0; }
.badge-off { background: #f4f2ee; color: #888; border: 0.5px solid #e0ddd6; }
.status-badge { display: inline-block; font-size: 11px; font-weight: 600; padding: 2px 10px; border-radius: 20px; }
.status-badge.active   { background: #dcfce7; color: #16a34a; }
.status-badge.inactive { background: #fee2e2; color: #dc2626; }

/* ── Event list ── */
.event-list { padding: 8px 12px; }
.event-row { display: flex; align-items: center; gap: 8px; padding: 6px 0; border-bottom: 0.5px solid #f0ede8; font-size: 12px; }
.event-row:last-child { border-bottom: none; }
.ev-badge { padding: 2px 6px; border-radius: 4px; font-size: 10px; font-weight: 500; flex-shrink: 0; }
.ev-incoming { background: #f0fdf4; color: #16a34a; }
.ev-verify { background: #eff6ff; color: #1877F2; }
.ev-test { background: #faf5ff; color: #7c3aed; }
.ev-error { background: #fef2f2; color: #dc2626; }
.ev-product { font-weight: 500; flex-shrink: 0; }
.ev-field { color: #888; font-family: 'IBM Plex Mono', monospace; flex: 1; }
.ev-sig { font-size: 11px; }
.ev-time { color: #aaa; font-size: 11px; white-space: nowrap; }
.sig-ok { color: #16a34a; }
.sig-fail { color: #dc2626; }

/* ── Bar chart ── */
.bar-chart { padding: 12px 18px; }
.bar-row { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.bar-label { width: 120px; font-size: 12px; color: #666; text-align: right; }
.bar-track { flex: 1; height: 10px; background: #f4f2ee; border-radius: 5px; overflow: hidden; }
.bar-fill { height: 100%; background: #1877F2; border-radius: 5px; transition: width .4s; }
.bar-count { width: 30px; font-size: 12px; font-weight: 500; }

/* ── Test grid ── */
.test-grid { display: flex; flex-wrap: wrap; gap: 8px; padding: 14px 18px; }

/* ── Buttons ── */
.btn { display: inline-flex; align-items: center; gap: 6px; padding: 8px 16px; border-radius: 8px; font-size: 13px; font-weight: 500; cursor: pointer; border: none; transition: all .12s; font-family: 'Sora', sans-serif; }
.btn-primary { background: #1877F2; color: #fff; }
.btn-primary:hover { background: #1464d8; }
.btn-outline { background: #fff; color: #1a1a18; border: 0.5px solid #d0cdc6; }
.btn-outline:hover { background: #f9f8f5; }
.btn-secondary { background: #f4f2ee; color: #1a1a18; border: 0.5px solid #d0cdc6; }
.btn-secondary:hover { background: #e8e5e0; }
.btn-success { background: #16a34a; color: #fff; }
.btn-success:hover { background: #15803d; }
.btn-danger { background: #fee2e2; color: #991b1b; border: 0.5px solid #fecaca; }
.btn-danger:hover { background: #fecaca; }
.btn-sm { padding: 6px 12px; font-size: 12px; }
.btn-xs { padding: 4px 8px; font-size: 11px; }

/* ── Form ── */
.form-layout { max-width: 860px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding: 16px 18px; }
.form-group { display: flex; flex-direction: column; gap: 5px; margin-bottom: 16px; }
.form-group:last-child { margin-bottom: 0; }
.form-group.span-2 { grid-column: span 2; }
.form-grid .form-group { margin-bottom: 0; }  /* gap handles spacing in grid context */
.form-label { font-size: 12px; font-weight: 500; color: #444; }
.form-input { padding: 8px 12px; border: 0.5px solid #d0cdc6; border-radius: 8px; font-size: 13px; background: #fff; font-family: 'Sora', sans-serif; transition: border .12s; }
.form-input:focus { outline: none; border-color: #1877F2; box-shadow: 0 0 0 3px rgba(24,119,242,.1); }
.form-input-sm { padding: 6px 10px; border: 0.5px solid #d0cdc6; border-radius: 6px; font-size: 12px; background: #fff; font-family: 'Sora', sans-serif; }
/* .form-control — used across all views as generic input/select/textarea class */
.form-control { display: block; width: 100%; padding: 8px 12px; border: 0.5px solid #d0cdc6; border-radius: 8px; font-size: 13px; background: #fff; font-family: 'Sora', sans-serif; color: #1a1a18; transition: border .12s; }
.form-control:focus { outline: none; border-color: #1877F2; box-shadow: 0 0 0 3px rgba(24,119,242,.1); }
.form-control[readonly] { background: #f9f8f5; color: #888; cursor: default; }
textarea.form-control { resize: vertical; line-height: 1.5; }
select.form-control { appearance: auto; cursor: pointer; }
.form-hint { font-size: 11px; color: #aaa; }
.field-error { display: block; font-size: 11px; color: #dc2626; margin-top: 3px; }
.required { color: #dc2626; }
.form-actions { display: flex; gap: 10px; margin-top: 4px; }

/* ── Product picker ── */
.product-picker { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; padding: 16px 18px; }
.product-card { display: flex; flex-direction: column; align-items: center; padding: 14px; border: 0.5px solid #e0ddd6; border-radius: 10px; cursor: pointer; transition: all .12s; text-align: center; }
.product-card:hover { border-color: #b0aaa0; background: #fafaf8; }
.product-card.selected { border-color: #1877F2; background: #eff6ff; }
.product-card input { display: none; }
.pc-icon { font-size: 24px; margin-bottom: 6px; }
.pc-name { font-size: 12px; font-weight: 600; margin-bottom: 2px; }
.pc-desc { font-size: 11px; color: #888; }

/* ── Fields ── */
.fields-group { padding: 14px 18px; }
.fields-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 6px; }
.field-check { display: flex; align-items: center; gap: 8px; padding: 6px 10px; border: 0.5px solid #e0ddd6; border-radius: 7px; cursor: pointer; font-size: 12px; transition: all .12s; }
.field-check:hover { border-color: #b0aaa0; }
.field-check.checked { border-color: #1877F2; background: #eff6ff; }
.field-check input { display: none; }
.check-box { width: 14px; height: 14px; border: 1.5px solid #ccc; border-radius: 3px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; transition: all .12s; }
.field-check.checked .check-box { background: #1877F2; border-color: #1877F2; }
.check-svg { display: none; }
.field-check.checked .check-svg { display: block; }
.fields-empty { padding: 20px 18px; font-size: 13px; color: #aaa; }
.field-actions { display: flex; gap: 6px; }
.field-tags { display: flex; flex-wrap: wrap; gap: 4px; }
.field-tag { background: #f4f2ee; color: #555; font-size: 10px; padding: 2px 6px; border-radius: 4px; font-family: 'IBM Plex Mono', monospace; }
.field-tag.more { background: #eff6ff; color: #1877F2; }
.field-tag-lg { display: inline-block; background: #f4f2ee; color: #444; font-size: 12px; padding: 4px 10px; border-radius: 6px; font-family: 'IBM Plex Mono', monospace; margin: 4px; }
.fields-display { padding: 14px 18px; }

/* ── Data table ── */
.data-table { width: 100%; border-collapse: collapse; }
.data-table th { padding: 10px 16px; font-size: 11px; font-weight: 600; color: #888; text-align: left; border-bottom: 0.5px solid #e0ddd6; background: #fafaf8; text-transform: uppercase; letter-spacing: .04em; }
.data-table td { padding: 12px 16px; font-size: 13px; border-bottom: 0.5px solid #f0ede8; vertical-align: middle; }
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: #fafaf8; }
.product-cell { display: flex; align-items: center; gap: 8px; }
.product-icon-sm { font-size: 16px; }
.product-name { font-weight: 500; }
.mono { font-family: 'IBM Plex Mono', monospace; font-size: 12px; }
.truncate { max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; }
.text-muted { color: #aaa; }
.small { font-size: 11px; }
.time-ago { color: #888; font-size: 12px; }

/* ── Actions ── */
.action-row { display: flex; align-items: center; gap: 4px; }
.action-btn { background: none; border: 0.5px solid transparent; border-radius: 6px; padding: 4px 8px; cursor: pointer; font-size: 14px; transition: all .12s; }
.action-btn:hover { background: #f4f2ee; border-color: #e0ddd6; }
.action-btn.danger:hover { background: #fef2f2; border-color: #fecaca; }

/* ── Detail table ── */
.detail-table { padding: 8px 0; }
.dt-row { display: flex; padding: 10px 18px; border-bottom: 0.5px solid #f0ede8; }
.dt-row:last-child { border-bottom: none; }
.dt-key { width: 140px; font-size: 12px; color: #888; flex-shrink: 0; }
.dt-val { font-size: 13px; color: #1a1a18; flex: 1; word-break: break-all; }

/* ── Endpoint box ── */
.endpoint-box { padding: 14px 18px; }
.endpoint-row { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.method { font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 4px; }
.method.get { background: #f0fdf4; color: #16a34a; }
.method.post { background: #eff6ff; color: #1877F2; }
.endpoint-note { font-size: 11px; color: #aaa; margin-left: auto; }

/* ── Event detail ── */
.event-detail-list { padding: 8px 12px; }
.ev-detail-row { border-bottom: 0.5px solid #f0ede8; cursor: pointer; }
.ev-detail-row:last-child { border-bottom: none; }
.ev-detail-header { display: flex; align-items: center; gap: 8px; padding: 8px 4px; }
.ev-field-name { font-family: 'IBM Plex Mono', monospace; font-size: 12px; flex: 1; }
.ev-sig-icon { font-size: 11px; }
.ev-ts { font-size: 11px; color: #aaa; }
.ev-payload { padding: 0 4px 10px; }
.payload-pre { font-family: 'IBM Plex Mono', monospace; font-size: 11px; background: #f9f8f5; padding: 12px; border-radius: 8px; overflow-x: auto; white-space: pre-wrap; border: 0.5px solid #e8e4dc; color: #444; line-height: 1.7; }
.payload-row td { padding: 0; background: #fafaf8; }

/* ── Empty states ── */
.empty-state { text-align: center; padding: 32px 20px; color: #888; }
.empty-state.large { padding: 60px 20px; }
.empty-icon { font-size: 32px; margin-bottom: 10px; }
.empty-state p { font-size: 13px; margin-bottom: 14px; }

/* ═══════════════════════════════════════════════════════════════
   SUPER ADMIN – shared nav & layout
   ═══════════════════════════════════════════════════════════════ */

/* CSS Custom Properties (design tokens used across views) */
:root {
    --bg: #f4f2ee;
    --bg-card: #fff;
    --bg-card-alt: #f8fafc;
    --border: #e0ddd6;
    --text-secondary: #888;
    --text-muted: #aaa;
    --text-primary: #1a1a18;
    --text: #1a1a18;           /* alias — same as --text-primary */
    --accent: #1877F2;
    --accent-muted: #eff6ff;
    --surface-1: #fff;
    --surface-2: #fafaf8;
    --font-mono: 'IBM Plex Mono', monospace;
}

/* ── Super Admin Nav (left sidebar) ── */
.sa-nav { position: fixed; top: 0; left: 0; height: 100vh; width: 210px;
          background: #1e293b; padding: 20px 14px; display: flex; flex-direction: column;
          align-items: stretch; gap: 4px; overflow-y: auto; z-index: 100; }
.sa-brand { color: #fff; font-weight: 700; font-size: 15px; padding: 6px 10px 14px;
            margin-bottom: 8px; border-bottom: 1px solid rgba(255,255,255,.08); }
.sa-nav a { color: #94a3b8; font-size: 13px; text-decoration: none; padding: 9px 12px;
            border-radius: 6px; display: block; }
.sa-nav a:hover, .sa-nav a.active { color: #fff; background: rgba(255,255,255,.1); }
.sa-nav .logout { margin-top: auto; padding-top: 12px; }
.sa-nav .logout button { width: 100%; }
.sa-logout-btn { width: 100%; background: rgba(255,255,255,.1); border: none; color: #94a3b8;
                 padding: 9px 12px; border-radius: 6px; cursor: pointer; font-size: 13px; }
.sa-logout-btn:hover { color: #fff; background: rgba(255,255,255,.18); }

/* ── Super Admin main (offset for left sidebar) ── */
.sa-main, .main { max-width: 1100px; margin: 0 auto 0 210px; padding: 32px 24px; }

/* Collapse SA sidebar to a single scrollable top strip on small screens.
   nowrap + overflow-x keeps it one row (instead of a tall wrapped stack) so it
   doesn't eat vertical space; items stay full-size and swipe horizontally. */
@media (max-width: 768px) {
    .sa-nav { position: sticky; top: 0; height: auto; width: auto; flex-direction: row;
              flex-wrap: nowrap; align-items: center; gap: 6px; padding: 10px 14px;
              overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .sa-nav::-webkit-scrollbar { height: 0; }
    .sa-brand { width: auto; flex: 0 0 auto; border-bottom: none; padding: 4px 8px; margin-bottom: 0; }
    .sa-nav a { flex: 0 0 auto; white-space: nowrap; }
    .sa-nav .logout { flex: 0 0 auto; margin-top: 0; margin-left: 4px; padding-top: 0; }
    .sa-nav .logout button { width: auto; white-space: nowrap; }
    .sa-main, .main { margin-left: auto; }
}

/* ── Row actions dropdown (collapses a pile of buttons into one menu) ── */
.row-actions { position: relative; display: inline-block; }
.ra-toggle { white-space: nowrap; }
.ra-menu {
    display: none; position: absolute; right: 0; top: calc(100% + 4px); z-index: 50;
    min-width: 190px; background: #fff; border: 1px solid var(--border); border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0,0,0,.12); padding: 6px; flex-direction: column; gap: 2px;
}
.ra-menu.open { display: flex; }
.ra-menu form { margin: 0; }
.ra-item {
    display: block; width: 100%; text-align: left; box-sizing: border-box;
    padding: 8px 10px; font-size: 13px; color: var(--text-primary); background: transparent;
    border: none; border-radius: 6px; cursor: pointer; text-decoration: none; white-space: nowrap;
}
.ra-item:hover { background: var(--surface-2); }
.ra-item.ra-danger { color: #dc2626; }
.ra-item.ra-danger:hover { background: #fef2f2; }
.ra-item.ra-ok { color: #047857; }
.ra-divider { height: 1px; background: var(--border); margin: 4px 2px; }

/* ── Global responsive: grids collapse, tables scroll, actions wrap on phones ── */
@media (max-width: 768px) {
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .two-col    { grid-template-columns: 1fr; }
    .grid2      { grid-template-columns: 1fr; }
    .page-header { flex-direction: column; align-items: flex-start; gap: 12px; }
    .main-content { padding: 18px 14px; }
    .sa-main, .main { padding: 18px 14px; }
    .dash-switch { flex-wrap: wrap; }

    /* Multi-column form / picker grids stack (or halve) so they never overflow. */
    .form-grid      { grid-template-columns: 1fr; }
    .form-actions   { flex-wrap: wrap; }
    .header-actions { flex-wrap: wrap; }
    .product-picker { grid-template-columns: repeat(2, 1fr); }
    .fields-grid    { grid-template-columns: repeat(2, 1fr); }

    /* Tab bars scroll sideways instead of wrapping into a tall block. */
    .tab-bar { overflow-x: auto; -webkit-overflow-scrolling: touch; flex-wrap: nowrap; }
    .tab-bar::-webkit-scrollbar { height: 0; }
    .tab { flex: 0 0 auto; white-space: nowrap; }

    /* Key/value detail rows stack their label above the value. */
    .dt-row { flex-direction: column; gap: 2px; }
    .dt-key { width: auto; }

    /* Wide tables become their own horizontal scroll area so they never push the
       page sideways. Applies to every table inside a content area (covers .table,
       .sa-table, .data-table and page-specific table classes) without per-view edits.
       display:block + width:max-content keeps ONE table layout (columns stay aligned
       between header and body) while letting the table scroll inside its container. */
    .main-content table, .main table, .sa-main table {
        display: block; width: max-content; max-width: 100%;
        overflow-x: auto; -webkit-overflow-scrolling: touch;
    }

    /* Many pages use inline two-column layouts (e.g. "1fr 360px" main+sidebar) that a
       media query can't reach because the style is inline. Force any inline grid inside
       a content area to a single column on phones so the sidebar panel stacks below. */
    .main-content [style*="grid-template-columns"],
    .main [style*="grid-template-columns"],
    .sa-main [style*="grid-template-columns"] { grid-template-columns: 1fr !important; }

    /* Right-aligned dropdowns can overflow a narrow table cell — anchor left there. */
    .sa-table .ra-menu, .table .ra-menu { right: auto; left: 0; }
}
@media (max-width: 480px) {
    .stats-grid     { grid-template-columns: 1fr; }
    .product-picker { grid-template-columns: 1fr; }
    .fields-grid    { grid-template-columns: 1fr; }
}

/* ── Grid ── */
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media (max-width: 700px) { .grid2 { grid-template-columns: 1fr; } }

/* ── Panel ── */
.panel { background: #fff; border: 1px solid var(--border); border-radius: 10px; padding: 20px; }
.panel h3 { font-size: 14px; font-weight: 700; margin: 0 0 16px; }

/* ── Tables (.table and .sa-table share one look across SA + tenant pages) ── */
.sa-table, .table { width: 100%; border-collapse: collapse; font-size: 13px; }
.sa-table th, .table th { text-align: left; padding: 10px 12px; font-size: 11px; font-weight: 600;
               text-transform: uppercase; color: var(--text-secondary); border-bottom: 1px solid var(--border); }
.sa-table td, .table td { padding: 12px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.sa-table tr:hover td, .table tr:hover td { background: var(--bg); }
.table thead th { background: var(--surface-2); }

/* ── SA Badges ── */
.badge-on { background: #d1fae5; color: #065f46; border-radius: 99px; font-size: 10px; padding: 2px 8px; font-weight: 600; }
.badge-off { background: #fee2e2; color: #991b1b; border-radius: 99px; font-size: 10px; padding: 2px 8px; font-weight: 600; }

/* ── SA Action btn ── */
.sa-action-btn { font-size: 11px; padding: 4px 10px; border-radius: 4px; cursor: pointer;
                 border: 1px solid var(--border); background: var(--bg); margin-right: 4px; }
.slug-cell { font-family: var(--font-mono); font-size: 12px; }

/* ── SA inline edit row (full-width expander under a table row) ── */
.sa-edit-row > td { padding: 0 12px 16px; background: var(--bg); }
.sa-edit-row:hover > td { background: var(--bg); }
.sa-edit { background: #fff; border: 1px solid var(--border); border-radius: 8px; padding: 18px 20px; }
.sa-edit h4 { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em;
              color: var(--text-secondary); margin: 0 0 12px; }
.sa-edit-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: start; }
@media (max-width: 900px) { .sa-edit-cols { grid-template-columns: 1fr; gap: 20px; } }
.sa-edit .form-group { margin-bottom: 12px; }
.sa-edit .form-label { font-size: 12px; }
.sa-edit-check { display: flex; align-items: center; gap: 8px; font-size: 12px; cursor: pointer; margin-bottom: 8px; }
.sa-edit-check input { width: auto; }
.sa-edit-foot { display: flex; justify-content: flex-end; gap: 8px;
                border-top: 1px solid var(--border); margin-top: 16px; padding-top: 14px; }
.sa-edit-assign { border-top: 1px solid var(--border); margin-top: 16px; padding-top: 14px; }
.sa-edit-assign form { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; max-width: 520px; }

/* ═══════════════════════════════════════════════════════════════
   SUPER ADMIN – Registrations
   ═══════════════════════════════════════════════════════════════ */
.tab-bar { display: flex; gap: 8px; margin-bottom: 24px; border-bottom: 1px solid var(--border); padding-bottom: 0; }
.tab { padding: 10px 18px; font-size: 13px; font-weight: 500; cursor: pointer;
       border: none; background: none; border-bottom: 2px solid transparent;
       margin-bottom: -1px; color: var(--text-secondary); }
.tab.active { color: var(--accent); border-bottom-color: var(--accent); }
.tab-pane { display: none; }
.tab-pane.active { display: block; }
.badge-count { background: var(--accent); color: #fff; border-radius: 99px; font-size: 10px; padding: 1px 7px; margin-left: 6px; }

.reg-card { background: var(--bg-card, #fff); border: 1px solid var(--border); border-radius: 10px; padding: 18px 20px; margin-bottom: 12px; }
.reg-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.reg-company { font-size: 15px; font-weight: 600; }
.reg-slug { font-family: var(--font-mono); font-size: 12px; background: var(--bg); border: 1px solid var(--border); padding: 2px 8px; border-radius: 4px; }
.reg-meta { font-size: 12px; color: var(--text-secondary); margin-top: 6px; }
.reg-desc { font-size: 12px; color: var(--text-secondary); margin-top: 8px; background: var(--bg); border-radius: 6px; padding: 8px 10px; border: 1px solid var(--border); }
.reg-actions { display: flex; gap: 8px; align-items: center; }
.btn-approve { background: #16a34a; color: #fff; border: none; padding: 7px 14px; border-radius: 6px; font-size: 12px; font-weight: 600; cursor: pointer; text-decoration: none; }
.btn-reject { background: #dc2626; color: #fff; border: none; padding: 7px 14px; border-radius: 6px; font-size: 12px; font-weight: 600; cursor: pointer; text-decoration: none; }
.status-pill { font-size: 11px; padding: 3px 10px; border-radius: 99px; font-weight: 500; }
.pill-approved { background: #d1fae5; color: #065f46; }
.pill-rejected { background: #fee2e2; color: #991b1b; }
.pill-pending { background: #fef9c3; color: #854d0e; }
.empty-state-reg { text-align: center; padding: 40px 20px; color: var(--text-secondary); font-size: 14px; }

/* ═══════════════════════════════════════════════════════════════
   SUPER ADMIN – Login / centred card pages (Reject, AddAdmin, Approve)
   ═══════════════════════════════════════════════════════════════ */
.sa-centered { display: flex; align-items: center; justify-content: center; min-height: 100vh; background: var(--bg); }
.sa-card { width: min(380px, 95vw); }
.sa-brand-block { text-align: center; margin-bottom: 32px; }
.sa-icon { width: 52px; height: 52px; background: #1e293b; border-radius: 14px; display: flex; align-items: center; justify-content: center; margin: 0 auto 12px; font-size: 24px; }
.sa-title { font-size: 20px; font-weight: 600; }
.sa-sub { font-size: 12px; color: var(--text-secondary); margin-top: 4px; font-family: var(--font-mono); }
.card-wide { width: min(480px, 95vw); }

/* ═══════════════════════════════════════════════════════════════
   AUTH – Login & Verify
   ═══════════════════════════════════════════════════════════════ */
.auth-centered { display: flex; align-items: center; justify-content: center; min-height: 100vh; background: var(--bg); }
.login-card { width: min(400px, 95vw); }
.login-brand { text-align: center; margin-bottom: 32px; }
.login-brand-icon { width: 52px; height: 52px; background: var(--accent); border-radius: 14px; display: flex; align-items: center; justify-content: center; margin: 0 auto 12px; }
.login-title { font-size: 20px; font-weight: 600; }
.login-sub { font-size: 13px; color: var(--text-secondary); margin-top: 4px; }
.step-indicator { display: flex; gap: 8px; margin-bottom: 24px; }
.step { flex: 1; height: 3px; border-radius: 99px; background: var(--border); transition: background .3s; }
.step.active { background: var(--accent); }
.step.done { background: var(--accent); opacity: .5; }
.wa-hint { background: #d1fae5; border: 1px solid #6ee7b7; border-radius: 8px; padding: 10px 14px; font-size: 12px; color: #065f46; margin-bottom: 16px; }

/* OTP boxes (Auth/Verify) */
.otp-inputs { display: flex; flex-wrap: nowrap; gap: 10px; margin-bottom: 20px; }
.otp-box { flex: 1; min-width: 0; max-width: 52px; height: 52px; text-align: center;
           font-size: 20px; font-family: 'IBM Plex Mono', monospace; font-weight: 600;
           border: 2px solid var(--border); border-radius: 8px; background: var(--surface-1);
           color: var(--text-primary); outline: none; transition: border-color .15s; padding: 0; }
.otp-box:focus { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 15%, transparent); }
.otp-box.filled { border-color: var(--accent); background: var(--accent-muted, #eff6ff); }
.timer { font-size: 12px; color: var(--text-secondary); text-align: center; margin-bottom: 16px; }
.timer.expired { color: #dc2626; }
.resend-btn { background: none; border: none; color: var(--accent); font-size: 13px; cursor: pointer; text-decoration: underline; padding: 0; }
.resend-btn:disabled { color: var(--text-muted); text-decoration: none; cursor: default; }

/* ═══════════════════════════════════════════════════════════════
   REGISTER – Index, Verify, Success
   ═══════════════════════════════════════════════════════════════ */
.reg-centered { display: flex; align-items: center; justify-content: center; min-height: 100vh; background: var(--bg); padding: 24px 0; }
.reg-card { width: min(520px, 95vw); }
.reg-brand { text-align: center; margin-bottom: 32px; }
.reg-brand-icon { width: 52px; height: 52px; background: var(--accent); border-radius: 14px; display: flex; align-items: center; justify-content: center; margin: 0 auto 12px; }
.reg-title { font-size: 20px; font-weight: 600; }
.reg-sub { font-size: 13px; color: var(--text-secondary); margin-top: 4px; }
.slug-row { display: flex; gap: 8px; align-items: flex-start; }
.slug-row .form-control { flex: 1; }
.slug-badge { font-size: 11px; padding: 3px 8px; border-radius: 99px; font-family: var(--font-mono); margin-top: 8px; display: inline-block; }
.slug-ok  { background: #d1fae5; color: #065f46; border: 1px solid #6ee7b7; }
.slug-err { background: #fee2e2; color: #991b1b; border: 1px solid #fca5a5; }
.slug-check { background: #fef9c3; color: #854d0e; border: 1px solid #fde047; }
.login-hint { text-align: center; margin-top: 20px; font-size: 13px; color: var(--text-secondary); }
.login-hint a { color: var(--accent); text-decoration: none; font-weight: 500; }

/* Register Verify – step bar */
.step-bar { display: flex; gap: 6px; margin-bottom: 24px; }
.step-bar .step { flex: 1; height: 3px; border-radius: 99px; background: var(--border); }
.step-bar .step.done { background: var(--accent); opacity: .5; }
.step-bar .step.active { background: var(--accent); }
.brand { text-align: center; margin-bottom: 28px; }

/* OTP boxes (Register/Verify – slightly taller) */
.otp-box-lg { flex: 1; height: 56px; text-align: center; font-size: 24px; font-family: 'IBM Plex Mono', monospace; font-weight: 600;
              border: 2px solid var(--border); border-radius: 10px; background: var(--surface-1); color: var(--text-primary);
              outline: none; transition: border-color .15s; }
.otp-box-lg:focus { border-color: var(--accent); }
.otp-box-lg.filled { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 8%, transparent); }

.summary-box { background: var(--surface-2); border: 1px solid var(--border); border-radius: 8px; padding: 12px 16px; margin-bottom: 20px; font-size: 13px; }
.summary-row { display: flex; justify-content: space-between; padding: 3px 0; }
.summary-lbl { color: var(--text-secondary); }
.summary-val { font-weight: 500; }

/* Register Success */
.success-card { width: min(460px, 95vw); text-align: center; }
.success-icon { width: 72px; height: 72px; background: #d1fae5; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 24px; font-size: 32px; }
.success-title { font-size: 22px; font-weight: 700; margin-bottom: 8px; }
.success-sub { font-size: 14px; color: var(--text-secondary); line-height: 1.6; }
.info-box { background: var(--bg); border: 1px solid var(--border); border-radius: 10px; padding: 16px; margin: 24px 0; text-align: left; font-size: 13px; }
.info-row { display: flex; gap: 8px; margin-bottom: 6px; }
.info-label { color: var(--text-secondary); width: 80px; flex-shrink: 0; }
.info-val { font-weight: 500; font-family: var(--font-mono); }

/* ═══════════════════════════════════════════════════════════════
   BOT – Detail view
   ═══════════════════════════════════════════════════════════════ */
.drag-ghost { opacity: .4; background: var(--accent-muted) !important; }
.rule-disabled { opacity: .55; }

/* Dashboard Plan ⇄ Webhooks segmented switch */
.dash-switch { display: inline-flex; background: #f1f5f9; border-radius: 8px; padding: 3px; gap: 2px; }
.dash-tab { border: none; background: transparent; font-size: 12px; font-weight: 600; color: var(--text-secondary); padding: 6px 12px; border-radius: 6px; cursor: pointer; white-space: nowrap; }
.dash-tab.active { background: #fff; color: var(--text-primary); box-shadow: 0 1px 2px rgba(0,0,0,.08); }

/* Bot Detail: rules + add-rule form. Stacks on narrow screens. */
.bot-detail-grid { display: grid; grid-template-columns: 1fr 380px; gap: 24px; align-items: start; }
.rule-card:hover { border-color: var(--accent) !important; }
@media (max-width: 860px) {
    .bot-detail-grid { grid-template-columns: 1fr; }
    .bot-detail-grid .card[style*="sticky"] { position: static !important; }
}
.mt-2 { margin-top: 8px; }
.badge-success { background: #d1fae5; color: #065f46; }
.badge-neutral { background: var(--surface-3); color: var(--text-secondary); }
.badge-warning { background: #fef3c7; color: #92400e; }

/* ═══════════════════════════════════════════════════════════════
   SHARED UTILITIES — use these instead of inline styles
   ═══════════════════════════════════════════════════════════════ */
/* layout */
.u-flex          { display: flex; }
.u-flex-col      { display: flex; flex-direction: column; }
.u-between       { display: flex; align-items: center; justify-content: space-between; }
.u-items-center  { display: flex; align-items: center; }
.u-wrap          { flex-wrap: wrap; }
.u-grow          { flex: 1; }
.u-gap-4  { gap: 4px; }  .u-gap-8 { gap: 8px; }  .u-gap-12 { gap: 12px; }  .u-gap-16 { gap: 16px; }

/* spacing */
.u-mt-0 { margin-top: 0; }   .u-mt-4 { margin-top: 4px; }   .u-mt-8 { margin-top: 8px; }   .u-mt-16 { margin-top: 16px; }   .u-mt-24 { margin-top: 24px; }
.u-mb-0 { margin-bottom: 0; }.u-mb-4 { margin-bottom: 4px; }.u-mb-8 { margin-bottom: 8px; }.u-mb-16 { margin-bottom: 16px; }.u-mb-24 { margin-bottom: 24px; }

/* page header: title left, actions right */
.page-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.page-head h2 { margin: 0; }
.page-sub { color: var(--text-secondary); font-size: 13px; margin: 0 0 16px; }

/* text */
.u-muted   { color: var(--text-secondary); }
.u-dim     { color: var(--text-muted); }
.u-xs      { font-size: 11px; }
.u-sm      { font-size: 12px; }
.u-mono    { font-family: var(--font-mono); }
.u-strong  { font-weight: 600; }

/* misc */
.u-inline-form { display: inline-block; margin: 0; }
.u-right { text-align: right; }

/* ── Prepaid balance strip (layout chrome, every page) ─────────────────────────
   Metered features debit one shared wallet, so the balance sits in the chrome
   rather than on any single feature's page. Quiet when healthy; it only raises
   its voice (amber, then red, plus a CTA) once the balance can't buy much. */
.wallet-strip {
    display: flex; align-items: center; gap: 8px;
    padding: 7px 16px; font-size: 12.5px; text-decoration: none;
    background: #f0fdf4; color: #15803d; border-bottom: 1px solid #bbf7d0;
}
.wallet-strip:hover   { background: #dcfce7; }
.wallet-strip .ws-label  { color: var(--text-secondary); font-size: 11px;
                           text-transform: uppercase; letter-spacing: .03em; }
.wallet-strip .ws-amount { font-weight: 700; font-size: 13.5px; }
.wallet-strip .ws-cta    { margin-left: auto; font-weight: 600; text-decoration: underline; }

.wallet-strip.low   { background: #fffbeb; color: #92400e; border-bottom-color: #fde68a; }
.wallet-strip.low:hover   { background: #fef3c7; }
.wallet-strip.empty { background: #fef2f2; color: #b91c1c; border-bottom-color: #fecaca; }
.wallet-strip.empty:hover { background: #fee2e2; }
