/* ==========================================================================
   Live Registration Dashboard — Frontend Styles v1.2.0
   Alexia Technology Sdn Bhd
   ========================================================================== */

.lrd-dashboard *,
.lrd-dashboard *::before,
.lrd-dashboard *::after { box-sizing: border-box; }

/* ── Tokens — Light ─────────────────────────────────────────────────────── */
.lrd-dashboard {
    --bg:#F0F4F8; --card-bg:#FFFFFF; --border:#E2E8F0;
    --text-1:#0F172A; --text-2:#475569; --text-3:#94A3B8;
    --accent:#3B82F6; --accent-light:#EFF6FF; --accent-2:#60A5FA;
    --green:#059669; --green-bg:#ECFDF5;
    --amber:#D97706; --amber-bg:#FFFBEB;
    --live-dot:#22C55E; --hdr-from:#0F172A; --hdr-to:#1E3A5F;
    --divider:#F1F5F9;
    --shadow:0 1px 3px rgba(0,0,0,.05),0 4px 20px rgba(0,0,0,.04);
    --shadow-h:0 6px 18px rgba(0,0,0,.09),0 16px 40px rgba(0,0,0,.07);
    --radius:18px; --radius-sm:12px; --transition:.25s ease;
    --bar-comp:#059669; --bar-proc:#F59E0B; --bar-bg:#E2E8F0;
    --row-hover:#F8FAFC; --th-bg:#F8FAFC;
}

/* ── Tokens — Dark ──────────────────────────────────────────────────────── */
.lrd-theme-dark {
    --bg:#0D1117; --card-bg:#161B22; --border:#30363D;
    --text-1:#E6EDF3; --text-2:#8B949E; --text-3:#6E7681;
    --accent-light:rgba(59,130,246,.12);
    --green-bg:rgba(5,150,105,.10); --amber-bg:rgba(217,119,6,.10);
    --hdr-from:#0D1117; --hdr-to:#161B22; --divider:#21262D; --bar-bg:#21262D;
    --row-hover:#1C2128; --th-bg:#1C2128;
    --shadow:0 1px 3px rgba(0,0,0,.30),0 4px 20px rgba(0,0,0,.20);
    --shadow-h:0 6px 18px rgba(0,0,0,.40),0 16px 40px rgba(0,0,0,.30);
}

/* ── Wrapper ────────────────────────────────────────────────────────────── */
.lrd-dashboard {
    font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,'Helvetica Neue',Arial,sans-serif;
    background:var(--bg); border-radius:var(--radius);
    padding:28px; max-width:1280px; margin:0 auto; color:var(--text-1);
}

/* ── Header ─────────────────────────────────────────────────────────────── */
.lrd-header {
    display:flex; align-items:center; gap:16px; margin-bottom:20px;
    padding:20px 26px;
    background:linear-gradient(135deg,var(--hdr-from) 0%,var(--hdr-to) 100%);
    border-radius:var(--radius); color:#fff; flex-wrap:wrap;
}
.lrd-live-badge {
    display:flex; align-items:center; gap:8px;
    background:rgba(255,255,255,.10); border:1px solid rgba(255,255,255,.14);
    padding:6px 14px; border-radius:30px;
    font-size:11px; font-weight:700; letter-spacing:1.8px;
    text-transform:uppercase; white-space:nowrap; flex-shrink:0;
}
.lrd-live-dot {
    display:inline-block; width:8px; height:8px;
    background:var(--live-dot); border-radius:50%;
    animation:lrd-pulse 2s ease-in-out infinite; flex-shrink:0;
}
@keyframes lrd-pulse {
    0%{box-shadow:0 0 0 0 rgba(34,197,94,.85);}
    60%{box-shadow:0 0 0 7px rgba(34,197,94,0);}
    100%{box-shadow:0 0 0 0 rgba(34,197,94,0);}
}
.lrd-title { flex:1; font-size:20px; font-weight:700; margin:0; color:#fff; line-height:1.3; min-width:0; }
.lrd-last-updated { font-size:12px; color:rgba(255,255,255,.5); white-space:nowrap; }
.lrd-dashboard.lrd-error .lrd-live-dot { background:#EF4444; animation:none; }

/* ── Summary bar ────────────────────────────────────────────────────────── */
.lrd-summary-bar {
    display:flex; align-items:center; background:var(--card-bg);
    border:1px solid var(--border); border-radius:var(--radius-sm);
    margin-bottom:20px; overflow:hidden; box-shadow:var(--shadow);
}
.lrd-summary-item { flex:1; text-align:center; padding:18px 20px 14px; }
.lrd-summary-sep { width:1px; height:52px; background:var(--border); flex-shrink:0; }
.lrd-summary-val { font-size:30px; font-weight:800; color:var(--text-1); line-height:1; letter-spacing:-.5px; font-variant-numeric:tabular-nums; }
.lrd-summary-val.lrd-green { color:var(--green); }
.lrd-summary-label { font-size:11px; color:var(--text-3); text-transform:uppercase; letter-spacing:.6px; margin-top:6px; }

/* ── Section labels ─────────────────────────────────────────────────────── */
.lrd-section-label { display:flex; align-items:center; gap:8px; font-size:11px; font-weight:700; text-transform:uppercase; letter-spacing:1px; color:var(--text-3); margin-bottom:12px; }
.lrd-section-label svg { width:15px; height:15px; stroke:var(--accent); flex-shrink:0; }
.lrd-section-label--cat { margin-top:28px; }

/* ── Product grid ───────────────────────────────────────────────────────── */
.lrd-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(220px,1fr)); gap:18px; margin-bottom:6px; }
.lrd-count-1 .lrd-grid { grid-template-columns:minmax(220px,400px); justify-content:center; }

.lrd-card {
    background:var(--card-bg); border:1px solid var(--border); border-radius:var(--radius);
    padding:28px 22px 24px; text-align:center; box-shadow:var(--shadow);
    transition:transform var(--transition),box-shadow var(--transition);
    position:relative; overflow:hidden;
}
.lrd-card::before { content:''; position:absolute; top:0; left:0; right:0; height:3px; background:linear-gradient(90deg,var(--accent),var(--accent-2)); opacity:0; transition:opacity var(--transition); }
.lrd-card:hover { transform:translateY(-4px); box-shadow:var(--shadow-h); }
.lrd-card:hover::before { opacity:1; }
.lrd-card-icon { width:52px; height:52px; background:var(--accent-light); border-radius:14px; margin:0 auto 18px; display:flex; align-items:center; justify-content:center; }
.lrd-card-icon svg { width:26px; height:26px; stroke:var(--accent); }
.lrd-card-name { font-size:12px; font-weight:700; color:var(--text-2); text-transform:uppercase; letter-spacing:.7px; margin-bottom:14px; padding:0 6px; word-break:break-word; line-height:1.4; }
.lrd-card-count { font-size:60px; font-weight:800; color:var(--text-1); line-height:1; margin-bottom:6px; letter-spacing:-2px; font-variant-numeric:tabular-nums; transition:color .45s ease; }
.lrd-card-count.lrd-flash { color:var(--accent); }
.lrd-card-label { font-size:11px; color:var(--text-3); text-transform:uppercase; letter-spacing:.5px; margin-bottom:14px; }

/* ── Status pills ───────────────────────────────────────────────────────── */
.lrd-breakdown { display:flex; justify-content:center; gap:8px; flex-wrap:wrap; margin-bottom:4px; }
.lrd-bd-completed, .lrd-bd-processing { display:inline-flex; align-items:center; gap:4px; font-size:11px; font-weight:600; padding:4px 10px; border-radius:20px; white-space:nowrap; }
.lrd-bd-completed { background:var(--green-bg); color:var(--green); }
.lrd-bd-processing { background:var(--amber-bg); color:var(--amber); }
.lrd-bd-completed svg, .lrd-bd-processing svg { width:11px; height:11px; flex-shrink:0; }
.lrd-divider { height:1px; background:var(--divider); margin:16px 0 14px; }
.lrd-card-revenue-label { font-size:11px; color:var(--text-3); text-transform:uppercase; letter-spacing:.5px; margin-bottom:6px; }
.lrd-card-revenue { font-size:22px; font-weight:700; color:var(--green); letter-spacing:-.3px; transition:color .45s ease; }

/* ── Category section ───────────────────────────────────────────────────── */
.lrd-cat-section { display:flex; flex-direction:column; gap:12px; margin-bottom:6px; }
.lrd-cat-row {
    display:flex; align-items:center; gap:20px; background:var(--card-bg);
    border:1px solid var(--border); border-radius:var(--radius-sm); padding:18px 22px;
    box-shadow:var(--shadow); transition:transform var(--transition),box-shadow var(--transition);
    position:relative; overflow:hidden;
}
.lrd-cat-row::before { content:''; position:absolute; left:0; top:0; bottom:0; width:4px; background:linear-gradient(180deg,var(--accent),var(--accent-2)); border-radius:2px 0 0 2px; }
.lrd-cat-row:hover { transform:translateY(-2px); box-shadow:var(--shadow-h); }
.lrd-cat-left { display:flex; align-items:center; gap:14px; flex:1; min-width:0; }
.lrd-cat-icon { width:42px; height:42px; background:var(--accent-light); border-radius:10px; display:flex; align-items:center; justify-content:center; flex-shrink:0; }
.lrd-cat-icon svg { width:20px; height:20px; stroke:var(--accent); }
.lrd-cat-meta { flex:1; min-width:0; }
.lrd-cat-name { font-size:14px; font-weight:700; color:var(--text-1); margin-bottom:8px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.lrd-cat-bar { display:flex; height:8px; background:var(--bar-bg); border-radius:99px; overflow:hidden; margin-bottom:8px; }
.lrd-cat-bar-comp, .lrd-cat-bar-proc { height:100%; transition:width .6s ease; min-width:0; }
.lrd-cat-bar-comp { background:var(--bar-comp); }
.lrd-cat-bar-proc { background:var(--bar-proc); }
.lrd-cat-bar-legend { display:flex; gap:8px; flex-wrap:wrap; }
/* Per-category payment-tier breakdown */
.lrd-cat-tiers { display:flex; gap:8px; flex-wrap:wrap; margin-top:8px; }
.lrd-cat-tier { display:inline-flex; align-items:center; gap:5px; font-size:11px; font-weight:600; padding:3px 10px; border-radius:20px; color:var(--text-2); background:var(--bg); border:1px solid var(--border); cursor:pointer; transition:border-color var(--transition),background var(--transition); user-select:none; }
.lrd-cat-tier:hover { border-color:var(--accent-2); }
.lrd-cat-tier:focus-visible { outline:2px solid var(--accent); outline-offset:1px; }
.lrd-cat-tier.is-active { border-color:var(--accent); background:var(--accent-light); }
.lrd-cat-tier b { font-weight:800; font-variant-numeric:tabular-nums; }
.lrd-cat-tier-free b { color:var(--green); }
.lrd-cat-tier-disc b { color:var(--amber); }
.lrd-cat-tier-full b { color:var(--text-1); }

/* Click-to-expand per-product detail (small text) */
.lrd-cat-tier-detail { margin-top:8px; font-size:11px; line-height:1.6; color:var(--text-2); background:var(--bg); border:1px dashed var(--border); border-radius:8px; padding:9px 12px; }
.lrd-td-label { font-weight:700; color:var(--text-3); text-transform:uppercase; letter-spacing:.4px; font-size:10px; margin-bottom:6px; }
.lrd-td-list { list-style:none; margin:0; padding:0; }
.lrd-td-item { display:flex; align-items:baseline; justify-content:space-between; gap:12px; padding:3px 0; border-bottom:1px solid var(--divider); }
.lrd-td-item:last-child { border-bottom:none; }
.lrd-td-name { color:var(--text-1); }
.lrd-td-count { font-weight:800; color:var(--text-1); font-variant-numeric:tabular-nums; flex-shrink:0; }
.lrd-td-empty { font-style:italic; color:var(--text-3); }
.lrd-cat-right { text-align:right; flex-shrink:0; min-width:120px; }
.lrd-cat-count { font-size:36px; font-weight:800; color:var(--text-1); line-height:1; letter-spacing:-1px; font-variant-numeric:tabular-nums; transition:color .45s ease; }
.lrd-cat-count.lrd-flash { color:var(--accent); }
.lrd-cat-count-label { font-size:10px; text-transform:uppercase; letter-spacing:.5px; color:var(--text-3); margin:4px 0 8px; }
.lrd-cat-revenue { font-size:14px; font-weight:700; color:var(--green); }

/* ══ By Payment Tier ══ */
.lrd-tier-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:18px; margin-bottom:6px; }
.lrd-tier-card {
    background:var(--card-bg); border:1px solid var(--border); border-radius:var(--radius);
    padding:22px 22px 20px; box-shadow:var(--shadow); position:relative; overflow:hidden;
    transition:transform var(--transition),box-shadow var(--transition);
}
.lrd-tier-card::before { content:''; position:absolute; left:0; top:0; bottom:0; width:4px; border-radius:2px 0 0 2px; }
.lrd-tier-full::before { background:linear-gradient(180deg,#94A3B8,#CBD5E1); }
.lrd-tier-disc::before { background:linear-gradient(180deg,#F59E0B,#FCD34D); }
.lrd-tier-free::before { background:linear-gradient(180deg,#059669,#34D399); }
.lrd-tier-card:hover { transform:translateY(-3px); box-shadow:var(--shadow-h); }

.lrd-tier-head { display:flex; flex-direction:column; gap:2px; margin-bottom:12px; }
.lrd-tier-name { font-size:14px; font-weight:700; color:var(--text-1); }
.lrd-tier-sub  { font-size:11px; color:var(--text-3); }

.lrd-tier-count { font-size:44px; font-weight:800; color:var(--text-1); line-height:1; letter-spacing:-1.5px; font-variant-numeric:tabular-nums; transition:color .45s ease; }
.lrd-tier-count.lrd-flash { color:var(--accent); }
.lrd-tier-count-label { font-size:10px; text-transform:uppercase; letter-spacing:.5px; color:var(--text-3); margin:5px 0 12px; }

.lrd-tier-foot { display:flex; flex-direction:column; gap:3px; }
.lrd-tier-revenue { font-size:15px; font-weight:700; color:var(--green); }
.lrd-tier-waived  { font-size:11px; color:var(--amber); font-weight:600; }

.lrd-tier-breakdown { display:flex; flex-wrap:wrap; gap:6px; margin-top:14px; padding-top:12px; border-top:1px solid var(--divider); }
.lrd-tier-chip { display:inline-flex; align-items:center; gap:5px; font-size:11px; font-weight:700; color:#B45309; background:#FEF3C7; border-radius:20px; padding:3px 10px; }
.lrd-tier-chip-n { background:rgba(180,83,9,.16); border-radius:10px; padding:0 6px; font-size:10px; }
.lrd-theme-dark .lrd-tier-chip { background:rgba(180,83,9,.18); color:#FCD34D; }
.lrd-theme-dark .lrd-tier-chip-n { background:rgba(252,211,77,.18); }

/* ══════════════════════════════════════════════════════════════════════════
   PARTICIPANT LIST
   ══════════════════════════════════════════════════════════════════════════ */
.lrd-participants { margin-top:28px; }

/* Static header (always-open) */
.lrd-pl-header--static {
    display:flex; align-items:center; gap:10px; width:100%;
    background:var(--card-bg); border:1px solid var(--border);
    border-bottom:none;
    border-radius:var(--radius-sm) var(--radius-sm) 0 0; padding:16px 20px;
    font-size:14px; font-weight:700; color:var(--text-1);
    box-shadow:var(--shadow);
}
.lrd-pl-header--static svg { stroke:var(--accent); flex-shrink:0; }
.lrd-pl-count-badge {
    margin-left:auto; background:var(--accent-light); color:var(--accent);
    font-size:12px; font-weight:700; padding:3px 12px; border-radius:20px;
    min-width:36px; text-align:center; font-variant-numeric:tabular-nums;
}
/* Export to Excel button */
.lrd-pl-export {
    display:inline-flex; align-items:center; gap:6px; flex-shrink:0;
    background:var(--green); color:#fff; border:1px solid var(--green);
    font-family:inherit; font-size:12px; font-weight:700;
    padding:7px 14px; border-radius:8px; cursor:pointer;
    transition:filter var(--transition),transform var(--transition);
    white-space:nowrap;
}
.lrd-pl-export:hover { filter:brightness(1.06); transform:translateY(-1px); }
.lrd-pl-export:disabled { opacity:.6; cursor:default; transform:none; filter:none; }
.lrd-pl-export svg { width:15px; height:15px; stroke:#fff; }

/* Body */
.lrd-pl-body {
    background:var(--card-bg); border:1px solid var(--border); border-top:none;
    border-radius:0 0 var(--radius-sm) var(--radius-sm);
    padding:20px; box-shadow:var(--shadow);
}

/* Filter tab groups (Type row + Product row) */
.lrd-pl-tab-group { display:flex; align-items:flex-start; gap:12px; margin-bottom:12px; }
.lrd-pl-tab-label {
    flex-shrink:0; font-size:10px; font-weight:700; text-transform:uppercase;
    letter-spacing:.5px; color:var(--text-3); padding-top:11px; min-width:52px;
}

/* Filter tabs */
.lrd-pl-tabs { display:flex; gap:8px; flex-wrap:wrap; flex:1; }
.lrd-pl-tab, .lrd-pl-ptab {
    background:transparent; border:1px solid var(--border); color:var(--text-2);
    border-radius:30px; padding:7px 16px; font-size:12px; font-weight:600;
    cursor:pointer; transition:all var(--transition); font-family:inherit;
    white-space:nowrap;
}
.lrd-pl-tab:hover, .lrd-pl-ptab:hover { border-color:var(--accent-2); color:var(--accent); }
.lrd-pl-tab.is-active { background:var(--accent); border-color:var(--accent); color:#fff; }
.lrd-pl-tab.is-empty, .lrd-pl-ptab.is-empty { opacity:.4; cursor:not-allowed; }
.lrd-pl-tab-count { opacity:.7; margin-left:4px; font-variant-numeric:tabular-nums; }

/* Product tabs use a softer "secondary" active state to distinguish from type tabs */
.lrd-pl-ptab.is-active { background:var(--accent-light); border-color:var(--accent); color:var(--accent); }
/* Discount tabs share the ptab look; active state uses a warm tone to set them apart */
.lrd-pl-dtab.is-active { background:#FFF7ED; border-color:#F59E0B; color:#B45309; }
.lrd-theme-dark .lrd-pl-dtab.is-active { background:rgba(245,158,11,.16); color:#FCD34D; }

/* Search */
.lrd-pl-search-wrap { position:relative; margin-bottom:16px; }
.lrd-pl-search-wrap svg { position:absolute; left:12px; top:50%; transform:translateY(-50%); width:16px; height:16px; stroke:var(--text-3); pointer-events:none; }
#lrd-pl-search {
    width:100%; padding:10px 14px 10px 38px;
    border:1px solid var(--border); border-radius:8px;
    font-size:13px; color:var(--text-1); background:var(--bg);
    font-family:inherit; transition:border-color var(--transition);
}
#lrd-pl-search:focus { outline:none; border-color:var(--accent); }

/* Mobile sort control — hidden on desktop (headers are clickable there) */
.lrd-pl-sort-mobile { display:none; align-items:center; gap:8px; margin-bottom:16px; }
.lrd-pl-sort-mobile label { font-size:11px; font-weight:700; text-transform:uppercase; letter-spacing:.4px; color:var(--text-3); flex-shrink:0; }
.lrd-pl-sort-mobile select {
    flex:1; padding:9px 12px; border:1px solid var(--border); border-radius:8px;
    font-size:13px; color:var(--text-1); background:var(--bg); font-family:inherit;
}
.lrd-pl-sort-mobile select:focus { outline:none; border-color:var(--accent); }
.lrd-pl-sort-mobile button {
    flex-shrink:0; width:40px; height:38px; border:1px solid var(--border);
    border-radius:8px; background:var(--card-bg); color:var(--accent);
    font-size:13px; cursor:pointer; font-family:inherit; transition:border-color var(--transition);
}
.lrd-pl-sort-mobile button:hover { border-color:var(--accent); }

/* Loading / empty */
.lrd-pl-loading, .lrd-pl-empty { text-align:center; color:var(--text-3); font-size:13px; padding:30px 10px; font-style:italic; }

/* Table */
.lrd-pl-table-wrap { overflow-x:auto; -webkit-overflow-scrolling:touch; border-radius:8px; }
.lrd-pl-table { width:100%; border-collapse:collapse; font-size:13px; min-width:520px; }
.lrd-pl-table thead th {
    background:var(--th-bg); color:var(--text-2); text-align:left;
    font-size:11px; font-weight:700; text-transform:uppercase; letter-spacing:.4px;
    padding:11px 12px; border-bottom:2px solid var(--border); white-space:nowrap; position:sticky; top:0;
}
.lrd-pl-table tbody td { padding:11px 12px; border-bottom:1px solid var(--divider); color:var(--text-1); vertical-align:middle; }
.lrd-pl-table tbody tr { transition:background var(--transition); }
.lrd-pl-table tbody tr:hover { background:var(--row-hover); }
.lrd-pl-idx { color:var(--text-3); font-variant-numeric:tabular-nums; width:42px; }

/* Sortable headers */
.lrd-pl-table th.lrd-sortable { cursor:pointer; user-select:none; transition:color var(--transition),background var(--transition); }
.lrd-pl-table th.lrd-sortable:hover { color:var(--accent); }
.lrd-pl-table th.lrd-sortable.is-sorted { color:var(--accent); }
.lrd-th-inner { display:inline-flex; align-items:center; gap:5px; }
.lrd-sort-arrow { font-size:9px; line-height:1; color:var(--accent); width:9px; display:inline-block; }
/* Faint hint arrow on hover for unsorted columns */
.lrd-pl-table th.lrd-sortable:not(.is-sorted):hover .lrd-sort-arrow::after { content:'↕'; color:var(--text-3); }

/* Status + type chips inside table */
.lrd-chip { display:inline-block; font-size:10px; font-weight:700; padding:2px 9px; border-radius:20px; text-transform:uppercase; letter-spacing:.4px; white-space:nowrap; }
.lrd-chip-completed { background:var(--green-bg); color:var(--green); }
.lrd-chip-processing { background:var(--amber-bg); color:var(--amber); }
.lrd-chip-main { background:var(--accent-light); color:var(--accent); }
.lrd-chip-pre  { background:#FEF3C7; color:#B45309; }
.lrd-chip-post { background:#EDE9FE; color:#6D28D9; }
.lrd-chip-p4   { background:#DCFCE7; color:#15803D; }
.lrd-chip-p5   { background:#FCE7F3; color:#BE185D; }
.lrd-chip-p6   { background:#CFFAFE; color:#0E7490; }
.lrd-chip-general { background:var(--divider); color:var(--text-2); }
/* Discount chips */
.lrd-chip-free { background:var(--green-bg); color:var(--green); }
.lrd-chip-disc { background:#FEF3C7; color:#B45309; }
.lrd-chip-full { background:var(--divider); color:var(--text-3); }
.lrd-theme-dark .lrd-chip-disc { background:rgba(180,83,9,.18); color:#FCD34D; }
/* Coupon code */
.lrd-coupon { font-size:11px; background:var(--bg); border:1px solid var(--border); border-radius:5px; padding:2px 7px; color:var(--text-2); font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace; white-space:nowrap; }
.lrd-theme-dark .lrd-chip-pre { background:rgba(180,83,9,.18); }
.lrd-theme-dark .lrd-chip-post { background:rgba(109,40,217,.22); color:#C4B5FD; }
.lrd-theme-dark .lrd-chip-p4 { background:rgba(21,128,61,.20); color:#86EFAC; }
.lrd-theme-dark .lrd-chip-p5 { background:rgba(190,24,93,.20); color:#F9A8D4; }
.lrd-theme-dark .lrd-chip-p6 { background:rgba(14,116,144,.22); color:#67E8F9; }

/* ── Footer ─────────────────────────────────────────────────────────────── */
.lrd-footer { text-align:center; font-size:11px; color:var(--text-3); padding:14px 4px 0; margin-top:4px; }

/* ── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width:480px) {
    .lrd-dashboard { padding:14px; }
    .lrd-header { padding:15px 16px; gap:10px; }
    .lrd-title { font-size:16px; }
    .lrd-last-updated { display:none; }
    .lrd-summary-val { font-size:24px; }
    .lrd-grid { grid-template-columns:1fr; gap:14px; }
    .lrd-tier-grid { grid-template-columns:1fr; gap:14px; }
    .lrd-tier-count { font-size:38px; }
    .lrd-card { padding:22px 16px 20px; }
    .lrd-card-count { font-size:50px; }
    .lrd-card-revenue { font-size:18px; }
    .lrd-cat-row { flex-direction:column; align-items:flex-start; padding:16px; }
    .lrd-cat-right { text-align:left; width:100%; display:flex; align-items:baseline; gap:12px; flex-wrap:wrap; }
    .lrd-cat-count { font-size:28px; }
    .lrd-cat-count-label { margin:0; }

    /* Participant table → stacked cards on mobile */
    .lrd-pl-header--static { flex-wrap:wrap; }
    .lrd-pl-export { font-size:11px; padding:6px 11px; }
    .lrd-pl-tab-group { flex-direction:column; gap:6px; }
    .lrd-pl-tab-label { padding-top:0; }
    .lrd-pl-sort-mobile { display:flex; }
    .lrd-pl-body { padding:14px; }
    .lrd-pl-table { min-width:0; }
    .lrd-pl-table thead { display:none; }
    .lrd-pl-table, .lrd-pl-table tbody, .lrd-pl-table tr, .lrd-pl-table td { display:block; width:100%; }
    .lrd-pl-table tr {
        border:1px solid var(--border); border-radius:10px;
        margin-bottom:12px; padding:6px 4px; background:var(--bg);
    }
    .lrd-pl-table tbody td { border-bottom:1px solid var(--divider); padding:8px 14px; display:flex; justify-content:space-between; align-items:center; gap:14px; }
    .lrd-pl-table tbody td:last-child { border-bottom:none; }
    .lrd-pl-table tbody td::before {
        content:attr(data-label); font-size:10px; font-weight:700;
        text-transform:uppercase; letter-spacing:.4px; color:var(--text-3);
        flex-shrink:0;
    }
    .lrd-pl-idx { display:none !important; }
}

@media (min-width:481px) and (max-width:720px) {
    .lrd-grid { grid-template-columns:repeat(2,1fr); }
    .lrd-card-count { font-size:52px; }
}
@media (min-width:721px) and (max-width:1024px) {
    .lrd-grid { grid-template-columns:repeat(3,1fr); }
}
