/* ═════════════════════════════════════════════════════════════════════
   BRETHREN — GIVE SHEET (v2 "Covenant HUD")
   The donor giving modal shared by /media/watch and /media/publisher/:u.
   Markup and behaviour live in each page (#giveModal + its IIFE); this
   file is presentation only. Everything is scoped under #giveModal (plus
   the .gv-toast it creates). Bottom sheet on phones, centred chamfered
   panel from 600px. Gold for actions, green only for success/secure.
   ═════════════════════════════════════════════════════════════════════ */
#giveModal {
    --gold: var(--v2-gold, #f5a623);
    --gold-soft: var(--v2-gold-hi, #ffc964);
    --gold-hi: #fff2cf;
    --ink: var(--v2-ink, #f0f2ff);
    --ink-2: var(--v2-ink-2, #b8c4e8);
    --ink-3: var(--v2-ink-3, #7a8ec0);
    --live: var(--v2-live, #3ddc97);
    --line: var(--v2-edge, rgba(122, 142, 192, 0.26));
    --gold-line: var(--v2-edge-gold, rgba(245, 166, 35, 0.55));
    --display: var(--v2-font-display, 'Sora', system-ui, sans-serif);
    --sans: var(--v2-font-body, 'Plus Jakarta Sans', system-ui, sans-serif);
    --ease: cubic-bezier(0.16, 1, 0.3, 1);
    position: fixed;
    inset: 0;
    z-index: 10000; /* above the chat bubble (9998) and the chrome flyouts */
    display: none;
    align-items: flex-end;
    justify-content: center;
    font-family: var(--sans);
    color: var(--ink);
    -webkit-font-smoothing: antialiased;
    background: rgba(6, 12, 46, 0.82);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
}
#giveModal.open { display: flex; }
#giveModal *, #giveModal *::before, #giveModal *::after { box-sizing: border-box; }
#giveModal button, #giveModal input, #giveModal textarea { font-family: inherit; color: inherit; }

.gv-toast {
    position: fixed;
    left: 50%;
    bottom: calc(var(--v2-dock-h, 66px) + var(--v2-safe-bottom, 0px) + 14px);
    transform: translateX(-50%);
    z-index: 10001;
    max-width: calc(100vw - 32px);
    padding: 14px 20px;
    font-family: var(--v2-font-body, 'Plus Jakarta Sans', sans-serif);
    font-size: 14px;
    font-weight: 600;
    color: var(--v2-ink, #f0f2ff);
    background: var(--v2-bg-3, #0f1d5a);
    border: 1px solid var(--v2-edge-gold, rgba(245, 166, 35, 0.55));
}
@media (min-width: 900px) { .gv-toast { bottom: 28px; } }

/* ── The sheet ── */
#giveModal .give {
    position: relative;
    width: 100%;
    max-height: 94dvh;
    display: flex;
    flex-direction: column;
    background: var(--v2-bg-2, #0a1442);
    border-top: 1px solid var(--gold-line);
    padding-bottom: env(safe-area-inset-bottom, 0px);
    animation: gvRise 0.3s var(--ease) both;
}
@keyframes gvRise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@media (min-width: 600px) {
    #giveModal { align-items: center; padding: 24px; }
    #giveModal .give {
        width: min(470px, 100%);
        max-height: min(92vh, 940px);
        border: 1px solid var(--gold-line);
        clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 18px 100%, 0 calc(100% - 18px));
    }
    #giveModal .give::after {
        content: '';
        position: absolute;
        top: 0;
        right: 0;
        width: 18px;
        height: 18px;
        z-index: 7;
        pointer-events: none;
        background: linear-gradient(to bottom left, transparent calc(50% - 2px), var(--gold) calc(50% - 2px), var(--gold) calc(50% + 1px), transparent calc(50% + 1px));
    }
}

/* header */
#giveModal .g-head { position: relative; z-index: 2; display: flex; align-items: center; gap: 13px; padding: 18px 16px 6px 18px; flex: none; }
#giveModal .g-teacher { display: flex; align-items: center; gap: 13px; min-width: 0; flex: 1; }
#giveModal .g-av {
    position: relative;
    width: 52px;
    height: 52px;
    flex: none;
    border-radius: 50%;
    display: grid;
    place-items: center;
    padding: 2px;
    font-family: var(--display);
    font-weight: 800;
    font-size: 17px;
    color: var(--gold-soft);
    background: linear-gradient(160deg, var(--gold-soft), var(--v2-gold-lo, #c47f0e));
    box-shadow: inset 0 0 0 2px var(--v2-gold-lo, #c47f0e);
}
#giveModal .g-av img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; border: 2px solid var(--v2-bg-2, #0a1442); }
#giveModal .g-av .verci { position: absolute; right: -3px; bottom: -3px; width: 20px; height: 20px; display: grid; place-items: center; font-size: 9px; color: var(--v2-bg, #060c2e); background: var(--gold); clip-path: var(--v2-octagon, none); }
#giveModal .g-tinfo { min-width: 0; }
#giveModal .g-tk { font-family: var(--display); font-size: 10px; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); }
#giveModal .g-tn { font-family: var(--display); font-size: 17px; font-weight: 700; color: var(--ink); line-height: 1.25; margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#giveModal .g-ts { font-size: 12.5px; color: var(--ink-3); margin-top: 2px; }
#giveModal .g-close { width: 44px; height: 44px; flex: none; display: grid; place-items: center; cursor: pointer; background: none; border: 0; color: var(--ink-2); font-size: 17px; transition: color 0.15s; }
#giveModal .g-close:hover { color: var(--gold); }

#giveModal .gv-testbanner { position: relative; z-index: 2; flex: none; margin: 8px 18px 0; padding: 9px 12px; display: flex; align-items: center; gap: 9px; font-family: var(--display); font-size: 11px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--v2-bg, #060c2e); background: var(--gold); }

/* stepper */
#giveModal .stepper { position: relative; z-index: 2; display: flex; align-items: flex-start; padding: 16px 18px 6px; flex: none; }
#giveModal .stepper .snode { position: relative; flex: 1; display: flex; flex-direction: column; align-items: center; gap: 7px; }
#giveModal .stepper .sdot { position: relative; z-index: 2; width: 28px; height: 28px; display: grid; place-items: center; font-family: var(--display); font-weight: 800; font-size: 11px; color: var(--ink-3); background: var(--v2-bg-3, #0f1d5a); border: 1px solid var(--line); clip-path: var(--v2-octagon, none); transition: background 0.3s, color 0.3s; }
#giveModal .stepper .slbl { font-family: var(--display); font-size: 9.5px; font-weight: 700; letter-spacing: 0.1em; color: var(--ink-3); text-transform: uppercase; }
#giveModal .stepper .snode::before { content: ''; position: absolute; top: 13px; left: -50%; width: 100%; height: 2px; background: var(--line); z-index: 1; transition: background 0.4s; }
#giveModal .stepper .snode:first-child::before { display: none; }
#giveModal .stepper .snode.done .sdot, #giveModal .stepper .snode.active .sdot { color: var(--v2-bg, #060c2e); background: var(--gold); border-color: var(--gold); }
#giveModal .stepper .snode.done .slbl, #giveModal .stepper .snode.active .slbl { color: var(--gold); }
#giveModal .stepper .snode.done::before, #giveModal .stepper .snode.active::before { background: var(--gold); }

/* body */
#giveModal .g-body { position: relative; z-index: 2; flex: 1 1 auto; overflow-y: auto; overscroll-behavior: contain; padding: 16px 18px 22px; scrollbar-width: thin; }
#giveModal .step { display: none; animation: gvRise 0.3s var(--ease) both; }
#giveModal .give[data-step='amount'] .step-amount,
#giveModal .give[data-step='method'] .step-method,
#giveModal .give[data-step='mpesa'] .step-mpesa,
#giveModal .give[data-step='card'] .step-card,
#giveModal .give[data-step='success'] .step-success { display: block; }
#giveModal .g-lab { display: flex; align-items: center; gap: 9px; font-family: var(--display); font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-2); margin: 2px 0 12px; }
#giveModal .g-lab i { color: var(--gold) !important; }
#giveModal .g-lab .opt { margin-left: auto; letter-spacing: 0; text-transform: none; font-weight: 600; font-size: 11.5px; color: var(--ink-3); }

/* frequency: one-time / monthly */
#giveModal .freq { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; padding: 1px; background: var(--line); margin-bottom: 18px; }
#giveModal .freq button { min-height: 52px; border: 0; background: var(--v2-bg-2, #0a1442); cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; transition: background 0.2s; }
#giveModal .freq button .ft { font-family: var(--display); font-weight: 700; font-size: 14px; color: var(--ink-2); }
#giveModal .freq button .fs { font-size: 11px; font-weight: 600; color: var(--ink-3); }
#giveModal .freq button:hover { background: var(--v2-bg-3, #0f1d5a); }
#giveModal .freq button.on { background: var(--v2-gold-wash-fill, #16277a); box-shadow: inset 0 -3px 0 var(--gold); }
#giveModal .freq button.on .ft { color: var(--ink); }
#giveModal .freq button.on .fs { color: var(--gold); }

/* amount tiers */
#giveModal .tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
#giveModal .tier { position: relative; min-height: 60px; cursor: pointer; background: var(--v2-bg-3, #0f1d5a); border: 1px solid var(--line); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; transition: border-color 0.15s, background 0.15s; clip-path: polygon(0 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%); }
#giveModal .tier .cur { font-family: var(--display); font-size: 9.5px; font-weight: 800; letter-spacing: 0.12em; color: var(--ink-3); }
#giveModal .tier .val { font-family: var(--display); font-size: 19px; font-weight: 800; letter-spacing: -0.02em; color: var(--ink); font-variant-numeric: tabular-nums; }
#giveModal .tier:hover { border-color: var(--gold-line); }
#giveModal .tier.on { background: var(--gold); border-color: var(--gold); }
#giveModal .tier.on .cur, #giveModal .tier.on .val { color: var(--v2-bg, #060c2e); }

#giveModal .custom { margin-top: 10px; position: relative; }
#giveModal .custom .cur { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); font-family: var(--display); font-weight: 800; font-size: 13px; color: var(--gold); letter-spacing: 0.06em; pointer-events: none; }
#giveModal .custom input { width: 100%; min-height: 52px; padding: 0 76px 0 58px; font-family: var(--display); font-weight: 700; font-size: 18px; color: var(--ink); background: var(--v2-bg, #060c2e); border: 1px solid var(--line); border-radius: 0; outline: none; transition: border-color 0.15s, box-shadow 0.15s; -webkit-appearance: none; appearance: none; }
#giveModal .custom .cx { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); font-family: var(--display); font-size: 10px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); pointer-events: none; }
#giveModal .custom input::placeholder { color: var(--ink-3); font-weight: 600; font-size: 16px; }
#giveModal .custom input:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(245, 166, 35, 0.18); }

#giveModal .field { margin-top: 18px; }
#giveModal .field textarea { width: 100%; min-height: 76px; resize: vertical; padding: 12px 14px; font-size: 16px; line-height: 1.5; color: var(--ink); background: var(--v2-bg, #060c2e); border: 1px solid var(--line); border-radius: 0; outline: none; }
#giveModal .field textarea::placeholder { color: var(--ink-3); }
#giveModal .field textarea:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(245, 166, 35, 0.18); }

#giveModal .rowtoggle { display: flex; align-items: center; gap: 12px; margin-top: 12px; padding: 12px 14px; min-height: 56px; background: var(--v2-bg-3, #0f1d5a); border: 1px solid var(--line); cursor: pointer; }
#giveModal .rowtoggle:hover { border-color: var(--gold-line); }
#giveModal .rowtoggle .ri { width: 34px; height: 34px; flex: none; display: grid; place-items: center; font-size: 13px; color: var(--gold); background: var(--v2-bg-4, #16277a); clip-path: var(--v2-octagon, none); }
#giveModal .rowtoggle .rt { flex: 1; min-width: 0; }
#giveModal .rowtoggle .rt b { display: block; font-family: var(--display); font-size: 13.5px; font-weight: 700; color: var(--ink); }
#giveModal .rowtoggle .rt span { font-size: 12px; color: var(--ink-3); }
#giveModal .rowtoggle .tgl { width: 46px; height: 26px; flex: none; position: relative; background: var(--v2-bg-4, #16277a); border: 1px solid var(--line); transition: background 0.2s; }
#giveModal .rowtoggle .tgl::after { content: ''; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; background: var(--ink-2); transition: transform 0.2s var(--ease), background 0.2s; }
#giveModal .rowtoggle.on .tgl { background: var(--gold); border-color: var(--gold); }
#giveModal .rowtoggle.on .tgl::after { transform: translateX(20px); background: var(--v2-bg-2, #0a1442); }

#giveModal .scripture { margin: 18px 0 2px; padding: 4px 0 4px 16px; border-left: 3px solid var(--gold); }
#giveModal .scripture .q { font-style: italic; font-weight: 500; font-size: 15.5px; line-height: 1.55; color: var(--ink); }
#giveModal .scripture .r { font-family: var(--display); font-size: 10.5px; font-weight: 800; letter-spacing: 0.14em; color: var(--gold); margin-top: 8px; }

/* rail hint (KES / USD) */
#giveModal .railhint { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 0 0 16px; padding: 10px 12px; background: var(--v2-bg-3, #0f1d5a); border: 1px solid var(--line); }
#giveModal .railhint .rh-badge { display: inline-flex; align-items: center; gap: 7px; padding: 5px 9px; flex: none; font-family: var(--display); font-weight: 800; font-size: 11px; letter-spacing: 0.08em; color: var(--v2-bg, #060c2e); background: var(--gold); }
#giveModal .railhint .rh-flag { font-size: 14px; line-height: 1; }
#giveModal .railhint .rh-txt { flex: 1; min-width: 140px; font-size: 12.5px; color: var(--ink-2); line-height: 1.4; }
#giveModal .railhint .rh-txt b { color: var(--ink); }
#giveModal .railhint .rh-switch { flex: none; min-height: 40px; cursor: pointer; padding: 0 12px; font-family: var(--display); font-size: 12px; font-weight: 700; display: inline-flex; align-items: center; gap: 7px; color: var(--gold); background: none; border: 1px solid var(--gold-line); }
#giveModal .railhint .rh-switch:hover { background: var(--v2-bg-4, #16277a); }
#giveModal .curchip { display: inline-flex; align-items: center; gap: 6px; font-family: var(--display); font-weight: 800; font-size: 10.5px; letter-spacing: 0.06em; white-space: nowrap; color: var(--gold); }
#giveModal .curchip .cflag { font-size: 12px; line-height: 1; }

/* footer + CTA */
#giveModal .g-foot { position: relative; z-index: 2; flex: none; padding: 14px 18px 18px; border-top: 1px solid var(--line); background: var(--v2-bg-2, #0a1442); }
#giveModal .gv-error { margin-bottom: 12px; padding: 11px 14px; display: flex; align-items: center; gap: 9px; font-size: 13px; font-weight: 600; color: #ffd9de; background: rgba(255, 93, 108, 0.1); border: 1px solid rgba(255, 93, 108, 0.55); }
#giveModal .gv-error::before { content: '\f06a'; font-family: 'Font Awesome 6 Free'; font-weight: 900; color: var(--v2-alert, #ff5d6c); }
#giveModal .cta {
    width: 100%;
    min-height: 54px;
    border: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 11px;
    font-family: var(--display);
    font-weight: 800;
    font-size: 15px;
    color: var(--v2-bg-2, #0a1442);
    background: linear-gradient(180deg, var(--gold-soft), var(--gold));
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%);
    transition: filter 0.2s, transform 0.2s;
}
#giveModal .cta:hover { filter: brightness(1.08); }
#giveModal .cta:active { transform: translateY(1px); }
#giveModal .cta[disabled], #giveModal .cta.busy { opacity: 0.6; cursor: default; }
#giveModal .cta .amt { padding: 3px 9px; background: rgba(6, 12, 46, 0.14); font-size: 14px; }
#giveModal .trust { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 12px; font-size: 12px; font-weight: 600; color: var(--ink-3); text-align: center; flex-wrap: wrap; }
#giveModal .trust i { color: var(--live); font-size: 11px; }
#giveModal .trust .sep { width: 3px; height: 3px; border-radius: 50%; background: var(--ink-3); }

/* method step */
#giveModal .summary { display: flex; align-items: center; gap: 13px; padding: 14px 16px; margin-bottom: 18px; background: var(--v2-bg-3, #0f1d5a); border: 1px solid var(--gold-line); }
#giveModal .summary .sxa { font-family: var(--display); font-weight: 800; font-size: 22px; letter-spacing: -0.02em; color: var(--gold); flex: none; }
#giveModal .summary .sxi { flex: 1; min-width: 0; }
#giveModal .summary .sxi .sxt { font-size: 13px; color: var(--ink-2); }
#giveModal .summary .sxi .sxt b { color: var(--ink); }
#giveModal .summary .sxi .sxmeta { display: flex; align-items: center; gap: 9px; margin-top: 5px; flex-wrap: wrap; }
#giveModal .summary .sxi .sxf { font-family: var(--display); font-size: 10px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold); }
#giveModal .summary .sxi .sxmeta .sep2 { width: 3px; height: 3px; border-radius: 50%; background: var(--ink-3); }
#giveModal .summary .sxedit { flex: none; min-height: 40px; display: inline-flex; align-items: center; font-family: var(--display); font-size: 12px; font-weight: 700; color: var(--gold); cursor: pointer; padding: 0 12px; border: 1px solid var(--gold-line); }
#giveModal .summary .sxedit:hover { background: var(--v2-bg-4, #16277a); }

#giveModal .method { position: relative; display: flex; align-items: center; gap: 14px; padding: 14px; min-height: 76px; cursor: pointer; margin-bottom: 10px; background: var(--v2-bg-3, #0f1d5a); border: 1px solid var(--line); transition: border-color 0.15s, background 0.15s; }
#giveModal .method:hover { border-color: var(--gold-line); }
#giveModal .method .mlogo { width: 50px; height: 50px; flex: none; display: grid; place-items: center; font-family: var(--display); font-weight: 800; background: var(--v2-bg-4, #16277a); color: var(--gold); clip-path: var(--v2-octagon, none); }
#giveModal .method .mlogo.mp { font-size: 9.5px; letter-spacing: 0.02em; }
#giveModal .method .mlogo.cd { font-size: 19px; }
#giveModal .method .minfo { flex: 1; min-width: 0; }
#giveModal .method .mt { font-family: var(--display); font-size: 15px; font-weight: 700; color: var(--ink); }
#giveModal .method .md { font-size: 12.5px; color: var(--ink-3); margin-top: 3px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
#giveModal .method .md .brand { font-size: 19px; color: var(--ink-2); }
#giveModal .method .md .prov { font-family: var(--display); font-size: 10.5px; font-weight: 700; color: var(--ink-3); }
#giveModal .method .mradio { width: 22px; height: 22px; flex: none; border-radius: 50%; border: 2px solid var(--line); position: relative; transition: background 0.15s, border-color 0.15s; }
#giveModal .method.on { border-color: var(--gold); background: var(--v2-gold-wash-fill, #16277a); }
#giveModal .method.on .mradio { border-color: var(--gold); background: var(--gold); }
#giveModal .method.on .mradio::after { content: '\f00c'; font-family: 'Font Awesome 6 Free'; font-weight: 900; position: absolute; inset: 0; display: grid; place-items: center; font-size: 10px; color: var(--v2-bg, #060c2e); }

#giveModal .phonefield { max-height: 0; opacity: 0; overflow: hidden; transition: max-height 0.35s var(--ease), opacity 0.25s, margin 0.35s; }
#giveModal .method.mp.on ~ .phonefield { max-height: 120px; opacity: 1; margin-bottom: 10px; }
#giveModal .phonefield .fl { font-family: var(--display); font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-2); margin: 4px 0 8px; }
#giveModal .phonefield .pin { display: flex; align-items: center; background: var(--v2-bg, #060c2e); border: 1px solid var(--line); }
#giveModal .phonefield .pin:focus-within { border-color: var(--gold); }
#giveModal .phonefield .pcc { display: flex; align-items: center; gap: 8px; padding: 0 12px; min-height: 50px; font-weight: 700; font-family: var(--display); font-size: 14px; color: var(--ink); background: var(--v2-bg-3, #0f1d5a); border-right: 1px solid var(--line); }
#giveModal .phonefield input { flex: 1; min-width: 0; min-height: 50px; border: 0; background: transparent; outline: none; color: var(--ink); font-family: var(--display); font-weight: 600; font-size: 16px; letter-spacing: 0.04em; padding: 0 14px; }
#giveModal .phonefield input::placeholder { color: var(--ink-3); }

#giveModal .trustcard { display: flex; align-items: center; gap: 12px; padding: 12px 14px; margin-top: 6px; background: var(--v2-bg-3, #0f1d5a); border: 1px solid var(--line); }
#giveModal .trustcard .ti { width: 34px; height: 34px; flex: none; display: grid; place-items: center; color: var(--live); background: var(--v2-bg-4, #16277a); font-size: 14px; clip-path: var(--v2-octagon, none); }
#giveModal .trustcard .tt { flex: 1; min-width: 0; }
#giveModal .trustcard .tt b { display: block; font-family: var(--display); font-size: 13px; font-weight: 700; color: var(--ink); }
#giveModal .trustcard .tt span { font-size: 12px; color: var(--ink-3); }

/* M-Pesa STK step */
#giveModal .stk { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 4px 0; }
#giveModal .stk-illo { position: relative; width: 200px; height: 180px; display: grid; place-items: center; margin: 4px 0; }
#giveModal .stk-rings { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; }
#giveModal .stk-rings span { position: absolute; width: 96px; height: 96px; border-radius: 50%; border: 1.5px solid var(--gold-line); animation: gvPing 2.8s ease-out infinite; }
#giveModal .stk-rings span:nth-child(2) { animation-delay: 0.9s; }
#giveModal .stk-rings span:nth-child(3) { animation-delay: 1.8s; }
@keyframes gvPing { 0% { transform: scale(0.55); opacity: 0.9; } 80%, 100% { transform: scale(2.1); opacity: 0; } }
#giveModal .phone { position: relative; z-index: 2; width: 108px; height: 180px; padding: 8px; background: var(--v2-bg-4, #16277a); border: 1px solid var(--line); clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px)); }
#giveModal .phone .notch { position: absolute; top: 6px; left: 50%; transform: translateX(-50%); width: 30px; height: 4px; background: var(--v2-bg, #060c2e); }
#giveModal .phone .screen { width: 100%; height: 100%; background: var(--v2-bg, #060c2e); padding: 14px 8px; display: flex; flex-direction: column; align-items: center; }
#giveModal .phone .plogo { font-family: var(--display); font-weight: 800; font-size: 10.5px; color: var(--v2-bg, #060c2e); padding: 4px 7px; background: var(--gold); margin-top: 6px; }
#giveModal .phone .pask { font-size: 9px; color: var(--ink-3); margin-top: 11px; font-weight: 600; }
#giveModal .phone .pamt { font-family: var(--display); font-weight: 800; font-size: 12.5px; white-space: nowrap; color: var(--ink); margin-top: 3px; }
#giveModal .phone .ppin { display: flex; gap: 5px; margin-top: 12px; }
#giveModal .phone .ppin i { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); }
#giveModal .phone .ppin i:nth-child(4) { background: var(--v2-bg-4, #16277a); }
#giveModal .phone .pbar { margin-top: auto; width: 32px; height: 3px; background: var(--ink-3); }
#giveModal .stk h2 { font-family: var(--display); font-weight: 800; font-size: 21px; color: var(--ink); margin: 14px 0 0; }
#giveModal .stk .stk-sub { font-size: 14px; line-height: 1.6; color: var(--ink-2); margin-top: 10px; max-width: 330px; }
#giveModal .stk .stk-sub b, #giveModal .stk .stk-sub .ph { color: var(--ink); font-weight: 700; }
#giveModal .waitbar { display: inline-flex; align-items: center; gap: 11px; margin-top: 18px; padding: 10px 14px; background: var(--v2-bg-3, #0f1d5a); border: 1px solid var(--line); }
#giveModal .waitbar i { color: var(--gold); }
#giveModal .waitbar.gv-bad { border-color: rgba(255, 93, 108, 0.55); }
#giveModal .waitbar.gv-bad i { color: var(--v2-alert, #ff5d6c); }
#giveModal .waitbar .spin { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--gold-line); border-top-color: var(--gold); animation: gvSpin 1s linear infinite; }
@keyframes gvSpin { to { transform: rotate(360deg); } }
#giveModal .waitbar .wt { font-family: var(--display); font-size: 12.5px; font-weight: 700; color: var(--ink); text-align: left; }
#giveModal .stk-links { display: flex; align-items: center; gap: 18px; margin-top: 10px; font-size: 13px; font-weight: 700; }
#giveModal .stk-links a { color: var(--gold); cursor: pointer; min-height: 44px; display: inline-flex; align-items: center; }
#giveModal .stk-links a:hover { color: var(--gold-soft); }
#giveModal .gv-simbtn { margin-top: 16px; min-height: 44px; padding: 0 16px; cursor: pointer; display: inline-flex; align-items: center; gap: 9px; font-family: var(--display); font-size: 12.5px; font-weight: 800; color: var(--gold); background: none; border: 1.5px dashed var(--gold-line); }
#giveModal .gv-simbtn:hover { background: var(--v2-bg-3, #0f1d5a); }
#giveModal .gv-simbtn[disabled] { opacity: 0.6; cursor: default; }
#giveModal .gv-cardpay { padding: 8px 0 4px; text-align: center; }
#giveModal .gv-cardpay .gv-live { font-size: 13px; color: var(--ink-3); margin-top: 12px; line-height: 1.55; }

/* card step */
#giveModal .cardhero { display: flex; align-items: center; gap: 12px; padding: 13px 15px; margin-bottom: 18px; background: var(--v2-bg-3, #0f1d5a); border: 1px solid var(--gold-line); }
#giveModal .cardhero .chi { width: 44px; height: 30px; flex: none; background: var(--v2-bg-4, #16277a); border: 1px solid var(--line); position: relative; }
#giveModal .cardhero .chi::after { content: ''; position: absolute; left: 6px; top: 10px; width: 12px; height: 9px; background: var(--gold); }
#giveModal .cardhero .cht { flex: 1; min-width: 0; }
#giveModal .cardhero .cht b { display: block; font-family: var(--display); font-size: 14px; font-weight: 700; color: var(--ink); }
#giveModal .cardhero .cht span { font-size: 12px; color: var(--ink-3); }
#giveModal .cardhero .chb { display: flex; gap: 7px; font-size: 22px; color: var(--ink-2); }
#giveModal .flabel { font-family: var(--display); font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-2); margin: 0 0 8px; }
#giveModal .inpt { position: relative; margin-bottom: 14px; }
#giveModal .inpt input { width: 100%; min-height: 50px; padding: 0 44px 0 14px; font-family: var(--display); font-weight: 600; font-size: 16px; color: var(--ink); background: var(--v2-bg, #060c2e); border: 1px solid var(--line); border-radius: 0; outline: none; }
#giveModal .inpt input::placeholder { color: var(--ink-3); }
#giveModal .inpt input:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(245, 166, 35, 0.18); }
#giveModal .inpt .fic { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); display: flex; gap: 6px; font-size: 19px; color: var(--ink-3); pointer-events: none; }
#giveModal .grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

/* success */
#giveModal .success { text-align: center; padding: 6px 0 2px; }
#giveModal .bloom { position: relative; width: 96px; height: 96px; margin: 6px auto 4px; display: grid; place-items: center; }
#giveModal .bloom .halo { position: absolute; inset: -14px; border-radius: 50%; background: radial-gradient(circle, rgba(61, 220, 151, 0.28), transparent 68%); }
#giveModal .bloom .ring { position: absolute; inset: 0; border-radius: 50%; border: 1.5px solid rgba(61, 220, 151, 0.5); animation: gvRing 3s ease-out infinite; }
@keyframes gvRing { 0% { transform: scale(0.8); opacity: 0.7; } 80%, 100% { transform: scale(1.5); opacity: 0; } }
#giveModal .bloom .disc { position: relative; z-index: 2; width: 72px; height: 72px; display: grid; place-items: center; font-size: 28px; color: var(--v2-bg, #060c2e); background: var(--live); clip-path: var(--v2-octagon, none); }
#giveModal .success .stag { font-family: var(--display); font-size: 10.5px; font-weight: 800; letter-spacing: 0.2em; text-transform: uppercase; color: var(--live); margin-top: 8px; }
#giveModal .success h2 { font-family: var(--display); font-weight: 800; font-size: 20px; line-height: 1.35; color: var(--ink); margin: 10px 0 0; }
#giveModal .success h2 b { color: var(--gold); }
#giveModal .success .ssub { font-size: 13.5px; color: var(--ink-2); margin: 10px auto 0; line-height: 1.55; max-width: 360px; }
#giveModal .receipt { margin-top: 18px; text-align: left; background: var(--v2-bg, #060c2e); border: 1px solid var(--line); }
#giveModal .receipt .rhead { display: flex; align-items: center; gap: 9px; padding: 12px 14px; border-bottom: 1px dashed var(--line); font-family: var(--display); font-size: 10.5px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-2); }
#giveModal .receipt .rhead i { color: var(--gold); }
#giveModal .receipt .rhead .rok { margin-left: auto; color: var(--live); display: inline-flex; align-items: center; gap: 6px; }
#giveModal .receipt .rhead .rok i { color: var(--live); }
#giveModal .receipt .rrow { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 14px; }
#giveModal .receipt .rrow + .rrow { border-top: 1px solid var(--line); }
#giveModal .receipt .rk { font-size: 13px; color: var(--ink-3); }
#giveModal .receipt .rv { font-family: var(--display); font-size: 13px; font-weight: 700; color: var(--ink); text-align: right; overflow-wrap: anywhere; }
#giveModal .receipt .rv.amt { color: var(--gold); font-size: 15px; }
#giveModal .receipt .rv .fq { font-size: 10px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--v2-bg, #060c2e); padding: 3px 7px; background: var(--gold); }
#giveModal .receipt .rv .mono { font-variant-numeric: tabular-nums; letter-spacing: 0.04em; }
#giveModal .managenote { display: flex; align-items: center; gap: 9px; margin-top: 14px; padding: 11px 14px; background: var(--v2-bg-3, #0f1d5a); border: 1px solid var(--gold-line); font-size: 12.5px; color: var(--ink-2); text-align: left; }
#giveModal .managenote i { color: var(--gold); }
#giveModal .managenote.hidden { display: none; }
#giveModal .sacts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 18px; }
#giveModal .sacts .sbtn { min-height: 48px; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px; font-family: var(--display); font-weight: 700; font-size: 13px; border: 1px solid var(--gold-line); background: var(--v2-bg-3, #0f1d5a); color: var(--ink); }
#giveModal .sacts .sbtn i { color: var(--gold); }
#giveModal .sacts .sbtn:hover { background: var(--v2-bg-4, #16277a); }
#giveModal .sacts .sbtn.primary { grid-column: 1 / -1; order: -1; border: 0; color: var(--v2-bg-2, #0a1442); background: linear-gradient(180deg, var(--gold-soft), var(--gold)); clip-path: polygon(0 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%); }
#giveModal .sacts .sbtn.primary i { color: var(--v2-bg-2, #0a1442); }
#giveModal .blessing { margin-top: 18px; text-align: center; padding: 12px 6px 2px; }
#giveModal .blessing .rule { display: flex; align-items: center; gap: 12px; justify-content: center; margin-bottom: 12px; }
#giveModal .blessing .rule::before, #giveModal .blessing .rule::after { content: ''; height: 1px; flex: 1; max-width: 70px; background: var(--gold-line); }
#giveModal .blessing .rule i { color: var(--gold); font-size: 10px; }
#giveModal .blessing .bq { font-style: italic; font-weight: 500; font-size: 15.5px; line-height: 1.55; color: var(--ink); }
#giveModal .blessing .br { font-family: var(--display); font-size: 10.5px; font-weight: 800; letter-spacing: 0.14em; color: var(--gold); margin-top: 8px; }

#giveModal.shot * { animation: none !important; transition: none !important; }
@media (max-width: 380px) { #giveModal .tier .val { font-size: 17px; } }
@media (prefers-reduced-motion: reduce) {
    #giveModal .stk-rings span, #giveModal .waitbar .spin, #giveModal .bloom .ring, #giveModal .give, #giveModal .step { animation: none !important; }
}
