Peymandc commited on
Commit
e32c00f
·
verified ·
1 Parent(s): 46864a7

Update index.html

Browse files
Files changed (1) hide show
  1. index.html +747 -150
index.html CHANGED
@@ -1,3 +1,4 @@
 
1
  <!doctype html>
2
  <html lang="en">
3
  <head>
@@ -6,23 +7,24 @@
6
  <meta name="theme-color" content="#100d19">
7
  <meta name="description" content="Support Peymandc and independent AI exploration.">
8
  <title>Support Peymandc</title>
 
9
  <style>
10
  :root {
11
  color-scheme: dark;
12
  --bg: #0b0911;
13
- --panel: rgba(27, 21, 39, .88);
14
- --panel-2: rgba(36, 27, 52, .78);
15
  --line: rgba(190, 158, 255, .16);
16
  --text: #f7f3ff;
17
  --muted: #b8aecb;
18
  --muted-2: #8e829f;
19
  --purple: #b78aff;
20
- --purple-2: #8e5ce6;
21
  --success: #8ee6bb;
22
  --shadow: 0 24px 80px rgba(0, 0, 0, .38);
23
  }
 
24
  * { box-sizing: border-box; }
 
25
  html { scroll-behavior: smooth; }
 
26
  body {
27
  margin: 0;
28
  min-height: 100vh;
@@ -31,228 +33,753 @@
31
  radial-gradient(ellipse at 15% 5%, rgba(111, 62, 171, .27), transparent 35rem),
32
  radial-gradient(ellipse at 90% 30%, rgba(68, 61, 150, .18), transparent 34rem),
33
  linear-gradient(180deg, #100d19 0%, var(--bg) 70%);
34
- font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
 
35
  line-height: 1.55;
36
  }
 
37
  a { color: inherit; }
38
- .page { width: min(100% - 36px, 980px); margin: 0 auto; padding: 34px 0 30px; }
39
- .topbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 72px; }
40
- .brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; font-weight: 800; letter-spacing: .15em; font-size: .95rem; }
41
- .brand-mark { width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid rgba(202, 171, 255, .45); border-radius: 11px; background: linear-gradient(145deg, rgba(177, 128, 255, .28), rgba(83, 53, 132, .18)); color: #e7d7ff; box-shadow: 0 0 28px rgba(160, 105, 255, .18); }
42
- .top-label { color: #d8c7f7; border: 1px solid var(--line); background: rgba(31, 23, 46, .65); border-radius: 999px; padding: 7px 13px; font-size: .72rem; letter-spacing: .16em; font-weight: 750; }
43
- .hero { max-width: 760px; margin: 0 auto 48px; text-align: center; }
44
- .eyebrow { color: var(--purple); font-size: .76rem; font-weight: 750; letter-spacing: .22em; text-transform: uppercase; }
45
- h1 { margin: 15px 0 16px; font-size: clamp(2.5rem, 7vw, 5.2rem); letter-spacing: -.065em; line-height: .99; font-weight: 820; }
46
- h1 span { background: linear-gradient(100deg, #fff 10%, #d6baff 55%, #9c7be8 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
47
- .intro { max-width: 650px; margin: 0 auto; color: var(--muted); font-size: clamp(1rem, 2.2vw, 1.14rem); }
48
- .hero-note { margin-top: 22px; color: #d7c6f3; font-size: .9rem; }
49
- .methods { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; align-items: stretch; }
50
- .card { position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: 22px; padding: 25px; background: linear-gradient(155deg, rgba(37, 28, 53, .94), rgba(20, 16, 30, .96)); box-shadow: var(--shadow); }
51
- .card::before { content: ""; position: absolute; width: 190px; height: 190px; right: -100px; top: -115px; border-radius: 50%; background: rgba(158, 107, 240, .12); filter: blur(2px); pointer-events: none; }
52
- .card-head { display: flex; align-items: center; gap: 13px; margin-bottom: 18px; position: relative; }
53
- .icon { width: 44px; height: 44px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 14px; color: #e3d1ff; background: linear-gradient(145deg, rgba(174, 127, 255, .22), rgba(107, 77, 158, .18)); border: 1px solid rgba(193, 158, 255, .22); }
54
- .icon svg { width: 21px; height: 21px; }
55
- h2 { margin: 0; font-size: 1.15rem; letter-spacing: -.02em; }
56
- .sub { margin: 3px 0 0; color: var(--muted-2); font-size: .86rem; }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
57
  .field { margin-top: 17px; }
58
- .field-label { display: block; margin-bottom: 7px; color: #bfb2d1; font-size: .72rem; text-transform: uppercase; font-weight: 750; letter-spacing: .12em; }
59
- .value-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 48px; padding: 10px 11px 10px 14px; border-radius: 12px; border: 1px solid rgba(192, 166, 233, .13); background: rgba(8, 7, 13, .46); }
60
- .value { min-width: 0; overflow-wrap: anywhere; color: #f5efff; font-size: .94rem; font-weight: 650; }
61
- .muted-value { color: #8e829f; font-weight: 500; }
62
- button, .button-link { border: 0; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 11px; padding: 10px 13px; color: #160f22; background: linear-gradient(120deg, #d9c1ff, #ad82ef); font: inherit; font-size: .82rem; font-weight: 800; white-space: nowrap; transition: transform .18s ease, filter .18s ease; }
63
- button:hover, .button-link:hover { transform: translateY(-1px); filter: brightness(1.08); }
64
- button:focus-visible, a:focus-visible { outline: 2px solid #e3d1ff; outline-offset: 3px; }
65
- .copy-icon { width: 15px; height: 15px; }
66
- .network-note { margin: 9px 2px 0; color: #a99db9; font-size: .78rem; }
67
- .crypto-list { display: grid; gap: 12px; }
68
- .crypto-entry { margin-top: 0; padding: 15px; border: 1px solid rgba(192, 166, 233, .13); border-radius: 14px; background: rgba(8, 7, 13, .30); }
69
- .crypto-entry-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
70
- .asset-pill { display: inline-flex; align-items: center; border: 1px solid rgba(190, 158, 255, .24); background: rgba(145, 99, 214, .13); color: #e7d7ff; border-radius: 999px; padding: 4px 9px; font-size: .72rem; font-weight: 800; letter-spacing: .04em; }
71
- .crypto-network { color: var(--muted); font-size: .82rem; text-align: right; }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
72
  .crypto-memo { margin-top: 10px; }
 
73
  .crypto-memo .value-row { min-height: 42px; }
74
- .crypto-help { margin: 14px 2px 0; color: #a99db9; font-size: .78rem; }
75
- .paypal-card { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
76
  .paypal-card .card-head { margin: 0; }
77
- .paypal-copy { color: var(--muted); font-size: .88rem; margin: 7px 0 0; }
 
 
 
 
 
 
78
  .paypal-action { flex: 0 0 auto; }
79
- .footer { margin: 54px auto 0; text-align: center; max-width: 650px; }
 
 
 
 
 
 
80
  .heart { color: #d2aaff; }
81
- .thanks { color: #d8c9ec; font-size: 1rem; }
82
- .footer-small { color: var(--muted-2); font-size: .78rem; margin-top: 14px; }
83
- .toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 16px); opacity: 0; pointer-events: none; padding: 11px 16px; border: 1px solid rgba(142, 230, 187, .28); border-radius: 999px; color: #dfffee; background: #182a25; box-shadow: var(--shadow); font-size: .86rem; transition: opacity .2s ease, transform .2s ease; z-index: 5; }
84
- .toast.show { opacity: 1; transform: translate(-50%, 0); }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
85
  .hidden { display: none !important; }
 
86
  @media (max-width: 700px) {
87
- .page { width: min(100% - 28px, 560px); padding-top: 22px; }
 
 
 
 
88
  .topbar { margin-bottom: 54px; }
 
89
  .methods { grid-template-columns: 1fr; }
90
- .paypal-card { grid-column: auto; align-items: flex-start; flex-direction: column; }
91
- .paypal-action { width: 100%; }
92
- .paypal-action .button-link { width: 100%; }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
93
  .card { padding: 22px; }
 
94
  .footer { margin-top: 42px; }
95
  }
96
- @media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; } }
 
 
 
 
 
 
 
 
97
  </style>
98
  </head>
 
99
  <body>
100
  <main class="page">
 
101
  <header class="topbar">
102
- <a class="brand" id="brand-link" href="https://huggingface.co/Peymandc" target="_blank" rel="noopener noreferrer">
 
 
 
 
103
  <span class="brand-mark" aria-hidden="true">P</span>
104
  <span>PEYMANDC</span>
105
  </a>
 
106
  <span class="top-label">SUPPORT</span>
107
  </header>
108
 
109
  <section class="hero" aria-labelledby="page-title">
110
  <div class="eyebrow">Independent AI exploration</div>
111
- <h1 id="page-title"><span>Support the work.</span></h1>
112
- <p class="intro" id="intro-text">Your support helps fund experiments with open-weight models, model modifications, research, and future releases.</p>
113
- <p class="hero-note">Every contribution helps keep independent experimentation moving forward. <span class="heart">♥</span></p>
 
 
 
 
 
 
 
 
 
 
 
114
  </section>
115
 
116
  <section class="methods" aria-label="Ways to support Peymandc">
117
- <article class="card" id="bank-card">
 
 
 
 
118
  <div class="card-head">
119
  <div class="icon" aria-hidden="true">
120
- <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.7" stroke-linecap="round" stroke-linejoin="round"><rect x="3" y="5" width="18" height="14" rx="2"/><path d="M3 10h18M7 15h3"/></svg>
 
 
 
 
121
  </div>
122
- <div><h2>Bank transfer</h2><p class="sub">For supporters in Iran · IRR</p></div>
123
- </div>
124
- <div class="field" id="bank-name-field">
125
- <span class="field-label">Bank</span>
126
- <div class="value-row"><span class="value" id="bank-name">Your bank name</span></div>
127
- </div>
128
- <div class="field" id="account-name-field">
129
- <span class="field-label">Account holder</span>
130
- <div class="value-row"><span class="value" id="account-name">Your account name</span></div>
131
- </div>
132
- <div class="field" id="card-number-field">
133
- <span class="field-label">Card number</span>
134
- <div class="value-row">
135
- <span class="value" id="card-number" dir="ltr">0000 0000 0000 0000</span>
136
- <button type="button" class="copy-button" data-copy="card-number" aria-label="Copy bank card number"><svg class="copy-icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><rect x="8" y="8" width="12" height="12" rx="2"/><path d="M16 8V5a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v9a2 2 0 0 0 2 2h3"/></svg>Copy</button>
137
  </div>
138
  </div>
139
- <p class="network-note">Please double-check the recipient details before sending.</p>
 
 
 
 
 
 
 
 
 
140
  </article>
141
 
 
 
142
  <article class="card" id="crypto-card">
 
143
  <div class="card-head">
144
  <div class="icon" aria-hidden="true">
145
- <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.7" stroke-linecap="round" stroke-linejoin="round"><path d="M12 2v20M17 5H9.5a3.5 3.5 0 0 0 0 7H14a3.5 3.5 0 0 1 0 7H6"/><path d="M7 5h10M7 19h10"/></svg>
 
 
 
 
 
 
 
 
 
 
 
 
146
  </div>
147
- <div><h2>Cryptocurrency</h2><p class="sub">Choose from the supported coins and networks below</p></div>
148
  </div>
 
149
  <div class="crypto-list" id="crypto-list"></div>
150
- <p class="network-note">Only send the displayed asset using its specified network. The same coin may appear more than once when you accept it on different networks. Transfers sent using the wrong network or to the wrong address may be unrecoverable.</p>
151
- <p class="crypto-help">Always verify the asset, network, and address with your wallet before publishing this page.</p>
 
 
 
 
 
 
 
 
 
 
 
152
  </article>
153
 
 
 
154
  <article class="card paypal-card hidden" id="paypal-card">
 
155
  <div class="card-head">
156
  <div class="icon" aria-hidden="true">
157
- <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.7" stroke-linecap="round" stroke-linejoin="round"><path d="M7 20H5l2.4-14h7.2a4 4 0 0 1 3.9 4.7l-.2 1.1a5 5 0 0 1-4.9 4H9"/><path d="M9 16h6.5a4 4 0 0 0 3.9-3.2l.2-1.1"/></svg>
 
 
 
 
 
 
 
 
 
 
 
 
158
  </div>
159
- <div><h2>PayPal</h2><p class="paypal-copy">Support through PayPal, where available.</p></div>
160
  </div>
161
- <div class="paypal-action"><a class="button-link" id="paypal-link" href="#" target="_blank" rel="noopener noreferrer">Continue to PayPal <span aria-hidden="true">↗</span></a></div>
 
 
 
 
 
 
 
 
 
 
162
  </article>
 
163
  </section>
164
 
165
  <footer class="footer">
166
- <p class="thanks">Thank you for supporting independent work. <span class="heart">♥</span></p>
167
- <p class="footer-small">Peymandc · Open exploration, shared with the community.</p>
 
 
 
 
 
 
168
  </footer>
 
169
  </main>
170
- <div class="toast" id="toast" role="status" aria-live="polite">Copied</div>
 
 
 
171
 
172
  <script>
173
  /* ================================================================
174
  EDIT YOUR PAYMENT DETAILS HERE.
175
- Leave paypalUrl empty to hide the PayPal card.
176
- Never put passwords, PINs, CVV2, private keys, or seed phrases here.
 
 
 
 
177
  ================================================================ */
 
178
  const SUPPORT_CONFIG = {
179
- bank: {
180
- enabled: true,
181
- bankName: "Blue (Saman)",
182
- accountName: "Peyman Dehghan",
183
- cardNumber: "6219 8619 0868 5232"
184
- },
185
  crypto: [
186
- // Enable only the wallets you actually control and can receive funds with.
187
- // Replace each blank address and verify the exact network before publishing.
188
- { enabled: true, asset: "BTC", network: "Bitcoin", address: "bc1qqw8u6jpj5p48ra0xzjfat3ysnfx5yhgg2ke6jd" },
189
- { enabled: true, asset: "ETH", network: "Ethereum", address: "0xc2f37116a71CdA714EDB721489a6B7f5Df9AF371" },
190
- { enabled: true, asset: "BNB", network: "BNB Smart Chain (BEP20)", address: "0xc2f37116a71CdA714EDB721489a6B7f5Df9AF371" },
191
- { enabled: true, asset: "USDC", network: "Ethereum (ERC20)", address: "0xc2f37116a71CdA714EDB721489a6B7f5Df9AF371" },
192
- { enabled: true, asset: "USDC", network: "Solana (SPL)", address: "DCvMpk9uuwcwjimk6K9dRY5zoVjGbtSqPAKY84gfyPR3" },
193
- { enabled: true, asset: "GRAM (ex-TON)", network: "TON Network", address: "UQAi-sEJNF5d_1aU0nbrhzWgEVQZ_zbrwRb601GpOHoQ1vYc" },
194
- { enabled: true, asset: "SOL", network: "Solana", address: "DCvMpk9uuwcwjimk6K9dRY5zoVjGbtSqPAKY84gfyPR3" },
195
- { enabled: true, asset: "USDT", network: "TRON (TRC20)", address: "TERSq3ShDG8vvPb9tzooFSBrjm8iFXaghX" },
196
- { enabled: true, asset: "TRX", network: "TRON (TRC20)", address: "TERSq3ShDG8vvPb9tzooFSBrjm8iFXaghX" }
197
-
198
- // To add another network for the same coin, add another entry.
199
- // Example: { enabled: true, asset: "USDC", network: "Base", address: "YOUR_PUBLIC_ADDRESS" },
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
200
  ],
201
- // Add a payment URL only if you are legitimately eligible to use that PayPal account.
 
202
  paypalUrl: ""
 
203
  };
204
 
 
 
 
 
 
205
  const $ = (id) => document.getElementById(id);
 
206
  const isPlaceholder = (value) => {
207
- const text = String(value ?? "").trim();
208
-
209
- return !text ||
210
- /^(?:ADD(?:[_ -]|$)|YOUR(?:[_ -]|$)|PLACEHOLDER(?:[_ -]|$)|0{4})/i.test(text);
211
- };
212
-
213
- function configureBank() {
214
- const b = SUPPORT_CONFIG.bank;
215
- if (!b || !b.enabled) { $("bank-card").classList.add("hidden"); return; }
216
- $("bank-name").textContent = b.bankName || "";
217
- $("account-name").textContent = b.accountName || "";
218
- $("card-number").textContent = b.cardNumber || "";
219
- if (isPlaceholder(b.cardNumber)) $("card-number").classList.add("muted-value");
220
- [ ["bank-name-field", b.bankName], ["account-name-field", b.accountName], ["card-number-field", b.cardNumber] ].forEach(([id, value]) => {
221
- if (isPlaceholder(value)) $(id).classList.add("hidden");
222
- });
223
- if (isPlaceholder(b.cardNumber)) $("card-number-field").querySelector("button").disabled = true;
224
- }
225
 
226
  function configureCrypto() {
227
- // Only publish enabled entries that have a real address configured.
 
228
  const list = (SUPPORT_CONFIG.crypto || []).filter(wallet =>
229
- wallet && wallet.enabled && !isPlaceholder(wallet.address)
 
 
230
  );
231
- if (!list.length) { $("crypto-card").classList.add("hidden"); return; }
 
 
 
 
232
 
233
  const host = $("crypto-list");
 
234
  host.innerHTML = "";
235
  $("crypto-card").classList.remove("hidden");
236
 
237
  list.forEach(wallet => {
 
238
  const entry = document.createElement("div");
239
  entry.className = "crypto-entry";
240
 
 
241
  const head = document.createElement("div");
242
  head.className = "crypto-entry-head";
 
243
  const asset = document.createElement("span");
244
  asset.className = "asset-pill";
245
  asset.textContent = wallet.asset || "CRYPTO";
 
246
  const network = document.createElement("span");
247
  network.className = "crypto-network";
248
  network.textContent = wallet.network || "Network not specified";
 
249
  head.append(asset, network);
250
 
 
251
  const addressLabel = document.createElement("div");
252
  addressLabel.className = "field-label";
253
  addressLabel.textContent = "Wallet address";
 
254
  const row = document.createElement("div");
255
  row.className = "value-row";
 
256
  const address = document.createElement("span");
257
  address.className = "value";
258
  address.dir = "ltr";
@@ -262,86 +789,156 @@
262
  button.type = "button";
263
  button.className = "copy-button";
264
  button.textContent = "Copy";
265
- button.setAttribute("aria-label", `Copy ${wallet.asset || "crypto"} address on ${wallet.network || "the selected network"}`);
266
- button.addEventListener("click", () => copyText(wallet.address));
 
 
 
 
 
 
 
 
267
  row.append(address, button);
268
  entry.append(head, addressLabel, row);
269
 
270
- if (wallet.memo) {
 
 
271
  const memoWrap = document.createElement("div");
272
  memoWrap.className = "crypto-memo";
 
273
  const memoLabel = document.createElement("div");
274
  memoLabel.className = "field-label";
275
  memoLabel.textContent = "Memo / payment note";
 
276
  const memoRow = document.createElement("div");
277
  memoRow.className = "value-row";
 
278
  const memoValue = document.createElement("span");
279
  memoValue.className = "value";
280
  memoValue.dir = "ltr";
281
  memoValue.textContent = wallet.memo;
 
282
  const memoButton = document.createElement("button");
283
  memoButton.type = "button";
284
  memoButton.className = "copy-button";
285
  memoButton.textContent = "Copy";
286
- memoButton.setAttribute("aria-label", `Copy ${wallet.asset || "crypto"} memo`);
287
- memoButton.addEventListener("click", () => copyText(wallet.memo));
 
 
 
 
 
 
 
 
288
  memoRow.append(memoValue, memoButton);
289
  memoWrap.append(memoLabel, memoRow);
290
  entry.appendChild(memoWrap);
291
  }
292
 
293
  host.appendChild(entry);
 
294
  });
295
  }
296
 
 
 
 
 
 
297
  function configurePayPal() {
298
- const url = (SUPPORT_CONFIG.paypalUrl || "").trim();
299
- if (!url) return;
300
 
301
- try {
302
- const parsed = new URL(url);
303
- const host = parsed.hostname.toLowerCase();
304
 
305
- const allowed =
306
- host === "paypal.com" ||
307
- host.endsWith(".paypal.com") ||
308
- host === "paypal.me";
 
 
 
 
 
 
 
309
 
310
- if (parsed.protocol !== "https:" || !allowed) return;
 
311
 
312
- $("paypal-link").href = parsed.href;
313
- $("paypal-card").classList.remove("hidden");
314
- } catch (_) {
315
- // Keep PayPal hidden if the URL is invalid.
316
- }
317
- }
 
 
 
 
 
318
 
319
  let toastTimer;
 
320
  function showToast(message) {
 
321
  const toast = $("toast");
 
322
  toast.textContent = message;
323
  toast.classList.add("show");
 
324
  clearTimeout(toastTimer);
325
- toastTimer = setTimeout(() => toast.classList.remove("show"), 1800);
 
 
 
 
326
  }
 
 
327
  async function copyText(value) {
 
328
  try {
 
329
  await navigator.clipboard.writeText(String(value));
330
  showToast("Copied to clipboard");
 
331
  } catch (_) {
 
332
  showToast("Copy unavailable — please select and copy manually");
 
333
  }
334
  }
 
 
 
 
335
  document.querySelectorAll(".copy-button[data-copy]").forEach(button => {
 
336
  button.addEventListener("click", () => {
 
337
  const element = $(button.dataset.copy);
338
- if (element) copyText(element.textContent.trim());
 
 
 
 
339
  });
 
340
  });
341
 
342
- configureBank();
 
 
 
 
343
  configureCrypto();
344
  configurePayPal();
 
345
  </script>
346
  </body>
347
  </html>
 
1
+
2
  <!doctype html>
3
  <html lang="en">
4
  <head>
 
7
  <meta name="theme-color" content="#100d19">
8
  <meta name="description" content="Support Peymandc and independent AI exploration.">
9
  <title>Support Peymandc</title>
10
+
11
  <style>
12
  :root {
13
  color-scheme: dark;
14
  --bg: #0b0911;
 
 
15
  --line: rgba(190, 158, 255, .16);
16
  --text: #f7f3ff;
17
  --muted: #b8aecb;
18
  --muted-2: #8e829f;
19
  --purple: #b78aff;
 
20
  --success: #8ee6bb;
21
  --shadow: 0 24px 80px rgba(0, 0, 0, .38);
22
  }
23
+
24
  * { box-sizing: border-box; }
25
+
26
  html { scroll-behavior: smooth; }
27
+
28
  body {
29
  margin: 0;
30
  min-height: 100vh;
 
33
  radial-gradient(ellipse at 15% 5%, rgba(111, 62, 171, .27), transparent 35rem),
34
  radial-gradient(ellipse at 90% 30%, rgba(68, 61, 150, .18), transparent 34rem),
35
  linear-gradient(180deg, #100d19 0%, var(--bg) 70%);
36
+ font-family: Inter, ui-sans-serif, system-ui, -apple-system,
37
+ BlinkMacSystemFont, "Segoe UI", sans-serif;
38
  line-height: 1.55;
39
  }
40
+
41
  a { color: inherit; }
42
+
43
+ .page {
44
+ width: min(100% - 36px, 980px);
45
+ margin: 0 auto;
46
+ padding: 34px 0 30px;
47
+ }
48
+
49
+ .topbar {
50
+ display: flex;
51
+ align-items: center;
52
+ justify-content: space-between;
53
+ gap: 16px;
54
+ margin-bottom: 72px;
55
+ }
56
+
57
+ .brand {
58
+ display: inline-flex;
59
+ align-items: center;
60
+ gap: 11px;
61
+ text-decoration: none;
62
+ font-weight: 800;
63
+ letter-spacing: .15em;
64
+ font-size: .95rem;
65
+ }
66
+
67
+ .brand-mark {
68
+ width: 34px;
69
+ height: 34px;
70
+ display: grid;
71
+ place-items: center;
72
+ border: 1px solid rgba(202, 171, 255, .45);
73
+ border-radius: 11px;
74
+ background: linear-gradient(145deg,
75
+ rgba(177, 128, 255, .28),
76
+ rgba(83, 53, 132, .18));
77
+ color: #e7d7ff;
78
+ box-shadow: 0 0 28px rgba(160, 105, 255, .18);
79
+ }
80
+
81
+ .top-label {
82
+ color: #d8c7f7;
83
+ border: 1px solid var(--line);
84
+ background: rgba(31, 23, 46, .65);
85
+ border-radius: 999px;
86
+ padding: 7px 13px;
87
+ font-size: .72rem;
88
+ letter-spacing: .16em;
89
+ font-weight: 750;
90
+ }
91
+
92
+ .hero {
93
+ max-width: 760px;
94
+ margin: 0 auto 48px;
95
+ text-align: center;
96
+ }
97
+
98
+ .eyebrow {
99
+ color: var(--purple);
100
+ font-size: .76rem;
101
+ font-weight: 750;
102
+ letter-spacing: .22em;
103
+ text-transform: uppercase;
104
+ }
105
+
106
+ h1 {
107
+ margin: 15px 0 16px;
108
+ font-size: clamp(2.5rem, 7vw, 5.2rem);
109
+ letter-spacing: -.065em;
110
+ line-height: .99;
111
+ font-weight: 820;
112
+ }
113
+
114
+ h1 span {
115
+ background: linear-gradient(100deg,
116
+ #fff 10%, #d6baff 55%, #9c7be8 100%);
117
+ -webkit-background-clip: text;
118
+ background-clip: text;
119
+ color: transparent;
120
+ }
121
+
122
+ .intro {
123
+ max-width: 650px;
124
+ margin: 0 auto;
125
+ color: var(--muted);
126
+ font-size: clamp(1rem, 2.2vw, 1.14rem);
127
+ }
128
+
129
+ .hero-note {
130
+ margin-top: 22px;
131
+ color: #d7c6f3;
132
+ font-size: .9rem;
133
+ }
134
+
135
+ .methods {
136
+ display: grid;
137
+ grid-template-columns: repeat(2, minmax(0, 1fr));
138
+ gap: 18px;
139
+ align-items: stretch;
140
+ }
141
+
142
+ .card {
143
+ position: relative;
144
+ overflow: hidden;
145
+ border: 1px solid var(--line);
146
+ border-radius: 22px;
147
+ padding: 25px;
148
+ background: linear-gradient(155deg,
149
+ rgba(37, 28, 53, .94),
150
+ rgba(20, 16, 30, .96));
151
+ box-shadow: var(--shadow);
152
+ }
153
+
154
+ .card::before {
155
+ content: "";
156
+ position: absolute;
157
+ width: 190px;
158
+ height: 190px;
159
+ right: -100px;
160
+ top: -115px;
161
+ border-radius: 50%;
162
+ background: rgba(158, 107, 240, .12);
163
+ filter: blur(2px);
164
+ pointer-events: none;
165
+ }
166
+
167
+ .card-head {
168
+ display: flex;
169
+ align-items: center;
170
+ gap: 13px;
171
+ margin-bottom: 18px;
172
+ position: relative;
173
+ }
174
+
175
+ .icon {
176
+ width: 44px;
177
+ height: 44px;
178
+ display: grid;
179
+ place-items: center;
180
+ flex: 0 0 auto;
181
+ border-radius: 14px;
182
+ color: #e3d1ff;
183
+ background: linear-gradient(145deg,
184
+ rgba(174, 127, 255, .22),
185
+ rgba(107, 77, 158, .18));
186
+ border: 1px solid rgba(193, 158, 255, .22);
187
+ }
188
+
189
+ .icon svg {
190
+ width: 21px;
191
+ height: 21px;
192
+ }
193
+
194
+ h2 {
195
+ margin: 0;
196
+ font-size: 1.15rem;
197
+ letter-spacing: -.02em;
198
+ }
199
+
200
+ .sub {
201
+ margin: 3px 0 0;
202
+ color: var(--muted-2);
203
+ font-size: .86rem;
204
+ }
205
+
206
  .field { margin-top: 17px; }
207
+
208
+ .field-label {
209
+ display: block;
210
+ margin-bottom: 7px;
211
+ color: #bfb2d1;
212
+ font-size: .72rem;
213
+ text-transform: uppercase;
214
+ font-weight: 750;
215
+ letter-spacing: .12em;
216
+ }
217
+
218
+ .value-row {
219
+ display: flex;
220
+ align-items: center;
221
+ justify-content: space-between;
222
+ gap: 12px;
223
+ min-height: 48px;
224
+ padding: 10px 11px 10px 14px;
225
+ border-radius: 12px;
226
+ border: 1px solid rgba(192, 166, 233, .13);
227
+ background: rgba(8, 7, 13, .46);
228
+ }
229
+
230
+ .value {
231
+ min-width: 0;
232
+ overflow-wrap: anywhere;
233
+ color: #f5efff;
234
+ font-size: .94rem;
235
+ font-weight: 650;
236
+ }
237
+
238
+ button, .button-link {
239
+ border: 0;
240
+ cursor: pointer;
241
+ text-decoration: none;
242
+ display: inline-flex;
243
+ align-items: center;
244
+ justify-content: center;
245
+ gap: 8px;
246
+ border-radius: 11px;
247
+ padding: 10px 13px;
248
+ color: #160f22;
249
+ background: linear-gradient(120deg, #d9c1ff, #ad82ef);
250
+ font: inherit;
251
+ font-size: .82rem;
252
+ font-weight: 800;
253
+ white-space: nowrap;
254
+ transition: transform .18s ease, filter .18s ease;
255
+ }
256
+
257
+ button:hover, .button-link:hover {
258
+ transform: translateY(-1px);
259
+ filter: brightness(1.08);
260
+ }
261
+
262
+ button:focus-visible, a:focus-visible {
263
+ outline: 2px solid #e3d1ff;
264
+ outline-offset: 3px;
265
+ }
266
+
267
+ button:disabled {
268
+ opacity: .45;
269
+ cursor: not-allowed;
270
+ transform: none;
271
+ }
272
+
273
+ .copy-icon {
274
+ width: 15px;
275
+ height: 15px;
276
+ }
277
+
278
+ .network-note {
279
+ margin: 9px 2px 0;
280
+ color: #a99db9;
281
+ font-size: .78rem;
282
+ }
283
+
284
+ .crypto-list {
285
+ display: grid;
286
+ gap: 12px;
287
+ }
288
+
289
+ .crypto-entry {
290
+ margin-top: 0;
291
+ padding: 15px;
292
+ border: 1px solid rgba(192, 166, 233, .13);
293
+ border-radius: 14px;
294
+ background: rgba(8, 7, 13, .30);
295
+ }
296
+
297
+ .crypto-entry-head {
298
+ display: flex;
299
+ align-items: center;
300
+ justify-content: space-between;
301
+ gap: 10px;
302
+ margin-bottom: 10px;
303
+ }
304
+
305
+ .asset-pill {
306
+ display: inline-flex;
307
+ align-items: center;
308
+ border: 1px solid rgba(190, 158, 255, .24);
309
+ background: rgba(145, 99, 214, .13);
310
+ color: #e7d7ff;
311
+ border-radius: 999px;
312
+ padding: 4px 9px;
313
+ font-size: .72rem;
314
+ font-weight: 800;
315
+ letter-spacing: .04em;
316
+ }
317
+
318
+ .crypto-network {
319
+ color: var(--muted);
320
+ font-size: .82rem;
321
+ text-align: right;
322
+ }
323
+
324
  .crypto-memo { margin-top: 10px; }
325
+
326
  .crypto-memo .value-row { min-height: 42px; }
327
+
328
+ .crypto-help {
329
+ margin: 14px 2px 0;
330
+ color: #a99db9;
331
+ font-size: .78rem;
332
+ }
333
+
334
+ /* Donation cards */
335
+
336
+ .donation-card {
337
+ grid-column: 1 / -1;
338
+ display: flex;
339
+ align-items: center;
340
+ justify-content: space-between;
341
+ gap: 20px;
342
+ }
343
+
344
+ .donation-card .card-head { margin: 0; }
345
+
346
+ .donation-copy {
347
+ color: var(--muted);
348
+ font-size: .88rem;
349
+ margin: 7px 0 0;
350
+ }
351
+
352
+ .donation-action { flex: 0 0 auto; }
353
+
354
+ .donation-action .button-link {
355
+ padding: 12px 18px;
356
+ }
357
+
358
+ .paypal-card {
359
+ grid-column: 1 / -1;
360
+ display: flex;
361
+ align-items: center;
362
+ justify-content: space-between;
363
+ gap: 20px;
364
+ }
365
+
366
  .paypal-card .card-head { margin: 0; }
367
+
368
+ .paypal-copy {
369
+ color: var(--muted);
370
+ font-size: .88rem;
371
+ margin: 7px 0 0;
372
+ }
373
+
374
  .paypal-action { flex: 0 0 auto; }
375
+
376
+ .footer {
377
+ margin: 54px auto 0;
378
+ text-align: center;
379
+ max-width: 650px;
380
+ }
381
+
382
  .heart { color: #d2aaff; }
383
+
384
+ .thanks {
385
+ color: #d8c9ec;
386
+ font-size: 1rem;
387
+ }
388
+
389
+ .footer-small {
390
+ color: var(--muted-2);
391
+ font-size: .78rem;
392
+ margin-top: 14px;
393
+ }
394
+
395
+ .toast {
396
+ position: fixed;
397
+ left: 50%;
398
+ bottom: 24px;
399
+ transform: translate(-50%, 16px);
400
+ opacity: 0;
401
+ pointer-events: none;
402
+ padding: 11px 16px;
403
+ border: 1px solid rgba(142, 230, 187, .28);
404
+ border-radius: 999px;
405
+ color: #dfffee;
406
+ background: #182a25;
407
+ box-shadow: var(--shadow);
408
+ font-size: .86rem;
409
+ transition: opacity .2s ease, transform .2s ease;
410
+ z-index: 5;
411
+ }
412
+
413
+ .toast.show {
414
+ opacity: 1;
415
+ transform: translate(-50%, 0);
416
+ }
417
+
418
  .hidden { display: none !important; }
419
+
420
  @media (max-width: 700px) {
421
+ .page {
422
+ width: min(100% - 28px, 560px);
423
+ padding-top: 22px;
424
+ }
425
+
426
  .topbar { margin-bottom: 54px; }
427
+
428
  .methods { grid-template-columns: 1fr; }
429
+
430
+ .donation-card,
431
+ .paypal-card {
432
+ grid-column: auto;
433
+ align-items: flex-start;
434
+ flex-direction: column;
435
+ }
436
+
437
+ .donation-action,
438
+ .paypal-action {
439
+ width: 100%;
440
+ }
441
+
442
+ .donation-action .button-link,
443
+ .paypal-action .button-link {
444
+ width: 100%;
445
+ }
446
+
447
  .card { padding: 22px; }
448
+
449
  .footer { margin-top: 42px; }
450
  }
451
+
452
+ @media (prefers-reduced-motion: reduce) {
453
+ *,
454
+ *::before,
455
+ *::after {
456
+ scroll-behavior: auto !important;
457
+ transition: none !important;
458
+ }
459
+ }
460
  </style>
461
  </head>
462
+
463
  <body>
464
  <main class="page">
465
+
466
  <header class="topbar">
467
+ <a class="brand"
468
+ id="brand-link"
469
+ href="https://huggingface.co/Peymandc"
470
+ target="_blank"
471
+ rel="noopener noreferrer">
472
  <span class="brand-mark" aria-hidden="true">P</span>
473
  <span>PEYMANDC</span>
474
  </a>
475
+
476
  <span class="top-label">SUPPORT</span>
477
  </header>
478
 
479
  <section class="hero" aria-labelledby="page-title">
480
  <div class="eyebrow">Independent AI exploration</div>
481
+
482
+ <h1 id="page-title">
483
+ <span>Support the work.</span>
484
+ </h1>
485
+
486
+ <p class="intro">
487
+ Your support helps fund experiments with open-weight models,
488
+ model modifications, research, and future releases.
489
+ </p>
490
+
491
+ <p class="hero-note">
492
+ Every contribution helps keep independent experimentation
493
+ moving forward. <span class="heart">♥</span>
494
+ </p>
495
  </section>
496
 
497
  <section class="methods" aria-label="Ways to support Peymandc">
498
+
499
+ <!-- DONOFA DONATIONS -->
500
+
501
+ <article class="card donation-card" id="donofa-card">
502
+
503
  <div class="card-head">
504
  <div class="icon" aria-hidden="true">
505
+ <svg viewBox="0 0 24 24" fill="none"
506
+ stroke="currentColor" stroke-width="1.7"
507
+ stroke-linecap="round" stroke-linejoin="round">
508
+ <path d="M12 2v20M17 5H9.5a3.5 3.5 0 0 0 0 7H14a3.5 3.5 0 0 1 0 7H6"/>
509
+ </svg>
510
  </div>
511
+
512
+ <div>
513
+ <h2>Support via Donofa</h2>
514
+ <p class="donation-copy">
515
+ A simple way to support my work through donations.
516
+ </p>
 
 
 
 
 
 
 
 
 
517
  </div>
518
  </div>
519
+
520
+ <div class="donation-action">
521
+ <a class="button-link"
522
+ href="https://donofa.ir/peymandc"
523
+ target="_blank"
524
+ rel="noopener noreferrer">
525
+ Donate now <span aria-hidden="true">↗</span>
526
+ </a>
527
+ </div>
528
+
529
  </article>
530
 
531
+ <!-- CRYPTOCURRENCY -->
532
+
533
  <article class="card" id="crypto-card">
534
+
535
  <div class="card-head">
536
  <div class="icon" aria-hidden="true">
537
+ <svg viewBox="0 0 24 24" fill="none"
538
+ stroke="currentColor" stroke-width="1.7"
539
+ stroke-linecap="round" stroke-linejoin="round">
540
+ <path d="M12 2v20M17 5H9.5a3.5 3.5 0 0 0 0 7H14a3.5 3.5 0 0 1 0 7H6"/>
541
+ <path d="M7 5h10M7 19h10"/>
542
+ </svg>
543
+ </div>
544
+
545
+ <div>
546
+ <h2>Cryptocurrency</h2>
547
+ <p class="sub">
548
+ Choose from the supported coins and networks below
549
+ </p>
550
  </div>
 
551
  </div>
552
+
553
  <div class="crypto-list" id="crypto-list"></div>
554
+
555
+ <p class="network-note">
556
+ Only send the displayed asset using its specified network.
557
+ The same coin may appear more than once when you accept it
558
+ on different networks. Transfers sent using the wrong
559
+ network or to the wrong address may be unrecoverable.
560
+ </p>
561
+
562
+ <p class="crypto-help">
563
+ Always verify the asset, network, and address with your
564
+ wallet before sending.
565
+ </p>
566
+
567
  </article>
568
 
569
+ <!-- PAYPAL -->
570
+
571
  <article class="card paypal-card hidden" id="paypal-card">
572
+
573
  <div class="card-head">
574
  <div class="icon" aria-hidden="true">
575
+ <svg viewBox="0 0 24 24" fill="none"
576
+ stroke="currentColor" stroke-width="1.7"
577
+ stroke-linecap="round" stroke-linejoin="round">
578
+ <path d="M7 20H5l2.4-14h7.2a4 4 0 0 1 3.9 4.7l-.2 1.1a5 5 0 0 1-4.9 4H9"/>
579
+ <path d="M9 16h6.5a4 4 0 0 0 3.9-3.2l.2-1.1"/>
580
+ </svg>
581
+ </div>
582
+
583
+ <div>
584
+ <h2>PayPal</h2>
585
+ <p class="paypal-copy">
586
+ Support through PayPal, where available.
587
+ </p>
588
  </div>
 
589
  </div>
590
+
591
+ <div class="paypal-action">
592
+ <a class="button-link"
593
+ id="paypal-link"
594
+ href="#"
595
+ target="_blank"
596
+ rel="noopener noreferrer">
597
+ Continue to PayPal <span aria-hidden="true">↗</span>
598
+ </a>
599
+ </div>
600
+
601
  </article>
602
+
603
  </section>
604
 
605
  <footer class="footer">
606
+ <p class="thanks">
607
+ Thank you for supporting independent work.
608
+ <span class="heart">♥</span>
609
+ </p>
610
+
611
+ <p class="footer-small">
612
+ Peymandc · Open exploration, shared with the community.
613
+ </p>
614
  </footer>
615
+
616
  </main>
617
+
618
+ <div class="toast" id="toast" role="status" aria-live="polite">
619
+ Copied
620
+ </div>
621
 
622
  <script>
623
  /* ================================================================
624
  EDIT YOUR PAYMENT DETAILS HERE.
625
+
626
+ Add your PayPal URL only when your account is active
627
+ and you are legitimately eligible to receive payments.
628
+
629
+ Never put passwords, PINs, CVV2, private keys,
630
+ or seed phrases here.
631
  ================================================================ */
632
+
633
  const SUPPORT_CONFIG = {
634
+
 
 
 
 
 
635
  crypto: [
636
+
637
+ // Enable only wallets you control and can receive funds with.
638
+ // Verify the exact network before publishing.
639
+
640
+ {
641
+ enabled: true,
642
+ asset: "BTC",
643
+ network: "Bitcoin",
644
+ address: "bc1qqw8u6jpj5p48ra0xzjfat3ysnfx5yhgg2ke6jd"
645
+ },
646
+
647
+ {
648
+ enabled: true,
649
+ asset: "ETH",
650
+ network: "Ethereum",
651
+ address: "0xc2f37116a71CdA714EDB721489a6B7f5Df9AF371"
652
+ },
653
+
654
+ {
655
+ enabled: true,
656
+ asset: "BNB",
657
+ network: "BNB Smart Chain (BEP20)",
658
+ address: "0xc2f37116a71CdA714EDB721489a6B7f5Df9AF371"
659
+ },
660
+
661
+ {
662
+ enabled: true,
663
+ asset: "USDC",
664
+ network: "Ethereum (ERC20)",
665
+ address: "0xc2f37116a71CdA714EDB721489a6B7f5Df9AF371"
666
+ },
667
+
668
+ {
669
+ enabled: true,
670
+ asset: "USDC",
671
+ network: "Solana (SPL)",
672
+ address: "DCvMpk9uuwcwjimk6K9dRY5zoVjGbtSqPAKY84gfyPR3"
673
+ },
674
+
675
+ {
676
+ enabled: true,
677
+ asset: "GRAM (ex-TON)",
678
+ network: "TON Network",
679
+ address: "UQAi-sEJNF5d_1aU0nbrhzWgEVQZ_zbrwRb601GpOHoQ1vYc"
680
+ },
681
+
682
+ {
683
+ enabled: true,
684
+ asset: "SOL",
685
+ network: "Solana",
686
+ address: "DCvMpk9uuwcwjimk6K9dRY5zoVjGbtSqPAKY84gfyPR3"
687
+ },
688
+
689
+ {
690
+ enabled: true,
691
+ asset: "USDT",
692
+ network: "TRON (TRC20)",
693
+ address: "TERSq3ShDG8vvPb9tzooFSBrjm8iFXaghX"
694
+ },
695
+
696
+ {
697
+ enabled: true,
698
+ asset: "TRX",
699
+ network: "TRON (TRC20)",
700
+ address: "TERSq3ShDG8vvPb9tzooFSBrjm8iFXaghX"
701
+ }
702
+
703
+ // To add another network for the same coin:
704
+ // {
705
+ // enabled: true,
706
+ // asset: "USDC",
707
+ // network: "Base",
708
+ // address: "YOUR_PUBLIC_ADDRESS"
709
+ // }
710
+
711
  ],
712
+
713
+ // Leave empty to keep PayPal hidden.
714
  paypalUrl: ""
715
+
716
  };
717
 
718
+
719
+ /* ================================================================
720
+ HELPERS
721
+ ================================================================ */
722
+
723
  const $ = (id) => document.getElementById(id);
724
+
725
  const isPlaceholder = (value) => {
726
+ const text = String(value ?? "").trim();
727
+
728
+ return !text ||
729
+ /^(?:ADD(?:[_ -]|$)|YOUR(?:[_ -]|$)|PLACEHOLDER(?:[_ -]|$)|0{4})/i.test(text);
730
+ };
731
+
732
+
733
+ /* ================================================================
734
+ CRYPTOCURRENCY
735
+ ================================================================ */
 
 
 
 
 
 
 
 
736
 
737
  function configureCrypto() {
738
+
739
+ // Only publish enabled entries with configured addresses.
740
  const list = (SUPPORT_CONFIG.crypto || []).filter(wallet =>
741
+ wallet &&
742
+ wallet.enabled &&
743
+ !isPlaceholder(wallet.address)
744
  );
745
+
746
+ if (!list.length) {
747
+ $("crypto-card").classList.add("hidden");
748
+ return;
749
+ }
750
 
751
  const host = $("crypto-list");
752
+
753
  host.innerHTML = "";
754
  $("crypto-card").classList.remove("hidden");
755
 
756
  list.forEach(wallet => {
757
+
758
  const entry = document.createElement("div");
759
  entry.className = "crypto-entry";
760
 
761
+ // Asset and network header.
762
  const head = document.createElement("div");
763
  head.className = "crypto-entry-head";
764
+
765
  const asset = document.createElement("span");
766
  asset.className = "asset-pill";
767
  asset.textContent = wallet.asset || "CRYPTO";
768
+
769
  const network = document.createElement("span");
770
  network.className = "crypto-network";
771
  network.textContent = wallet.network || "Network not specified";
772
+
773
  head.append(asset, network);
774
 
775
+ // Wallet address.
776
  const addressLabel = document.createElement("div");
777
  addressLabel.className = "field-label";
778
  addressLabel.textContent = "Wallet address";
779
+
780
  const row = document.createElement("div");
781
  row.className = "value-row";
782
+
783
  const address = document.createElement("span");
784
  address.className = "value";
785
  address.dir = "ltr";
 
789
  button.type = "button";
790
  button.className = "copy-button";
791
  button.textContent = "Copy";
792
+
793
+ button.setAttribute(
794
+ "aria-label",
795
+ `Copy ${wallet.asset || "crypto"} address on ${wallet.network || "the selected network"}`
796
+ );
797
+
798
+ button.addEventListener("click", () => {
799
+ copyText(wallet.address);
800
+ });
801
+
802
  row.append(address, button);
803
  entry.append(head, addressLabel, row);
804
 
805
+ // Optional memo or payment note.
806
+ if (wallet.memo && !isPlaceholder(wallet.memo)) {
807
+
808
  const memoWrap = document.createElement("div");
809
  memoWrap.className = "crypto-memo";
810
+
811
  const memoLabel = document.createElement("div");
812
  memoLabel.className = "field-label";
813
  memoLabel.textContent = "Memo / payment note";
814
+
815
  const memoRow = document.createElement("div");
816
  memoRow.className = "value-row";
817
+
818
  const memoValue = document.createElement("span");
819
  memoValue.className = "value";
820
  memoValue.dir = "ltr";
821
  memoValue.textContent = wallet.memo;
822
+
823
  const memoButton = document.createElement("button");
824
  memoButton.type = "button";
825
  memoButton.className = "copy-button";
826
  memoButton.textContent = "Copy";
827
+
828
+ memoButton.setAttribute(
829
+ "aria-label",
830
+ `Copy ${wallet.asset || "crypto"} memo`
831
+ );
832
+
833
+ memoButton.addEventListener("click", () => {
834
+ copyText(wallet.memo);
835
+ });
836
+
837
  memoRow.append(memoValue, memoButton);
838
  memoWrap.append(memoLabel, memoRow);
839
  entry.appendChild(memoWrap);
840
  }
841
 
842
  host.appendChild(entry);
843
+
844
  });
845
  }
846
 
847
+
848
+ /* ================================================================
849
+ PAYPAL
850
+ ================================================================ */
851
+
852
  function configurePayPal() {
 
 
853
 
854
+ const url = (SUPPORT_CONFIG.paypalUrl || "").trim();
855
+
856
+ if (!url) return;
857
 
858
+ try {
859
+
860
+ const parsed = new URL(url);
861
+ const host = parsed.hostname.toLowerCase();
862
+
863
+ const allowed =
864
+ host === "paypal.com" ||
865
+ host.endsWith(".paypal.com") ||
866
+ host === "paypal.me";
867
+
868
+ if (parsed.protocol !== "https:" || !allowed) return;
869
 
870
+ $("paypal-link").href = parsed.href;
871
+ $("paypal-card").classList.remove("hidden");
872
 
873
+ } catch (_) {
874
+
875
+ // Keep PayPal hidden if the URL is invalid.
876
+
877
+ }
878
+ }
879
+
880
+
881
+ /* ================================================================
882
+ COPY TO CLIPBOARD
883
+ ================================================================ */
884
 
885
  let toastTimer;
886
+
887
  function showToast(message) {
888
+
889
  const toast = $("toast");
890
+
891
  toast.textContent = message;
892
  toast.classList.add("show");
893
+
894
  clearTimeout(toastTimer);
895
+
896
+ toastTimer = setTimeout(() => {
897
+ toast.classList.remove("show");
898
+ }, 1800);
899
+
900
  }
901
+
902
+
903
  async function copyText(value) {
904
+
905
  try {
906
+
907
  await navigator.clipboard.writeText(String(value));
908
  showToast("Copied to clipboard");
909
+
910
  } catch (_) {
911
+
912
  showToast("Copy unavailable — please select and copy manually");
913
+
914
  }
915
  }
916
+
917
+
918
+ // Bank transfers have been removed.
919
+ // This listener handles any future static copy buttons.
920
  document.querySelectorAll(".copy-button[data-copy]").forEach(button => {
921
+
922
  button.addEventListener("click", () => {
923
+
924
  const element = $(button.dataset.copy);
925
+
926
+ if (element) {
927
+ copyText(element.textContent.trim());
928
+ }
929
+
930
  });
931
+
932
  });
933
 
934
+
935
+ /* ================================================================
936
+ INITIALIZE
937
+ ================================================================ */
938
+
939
  configureCrypto();
940
  configurePayPal();
941
+
942
  </script>
943
  </body>
944
  </html>