/* Premium posts (minibb#179, the interface #217). Every premium surface
   draws from these parts: the price badge, the premium mark, the network
   badge, the status pill, the steps, the framed teaser, the card. Linked once
   per response by paid_assets() in bb_paid.php, through bb_asset().

   Colours are the forum's own tokens plus three premium ones derived from
   --accent-tan, the colour the lock already had. Status colours are the
   forum's --info / --warn / --ok / --danger, never new ones. No percentage
   of a sale is ever written by this file or the markup it styles: the
   forum's share is a setting and will change (minibb#221). */

:root {
    --paid-ink: #8C5A1E;
    --paid-bg: color-mix(in srgb, var(--accent-tan) 9%, var(--cell-bg-1));
    --paid-line: color-mix(in srgb, var(--accent-tan) 55%, transparent);
    --paid-fill: color-mix(in srgb, var(--accent-tan) 18%, transparent);
}
[data-theme="dark"] {
    --paid-ink: #E4B876;
}

/* ------------------------------------------------------------ parts */

.paid-price {
    display: inline-flex;
    align-items: center;
    height: 22px;
    padding: 0 8px;
    border-radius: 999px;
    background: var(--paid-fill);
    color: var(--paid-ink);
    font-weight: 700;
    font-size: 13px;
    line-height: 1;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}
.paid-price.is-lg {
    height: auto;
    padding: 0;
    background: none;
    font-size: 26px;
    line-height: 1.1;
    letter-spacing: -.01em;
}
.paid-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--paid-ink);
    font-weight: 600;
    font-size: 13px;
    line-height: 1.3;
}
.paid-chip svg { flex: none; }

.paid-net {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 22px;
    padding: 0 8px;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    background: var(--menu-bg);
    color: var(--text-color);
    font-size: 12px;
    font-weight: 500;
    line-height: 1;
    white-space: nowrap;
}
.paid-net i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #2D9CDB;
}
.paid-net.is-test { border-style: dashed; border-color: var(--warn); color: var(--warn); }
.paid-net.is-test i { background: var(--warn); }

.paid-st {
    --c: var(--info);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 24px;
    padding: 0 10px;
    border-radius: 999px;
    font-size: 12.5px;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
    color: var(--c);
    background: color-mix(in srgb, var(--c) 12%, transparent);
    justify-self: start;
}
.paid-st::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--c); flex: none; }
.paid-st.is-part { --c: var(--warn); }
.paid-st.is-paid { --c: var(--ok); }
.paid-st.is-stop { --c: var(--danger); }
.paid-st.is-hold { --c: var(--secondary-text); }
.paid-st.is-wait::before,
.paid-st.is-hold::before { animation: paid-pulse 1.6s ease-in-out infinite; }
@keyframes paid-pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .35; transform: scale(.7); } }

/* The buttons. Inside a post the post body's link rules reached the old
   «Открыть за $N» and it rendered as an underlined link (measured
   2026-11-06: background none, underline), hence the !important. */
.paid-btn,
.paid-ui a.paid-btn,
.paid-ui button.paid-btn {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 36px;
    padding: 0 16px;
    border-radius: 8px;
    border: 1px solid #5c3f3f !important;
    background: linear-gradient(180deg, #8a6363 0%, #775454 100%) !important;
    color: #FEFDFF !important;
    font-family: inherit;
    font-size: 15px;
    font-weight: 500;
    line-height: 1;
    text-decoration: none !important;
    cursor: pointer;
    box-shadow: 0 1px 2px var(--shadow-2);
    white-space: nowrap;
    box-sizing: border-box;
}
.paid-btn:hover,
.paid-ui a.paid-btn:hover { background: linear-gradient(180deg, #a07777 0%, #8a6363 100%) !important; }
.paid-btn.is-ghost,
.paid-ui a.paid-btn.is-ghost,
.paid-ui button.paid-btn.is-ghost {
    background: transparent !important;
    color: var(--text-color) !important;
    border-color: var(--border-color) !important;
    box-shadow: none;
}
.paid-btn.is-ghost:hover,
.paid-ui a.paid-btn.is-ghost:hover { background: color-mix(in srgb, var(--accent-tan) 10%, transparent) !important; }
.paid-btn.is-sm,
.paid-ui .paid-btn.is-sm { min-height: 30px; padding: 0 12px; font-size: 13px; }
.paid-btn[disabled] { opacity: .45; cursor: not-allowed; }
.paid-btn:focus-visible { outline: 2px solid var(--link-color); outline-offset: 2px; }

.paid-steps {
    display: flex;
    gap: 6px;
    margin: 0 0 10px;
    padding: 0;
    list-style: none;
    counter-reset: paid-s;
    font-size: 13px;
}
.paid-steps li {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    padding-top: 5px;
    border-top: 2px solid var(--border-color);
    color: var(--secondary-text);
    counter-increment: paid-s;
    white-space: nowrap;
}
.paid-steps li::before {
    content: counter(paid-s);
    flex: none;
    display: inline-grid;
    place-items: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 1.5px solid currentColor;
    font-size: 11px;
    font-weight: 700;
    box-sizing: border-box;
}
.paid-steps li.is-done { border-top-color: var(--ok); color: var(--ok); }
.paid-steps li.is-done::before { content: "✓"; background: var(--ok); border-color: var(--ok); color: var(--bg-color); }
.paid-steps li.is-now { border-top-color: var(--paid-ink); color: var(--text-color); font-weight: 600; }
.paid-steps li.is-now::before { border-color: var(--paid-ink); color: var(--paid-ink); }

.paid-teaser {
    margin: 0;
    padding: 7px 12px;
    border-left: 3px solid var(--paid-line);
    background: color-mix(in srgb, var(--accent-tan) 6%, transparent);
    border-radius: 0 6px 6px 0;
}
.paid-teaser-cap {
    display: block;
    font-size: 10.5px;
    text-transform: uppercase;
    letter-spacing: .07em;
    color: var(--secondary-text);
    margin-bottom: 1px;
}
.paid-teaser-text { white-space: pre-line; font-size: 15px; line-height: 1.45; overflow-wrap: anywhere; }

.paid-addr {
    display: flex;
    align-items: stretch;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--input-bg);
    overflow: hidden;
}
.paid-addr code {
    flex: 1;
    min-width: 0;
    padding: 7px 10px;
    font: 500 14px/1.45 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    word-break: break-all;
    user-select: all;
    background: none;
    color: var(--text-color);
}
.paid-addr code b { color: var(--paid-ink); font-weight: 700; }
.paid-copy {
    flex: none;
    border: 0;
    border-left: 1px solid var(--border-color);
    background: var(--tb-surface);
    color: var(--text-color);
    padding: 0 12px;
    cursor: pointer;
    font-family: inherit;
    font-size: 13px;
    font-weight: 500;
}
.paid-copy.is-done { color: var(--ok); }

.paid-warn { display: grid; gap: 4px; margin: 0; padding: 0; list-style: none; font-size: 13.5px; line-height: 1.45; }
.paid-warn li { display: grid; grid-template-columns: 18px 1fr; gap: 8px; align-items: start; }
.paid-warn li::before {
    content: "!";
    display: grid;
    place-items: center;
    width: 18px;
    height: 18px;
    margin-top: 1px;
    border-radius: 50%;
    background: color-mix(in srgb, var(--warn) 18%, transparent);
    color: var(--warn);
    font-weight: 700;
    font-size: 12px;
}
.paid-muted { color: var(--secondary-text); }
.paid-small { font-size: 12.5px; }

/* ------------------------------------------------------------ the card */

.paid-card {
    display: grid;
    gap: 8px;
    padding: 10px 14px 12px;
    margin: 4px 0;
    border-radius: 10px;
    border: 1px solid var(--paid-line);
    background: var(--paid-bg);
    color: var(--text-color);
    line-height: 1.45;
}
.paid-card-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.paid-card-what { display: flex; flex-wrap: wrap; gap: 2px 14px; font-size: 13px; color: var(--secondary-text); }
.paid-card-act { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.paid-card-act .paid-small { color: var(--secondary-text); }
.paid-card-staff { font-size: 12.5px; padding-top: 8px; border-top: 1px dashed var(--paid-line); color: var(--secondary-text); }
@media (max-width: 600px) {
    .paid-card-act .paid-btn { width: 100%; }
}

/* the meta-line mark for a reader who can read the post */
.paid-mark {
    display: inline-flex;
    align-items: center;
    height: 18px;
    padding: 0 7px;
    margin-left: 4px;
    border-radius: 9px;
    background: var(--paid-fill);
    color: var(--paid-ink);
    font-size: 11.5px;
    font-weight: 600;
    white-space: nowrap;
    vertical-align: middle;
}

/* the strip above the text for its buyer, its author, or staff who opened it */
.paid-strip {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 2px 8px;
    padding: 5px 10px;
    margin: 0 0 10px;
    border-radius: 8px;
    background: var(--paid-bg);
    border: 1px solid var(--paid-line);
    color: var(--paid-ink);
    font-size: 13px;
    line-height: 1.4;
}
.paid-strip svg { flex: none; }
.paid-strip .paid-sep { opacity: .5; }
.paid-strip a.mnblnk { margin-left: auto; font-size: 12.5px; }

/* ------------------------------------------------------------ the editor */

/* Shown only while «Платный пост» is chosen in this form: CSS, so an ajax
   swap needs no script. In the quick reply's flex row it takes a whole line
   of its own and comes first, so the buttons never change shape (#217). */
.paid-editor { display: none; }
form:has(select[name="post_visibility"] option[value="100"]:checked) .paid-editor {
    display: grid;
}
.post-actions > .paid-editor { order: -1; flex: 1 1 100%; }

/* …and the editor above says it holds the paid part: the block alone did
   not tell a seller where the post itself goes (owner, 2026-11-06). */
form:has(select[name="post_visibility"] option[value="100"]:checked) .wysiwyg-container,
form:has(select[name="post_visibility"] option[value="100"]:checked) textarea[name="postText"] {
    border-color: var(--paid-line) !important;
    box-shadow: 0 0 0 1px var(--paid-line);
}
form:has(select[name="post_visibility"] option[value="100"]:checked) .wysiwyg-container::before {
    content: "Текст платного поста · его увидят только купившие";
    display: block;
    padding: 5px 12px;
    background: var(--paid-bg);
    border-bottom: 1px solid var(--paid-line);
    border-radius: 4px 4px 0 0;
    color: var(--paid-ink);
    font-size: 12.5px;
    font-weight: 600;
    line-height: 1.4;
}
.paid-editor {
    gap: 10px;
    margin: 10px 0;
    padding: 10px 14px 12px;
    border: 1px solid var(--paid-line);
    border-radius: 10px;
    background: var(--paid-bg);
    color: var(--text-color);
    text-align: left;
    box-sizing: border-box;
    line-height: 1.45;
    font-size: 14px;
}
.paid-editor-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 10px; }
.paid-editor-head .paid-chip { font-size: 14px; }
.pe-grid { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 12px; }
@media (max-width: 600px) { .pe-grid { grid-template-columns: 1fr; } }
.pe-field > label { display: block; font-size: 12.5px; font-weight: 600; color: var(--secondary-text); margin-bottom: 4px; }
.pe-field > label span { font-weight: 400; }
.pe-money {
    display: flex;
    align-items: center;
    height: 36px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--input-bg);
    overflow: hidden;
}
.pe-money span { padding: 0 2px 0 10px; font-size: 18px; font-weight: 700; color: var(--paid-ink); }
.paid-editor .pe-money input {
    width: 100%;
    min-width: 0;
    height: 100%;
    margin: 0;
    border: 0;
    background: transparent;
    color: var(--text-color);
    font-family: inherit;
    font-size: 18px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    padding: 0 8px 0 2px;
    outline: none;
    box-shadow: none;
}
.pe-money:focus-within,
.paid-editor textarea:focus { border-color: var(--paid-ink); box-shadow: 0 0 0 3px var(--paid-fill); }
.pe-split { margin-top: 6px; font-size: 13px; color: var(--secondary-text); font-variant-numeric: tabular-nums; }
/* the receipt (#217): amounts flush with the price field's right edge */
.pe-rcpt { display: flex; justify-content: space-between; gap: 8px; line-height: 1.5; }
.pe-rcpt.is-you { margin-top: 3px; padding-top: 4px; border-top: 1px dashed var(--paid-line); font-size: 15px; font-weight: 600; color: var(--text-color); }
.pe-rcpt b { color: var(--ok); }
.pe-split .is-err { color: var(--danger); }
.paid-editor textarea {
    display: block;
    width: 100%;
    min-height: 56px;
    margin: 0;
    padding: 7px 10px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--input-bg);
    color: var(--text-color);
    font-family: inherit;
    font-size: 15px;
    line-height: 1.45;
    resize: vertical;
    outline: none;
    box-sizing: border-box;
}
.pe-count { display: flex; justify-content: space-between; gap: 10px; margin-top: 3px; font-size: 12.5px; color: var(--secondary-text); font-variant-numeric: tabular-nums; }
.pe-count.is-near b { color: var(--warn); }
.pe-wallet {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 10px;
    padding: 6px 10px;
    border-radius: 8px;
    font-size: 13.5px;
    background: var(--menu-bg);
    border: 1px solid var(--border-color);
}
.pe-wallet .paid-st { height: 22px; font-size: 12px; }
.pe-wallet code { font: 500 13px ui-monospace, Menlo, Consolas, monospace; background: none; }
.pe-wallet .paid-btn { margin-left: auto; }
.pe-preview summary { cursor: pointer; font-size: 13px; color: var(--link-color); }
.pe-preview .paid-card { margin-top: 8px; }

/* ------------------------------------------------------------ buy + pay */

.paid-co { max-width: 940px; margin: 12px auto 28px; padding: 0 12px; color: var(--text-color); line-height: 1.45; font-size: 14px; }
.paid-co h1 { font-size: 20px; margin: 0 0 10px; font-weight: 600; }
.paid-co h2 { font-size: 16px; margin: 0; font-weight: 600; }
.paid-co-grid { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: 12px; align-items: start; }
@media (max-width: 760px) {
    .paid-co-grid { grid-template-columns: 1fr; }
    /* paying: the amount and the address come first on a phone */
    .paid-co-grid.is-pay .paid-co-sum { order: 2; }
}
.paid-box {
    display: grid;
    gap: 10px;
    padding: 12px 14px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    background: var(--cell-bg-1);
    min-width: 0;
}
.paid-co-title { font-weight: 600; font-size: 15.5px; line-height: 1.35; }
.paid-co-title a { color: var(--text-color); text-decoration: none; }
.paid-co-title a:hover { color: var(--link-color); }
.paid-co-by { display: flex; align-items: center; gap: 6px; margin-top: 3px; font-size: 13px; color: var(--secondary-text); }
.paid-co-total { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; padding-top: 8px; border-top: 1px solid var(--border-color); }
.paid-co-k { font-size: 13px; color: var(--secondary-text); }
.paid-co-exp { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 13px; color: var(--secondary-text); font-variant-numeric: tabular-nums; }
.paid-co-exp b { color: var(--text-color); font-weight: 600; }
.paid-co-amount { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.paid-co-amount .v { font-size: 26px; font-weight: 700; letter-spacing: -.01em; font-variant-numeric: tabular-nums; line-height: 1.15; }
.paid-co-amount .v small { font-size: 15px; font-weight: 600; color: var(--secondary-text); margin-left: 4px; }
.paid-co-qr { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; align-items: center; }
@media (max-width: 760px) { .paid-co-qr { grid-template-columns: 1fr; justify-items: center; text-align: center; } }
.paid-qr { width: 136px; height: 136px; padding: 6px; border-radius: 10px; background: #fff; border: 1px solid var(--border-color); box-sizing: content-box; }
.paid-qr svg { display: block; width: 136px; height: 136px; }
.paid-co-status { display: grid; gap: 4px; padding: 8px 12px; border-radius: 10px; background: var(--menu-bg); border: 1px solid var(--border-color); }
.paid-co-status p { margin: 0; font-size: 13.5px; color: var(--secondary-text); }
.paid-progress { height: 8px; border-radius: 4px; background: var(--border-color); overflow: hidden; }
.paid-progress i { display: block; height: 100%; background: var(--warn); border-radius: 4px; }
.paid-done { display: grid; justify-items: center; text-align: center; gap: 6px; padding: 8px 6px; }
.paid-done-icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: color-mix(in srgb, var(--ok) 16%, transparent); color: var(--ok); }
.paid-done h2 { font-size: 20px; }
.paid-done p { margin: 0; color: var(--secondary-text); font-size: 13.5px; }
.paid-alert {
    --c: var(--danger);
    display: grid;
    gap: 8px;
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid color-mix(in srgb, var(--c) 55%, transparent);
    background: color-mix(in srgb, var(--c) 8%, transparent);
}
.paid-alert.is-warn { --c: var(--warn); }
.paid-alert.is-ok { --c: var(--ok); }
.paid-alert.is-hold { --c: var(--secondary-text); }
.paid-alert h2 { color: var(--c); }
.paid-alert p { margin: 0; font-size: 13.5px; }
.paid-alert-body { display: grid; gap: 8px; font-size: 13.5px; }
.paid-alert code { word-break: break-all; }
.paid-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.paid-next { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; counter-reset: paid-n; font-size: 13.5px; }
.paid-next li { display: grid; grid-template-columns: 24px 1fr; gap: 10px; counter-increment: paid-n; }
.paid-next li::before {
    content: counter(paid-n);
    display: grid;
    place-items: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--tb-surface);
    font-weight: 700;
    font-size: 12px;
    color: var(--secondary-text);
}
.paid-next b { display: block; font-size: 14px; }
.paid-co-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; font-size: 13px; }
.paid-addrline { margin: 0; font-size: 12.5px; color: var(--secondary-text); }
.paid-addrline code { font: 12px ui-monospace, Menlo, Consolas, monospace; word-break: break-all; background: none; }
.paid-mint { font-size: 13px; }
.paid-mint summary { cursor: pointer; color: var(--warn); font-weight: 600; }
.paid-mint ol { margin: 6px 0 0; padding-left: 1.3em; }
.paid-mint li { margin: 3px 0; }
.paid-mint code { word-break: break-all; }

/* ------------------------------------------------------------ wallet form */

.paid-wf { max-width: 560px; margin: 12px auto 28px; padding: 0 12px; display: grid; gap: 10px; color: var(--text-color); font-size: 14px; line-height: 1.45; }
.paid-wf h1 { font-size: 20px; margin: 0; font-weight: 600; }
.paid-once { display: grid; grid-template-columns: 32px 1fr; gap: 10px; padding: 10px 12px; border-radius: 10px; background: var(--paid-bg); border: 1px solid var(--paid-line); font-size: 13.5px; }
.paid-once-icon { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 8px; background: var(--paid-fill); color: var(--paid-ink); }
.paid-once b { display: block; font-size: 14.5px; margin-bottom: 2px; }
.paid-wfield { display: grid; gap: 4px; margin: 0; }
.paid-wfield > span { font-size: 12.5px; font-weight: 600; color: var(--secondary-text); }
.paid-wf input[type=text],
.paid-wf input[type=password] {
    height: 36px;
    width: 100%;
    margin: 0;
    padding: 0 10px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--input-bg);
    color: var(--text-color);
    font: 500 14px ui-monospace, Menlo, Consolas, monospace;
    outline: none;
    box-sizing: border-box;
}
.paid-wf input:focus { border-color: var(--paid-ink); box-shadow: 0 0 0 3px var(--paid-fill); }
.paid-hint { font-size: 12px; color: var(--secondary-text); min-height: 16px; }
.paid-hint.is-ok { color: var(--ok); }
.paid-hint.is-bad { color: var(--danger); }
.paid-tick { display: grid; grid-template-columns: 18px 1fr; gap: 10px; font-size: 13.5px; align-items: start; }
.paid-tick input { margin: 3px 0 0; accent-color: var(--link-color); }
.paid-rules { margin: 0; padding: 0; list-style: none; display: grid; gap: 4px; font-size: 13px; color: var(--secondary-text); }
.paid-rules li::before { content: "·"; margin-right: 8px; color: var(--paid-ink); font-weight: 700; }

/* ------------------------------------------------------------ Центр «Платные» */

.notif-sort-btn b { margin-left: 6px; }

.paid-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 760px) { .paid-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.paid-tile { padding: 8px 12px; border: 1px solid var(--notif-card-border, var(--border-color)); border-radius: 10px; background: var(--notif-card-bg, var(--cell-bg-1)); }
.paid-tile b { display: block; font-size: 19px; font-variant-numeric: tabular-nums; line-height: 1.25; }
.paid-tile span { font-size: 12.5px; color: var(--secondary-text); }
.paid-tile.is-money b { color: var(--ok); }
.paid-tile.is-wait b { color: var(--warn); }
.notif-card-paid .notif-card-strip { background: var(--accent-tan); }
.notif-card-paid.is-sold .notif-card-strip { background: var(--ok); }
.notif-card-paid.is-unpaid .notif-card-strip { background: var(--warn); }
.paid-unpaid-act { margin-top: 8px; }
/* Центр's form is a flex column with a 16px gap: pull the list up to its heading */
.paid-sec-h { margin: 6px 0 -8px; font-size: 13px; font-weight: 600; color: var(--secondary-text); }
.paid-pill-wait { margin-left: 2px; padding-left: 8px; border-left: 1px solid color-mix(in srgb, currentColor 45%, transparent); color: var(--warn); font-weight: 600; }
.notif-sort-btn.is-active .paid-pill-wait { color: inherit; }
.paid-co-cancel { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin: 0; }
.notif-card-paid .notif-card-topic { border-bottom-color: var(--paid-line); }
.notif-card-paid:hover { border-color: var(--paid-line); background: linear-gradient(90deg, var(--paid-bg) 0%, var(--notif-card-bg) 60%); }
.paid-sub { display: flex; flex-wrap: wrap; gap: 2px 10px; font-size: 12.5px; color: var(--secondary-text); }
.paid-sub .is-ok { color: var(--ok); }
.paid-sub .is-wait { color: var(--warn); }
.notif-card-paid .notif-card-meta { display: grid; gap: 2px; }
.paid-buyers { margin: 4px 0 0; font-size: 12.5px; }
.paid-buyers summary { cursor: pointer; color: var(--link-color); width: max-content; }
.paid-buyers ul { margin: 4px 0 0; padding-left: 1.1em; color: var(--secondary-text); }
.paid-buyers li { margin: 2px 0; }
.paid-wallet-box { display: grid; gap: 8px; padding: 12px 14px; border: 1px solid var(--notif-card-border, var(--border-color)); border-radius: 10px; background: var(--notif-card-bg, var(--cell-bg-1)); font-size: 13.5px; }
.paid-wallet-box p { margin: 0; }
.paid-wallet-box details { font-size: 12.5px; color: var(--secondary-text); }
.paid-wallet-box details ul { margin: 4px 0 0; padding-left: 1.1em; }
@media (max-width: 760px) {
    .notif-card.notif-card-paid { display: grid; grid-template-columns: 3px minmax(0, 1fr) auto; grid-template-areas: "strip body price" ". meta meta"; row-gap: 4px; }
    .notif-card-paid .notif-card-strip { grid-area: strip; }
    .notif-card-paid .notif-card-body { grid-area: body; }
    .notif-card-paid > .paid-price { grid-area: price; }
    .notif-card-paid .notif-card-meta { grid-area: meta; text-align: left; display: flex; gap: 10px; min-width: 0; }
}

@media (prefers-reduced-motion: reduce) {
    .paid-st::before { animation: none !important; }
}
/* minibb#217: fingerprint moved; today's swaps went out without the nginx reload (CACHE.md layer 4). */
