/* ==========================================================================
   Superbway — Member Portal widgets (built on app.css tokens)
   ========================================================================== */

/* ── Packages ───────────────────────────────────────────────────────────── */
.package-card {
  position: relative; height: 100%;
  display: flex; flex-direction: column; align-items: flex-start; gap: 6px;
  padding: 20px; border-radius: var(--radius-lg);
  background: var(--surface); border: 1px solid var(--border);
  cursor: pointer; text-align: left;
  transition: border-color .15s, box-shadow .15s;
}
.package-card:hover { border-color: var(--border-strong); box-shadow: var(--shadow-md); }
.package-card.current { border-color: var(--pkg-color, var(--teal)); box-shadow: 0 0 0 3px color-mix(in srgb, var(--pkg-color, #0F766E) 14%, transparent); }
.package-card.selected { border-color: var(--brand); box-shadow: var(--ring); }
.package-card .pkg-icon {
  width: 44px; height: 44px; border-radius: 11px; margin-bottom: 6px;
  display: grid; place-items: center; font-size: 18px;
  background: color-mix(in srgb, var(--pkg-color, #0F766E) 11%, #fff);
  color: var(--pkg-color, var(--teal));
}
.package-card .pkg-name { font-size: 15px; font-weight: 600; color: var(--ink); line-height: 1.35; }
.package-card .pkg-mrp  { font-size: 12px; color: var(--subtle); text-decoration: line-through; margin: 0; }
.package-card .pkg-dp   { font-size: 26px; font-weight: 650; color: var(--ink); letter-spacing: -.02em; line-height: 1.15; }
.package-card .pkg-pv   { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 9px; border-radius: 999px; font-size: 12px; font-weight: 600; background: var(--teal-bg); color: var(--teal); }
.package-card .pkg-desc { font-size: 12.5px; color: var(--muted); line-height: 1.5; margin-top: 2px; }
.package-card .pkg-perks { list-style: none; padding: 0; margin: 8px 0 0; font-size: 12.5px; color: var(--text-2); display: grid; gap: 5px; }
.package-card .pkg-perks i { color: var(--success); width: 16px; }
.package-card .pkg-btn {
  margin-top: auto; width: 100%; height: 38px; border-radius: 8px; border: 1px solid var(--brand);
  background: var(--brand); color: #fff; font: inherit; font-size: 13.5px; font-weight: 600; cursor: pointer;
  transition: background .15s;
}
.package-card .pkg-btn:hover { background: var(--brand-600); }
.package-card .pkg-badge, .package-card .pkg-tag {
  position: absolute; top: 14px; right: 14px;
  height: 22px; padding: 0 9px; border-radius: 999px; display: inline-flex; align-items: center;
  font-size: 11px; font-weight: 600; background: var(--success-bg); color: var(--success-fg);
}
.package-check { display: none; position: absolute; top: 14px; left: 14px; width: 20px; height: 20px; border-radius: 50%; background: var(--brand); color: #fff; align-items: center; justify-content: center; font-size: 10px; }
.package-card.selected .package-check { display: flex; }
.package-card .pkg-spacer { flex: 1; }

/* ── Info boxes ─────────────────────────────────────────────────────────── */
.info-box { display: flex; gap: 14px; align-items: flex-start; height: 100%; padding: 16px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface); }
.info-box > i { width: 36px; height: 36px; border-radius: 9px; display: grid; place-items: center; font-size: 14px; flex-shrink: 0; background: var(--surface-2); color: var(--text-2); }
.info-box strong { display: block; font-size: 13.5px; font-weight: 600; color: var(--ink); margin-bottom: 2px; }
.info-box p { font-size: 12.5px; color: var(--muted); margin: 0; line-height: 1.5; }
.info-box.primary > i { background: var(--brand-50); color: var(--brand); }
.info-box.success > i { background: var(--success-bg); color: var(--success); }
.info-box.warning > i { background: var(--warning-bg); color: var(--warning); }

/* ── Binary tree ────────────────────────────────────────────────────────── */
.tree-container { overflow-x: auto; padding: 24px 16px; }
.tree-node-wrap { display: flex; flex-direction: column; align-items: center; position: relative; }
.tree-node {
  min-width: 128px; padding: 10px 12px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-xs);
  text-align: center; font-size: 11.5px; cursor: pointer; transition: box-shadow .15s, border-color .15s;
  border-top: 3px solid var(--border-strong);
}
.tree-node.active-node   { border-top-color: var(--success); }
.tree-node.inactive-node { border-top-color: var(--danger); }
.tree-node.empty-node    { background: var(--surface-2); border: 1px dashed var(--border-strong); color: var(--subtle); box-shadow: none; cursor: default; }
.tree-node:hover:not(.empty-node) { box-shadow: var(--shadow-md); border-color: var(--border-strong); }
.tree-node .tn-avatar { width: 30px; height: 30px; border-radius: 50%; margin: 0 auto 6px; display: grid; place-items: center; font-size: 12px; font-weight: 600; background: #EEF2F7; color: var(--ink-3); }
.tree-node .tn-mid    { font-weight: 600; color: var(--ink); font-size: 12px; }
.tree-node .tn-name   { color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 110px; margin: 0 auto; }
.tree-node .tn-status { margin-top: 5px; }
.tree-node .tn-bv     { font-size: 10.5px; color: var(--teal); font-weight: 600; margin-top: 4px; }
.tree-children { display: flex; gap: 22px; position: relative; }
.tree-children::before { content: ''; position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 1px; height: 16px; background: var(--border-strong); }
.tree-child { position: relative; }
.tree-child::before { content: ''; position: absolute; top: -16px; left: 50%; transform: translateX(-50%); width: 1px; height: 16px; background: var(--border-strong); }
.tree-connector { display: flex; justify-content: center; height: 16px; }
.tree-connector::before { content: ''; width: 1px; height: 16px; background: var(--border-strong); }

/* Referral (genealogy) tree */
.ref-tree-node { display: inline-flex; flex-direction: column; align-items: center; margin: 0 8px; }
.ref-node-card { min-width: 112px; padding: 8px 12px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); border-top: 3px solid var(--border-strong); box-shadow: var(--shadow-xs); text-align: center; }
.ref-node-card.root { border-top-color: var(--brand); background: var(--brand-50); }
.ref-node-card.active-status { border-top-color: var(--success); }
.ref-node-card.inactive-status { border-top-color: var(--danger); }
.ref-node-card .rn-name { font-size: 12px; font-weight: 600; color: var(--ink); }
.ref-node-card .rn-mid  { font-size: 11px; color: var(--muted); }
.ref-children { display: flex; flex-wrap: nowrap; justify-content: center; position: relative; margin-top: 16px; }
.ref-children::before { content: ''; position: absolute; top: -8px; left: 50%; transform: translateX(-50%); height: 8px; width: 1px; background: var(--border-strong); }

/* ── BV / PV progress ───────────────────────────────────────────────────── */
.bv-progress-wrap { height: 8px; background: #EEF1F5; border-radius: 99px; overflow: hidden; margin-top: 6px; }
.bv-progress-fill { height: 100%; border-radius: 99px; transition: width .6s ease; }
.bv-left  .bv-progress-fill { background: var(--teal); }
.bv-right .bv-progress-fill { background: var(--brand); }

/* ── ID card ────────────────────────────────────────────────────────────── */
.id-card-container { display: flex; flex-direction: column; align-items: center; gap: 20px; }
.id-card {
  width: 350px; min-height: 220px; border-radius: 16px; position: relative; overflow: hidden; color: #fff;
  background: linear-gradient(135deg, var(--ink) 0%, var(--ink-3) 60%, #2B3F63 100%);
  box-shadow: 0 16px 40px -12px rgba(15,27,45,.45);
  font-family: var(--font);
}
.id-card::before { content: ''; position: absolute; top: -70px; right: -70px; width: 210px; height: 210px; border-radius: 50%; background: radial-gradient(circle, rgba(255,138,61,.35), transparent 70%); }
.id-card::after { content: ''; position: absolute; bottom: -50px; left: -50px; width: 160px; height: 160px; border-radius: 50%; background: rgba(255,255,255,.04); }
.idc-header { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px 10px; border-bottom: 1px solid rgba(255,255,255,.08); position: relative; z-index: 1; }
.idc-logo-wrap { display: flex; align-items: center; gap: 8px; }
.idc-logo { width: 36px; height: 36px; border-radius: 9px; object-fit: contain; }
.idc-co-name { font-size: 13px; font-weight: 700; letter-spacing: .04em; }
.idc-co-name span { color: #FF8A3D; }
.idc-tag { font-size: 8.5px; color: rgba(255,255,255,.5); text-transform: uppercase; letter-spacing: .1em; }
.idc-card-label { font-size: 9px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: rgba(255,255,255,.55); }
.idc-body { display: flex; gap: 14px; padding: 14px 18px; position: relative; z-index: 1; }
.idc-photo { width: 66px; height: 80px; border-radius: 10px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.2); display: grid; place-items: center; flex-shrink: 0; overflow: hidden; font-size: 26px; color: rgba(255,255,255,.4); }
.idc-photo img { width: 100%; height: 100%; object-fit: cover; }
.idc-details { flex: 1; min-width: 0; }
.idc-name { font-size: 15px; font-weight: 700; color: #fff; margin-bottom: 4px; line-height: 1.2; }
.idc-row { display: flex; justify-content: space-between; margin-bottom: 3px; font-size: 10.5px; }
.idc-row-label { color: rgba(255,255,255,.55); }
.idc-row-value { font-weight: 600; color: rgba(255,255,255,.92); text-align: right; }
.idc-footer { display: flex; align-items: center; justify-content: space-between; padding: 8px 18px 34px; position: relative; z-index: 1; }
.idc-footer-text, .idc-auth { font-size: 9px; color: rgba(255,255,255,.45); }
.idc-auth-line { width: 80px; border-top: 1px solid rgba(255,255,255,.3); margin-bottom: 4px; }
.idc-qr { width: 44px; height: 44px; background: #fff; border-radius: 6px; display: grid; place-items: center; font-size: 9px; color: #aaa; padding: 3px; }
.idc-mid-tag { position: absolute; bottom: 0; left: 0; right: 0; background: var(--brand); text-align: center; font-size: 11px; font-weight: 700; letter-spacing: .16em; padding: 6px; z-index: 2; }

/* ── Wallet card ────────────────────────────────────────────────────────── */
.wallet-balance-card {
  position: relative; overflow: hidden; color: #fff;
  border-radius: var(--radius-lg); padding: 24px;
  background: linear-gradient(135deg, var(--ink) 0%, var(--ink-3) 100%);
  box-shadow: var(--shadow-sm);
}
.wallet-balance-card::after { content: ''; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px; border-radius: 50%; background: radial-gradient(circle, rgba(255,138,61,.32), transparent 70%); }
.wbc-label { font-size: 12px; color: #93A3BA; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.wbc-amount { font-size: 32px; font-weight: 650; letter-spacing: -.02em; line-height: 1.1; margin: 8px 0; font-variant-numeric: tabular-nums; }
.wbc-sub { font-size: 12.5px; color: #A9B6C8; }
.wbc-actions { position: relative; z-index: 1; display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
.wbc-actions a, .wbc-actions button { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); color: #fff; }
.wbc-actions a:hover, .wbc-actions button:hover { background: rgba(255,255,255,.16); color: #fff; }
.wallet-avail-banner { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border-radius: var(--radius); background: var(--surface-2); border: 1px solid var(--border); margin-bottom: 16px; }

/* ── Timeline ───────────────────────────────────────────────────────────── */
.pi-timeline { list-style: none; padding: 0; margin: 0; }
.pi-timeline-item { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid #EEF1F5; align-items: center; }
.pi-timeline-item:last-child { border-bottom: 0; }
.pit-icon { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; font-size: 13px; flex-shrink: 0; }
.pit-icon.credit { background: var(--success-bg); color: var(--success); }
.pit-icon.debit  { background: var(--danger-bg); color: var(--danger); }
.pit-title { font-size: 13.5px; font-weight: 600; color: var(--ink); }
.pit-sub   { font-size: 12px; color: var(--muted); margin-top: 1px; }
.pit-amount { font-size: 13.5px; font-weight: 650; margin-left: auto; padding-left: 8px; flex-shrink: 0; }
.pit-amount.credit { color: var(--success-fg); }
.pit-amount.debit  { color: var(--danger-fg); }

/* ── Income type tiles ──────────────────────────────────────────────────── */
.income-type-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px; height: 100%; }
.income-type-card i { font-size: 15px; color: var(--ic, var(--teal)); margin-bottom: 8px; display: block; }
.income-type-card .inc-amount { font-size: 18px; font-weight: 650; color: var(--ink); }
.income-type-card .inc-label  { font-size: 12px; color: var(--muted); margin-top: 2px; }

/* ── Referral link card ─────────────────────────────────────────────────── */
.referral-url-card {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding: 14px 16px; border-radius: var(--radius-lg);
  background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-xs);
}
.ruc-left { display: flex; align-items: center; gap: 12px; min-width: 0; flex: 1; }
.ruc-icon { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: var(--brand-50); color: var(--brand); flex-shrink: 0; }
.ruc-label { font-size: 12px; color: var(--muted); font-weight: 500; }
.ruc-url { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12.5px; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ruc-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.ruc-reg-btn { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border-radius: 8px; font-size: 13px; font-weight: 600; border: 1px solid var(--border-strong); color: var(--text); background: var(--surface); }
.ruc-reg-btn:hover { background: var(--surface-2); color: var(--ink); }

/* ── Payment method / copy ──────────────────────────────────────────────── */
.payment-method-card { border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 16px; background: var(--surface); margin-bottom: 12px; }
.payment-method-card.upi { border-left: 3px solid var(--violet); }
.payment-method-card.bank { border-left: 3px solid var(--info); }
.pmc-label { font-size: 12px; color: var(--muted); font-weight: 500; margin-bottom: 2px; }
.pmc-value { font-size: 14px; font-weight: 600; color: var(--ink); display: flex; align-items: center; justify-content: space-between; gap: 8px; word-break: break-all; }
.copy-btn { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border-radius: 8px; border: 1px solid var(--brand); background: var(--brand); color: #fff; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.copy-btn:hover { background: var(--brand-600); }
.copy-btn-sm { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 7px; border: 1px solid var(--border); background: var(--surface); color: var(--text-2); cursor: pointer; font-size: 12px; }
.copy-btn-sm:hover { background: var(--surface-2); color: var(--ink); }

/* ── Form bits ──────────────────────────────────────────────────────────── */
.pi-pwd-toggle { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); background: none; border: 0; color: var(--subtle); cursor: pointer; padding: 4px; }
.pi-pwd-toggle:hover { color: var(--ink); }
.pos-radio { display: flex; align-items: center; cursor: pointer; flex: 1; }
.pos-radio input[type=radio] { display: none; }
.pos-radio span { flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px; height: 40px; border-radius: 8px; border: 1px solid var(--border-strong); font-size: 13.5px; font-weight: 500; color: var(--text-2); transition: all .15s; background: var(--surface); }
.pos-radio input[type=radio]:checked + span { border-color: var(--brand); color: var(--brand); background: var(--brand-50); box-shadow: var(--ring); font-weight: 600; }
.pos-radio span:hover { border-color: var(--subtle); }
.pi-uploader { border: 1.5px dashed var(--border-strong); border-radius: var(--radius); padding: 22px; text-align: center; cursor: pointer; background: var(--surface-2); transition: border-color .15s, background .15s; }
.pi-uploader:hover, .pi-uploader.dragover { border-color: var(--brand); background: var(--brand-50); }
.pi-uploader i { font-size: 22px; color: var(--subtle); display: block; margin-bottom: 8px; }
.pi-uploader p { font-size: 12.5px; color: var(--muted); margin: 0; }

/* ── Joining letter ─────────────────────────────────────────────────────── */
.jl-reg { font-variant-numeric: tabular-nums; }

@media screen and (max-width: 575px) {
  .id-card { width: 100%; max-width: 350px; }
  .wbc-amount { font-size: 28px; }
}

@media print {
  .id-card { box-shadow: none !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* ── My Directs ───────────────────────────────────────────────────────── */
.kpi-unit { font-size: 13px; font-weight: 600; color: var(--muted); }
.dir-th-sub { display: block; font-size: 10.5px; font-weight: 500; color: var(--subtle); text-transform: none; letter-spacing: 0; }
.dir-phone { display: flex; align-items: center; gap: 6px; }
.dir-ico { width: 28px; height: 28px; border-radius: 8px; display: inline-grid; place-items: center; font-size: 12px; color: var(--text-2); background: var(--surface-2); border: 1px solid var(--border); text-decoration: none; }
.dir-ico:hover { color: var(--brand); border-color: var(--brand); background: var(--brand-50); }
.dir-ico.wa:hover { color: #128C4A; border-color: #25D366; background: #EAFBF1; }
.bv-grid { display: grid; grid-template-columns: auto minmax(52px, auto) minmax(52px, auto); column-gap: 12px; row-gap: 2px; font-size: 12.5px; white-space: nowrap; }
.bv-k { color: var(--muted); }
.bv-v { text-align: right; font-variant-numeric: tabular-nums; color: var(--ink); font-weight: 600; }
.bv-v:nth-child(3n+2) { color: var(--teal); }       /* left values: cells 5, 8, 11 */
.bv-v:nth-child(3n)   { color: var(--brand-600); }  /* right values: cells 6, 9, 12 */

/* Detail pop-up */
.dd-head { display: flex; gap: 14px; align-items: center; }
.dd-avatar { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; font-size: 20px; font-weight: 700; color: #fff; background: linear-gradient(135deg, var(--brand), #FF9A4D); flex-shrink: 0; }
.dd-name { font-size: 18px; font-weight: 700; color: var(--ink); line-height: 1.2; }
.dd-meta { font-size: 12.5px; color: var(--muted); margin: 2px 0 6px; }
.dd-badges { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.dd-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0; }
.dd-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.dd-card { border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; background: var(--surface); }
.dd-card h6 { font-size: 12px; font-weight: 650; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); margin: 0 0 8px; display: flex; align-items: center; gap: 7px; }
.dd-card h6 i { color: var(--brand); }
.dd-kv { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; font-size: 13px; border-bottom: 1px dashed var(--border); }
.dd-kv:last-child { border-bottom: 0; }
.dd-kv span { color: var(--muted); }
.dd-kv strong { font-weight: 600; color: var(--ink); text-align: right; min-width: 0; overflow-wrap: anywhere; }
.dd-bv { width: 100%; font-size: 13px; border-collapse: collapse; }
.dd-bv th { font-size: 11.5px; font-weight: 600; color: var(--muted); padding: 4px 6px; border-bottom: 1px solid var(--border); text-align: left; }
.dd-bv td { padding: 7px 6px; border-bottom: 1px dashed var(--border); }
.dd-bv tr:last-child td { border-bottom: 0; }
.dd-self { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 10px; font-size: 13px; color: var(--muted); }
.dd-self strong { color: var(--ink); margin-left: 4px; }
@media (max-width: 767.98px) {
  .dd-grid { grid-template-columns: 1fr; }
  .dd-actions .btn-x { flex: 1 1 calc(50% - 8px); justify-content: center; }
  .dd-bv { font-size: 12.5px; }
}
.bv-h { font-size: 10.5px; font-weight: 600; color: var(--subtle); text-align: right; text-transform: uppercase; letter-spacing: .04em; }
.bv-grid .bv-h:first-child { text-align: left; }
.dir-rank { margin-top: 4px; }
.dir-rank .rank-badge { font-size: 11px; padding: 2px 8px; }
.dir-mob { font-variant-numeric: tabular-nums; font-weight: 500; color: var(--ink); letter-spacing: .01em; }
.dir-table td { vertical-align: middle; }
.dir-name { display: block; padding: 0; border: 0; background: none; text-align: left; cursor: pointer; color: var(--ink); }
.dir-name:hover { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; }

/* My Directs — cards view */
.dir-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px 20px; border-bottom: 1px solid var(--border); }
.dcards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; padding: 20px; background: var(--surface-2); }
.dcard { display: flex; flex-direction: column; gap: 12px; padding: 16px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); box-shadow: var(--shadow-xs); transition: border-color .15s, box-shadow .15s; min-width: 0; }
.dcard:hover { border-color: var(--border-strong); box-shadow: var(--shadow-sm); }
.dcard-head { display: flex; align-items: flex-start; gap: 12px; }
.dcard-avatar { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0; font-weight: 700; color: #fff; background: linear-gradient(135deg, var(--brand), #FF9A4D); }
.dcard-who { flex: 1; min-width: 0; }
.dcard-name { font-size: 15px; font-weight: 650; line-height: 1.25; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dcard-id { font-size: 12px; color: var(--muted); margin-top: 2px; }
.dcard-head .status-pill { flex-shrink: 0; }
.dcard-tags { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.dcard-tags .rank-badge { font-size: 11px; padding: 2px 8px; }
.dcard-leg { font-size: 11.5px; font-weight: 650; padding: 3px 9px; border-radius: 999px; }
.dcard-leg.L { background: var(--teal-bg); color: var(--teal); }
.dcard-leg.R { background: var(--brand-50); color: var(--brand-600); }
.dcard-under { font-size: 12px; color: var(--muted); }
.dcard-line { display: flex; align-items: center; gap: 8px; font-size: 13px; min-width: 0; }
.dcard-line > i { width: 16px; text-align: center; color: var(--subtle); }
.dcard-spacer { flex: 1; }
.dcard-pkg { color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.dcard-valid { font-size: 12px; color: var(--muted); white-space: nowrap; }
.dcard-bv { padding: 10px 12px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--border); }
.dcard-bv .bv-grid { grid-template-columns: 1fr auto auto; column-gap: 18px; row-gap: 4px; font-size: 13px; }
.dcard-foot { display: flex; align-items: center; gap: 14px; padding-top: 10px; border-top: 1px solid var(--border); font-size: 12.5px; color: var(--muted); margin-top: auto; }
.dcard-foot strong { color: var(--ink); margin-left: 3px; font-variant-numeric: tabular-nums; }
.dcard-foot .btn-x { margin-left: auto; }
.dir-table .dir-name { white-space: nowrap; }
@media (max-width: 575.98px) {
  .dcards { grid-template-columns: 1fr; padding: 12px; gap: 12px; }
  .dir-bar { padding: 10px 14px; }
}
