/* =========================================================
   NSFW Bids — Make Offer
   रङ site कै: कालो #111, हरियो #006340, खैरो #f4f4f4
   ========================================================= */

.nsfw-buy, .nsfw-modal, .nsfw-sticky, .nsfw-offers, .nsfw-trust, .nsfw-empty {
    --nsfw-ink: #111;
    --nsfw-green: #006340;
    --nsfw-line: #e3e3e3;
    --nsfw-soft: #f4f4f4;
    --nsfw-mute: #6b6b6b;
    --nsfw-red: #c62828;
}

/* ---------- size ---------- */
.nsfw-buy { margin: 18px 0 8px; }

.nsfw-size-head {
    display: flex; justify-content: space-between; align-items: baseline;
    font-size: 14px; font-weight: 700; color: var(--nsfw-ink); margin-bottom: 8px;
}
.nsfw-size-picked { font-weight: 500; color: var(--nsfw-mute); font-size: 13px; }

.nsfw-sizes {
    display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px;
}
.nsfw-sizes.is-single { display: none; }
.nsfw-sizes-sm { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-bottom: 18px; }

.nsfw-tile {
    appearance: none; background: #fff; border: 1px solid var(--nsfw-line); border-radius: 6px;
    padding: 9px 4px; min-height: 58px; cursor: pointer;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
    color: var(--nsfw-ink); font: inherit; line-height: 1.2; margin: 0;
    transition: border-color .12s, box-shadow .12s;
}
.nsfw-tile:hover { border-color: #999; }
.nsfw-tile:focus-visible { outline: 2px solid var(--nsfw-green); outline-offset: 2px; }
.nsfw-tile.is-on { border-color: var(--nsfw-ink); box-shadow: inset 0 0 0 1px var(--nsfw-ink); }
.nsfw-tile-size { font-size: 14px; font-weight: 700; }
.nsfw-tile-price { font-size: 11.5px; color: var(--nsfw-mute); }
.nsfw-tile.is-sold { cursor: not-allowed; background: var(--nsfw-soft); border-color: transparent; }
.nsfw-tile.is-sold .nsfw-tile-size { color: #aaa; text-decoration: line-through; }
.nsfw-tile.is-sold .nsfw-tile-price { color: #aaa; }

/* ---------- buttons ---------- */
.nsfw-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }

.nsfw-btn {
    appearance: none; display: inline-flex; align-items: center; justify-content: center;
    min-height: 48px; padding: 0 18px; border-radius: 999px; margin: 0;
    font: inherit; font-size: 15px; font-weight: 700; letter-spacing: 0; text-transform: none;
    text-decoration: none !important; cursor: pointer; line-height: 1;
    transition: background .15s, color .15s, opacity .15s;
}
.nsfw-btn:focus-visible { outline: 2px solid var(--nsfw-green); outline-offset: 2px; }
.nsfw-btn[disabled] { opacity: .4; cursor: not-allowed; }

.nsfw-btn-buy { background: var(--nsfw-ink); color: #fff !important; border: 1px solid var(--nsfw-ink); }
.nsfw-btn-buy:hover:not([disabled]) { background: #333; }
.nsfw-btn-offer { background: #fff; color: var(--nsfw-ink) !important; border: 1px solid var(--nsfw-ink); }
.nsfw-btn-offer:hover:not([disabled]) { background: var(--nsfw-soft); }
.nsfw-btn-link {
    background: none; border: 0; color: var(--nsfw-mute) !important; min-height: 40px;
    font-weight: 600; font-size: 14px; text-decoration: underline !important;
}

.nsfw-msg { color: var(--nsfw-red); font-size: 13px; margin: 8px 0 0; min-height: 1em; }
.nsfw-msg:empty { display: none; }
.nsfw-muted { color: var(--nsfw-mute); font-size: 14px; line-height: 1.5; margin: 0 0 14px; }
.nsfw-small { font-size: 12px; margin-top: 10px; text-align: center; }

/* ---------- modal ---------- */
html.nsfw-lock { overflow: hidden; }

.nsfw-modal { position: fixed; inset: 0; z-index: 100000; display: flex; align-items: center; justify-content: center; padding: 16px; }
.nsfw-modal[hidden] { display: none; }
.nsfw-modal-bg { position: absolute; inset: 0; background: rgba(0,0,0,.45); }

.nsfw-modal-card {
    position: relative; width: 100%; max-width: 460px; max-height: calc(100vh - 32px); overflow-y: auto;
    background: #fff; border-radius: 12px; padding: 22px 22px 18px;
    animation: nsfw-in .18s ease-out;
}
@keyframes nsfw-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

.nsfw-x {
    position: absolute; top: 10px; right: 10px; width: 36px; height: 36px; border: 0; border-radius: 50%;
    background: var(--nsfw-soft); color: var(--nsfw-ink); font-size: 22px; line-height: 1; cursor: pointer; padding: 0; margin: 0;
}

.nsfw-modal-product { display: flex; gap: 12px; align-items: center; padding-right: 40px; margin-bottom: 18px; }
.nsfw-modal-product img { width: 64px; height: 64px; object-fit: cover; border-radius: 8px; background: var(--nsfw-soft); flex: 0 0 64px; }
.nsfw-modal-product h3 { font-size: 15px; font-weight: 700; line-height: 1.3; margin: 0 0 3px; color: var(--nsfw-ink); }
.nsfw-modal-now { font-size: 13px; color: var(--nsfw-mute); margin: 0; }

/* एक पटकमा एउटा pane मात्र */
.nsfw-pane { display: none; }
.nsfw-modal[data-pane="login"] [data-pane="login"],
.nsfw-modal[data-pane="form"]  [data-pane="form"],
.nsfw-modal[data-pane="done"]  [data-pane="done"] { display: block; }

.nsfw-pane h4 { font-size: 18px; font-weight: 700; margin: 0 0 6px; color: var(--nsfw-ink); }
.nsfw-pane[data-pane="login"] .nsfw-btn { width: 100%; margin-top: 8px; }

.nsfw-label { font-size: 13px; font-weight: 700; color: var(--nsfw-ink); margin: 0 0 8px; display: block; }

.nsfw-input {
    display: flex; align-items: center; gap: 8px; border: 1px solid var(--nsfw-line); border-radius: 8px;
    padding: 0 14px; height: 56px; transition: border-color .12s;
}
.nsfw-input:focus-within { border-color: var(--nsfw-ink); }
.nsfw-input span { font-size: 18px; font-weight: 700; color: var(--nsfw-mute); }
.nsfw-input input {
    border: 0 !important; outline: 0; box-shadow: none !important; background: transparent !important;
    font-size: 24px; font-weight: 700; color: var(--nsfw-ink); width: 100%; height: 100%; padding: 0; margin: 0;
    -moz-appearance: textfield;
}
.nsfw-input input::-webkit-outer-spin-button,
.nsfw-input input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.nsfw-input.is-bad { border-color: var(--nsfw-red); }

.nsfw-chips { display: flex; gap: 6px; margin-top: 10px; }
.nsfw-chip {
    appearance: none; border: 1px solid var(--nsfw-line); background: #fff; border-radius: 999px;
    padding: 7px 13px; font: inherit; font-size: 13px; font-weight: 600; color: var(--nsfw-ink);
    cursor: pointer; margin: 0; line-height: 1.2;
}
.nsfw-chip:hover:not([disabled]) { border-color: var(--nsfw-ink); }
.nsfw-chip[disabled] { opacity: .4; cursor: not-allowed; }

.nsfw-hint { font-size: 13px; color: var(--nsfw-mute); margin: 10px 0 0; min-height: 1.3em; }
.nsfw-hint.is-good { color: var(--nsfw-green); font-weight: 600; }
.nsfw-hint.is-bad { color: var(--nsfw-red); }
.nsfw-current { font-size: 13px; background: var(--nsfw-soft); border-radius: 6px; padding: 9px 11px; margin: 12px 0 0; }

.nsfw-send { width: 100%; margin-top: 18px; }

.nsfw-done-mark {
    width: 52px; height: 52px; border-radius: 50%; background: var(--nsfw-green); color: #fff;
    display: flex; align-items: center; justify-content: center; font-size: 26px; font-weight: 700; margin: 4px 0 14px;
}
.nsfw-pane[data-pane="done"] .nsfw-btn { width: 100%; margin-top: 6px; }

/* फोनमा तलबाट आउने sheet */
@media (max-width: 600px) {
    .nsfw-modal { align-items: flex-end; padding: 0; }
    .nsfw-modal-card { max-width: none; border-radius: 16px 16px 0 0; max-height: 92vh; padding-bottom: calc(18px + env(safe-area-inset-bottom, 0px)); }
    .nsfw-sizes { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .nsfw-sizes-sm { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* ---------- trust ---------- */
.nsfw-trust { margin: 22px 0 6px; border-top: 1px solid var(--nsfw-line); }
.nsfw-trust details { border-bottom: 1px solid var(--nsfw-line); }
.nsfw-trust summary {
    list-style: none; cursor: pointer; padding: 14px 24px 14px 0; position: relative;
    font-size: 14px; font-weight: 700; color: var(--nsfw-ink);
}
.nsfw-trust summary::-webkit-details-marker { display: none; }
.nsfw-trust summary::after {
    content: ""; position: absolute; right: 4px; top: 50%; width: 8px; height: 8px;
    border-right: 2px solid var(--nsfw-ink); border-bottom: 2px solid var(--nsfw-ink);
    transform: translateY(-70%) rotate(45deg); transition: transform .15s;
}
.nsfw-trust details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.nsfw-trust details > div { font-size: 14px; color: #444; line-height: 1.6; padding: 0 0 14px; }
.nsfw-trust details > div p { margin: 0 0 8px; }

/* ---------- mobile sticky ---------- */
.nsfw-sticky { display: none; }
@media (max-width: 849px) {
    .nsfw-sticky {
        display: flex; align-items: center; gap: 8px;
        position: fixed; left: 0; right: 0; bottom: 0; z-index: 9990;
        background: #fff; border-top: 1px solid var(--nsfw-line);
        padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px));
        transform: translateY(110%); transition: transform .2s ease;
    }
    .nsfw-sticky.is-show { transform: none; }
    .nsfw-sticky-price { flex: 1; font-size: 16px; color: var(--nsfw-ink); min-width: 0; }
    .nsfw-sticky .nsfw-btn { min-height: 44px; font-size: 14px; padding: 0 16px; }
}

/* ---------- My offers ---------- */
.nsfw-offers { display: flex; flex-direction: column; gap: 10px; }
.nsfw-offer {
    display: grid; grid-template-columns: 64px 1fr auto; gap: 14px; align-items: center;
    border: 1px solid var(--nsfw-line); border-radius: 10px; padding: 12px;
}
.nsfw-offer-img img { width: 64px; height: 64px; object-fit: cover; border-radius: 6px; background: var(--nsfw-soft); display: block; }
.nsfw-offer-name { font-weight: 700; color: var(--nsfw-ink); text-decoration: none; font-size: 14px; }
.nsfw-offer-meta { font-size: 12.5px; color: var(--nsfw-mute); margin: 2px 0 4px; }
.nsfw-offer-prices { font-size: 13px; margin-bottom: 6px; }
.nsfw-badge { display: inline-block; font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 4px; background: var(--nsfw-soft); color: #555; }
.nsfw-st-pending .nsfw-badge   { background: #fff4d6; color: #7a5600; }
.nsfw-st-accepted .nsfw-badge,
.nsfw-st-countered .nsfw-badge { background: #e5f0ff; color: #1d4f91; }
.nsfw-st-paid .nsfw-badge      { background: #e6f4ea; color: #1e6b34; }
.nsfw-st-rejected .nsfw-badge,
.nsfw-st-declined .nsfw-badge  { background: #fde8e8; color: #8a1c1c; }
.nsfw-offer-act { display: flex; flex-direction: column; gap: 6px; align-items: stretch; }
.nsfw-offer-act .nsfw-btn { min-height: 40px; font-size: 13.5px; padding: 0 16px; }

.nsfw-empty { text-align: center; padding: 30px 10px; }
.nsfw-empty .nsfw-btn { margin-top: 6px; }

@media (max-width: 600px) {
    .nsfw-offer { grid-template-columns: 56px 1fr; }
    .nsfw-offer-img img { width: 56px; height: 56px; }
    .nsfw-offer-act { grid-column: 1 / -1; flex-direction: row; }
    .nsfw-offer-act .nsfw-btn { flex: 1; }
}

/* ---------- Delete account ---------- */
.nsfw-del *, .nsfw-del { box-sizing: border-box; }
.nsfw-del { --nsfw-ink:#111; --nsfw-mute:#6b6b6b; --nsfw-line:#e3e3e3; --nsfw-red:#c62828; max-width: 520px; }
.nsfw-del h3 { font-size: 20px; font-weight: 700; margin: 0 0 6px; color: var(--nsfw-ink); text-transform: none; }
.nsfw-del-box { border: 1px solid var(--nsfw-line); border-radius: 10px; padding: 14px 16px; margin: 14px 0 18px; font-size: 14px; }
.nsfw-del-box p { margin: 0 0 6px; }
.nsfw-del-box ul { margin: 0 0 12px 18px; padding: 0; }
.nsfw-del-box li { margin: 0 0 4px; color: #444; }
.nsfw-del-form label { display: block; font-size: 14px; font-weight: 600; margin: 0 0 6px; color: var(--nsfw-ink); }
.nsfw-del-form input[type=password] { box-sizing: border-box; width: 100%; height: 46px; border: 1px solid var(--nsfw-line); border-radius: 8px; padding: 0 12px; margin: 0 0 12px; }
.nsfw-del-form .nsfw-del-check { display: flex; gap: 8px; align-items: flex-start; font-weight: 400; margin: 4px 0 14px; }
.nsfw-del-form .nsfw-del-check input { margin-top: 3px; }
.nsfw-del-btn { background: var(--nsfw-red); color: #fff !important; border: 1px solid var(--nsfw-red); width: 100%; }
.nsfw-del-btn:hover { background: #a61f1f; }
.nsfw-del-ok { background: #e6f4ea; color: #1e6b34; padding: 10px 12px; border-radius: 6px; font-weight: 600; }
.nsfw-del .nsfw-btn-buy { width: 100%; margin-top: 8px; }

@media (prefers-reduced-motion: reduce) {
    .nsfw-modal-card { animation: none; }
    .nsfw-sticky, .nsfw-tile, .nsfw-btn { transition: none; }
}
