/* --- AIO Video - Donations: the donation page, the sheet and the member's editor. Author: MD OMAR FARUK | www.faruk.bd | Copyright (c) 2026 --- */

.dn { --dn: #2f6fed; --dn-ink: var(--ink, #0f0f0f); --dn-soft: var(--bg-soft, #f2f2f2); --dn-line: var(--line, #e5e5e5); --dn-mute: var(--muted, #606060);
      --dn-card: var(--card, var(--bg, #fff)); color: var(--dn-ink); max-width: 1040px; margin: 8px auto 32px; font-size: 14.5px; line-height: 1.5; }
.dn *, .dn-ed *, .dn-sheet * { box-sizing: border-box; }

/* the top of the page */
.dn-hero { position: relative; display: flex; align-items: center; gap: 18px; padding: 26px 28px; border-radius: 20px; overflow: hidden; color: #fff;
           background: linear-gradient(135deg, var(--dn) 0%, color-mix(in srgb, var(--dn) 62%, #1e0b4b) 100%); }
.dn-hero:after { content: ""; position: absolute; right: -60px; top: -60px; width: 240px; height: 240px; border-radius: 50%;
                 background: radial-gradient(circle, rgba(255, 255, 255, .22), rgba(255, 255, 255, 0) 70%); pointer-events: none; }
.dn-h-soft .dn-hero { color: var(--dn-ink); background: color-mix(in srgb, var(--dn) 12%, var(--dn-card)); border: 1px solid color-mix(in srgb, var(--dn) 25%, transparent); }
.dn-h-plain .dn-hero { color: var(--dn-ink); background: none; padding: 8px 0 14px; border-radius: 0; }
.dn-h-plain .dn-hero:after, .dn-h-soft .dn-hero:after { display: none; }
.dn-pfp { width: 76px; height: 76px; border-radius: 50%; object-fit: cover; flex: none; border: 3px solid rgba(255, 255, 255, .85); background: #fff; position: relative; z-index: 1; }
.dn-hero-t { position: relative; z-index: 1; min-width: 0; }
.dn-hero h2 { display: flex; align-items: center; gap: 10px; margin: 0 0 6px; font-size: 26px; line-height: 1.2; font-weight: 800; letter-spacing: -.2px; }
.dn-h-soft .dn-hero h2 svg, .dn-h-plain .dn-hero h2 svg { color: var(--dn); }
.dn-hero p { margin: 0; max-width: 680px; opacity: .93; font-size: 15px; }

/* the suggested amounts */
.dn-amounts { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 4px; }
.dn-amt { border: 1px solid var(--dn-line); background: var(--dn-card); color: var(--dn-ink); border-radius: 999px; padding: 8px 18px; font: 700 15px/1 inherit;
          font-family: inherit; cursor: pointer; transition: border-color .15s, background .15s, color .15s; }
.dn-amt:hover { border-color: var(--dn); }
.dn-amt.on { background: var(--dn); border-color: var(--dn); color: #fff; }

/* the ways to give */
.dn-methods { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 14px; margin-top: 16px; }
.dn-l-list .dn-methods { grid-template-columns: 1fr; }
.dn-l-compact .dn-methods { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.dn-m { position: relative; display: flex; flex-direction: column; gap: 12px; padding: 16px 18px; border: 1px solid var(--dn-line); border-radius: 16px;
        background: var(--dn-card); box-shadow: 0 1px 2px rgba(0, 0, 0, .04); transition: box-shadow .2s, border-color .2s; min-width: 0; }
.dn-m:hover { border-color: color-mix(in srgb, var(--dn) 45%, var(--dn-line)); box-shadow: 0 6px 24px rgba(0, 0, 0, .07); }
.dn-l-list .dn-m { flex-direction: row; align-items: center; flex-wrap: wrap; }
.dn-l-list .dn-m-head { flex: 0 0 230px; }
.dn-l-list .dn-m-body { flex: 1 1 260px; }
.dn-l-compact .dn-m { padding: 12px 14px; gap: 8px; }
.dn-m-head { display: flex; align-items: center; gap: 12px; min-width: 0; padding-right: 56px; }
.dn-l-list .dn-m-head { padding-right: 0; }
.dn-badge { width: 42px; height: 42px; border-radius: 12px; flex: none; display: inline-flex; align-items: center; justify-content: center;
            font: 800 14px/1 inherit; font-family: inherit; letter-spacing: .3px; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .06); }
.dn-m-t { min-width: 0; }
.dn-m-t b { display: block; font-size: 15.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dn-m-t span { display: block; color: var(--dn-mute); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dn-m-body { min-width: 0; }
.dn-row { display: flex; align-items: center; gap: 8px; min-width: 0; }
.dn-row code, .dn-dl dd span { flex: 1; min-width: 0; padding: 9px 12px; border-radius: 10px; background: var(--dn-soft); font: 600 15px/1.3 ui-monospace, "SFMono-Regular", Consolas, monospace;
             letter-spacing: .3px; overflow-wrap: anywhere; color: var(--dn-ink); }
.dn-addr code { font-size: 12.5px; }
.dn-copy { flex: none; display: inline-flex; align-items: center; gap: 5px; height: 36px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--dn-line);
           background: var(--dn-card); color: var(--dn-ink); font: 600 13px/1 inherit; font-family: inherit; cursor: pointer; }
.dn-copy svg { width: 16px; height: 16px; fill: currentColor; }
.dn-copy:hover { border-color: var(--dn); color: var(--dn); }
.dn-copy.done { background: #16a34a; border-color: #16a34a; color: #fff; }
.dn-dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; margin: 0; align-items: center; }
.dn-dl dt { color: var(--dn-mute); font-size: 12.5px; }
.dn-dl dd { margin: 0; display: flex; gap: 6px; align-items: center; min-width: 0; }
.dn-dl dd span { padding: 6px 10px; font-size: 14px; }
.dn-dl dd .dn-copy { height: 30px; padding: 0 9px; }
.dn-dl dd .dn-copy span { display: none; }
.dn-go { display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%; padding: 11px 16px; border-radius: 12px; background: var(--dn); color: #fff !important;
         text-decoration: none; font-weight: 700; font-size: 15px; transition: filter .15s, transform .15s; }
.dn-go:hover { filter: brightness(1.08); transform: translateY(-1px); }
.dn-text { white-space: normal; overflow-wrap: anywhere; }
.dn-note { margin: 8px 0 0; color: var(--dn-mute); font-size: 13px; }
.dn-qr { position: absolute; top: 14px; right: 14px; width: 48px; height: 48px; padding: 3px; border-radius: 10px; border: 1px solid var(--dn-line); background: #fff; cursor: zoom-in; }
.dn-qr img { width: 100%; height: 100%; object-fit: contain; display: block; }
.dn-qr span { position: absolute; left: 50%; bottom: -8px; transform: translateX(-50%); font: 800 9px/1 inherit; font-family: inherit; padding: 2px 5px; border-radius: 5px; background: var(--dn); color: #fff; }
/* in a list the QR code stays in the corner and the row keeps room for it */
.dn-l-list .dn-m:has(.dn-qr) { padding-right: 82px; }
.dn-l-list .dn-qr { top: 50%; transform: translateY(-50%); }

.dn-empty { margin: 18px 0; padding: 22px; border: 1px dashed var(--dn-line); border-radius: 14px; color: var(--dn-mute); text-align: center; }
.dn-empty a { color: var(--dn); font-weight: 600; }
.dn-foot { margin: 22px 0 0; color: var(--dn-mute); font-size: 12.5px; display: flex; gap: 8px; align-items: flex-start; }
.dn-foot:before { content: "i"; flex: none; width: 18px; height: 18px; border-radius: 50%; border: 1px solid currentColor; display: inline-flex; align-items: center; justify-content: center; font: 700 11px/1 Georgia, serif; }

/* "I sent a donation" */
.dn-told { margin-top: 26px; padding: 20px 22px; border-radius: 18px; border: 1px solid var(--dn-line); background: color-mix(in srgb, var(--dn) 5%, var(--dn-card)); }
.dn-told h3, .dn-wall h3 { margin: 0 0 4px; font-size: 18px; }
.dn-sub { margin: 0 0 14px; color: var(--dn-mute); font-size: 13.5px; }
.dn-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px 14px; }
.dn label { display: flex; flex-direction: column; gap: 5px; font-size: 13px; font-weight: 600; color: var(--dn-ink); }
.dn-ed label { display: flex; flex-direction: column; gap: 5px; font-size: 13px; font-weight: 600; }
.dn input[type=text], .dn input[type=number], .dn select, .dn textarea,
.dn-ed input[type=text], .dn-ed input[type=url], .dn-ed input[type=tel], .dn-ed select, .dn-ed textarea {
    width: 100%; min-width: 0; padding: 9px 11px; border: 1px solid var(--dn-line, var(--line)); border-radius: 10px; background: var(--dn-card, var(--bg)); color: inherit; font: 400 14px/1.35 inherit; font-family: inherit; }
.dn input:focus, .dn select:focus, .dn textarea:focus, .dn-ed input:focus, .dn-ed select:focus, .dn-ed textarea:focus { outline: 2px solid color-mix(in srgb, var(--dn) 45%, transparent); border-color: var(--dn); }
.dn-wide { grid-column: 1 / -1; margin-top: 12px; }
.dn-check { flex-direction: row !important; align-items: flex-start; gap: 8px !important; font-weight: 400 !important; margin: 10px 0; }
.dn-check input { margin-top: 3px; width: 16px; height: 16px; flex: none; }
.dn-send { display: inline-flex; align-items: center; gap: 8px; background: var(--dn) !important; border-color: var(--dn) !important; color: #fff !important; }
.dn-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* the supporters wall */
.dn-wall { margin-top: 26px; }
.dn-wall ul { list-style: none; margin: 10px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.dn-wall li { display: flex; gap: 10px; padding: 12px 14px; border: 1px solid var(--dn-line); border-radius: 14px; background: var(--dn-card); }
.dn-w-pfp { width: 34px; height: 34px; flex: none; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-weight: 800;
            color: #fff; background: var(--dn); }
.dn-wall b { font-size: 14px; }
.dn-wall em { font-style: normal; font-weight: 700; color: var(--dn); margin-left: 4px; }
.dn-wall p { margin: 4px 0 0; font-size: 13.5px; overflow-wrap: anywhere; }
.dn-wall small { color: var(--dn-mute); font-size: 12px; }

.dn-flag { margin-top: 16px; font-size: 13px; color: var(--dn-mute); }
.dn-flag summary { cursor: pointer; }
.dn-flag form { display: grid; gap: 8px; max-width: 460px; margin-top: 8px; }

/* the QR code, big */
.dn-qr-big { position: fixed; inset: 0; z-index: 3000; display: flex; align-items: center; justify-content: center; background: rgba(0, 0, 0, .72); padding: 20px; }
.dn-qr-big[hidden] { display: none; }
.dn-qr-big > div { position: relative; background: #fff; padding: 18px; border-radius: 18px; max-width: min(92vw, 420px); }
.dn-qr-big img { display: block; width: 100%; height: auto; image-rendering: pixelated; }
.dn-x { position: absolute; top: 8px; right: 8px; width: 34px; height: 34px; border: 0; border-radius: 50%; background: rgba(0, 0, 0, .08); color: #111; font-size: 22px; line-height: 1; cursor: pointer; z-index: 2; }
.dn-qr-big .dn-x { top: -14px; right: -14px; background: #fff; box-shadow: 0 2px 10px rgba(0, 0, 0, .3); }

/* the sheet on the watch page */
.dn-btn svg { color: #e11d48; }
.dn-sheet { position: fixed; inset: 0; z-index: 2600; display: flex; align-items: center; justify-content: center; padding: 20px; background: rgba(0, 0, 0, .55); }
.dn-sheet[hidden] { display: none; }
.dn-sheet-box { position: relative; width: 100%; max-width: 620px; max-height: 88vh; overflow-y: auto; border-radius: 22px; background: var(--card, var(--bg, #fff));
                box-shadow: 0 24px 60px rgba(0, 0, 0, .35); padding: 0 0 18px; animation: dn-in .2s ease-out; }
.dn-sheet-box > .dn-x { position: sticky; float: right; top: 10px; margin: 10px 10px -44px 0; background: rgba(0, 0, 0, .25); color: #fff; }
.dn-sheet .dn { margin: 0; }
.dn-sheet .dn-hero { border-radius: 22px 22px 0 0; padding: 22px 22px 20px; }
.dn-sheet .dn-hero h2 { font-size: 21px; }
.dn-sheet .dn-hero p { font-size: 14px; }
.dn-sheet .dn-amounts, .dn-sheet .dn-methods, .dn-sheet .dn-foot, .dn-sheet .dn-full, .dn-sheet .dn-empty { margin-left: 18px; margin-right: 18px; }
.dn-full { display: block; margin-top: 14px; font-weight: 700; color: var(--dn); text-decoration: none; }
@keyframes dn-in { from { transform: translateY(16px); opacity: 0; } to { transform: none; opacity: 1; } }
html.dn-lock, html.dn-lock body { overflow: hidden; }

@media (max-width: 640px) {
    .dn { margin-top: 0; }
    .dn-hero { padding: 20px 18px; border-radius: 16px; gap: 12px; align-items: flex-start; }
    .dn-pfp { width: 54px; height: 54px; }
    .dn-hero h2 { font-size: 20px; }
    .dn-hero p { font-size: 14px; }
    .dn-methods { grid-template-columns: 1fr; }
    .dn-l-list .dn-m-head { flex-basis: 100%; }
    .dn-l-list .dn-m:has(.dn-qr) { padding-right: 18px; }
    .dn-l-list .dn-m:has(.dn-qr) .dn-m-head { padding-right: 60px; }
    .dn-l-list .dn-qr { top: 14px; transform: none; }
    .dn-told { padding: 16px; }
    .dn-sheet { align-items: flex-end; padding: 0; }
    .dn-sheet-box { max-width: none; max-height: 90vh; border-radius: 20px 20px 0 0; animation-name: dn-up; }
    .dn-sheet .dn-hero { border-radius: 20px 20px 0 0; }
    @keyframes dn-up { from { transform: translateY(40px); } to { transform: none; } }
}

/* ------------------------------------------------- the member's editor */

.dn-ed { --dn-ink: var(--ink); --dn-line: var(--line); --dn-card: var(--card, var(--bg)); --dn-soft: var(--bg-soft); --dn-mute: var(--muted); }
.dn-ed-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; padding: 14px 16px; border-radius: 14px;
             background: color-mix(in srgb, var(--dn) 8%, var(--dn-card)); border: 1px solid color-mix(in srgb, var(--dn) 22%, transparent); }
.dn-ed-top p { margin: 0; font-size: 14px; }
.dn-ed-top .btn { flex: none; white-space: nowrap; }
.dn-ed-h { display: flex; align-items: center; gap: 10px; margin: 26px 0 10px; font-size: 17px; }
.dn-ed-h small { color: var(--dn-mute); font-weight: 400; font-size: 13px; }
.dn-new { padding: 2px 9px; border-radius: 999px; background: #e11d48; color: #fff; font-size: 12px; }
.dn-ed-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.dn-ed-row { border: 1px solid var(--dn-line); border-radius: 14px; background: var(--dn-card); }
.dn-ed-row.is-off { opacity: .62; }
.dn-ed-row.dn-drag { opacity: .5; }
.dn-ed-row.dn-over { box-shadow: 0 -3px 0 var(--dn) inset; }
.dn-ed-line { display: flex; align-items: center; gap: 12px; padding: 10px 12px; flex-wrap: wrap; }
.dn-handle { cursor: grab; color: var(--dn-mute); letter-spacing: -3px; font-size: 13px; user-select: none; touch-action: none; padding: 6px 2px; }
.dn-ed-t { flex: 1 1 160px; min-width: 0; }
.dn-ed-t b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dn-ed-t span { color: var(--dn-mute); font-size: 12.5px; }
.dn-ed-btns { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.dn-ed-btns form { margin: 0; }
.dn-ib { width: 32px; height: 32px; border-radius: 8px; border: 1px solid var(--dn-line); background: var(--dn-card); color: inherit; cursor: pointer; font-size: 15px; }
.dn-ib:disabled { opacity: .35; cursor: default; }
.dn-danger { color: #dc2626 !important; }
.dn-ed-row > .dn-ed-form { display: none; padding: 4px 14px 14px; border-top: 1px solid var(--dn-line); }
.dn-ed-row.is-open > .dn-ed-form { display: block; }
.dn-ed-form .dn-grid { margin: 12px 0; }
.dn-ed-form .btn { margin-top: 4px; }
.dn-kinds { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 8px; }
.dn-kind { text-align: left; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--dn-line); background: var(--dn-card); color: inherit; cursor: pointer; font-family: inherit; }
.dn-kind b { display: block; font-size: 14px; }
.dn-kind span { display: block; color: var(--dn-mute); font-size: 12px; line-height: 1.35; margin-top: 2px; }
.dn-kind.on { border-color: var(--dn); box-shadow: 0 0 0 1px var(--dn) inset; background: color-mix(in srgb, var(--dn) 6%, var(--dn-card)); }
.dn-add-form { margin-top: 10px; padding: 4px 16px 16px; border: 1px solid var(--dn-line); border-radius: 14px; }
.dn-ed-page { padding: 6px 16px 16px; border: 1px solid var(--dn-line); border-radius: 14px; }
.dn-ed-page input[type=color] { width: 100%; height: 40px; border: 1px solid var(--dn-line); border-radius: 10px; padding: 3px; background: var(--dn-card); }
.dn-reps { display: grid; gap: 8px; }
.dn-rep { display: flex; gap: 12px; justify-content: space-between; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--dn-line); border-radius: 14px; flex-wrap: wrap; }
.dn-rep.is-new { border-color: color-mix(in srgb, #e11d48 45%, var(--dn-line)); background: color-mix(in srgb, #e11d48 4%, var(--dn-card)); }
.dn-rep.is-hidden { opacity: .55; }
.dn-rep-t { flex: 1 1 260px; min-width: 0; }
.dn-rep-t em { font-style: normal; font-weight: 700; color: var(--dn); }
.dn-rep-t span { color: var(--dn-mute); }
.dn-rep-t code { margin-left: 6px; padding: 1px 6px; border-radius: 6px; background: var(--dn-soft); font-size: 12px; }
.dn-rep-t small { display: block; color: var(--dn-mute); font-size: 12px; }
.dn-rep-t p { margin: 6px 0 0; overflow-wrap: anywhere; }
@media (max-width: 640px) {
    .dn-ed-top { flex-direction: column; }
    .dn-ed-line { gap: 8px; }
    .dn-ed-btns { width: 100%; }
}
