:root {
  --bg: #fff6ee;
  --ink: #3a2338;
  --muted: #7d6577;
  --line: #f1e2d7;
  --card: #ffffff;
  --gold: #c9963a;
  --gold-soft: #fbefd6;
  --rose: #e8607a;
  --coral: #f59a6a;
  --ok: #2f8f5f;
  --ok-soft: #e4f4ea;
  --bad: #c2414b;
  --bad-soft: #fde8ea;
  --warn-soft: #fff4d9;
  --grad: linear-gradient(135deg, #e8607a 0%, #f2826f 55%, #f6a96b 100%);
  --shadow: 0 10px 30px rgba(140, 70, 60, .10), 0 2px 6px rgba(140, 70, 60, .06);
  --radius: 18px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Assistant", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(600px 400px at 110% -10%, #ffd9d2 0%, transparent 60%),
    radial-gradient(500px 380px at -15% 15%, #fde9c4 0%, transparent 60%),
    radial-gradient(500px 500px at 50% 120%, #ffe1e6 0%, transparent 60%),
    var(--bg);
  background-attachment: fixed;
  min-height: 100vh;
  line-height: 1.45;
}
.wrap { max-width: 520px; margin: 0 auto; padding: 18px 16px 48px; }
body.admin .wrap { max-width: 1100px; }

h1, h2, .couple, .sum-amount, .num {
  font-family: "Secular One", "Assistant", sans-serif;
  font-weight: 400;
}
h1 { font-size: 1.85rem; line-height: 1.2; margin: 6px 0 8px; text-align: center; }
h2 { font-size: 1.35rem; margin: 18px 0 10px; }
a { color: var(--rose); }
.link { color: var(--rose); font-weight: 700; }
.center { text-align: center; }
.hidden { display: none; }
.nowrap { white-space: nowrap; }

/* hero */
.hero { text-align: center; padding: 18px 4px 10px; }
.hero.small { padding-top: 4px; }
.sparkle { color: var(--gold); font-weight: 800; letter-spacing: .5px; }
.couple { font-size: 1.15rem; color: var(--rose); margin-top: 4px; }
.sub { color: var(--muted); margin: 0 auto; max-width: 30ch; font-size: 1.05rem; }

/* cards & form */
.card {
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 18px 16px 20px; margin-top: 14px; border: 1px solid #fff;
}
.label { display: block; font-weight: 800; font-size: 1.05rem; margin: 14px 0 8px; }
.card .label:first-child { margin-top: 0; }
input[type=text] {
  width: 100%; padding: 13px 14px; font: inherit; font-size: 1.12rem; color: var(--ink);
  border: 1.5px solid var(--line); border-radius: 14px; background: #fffdfb; outline: none;
  transition: border-color .15s, box-shadow .15s;
}
input[type=text]:focus { border-color: var(--rose); box-shadow: 0 0 0 4px rgba(232, 96, 122, .15); }
.hint { color: var(--muted); font-size: .88rem; margin-top: 5px; }
.row { display: flex; gap: 10px; }
.col-1 { flex: 1; }
.col-2 { flex: 2; }

/* amount chips */
.chips { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 10px; }
.chip {
  font-family: "Secular One", "Assistant", sans-serif; font-size: 1.45rem; color: var(--ink);
  padding: 14px 6px; border-radius: 16px; cursor: pointer;
  background: linear-gradient(180deg, #fffaf2, var(--gold-soft));
  border: 2px solid #f0dcb4; transition: transform .12s, box-shadow .15s, border-color .15s;
}
.chip .cur { font-size: 1rem; margin-inline-end: 3px; color: var(--gold); }
.chip:active { transform: scale(.97); }
.chip.selected {
  background: var(--grad); color: #fff; border-color: transparent;
  box-shadow: 0 8px 20px rgba(232, 96, 122, .35); transform: translateY(-1px);
}
.chip.selected .cur { color: #fff; }
.amount-field { position: relative; }
.amount-field .cur { position: absolute; inset-inline-start: 14px; top: 50%; transform: translateY(-50%); color: var(--gold); font-weight: 800; }
.amount-field input { padding-inline-start: 34px; }

/* buttons */
.choose { text-align: center; font-weight: 800; margin: 22px 0 10px; color: var(--muted); }
.btn {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  width: 100%; margin-top: 12px; padding: 15px 14px; border-radius: 16px; cursor: pointer;
  font: inherit; text-decoration: none; text-align: center; transition: transform .12s, box-shadow .15s, opacity .15s;
}
.btn:active { transform: scale(.985); }
.btn-title { font-size: 1.12rem; font-weight: 800; }
.btn-sub { font-size: .9rem; opacity: .9; }
.btn-primary { background: var(--grad); color: #fff; border: 0; box-shadow: 0 10px 24px rgba(232, 96, 122, .35); }
.btn-secondary { background: #fff; color: var(--ink); border: 2px solid #ecd2a4; }
.btn-ghost { background: transparent; color: var(--rose); border: 2px dashed #f2b8c3; }
.btn.small { display: inline-flex; width: auto; padding: 9px 14px; margin: 0; }
.btn.small .btn-title { font-size: .95rem; }
.btn[disabled] { opacity: .65; cursor: progress; }

/* banks */
.banks { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.bank {
  display: flex; align-items: center; gap: 8px; padding: 11px 10px; background: #fffdfb;
  border: 2px solid var(--line); border-radius: 14px; cursor: pointer; font-weight: 600;
}
.bank img { width: 28px; height: 28px; object-fit: contain; flex: none; }
.bank input { position: absolute; opacity: 0; pointer-events: none; }
.bank:has(input:checked) { border-color: var(--rose); background: #fff1f3; box-shadow: 0 0 0 3px rgba(232, 96, 122, .12); }

/* summary / alerts */
.back { display: inline-block; color: var(--muted); text-decoration: none; font-weight: 700; margin-bottom: 6px; }
.summary {
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  background: var(--gold-soft); border: 1px solid #f0dcb4; border-radius: 14px; padding: 12px 16px; margin: 6px 0 10px;
}
.summary.center-sum { flex-direction: column; justify-content: center; gap: 0; }
.sum-amount { font-size: 1.6rem; color: var(--ink); }
.alert { background: var(--bad-soft); color: #7c2430; border: 1px solid #f6c6cc; padding: 12px 14px; border-radius: 14px; margin: 12px 0; font-weight: 600; }
.alert.soft { background: #fff0ec; color: #7a3a2c; border-color: #f8d2c5; }
.warn { background: var(--warn-soft); border: 1px solid #f0d58a; padding: 12px 14px; border-radius: 14px; margin: 12px 0; }
.banner { background: #3a2338; color: #fff; text-align: center; padding: 6px; border-radius: 10px; margin-bottom: 8px; font-size: .9rem; }
.lead { font-size: 1.08rem; text-align: center; color: var(--ink); margin: 10px 0; }
.foot { text-align: center; color: var(--muted); font-size: .85rem; margin-top: 22px; }

/* manual details */
.details { padding: 4px 16px; }
.line, .note-box { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.line:last-child { border-bottom: 0; }
.lbl { color: var(--muted); font-size: .85rem; }
.val { font-size: 1.2rem; font-weight: 800; unicode-bidi: plaintext; word-break: break-word; }
.note-box { background: #fff; border: 2px dashed #ecd2a4; border-radius: 14px; padding: 12px 14px; margin-top: 12px; }
.copy {
  flex: none; padding: 8px 14px; border-radius: 12px; cursor: pointer; font: inherit; font-weight: 800;
  border: 2px solid var(--rose); color: var(--rose); background: #fff;
}
.copy.done { background: var(--rose); color: #fff; }
.done-box { background: var(--ok-soft); color: var(--ok); font-weight: 800; text-align: center; padding: 14px; border-radius: 14px; margin-top: 14px; }

/* thanks / pending */
.thanks { text-align: center; padding-top: 30px; }
.big-heart { font-size: 4rem; animation: pop .6s ease-out; }
@keyframes pop { 0% { transform: scale(.3); opacity: 0; } 70% { transform: scale(1.15); } 100% { transform: scale(1); opacity: 1; } }
.spinner { width: 54px; height: 54px; margin: 10px auto 16px; border-radius: 50%; border: 5px solid var(--gold-soft); border-top-color: var(--rose); animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.confetti { position: fixed; top: -20px; width: 10px; height: 14px; border-radius: 3px; pointer-events: none; z-index: 10; animation: fall linear forwards; }
@keyframes fall { to { transform: translateY(110vh) rotate(720deg); } }
pre.debug { direction: ltr; text-align: left; white-space: pre-wrap; word-break: break-word; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 10px; font-size: .8rem; }

/* admin */
.totals { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; margin: 12px 0; }
.total { background: #fff; border-radius: 14px; padding: 12px 14px; box-shadow: var(--shadow); }
.total .num { font-size: 1.5rem; }
.total.ok .num { color: var(--ok); }
.total.warn .num { color: #a86a00; }
.total.pending .num { color: var(--muted); }
.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 12px 0; }
.table-wrap { overflow-x: auto; background: #fff; border-radius: 14px; box-shadow: var(--shadow); }
table { width: 100%; border-collapse: collapse; font-size: .95rem; }
th, td { padding: 9px 10px; border-bottom: 1px solid var(--line); text-align: start; vertical-align: top; }
th { background: #fdf3ea; font-weight: 800; position: sticky; top: 0; }
tr.ok td:first-child { box-shadow: inset -4px 0 0 var(--ok); }
tr.warn td:first-child { box-shadow: inset -4px 0 0 #e0a800; }
tr.bad td:first-child { box-shadow: inset -4px 0 0 var(--bad); }
tr.pending td:first-child { box-shadow: inset -4px 0 0 #bbb; }
.mini { font: inherit; font-size: .85rem; padding: 4px 10px; border-radius: 8px; border: 1px solid #ddd; background: #fff; cursor: pointer; }
.mini.on { background: var(--ok); color: #fff; border-color: var(--ok); }
.note-form { display: flex; gap: 4px; }
.note-form input { padding: 4px 8px; font-size: .9rem; min-width: 120px; border-radius: 8px; }

@media (max-width: 360px) {
  h1 { font-size: 1.6rem; }
  .chip { font-size: 1.25rem; }
}

/* bank-app retry popup */
.btn-note { text-align: center; color: var(--muted); font-size: .86rem; margin-top: 7px; }
.modal { position: fixed; inset: 0; z-index: 20; display: flex; align-items: flex-end; justify-content: center;
         background: rgba(58, 35, 56, .45); padding: 16px; animation: fade .2s ease-out; }
.modal.hidden { display: none; }
.modal-box { width: 100%; max-width: 480px; background: #fff; border-radius: 22px; padding: 20px 18px 16px;
             box-shadow: 0 20px 50px rgba(0, 0, 0, .25); animation: rise .25s ease-out; max-height: 92vh; overflow-y: auto; }
.modal-box h2 { text-align: center; margin: 4px 0 8px; }
.modal-box p { margin: 6px 0; }
.modal-box ol { margin: 8px 0 4px; padding-inline-start: 20px; }
.modal-box li { margin-bottom: 5px; }
.modal-icon { text-align: center; font-size: 2.4rem; }
@keyframes fade { from { opacity: 0; } }
@keyframes rise { from { transform: translateY(40px); opacity: 0; } }

/* top bar / language */
.topbar { display: flex; justify-content: flex-end; margin-bottom: 2px; }
.lang-toggle { font-size: .9rem; font-weight: 700; color: var(--muted); text-decoration: none;
               background: rgba(255, 255, 255, .7); border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px; }
.muted-link { color: var(--muted); font-weight: 600; font-size: .95rem; }
textarea { width: 100%; padding: 12px 14px; font: inherit; font-size: 1.05rem; color: var(--ink); resize: vertical;
           border: 1.5px solid var(--line); border-radius: 14px; background: #fffdfb; outline: none; }
textarea:focus { border-color: var(--rose); box-shadow: 0 0 0 4px rgba(232, 96, 122, .15); }

/* home: three gift options */
.options { display: flex; flex-direction: column; gap: 12px; margin-top: 14px; }
.option {
  position: relative; display: flex; align-items: center; gap: 14px; padding: 16px 14px;
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); border: 2px solid transparent;
  color: var(--ink); text-decoration: none; transition: transform .12s, border-color .15s;
}
.option:active { transform: scale(.985); }
.option:hover { border-color: #f2c7cf; }
.option.featured { border-color: #f3c27a; }
.option.disabled { opacity: .55; filter: grayscale(.6); box-shadow: none; }
.opt-icon { flex: none; width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; font-size: 1.7rem;
            line-height: 1; overflow: hidden; }
.opt-icon img { width: 100%; height: 100%; object-fit: cover; display: block; }
.opt-icon.bit:has(img) { background: #003740; }   /* official logo fills the tile */
.opt-icon .card-svg { width: 62%; height: auto; display: block; }
.opt-icon.big { width: 64px; height: 64px; font-size: 2rem; margin: 0 auto 4px; }
.opt-icon.bit { background: linear-gradient(135deg, #d8f3f6, #b5e9ef); }
.opt-icon.bank { background: linear-gradient(135deg, #fde9d4, #fbd3b0); }
.opt-icon.card { background: linear-gradient(135deg, #ece3fb, #d9cbf6); }
.opt-body { flex: 1; min-width: 0; }
.opt-title { font-family: "Secular One", "Assistant", sans-serif; font-size: 1.22rem; line-height: 1.25; }
.opt-sub { color: var(--muted); font-size: .92rem; margin-top: 2px; }
.opt-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.fee, .where { font-size: .8rem; font-weight: 800; padding: 3px 9px; border-radius: 999px; white-space: nowrap; }
.fee.zero { background: var(--ok-soft); color: var(--ok); }
.fee.paid { background: #fff1d6; color: #9a6300; }
.fee.off { background: #eee; color: #777; }
.where.il { background: #e8f0ff; color: #2b4f9e; }
.where.world { background: #f0e9ff; color: #5b3da8; }
.opt-go { flex: none; font-size: 1.8rem; color: #d9b8c0; line-height: 1; }
.ribbon { position: absolute; top: -10px; inset-inline-start: 14px; background: var(--grad); color: #fff;
          font-size: .75rem; font-weight: 800; padding: 3px 10px; border-radius: 999px; }

/* Bit page */
.steps { padding: 14px 16px 14px; padding-inline-start: 34px; margin: 12px 0; }
.steps li { margin: 6px 0 12px; font-weight: 600; }
.steps li:last-child { margin-bottom: 4px; }
.step-copy { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 6px;
             background: #fffaf2; border: 1px dashed #ecd2a4; border-radius: 12px; padding: 8px 10px; }
.big-val { font-family: "Secular One", "Assistant", sans-serif; font-size: 1.5rem; font-weight: 400; }
.btn-bit { background: linear-gradient(135deg, #1fb6c9, #3fd0c2); box-shadow: 0 10px 24px rgba(31, 182, 201, .35); }
.text-btn { background: none; border: 0; color: var(--muted); font: inherit; font-size: .95rem; text-decoration: underline;
            cursor: pointer; padding: 10px; margin-top: 4px; }

/* admin: Bit accounts */
.bit-accounts { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; margin: 6px 0 12px; }
.bit-acc { background: #fff; border-radius: 14px; padding: 10px 14px; box-shadow: var(--shadow); }
.bit-acc.full { outline: 2px solid var(--bad); }
.bit-acc progress { width: 100%; height: 10px; margin-top: 6px; accent-color: #1fb6c9; }
td.blessing { max-width: 260px; font-size: .88rem; color: var(--muted); }

/* ================================================================ NoamPay additions */
.wrap-wide { max-width: 1080px; margin: 0 auto; padding: 0 18px; }
.narrow { max-width: 760px; }
.muted { color: var(--muted); }
.ltr { direction: ltr; unicode-bidi: plaintext; text-align: start; }
.inline { display: inline; }
.btn-inline { display: inline-flex; width: auto; padding-inline: 20px; }
.btn.small { padding: 9px 14px; }
.link-btn, .text-btn { background: none; border: 0; font: inherit; color: var(--muted); cursor: pointer; padding: 6px; }
.link-btn:hover { color: var(--rose); }
.text-btn.danger, .btn.danger { color: var(--bad); border-color: #f2b8c3; }
.tag { display: inline-block; font-size: .75rem; font-weight: 800; background: #eee; color: #666; padding: 2px 8px; border-radius: 999px; vertical-align: middle; }
input[type=email], input[type=date], input:not([type]), textarea {
  width: 100%; padding: 13px 14px; font: inherit; font-size: 1.05rem; color: var(--ink);
  border: 1.5px solid var(--line); border-radius: 14px; background: #fffdfb; outline: none;
}
input[type=email]:focus, input[type=date]:focus, input:not([type]):focus { border-color: var(--rose); box-shadow: 0 0 0 4px rgba(232, 96, 122, .15); }
.ok-alert { background: var(--ok-soft); color: var(--ok); border: 1px solid #bfe3cc; padding: 12px 14px; border-radius: 14px; margin: 12px 0; font-weight: 700; }
.powered { text-align: center; font-size: .8rem; margin-top: 26px; }
.powered a { color: #b39aa9; text-decoration: none; }

/* site header / footer */
.site-header { position: sticky; top: 0; z-index: 5; background: rgba(255, 246, 238, .88); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.site-header-in { max-width: 1080px; margin: 0 auto; padding: 10px 18px; display: flex; align-items: center; justify-content: space-between; gap: 8px 12px; flex-wrap: wrap; }
.brand { font-family: "Secular One", sans-serif; font-size: 1.35rem; color: var(--ink); text-decoration: none; }
.brand-mark { font-size: 1.1rem; }
.site-nav { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; justify-content: flex-end; }
.site-nav a { color: var(--ink); text-decoration: none; font-weight: 700; font-size: .95rem; }
.site-nav a.on { color: var(--rose); }
.site-nav .btn-mini { background: var(--grad); color: #fff; padding: 7px 14px; border-radius: 12px; }
.site-nav .lang-link { color: var(--muted); font-size: .85rem; border: 1px solid var(--line); padding: 3px 8px; border-radius: 8px; }
.site-footer { margin-top: 40px; padding: 26px 0 40px; border-top: 1px solid var(--line); color: var(--muted); font-size: .88rem; }
.site-footer .wrap-wide { display: flex; flex-direction: column; gap: 6px; }
.site-footer a { color: var(--muted); }
.disclaimer { font-size: .78rem; opacity: .85; max-width: 760px; }

/* marketing */
body.marketing { background-attachment: scroll; }
.mk-hero { padding: 46px 0 30px; }
.mk-hero-in { display: grid; grid-template-columns: 1.25fr .75fr; gap: 30px; align-items: center; }
.mk-hero h1 { text-align: start; font-size: clamp(2rem, 4.6vw, 3.1rem); line-height: 1.12; margin: 8px 0 14px; }
.accent { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.kicker { color: var(--gold); font-weight: 800; }
.lead-lg { font-size: 1.2rem; color: #5a3d55; margin: 0 0 20px; max-width: 34em; }
.cta-row { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.ticks { list-style: none; padding: 0; display: flex; gap: 16px; flex-wrap: wrap; color: var(--ok); font-weight: 700; margin-top: 18px; }
.mk-hero-art { display: flex; justify-content: center; }
.phone { width: 230px; border-radius: 34px; background: #3a2338; padding: 10px; box-shadow: var(--shadow); transform: rotate(-3deg); }
.phone-in { background: var(--bg); border-radius: 26px; padding: 22px 14px; min-height: 360px; }
.ph-title { font-family: "Secular One", sans-serif; text-align: center; font-size: 1.2rem; margin-bottom: 12px; }
.ph-chips { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.ph-chips span { background: var(--gold-soft); border: 1.5px solid #f0dcb4; border-radius: 10px; text-align: center; padding: 8px 0; font-weight: 800; }
.ph-chips .on { background: var(--grad); color: #fff; border-color: transparent; }
.ph-field { margin-top: 12px; background: #fff; border: 1.5px solid var(--line); border-radius: 10px; padding: 9px; color: var(--muted); }
.ph-btn { margin-top: 12px; background: linear-gradient(135deg, #1fb6c9, #3fd0c2); color: #fff; text-align: center; border-radius: 12px; padding: 10px; font-weight: 800; }
.mk-section { padding: 40px 0; }
.mk-section.alt { background: rgba(255, 255, 255, .55); }
.mk-section h2 { font-size: 1.8rem; text-align: center; margin-bottom: 22px; }
.steps3 { list-style: none; counter-reset: s; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.steps3 li { counter-increment: s; background: #fff; border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 6px; }
.steps3 li::before { content: counter(s); width: 34px; height: 34px; border-radius: 50%; background: var(--grad); color: #fff; display: grid; place-items: center; font-weight: 800; }
.steps3 span { color: var(--muted); }
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.feature { background: #fff; border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); }
.feature h3 { margin: 6px 0; font-size: 1.1rem; }
.feature p { margin: 0; color: var(--muted); }
.f-ico { font-size: 1.8rem; }
.limits { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 14px; }
.limit { background: #fff; border-radius: var(--radius); padding: 16px; text-align: center; box-shadow: var(--shadow); }
.limit .num { font-family: "Secular One", sans-serif; font-size: 1.8rem; color: var(--rose); }
.faq { background: #fff; border-radius: 14px; padding: 12px 16px; margin-bottom: 10px; box-shadow: var(--shadow); }
.faq summary { font-weight: 800; cursor: pointer; }
.faq p { margin: 8px 0 2px; color: #5a3d55; }
.cta-bottom { margin-top: 22px; }
.legal { padding-top: 26px; }
.legal h1 { text-align: start; }

/* auth */
.auth-card { max-width: 420px; margin: 30px auto 0; }
.auth-card h1 { margin-bottom: 4px; }
.code-input { text-align: center; font-size: 1.8rem !important; letter-spacing: 8px; font-weight: 800; }
.cf-turnstile { margin-top: 12px; }

/* dashboard */
.app-main { padding-top: 18px; padding-bottom: 50px; }
.page-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 10px 0 12px; }
.page-head h1, .page-head h2 { text-align: start; margin: 0; }
.section-title { margin-top: 26px; }
.onboard h2 { margin-top: 0; }
.onboard-steps { padding-inline-start: 22px; }
.onboard-steps li { margin-bottom: 8px; color: var(--muted); }
.onboard-steps li.now { color: var(--ink); }
.event-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.event-card { text-decoration: none; color: var(--ink); display: block; margin-top: 0; }
.ec-title { font-family: "Secular One", sans-serif; font-size: 1.25rem; }
.ec-meta { color: var(--muted); font-size: .9rem; min-height: 1.2em; }
.ec-stats { display: flex; gap: 14px; margin-top: 10px; }
.acc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; margin: 10px 0 18px; }
.acc-card { margin-top: 0; }
.acc-label { font-weight: 800; }
.usage { margin-top: 8px; }
.usage-bar { position: relative; height: 12px; background: #f3e7dc; border-radius: 999px; overflow: hidden; }
.usage-bar .fill { position: absolute; top: 0; bottom: 0; inset-inline-start: 0; background: linear-gradient(90deg, #1fb6c9, #3fd0c2); border-radius: 999px; }
.usage-bar .fill.full { background: var(--bad); }
.usage-bar .free-mark { position: absolute; top: -2px; bottom: -2px; width: 2px; background: #c9963a; }
.usage-text { font-size: .85rem; color: var(--muted); margin-top: 5px; }
.acc-row { margin-top: 12px; }
.acc-row-head { display: flex; justify-content: space-between; gap: 10px; }
.acc-row-head .hint { word-break: break-all; }
.acc-actions { display: flex; gap: 6px; }
details.edit summary, details.howto summary { cursor: pointer; color: var(--rose); font-weight: 700; margin-top: 10px; }
.grid-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; align-items: end; margin-top: 10px; }
.grid-form label { display: flex; flex-direction: column; gap: 4px; font-weight: 700; font-size: .9rem; }
label.check, label.radio { display: flex; gap: 8px; align-items: flex-start; font-weight: 600; margin: 8px 0; }
.qr-upload { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 8px; }
.file-btn { margin: 0; cursor: pointer; }
.rules { background: #fffaf2; border: 1.5px solid #f0dcb4; border-radius: 14px; padding: 12px 14px; margin: 16px 0 4px; }
.rules-title { font-weight: 800; margin-bottom: 4px; }
.rules ul { margin: 4px 0 6px; padding-inline-start: 20px; }
.narrow-card { max-width: 640px; }
.share { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.share-qr { width: 190px; flex: none; background: #fff; border-radius: 14px; padding: 6px; border: 1px solid var(--line); }
.share-qr svg { width: 100%; height: auto; display: block; }
.share-body { flex: 1; min-width: 260px; }
.share-body h2 { text-align: start; margin-top: 0; }
.copy-line { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: #fffaf2; border: 1px dashed #ecd2a4; border-radius: 12px; padding: 8px 10px; }
.copy-line .val { font-size: 1rem; word-break: break-all; }
.share-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.share-actions .btn { margin: 0; }
tr.dim td { opacity: .55; }
.st { font-weight: 700; white-space: nowrap; }
.st.ok { color: var(--ok); }
.st.warn { color: #a86a00; }
.st.muted { color: var(--muted); }
.kv { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--line); }
.settings-form { margin-top: 12px; }
.danger-zone { border: 1.5px solid #f6c6cc; }
.danger-zone h2 { text-align: start; margin-top: 0; }

/* accounts page: yearly limit, "add another" tile, next step */
.limit-field { margin-top: 14px; }
.grid-form .limit-field { grid-column: 1 / -1; margin-top: 0; }
.add-wrap { margin-top: 14px; }
.add-wrap > summary { list-style: none; }
.add-wrap > summary::-webkit-details-marker { display: none; }
.add-tile { display: flex; align-items: center; gap: 14px; cursor: pointer; padding: 16px; border: 2px dashed #f2b8c3; border-radius: var(--radius); background: rgba(255, 255, 255, .6); }
.add-tile:hover { background: #fff; border-color: var(--rose); }
.add-tile b { display: block; color: var(--rose); font-size: 1.05rem; }
.add-tile .hint { display: block; margin-top: 2px; }
.add-plus { flex: none; width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center; background: #fff; border: 2px solid #f2b8c3; color: var(--rose); font-size: 2rem; font-weight: 700; line-height: 1; }
.add-wrap[open] > .add-tile { border-style: solid; }
.add-wrap[open] > .add-account { margin-top: 10px; }
.next-step { margin-top: 18px; display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; background: linear-gradient(180deg, #fff, #fff4ec); border: 2px solid #f6c9b6; }
.next-step-text { flex: 1; min-width: 220px; }
.next-step-text b { display: block; color: var(--ok); font-size: 1.1rem; }
.next-step-text span { color: var(--muted); }
.next-step .btn { margin: 0; }

/* legal pages, consents, contact */
.legal h2 { text-align: start; font-size: 1.25rem; margin: 26px 0 8px; }
.legal p, .legal li { line-height: 1.65; }
.legal-list li { margin-bottom: 6px; }
.legal form.card { margin-top: 14px; }
.legal select { width: 100%; padding: 12px 14px; font: inherit; font-size: 1.05rem; border: 1.5px solid var(--line); border-radius: 14px; background: #fffdfb; color: var(--ink); }
.hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.consents { margin: 18px 0 6px; padding: 14px; border: 1.5px solid #f0dcb4; border-radius: 14px; background: #fffaf2; }
.consents { min-width: 0; }
.consents-title { font-weight: 800; padding: 0 6px; }
.consents label.check { font-weight: 500; margin: 10px 0; }
.consents input[type=checkbox] { width: 20px; height: 20px; flex: none; margin-top: 2px; accent-color: var(--rose); }
.test-pay { background: var(--warn-soft); border: 1.5px solid #f0d58a; }
.test-pay h2 { text-align: start; margin: 0 0 6px; font-size: 1.15rem; }
.test-pay p { margin: 0 0 10px; }
.mini-footer { text-align: center; font-size: .82rem; color: var(--muted); margin: 26px 0 10px; }
.mini-footer a { color: var(--muted); }

/* accessibility: skip link, focus, menu and its display modes */
.skip-link { position: absolute; top: -60px; inset-inline-start: 12px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 0 0 12px 12px; font-weight: 700; text-decoration: none; }
.skip-link:focus { top: 0; }
#content:focus { outline: none; }
:focus-visible { outline: 3px solid #1a5fd0; outline-offset: 2px; }
.a11y { position: fixed; bottom: 16px; inset-inline-end: 16px; z-index: 90; }
.a11y-btn { width: 50px; height: 50px; border-radius: 50%; border: 0; background: #1a5fd0; color: #fff; display: grid; place-items: center; cursor: pointer; box-shadow: 0 6px 18px rgba(26, 95, 208, .35); }
.a11y-btn.on { box-shadow: 0 0 0 3px #fff, 0 0 0 6px #1a5fd0; }
.a11y-panel { position: absolute; bottom: 60px; inset-inline-end: 0; width: min(18rem, calc(100vw - 32px)); max-height: calc(100vh - 96px); overflow-y: auto; background: #fff; color: #222; border-radius: 16px; box-shadow: 0 12px 40px rgba(0, 0, 0, .25); padding: 12px; display: grid; gap: 6px; }
.a11y-panel[hidden] { display: none; }
.a11y-head { display: flex; justify-content: space-between; align-items: center; font-size: 1.05rem; margin-bottom: 2px; }
.a11y-x { border: 0; background: none; font-size: 1.1rem; cursor: pointer; padding: 4px 8px; color: #222; }
.a11y-size { display: flex; align-items: center; gap: 6px; }
.a11y-size span { flex: 1; font-weight: 700; }
.a11y-size button, .a11y-opt { font: inherit; font-size: .95rem; border: 1.5px solid #d6dbe6; background: #f6f8fc; color: #222; border-radius: 10px; padding: 8px 10px; cursor: pointer; text-align: start; }
.a11y-size button { min-width: 48px; text-align: center; font-weight: 800; }
.a11y-opt[aria-pressed="true"] { background: #1a5fd0; border-color: #1a5fd0; color: #fff; }
.a11y-link { font-size: .9rem; text-align: center; margin-top: 2px; color: #1a5fd0; }
html.a11y-links a { text-decoration: underline !important; text-underline-offset: 3px; outline: 2px dashed currentColor; outline-offset: 2px; }
html.a11y-font body, html.a11y-font body * { font-family: Arial, "Helvetica Neue", sans-serif !important; letter-spacing: .02em; }
html.a11y-noanim *, html.a11y-noanim *::before, html.a11y-noanim *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
html.a11y-noanim .confetti { display: none !important; }
html.a11y-contrast body, html.a11y-contrast body *:not(svg):not(svg *) { background: #000 !important; color: #fff !important; border-color: #fff !important; box-shadow: none !important; text-shadow: none !important; }
html.a11y-contrast body a, html.a11y-contrast body a * { color: #ffeb3b !important; }
html.a11y-contrast .btn-primary, html.a11y-contrast .a11y-opt[aria-pressed="true"] { outline: 2px solid #ffeb3b; }
html.a11y-contrast input, html.a11y-contrast textarea, html.a11y-contrast select { border: 2px solid #fff !important; }
html.a11y-contrast [data-qr-svg], html.a11y-contrast .share-qr, html.a11y-contrast .sign-qr { background: #fff !important; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* home: what NoamPay does */
.mk-what .lead-lg { max-width: 62ch; margin: 0 auto 22px; }
.flow { display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; }
.flow-step { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px 16px; text-align: center; min-width: 150px; }
.flow-step b, .flow-acc b { display: block; }
.flow-step span, .flow-acc span { color: var(--muted); font-size: .9rem; }
.flow-arrow { color: var(--gold); font-size: 1.6rem; font-weight: 800; }
.flow-accounts { display: grid; gap: 8px; min-width: 190px; }
.flow-acc { background: #fff; border-radius: 14px; padding: 10px 12px; border: 2px solid var(--line); position: relative; overflow: hidden; }
.flow-acc i { display: block; height: 6px; border-radius: 3px; margin-top: 6px; background: linear-gradient(to left, var(--ok) var(--w), #f1e2d7 var(--w)); }
.flow-acc.full { opacity: .7; }
.flow-acc.full i { background: var(--bad); }
.flow-acc.on { border-color: var(--ok); box-shadow: 0 0 0 4px var(--ok-soft); }

/* printable sign (A4 landscape) */
body.sign-body { background: #f1ece6; }
.sign-toolbar { display: flex; gap: 12px; align-items: center; justify-content: center; padding: 12px; flex-wrap: wrap; }
.sign { position: relative; width: 297mm; height: 210mm; margin: 0 auto 30px; overflow: hidden; color: #3a2338;
  background: radial-gradient(120mm 90mm at 104% -6%, #ffd9d2 0%, transparent 62%), radial-gradient(110mm 90mm at -6% 8%, #fde9c4 0%, transparent 62%), #fff6ee;
  box-shadow: 0 6px 30px rgba(0, 0, 0, .15); -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.sign-frame { position: absolute; inset: 9mm; border: 1.2mm solid #e7c88f; border-radius: 9mm; }
.sign-grid { position: absolute; inset: 16mm 18mm; display: grid; grid-template-columns: 1fr 100mm; gap: 12mm; align-items: center; }
.sign h1 { text-align: start; font-size: 40pt; line-height: 1.08; margin: 2mm 0 4mm; }
.sign .kicker { font-size: 17pt; }
.sign-sub { font-size: 18pt; margin: 0 0 4mm; color: #5a3d55; }
.sign-fee { font-size: 14pt; font-weight: 700; color: #2f8f5f; }
.sign-divider { display: flex; align-items: center; gap: 4mm; margin: 6mm 0 5mm; color: #c9963a; }
.sign-divider::before, .sign-divider::after { content: ""; flex: 1; height: .35mm; background: linear-gradient(90deg, transparent, #e7c88f, transparent); }
.sign-en { text-align: left; }
.sign-en h2 { font-size: 26pt; margin: 1mm 0 2mm; text-align: left; }
.sign-en p { font-size: 14pt; margin: 0; color: #5a3d55; }
.sign-en .kicker { font-size: 13pt; }
.sign-qr-card { background: #fff; border-radius: 9mm; padding: 6mm; text-align: center; box-shadow: 0 3mm 9mm rgba(140, 70, 60, .16); border: .8mm solid #f4d7c9; }
.sign-qr svg { width: 84mm; height: 84mm; display: block; margin: 0 auto; }
.sign-qr-card .scan { font-family: "Secular One", sans-serif; font-size: 20pt; margin-bottom: 2mm; }
.sign-qr-card .url { font-size: 10pt; color: #9a7f8f; margin-top: 2mm; word-break: break-all; }
@media print {
  @page { size: A4 landscape; margin: 0; }
  body.sign-body { background: none; }
  .no-print { display: none !important; }
  .sign { margin: 0; box-shadow: none; }
}

@media (max-width: 760px) {
  .mk-hero-in, .steps3, .features, .limits { grid-template-columns: 1fr; }
  .mk-hero-art { display: none; }
  .flow { flex-direction: column; }
  .flow-arrow { transform: rotate(-90deg); }
  .flow-step, .flow-accounts { width: 100%; max-width: 320px; }
  .site-nav { gap: 10px; }
  .site-nav a { font-size: .88rem; }
}
