/* Kotak Infaq Digital: public donation page, TV screen and printable poster. Uses iurans.css tokens. */

/* ---------- Donation page ---------- */
body.iu-infaq { margin: 0; background: linear-gradient(180deg, var(--iu-brand-50), var(--iu-bg) 320px); color: var(--iu-text); font: 15px/1.55 var(--iu-font); -webkit-font-smoothing: antialiased; }
.iu-infaq *, .iu-infaq *::before, .iu-infaq *::after { box-sizing: border-box; }
.iu-infaq__wrap { max-width: 520px; margin: 0 auto; padding: 16px 16px 40px; }
.iu-infaq__top { display: flex; align-items: center; justify-content: space-between; padding: 4px 0 14px; }
.iu-infaq__top .iu-logo__brand, .iu-infaq__top .iu-logo__img { height: 30px; }
.iu-infaq__top a { text-decoration: none; }
.iu-infaq-hero { position: relative; overflow: hidden; border-radius: 22px; padding: 22px 20px 20px; color: #ecfdf5; background: radial-gradient(420px 200px at 100% 0%, rgba(245, 158, 11, .35), transparent 60%), linear-gradient(140deg, #0d9488, #115e59 70%); box-shadow: var(--iu-shadow-lg); }
.iu-infaq-hero::after { content: ""; position: absolute; inset: auto -40px -60px auto; width: 180px; height: 180px; border-radius: 50%; border: 22px solid rgba(255, 255, 255, .06); }
.iu-infaq-hero__org { display: block; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #99f6e4; }
.iu-infaq-hero h1 { margin: 6px 0 6px; font-size: 26px; line-height: 1.2; letter-spacing: -.02em; color: #fff; font-weight: 800; }
.iu-infaq-hero p { margin: 0; color: #ccfbf1; font-size: 14px; white-space: pre-line; }
.iu-infaq-total { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
.iu-infaq-total strong { font-size: 24px; color: #fff; font-weight: 800; }
.iu-infaq-total span { font-size: 13px; color: #a7f3d0; }
.iu-progress { height: 10px; border-radius: 999px; background: rgba(255, 255, 255, .18); overflow: hidden; margin-top: 10px; }
.iu-progress > i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #fbbf24, #fde68a); transition: width .8s var(--iu-ease); }
.iu-infaq-card { margin-top: 16px; background: #fff; border: 1px solid var(--iu-line); border-radius: 20px; padding: 18px; box-shadow: var(--iu-shadow); }
.iu-infaq-card h2 { margin: 0 0 12px; font-size: 17px; font-weight: 800; }
.iu-amounts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.iu-amounts label { position: relative; }
.iu-amounts input { position: absolute; opacity: 0; pointer-events: none; }
.iu-amounts span { display: grid; place-items: center; min-height: 54px; border-radius: 14px; border: 1.5px solid var(--iu-line); background: var(--iu-bg); font-weight: 800; font-size: 16px; cursor: pointer; transition: border-color .15s, background .15s, transform .15s var(--iu-ease); }
.iu-amounts input:checked + span { border-color: var(--iu-brand); background: var(--iu-brand-50); color: var(--iu-brand-700); box-shadow: 0 0 0 3px rgba(13, 148, 136, .15); }
.iu-amounts input:focus-visible + span { outline: 3px solid rgba(13, 148, 136, .4); outline-offset: 2px; }
.iu-infaq-form label.iu-field-label { display: block; margin-top: 14px; font-weight: 700; font-size: 14px; }
.iu-infaq-form input[type=text], .iu-infaq-form textarea { width: 100%; margin-top: 6px; border: 1.5px solid var(--iu-line); border-radius: 12px; background: var(--iu-bg); padding: 12px 14px; font: 500 16px var(--iu-font); color: var(--iu-text); }
.iu-infaq-form input[type=text]:focus, .iu-infaq-form textarea:focus { outline: none; border-color: var(--iu-brand-600); background: #fff; box-shadow: 0 0 0 4px rgba(13, 148, 136, .14); }
.iu-infaq-form .iu-check { display: flex; gap: 10px; align-items: center; margin-top: 10px; font-size: 14px; color: var(--iu-text-2); }
.iu-infaq-form .iu-check input { width: 20px; height: 20px; accent-color: var(--iu-brand); }
.iu-infaq-submit { margin-top: 18px; width: 100%; min-height: 56px; border: 0; border-radius: 16px; background: linear-gradient(135deg, var(--iu-brand-600), var(--iu-brand-700)); color: #fff; font: 800 17px var(--iu-font); cursor: pointer; box-shadow: 0 12px 26px -10px rgba(15, 118, 110, .7); }
.iu-infaq-submit:disabled { opacity: .6; }
.iu-infaq-note { margin: 10px 0 0; font-size: 12.5px; color: var(--iu-muted); text-align: center; }
.iu-infaq-error { margin-top: 16px; padding: 12px 14px; border-radius: 12px; background: #fef2f2; border: 1px solid #fecaca; color: #991b1b; font-weight: 600; font-size: 14px; }
.iu-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.iu-donors { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.iu-donors li { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; border-bottom: 1px solid var(--iu-line); }
.iu-donors li:last-child { border-bottom: 0; }
.iu-donors__avatar { flex: none; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--iu-brand-50); color: var(--iu-brand-700); font-weight: 800; font-size: 13px; }
.iu-donors__body { flex: 1; min-width: 0; }
.iu-donors__body strong { display: block; font-size: 14px; }
.iu-donors__body em { display: block; font-style: normal; color: var(--iu-text-2); font-size: 13px; overflow-wrap: anywhere; }
.iu-donors__body small { color: var(--iu-muted); font-size: 12px; }
.iu-donors__amt { font-weight: 800; color: var(--iu-brand-700); white-space: nowrap; font-size: 14px; }
.iu-infaq-others { display: grid; gap: 8px; }
.iu-infaq-others a { display: flex; justify-content: space-between; gap: 10px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--iu-line); text-decoration: none; color: var(--iu-text); font-weight: 700; }
.iu-infaq-others a:hover { border-color: var(--iu-brand-100); background: var(--iu-brand-50); }
.iu-infaq-foot { margin-top: 22px; text-align: center; font-size: 12px; color: var(--iu-muted); }
.iu-infaq-foot a { color: var(--iu-muted); }

/* ---------- TV screen ---------- */
body.iu-tv { margin: 0; height: 100vh; overflow: hidden; background: #021412; color: #ecfdf5; font-family: var(--iu-font); -webkit-font-smoothing: antialiased; }
.iu-tv * { box-sizing: border-box; }
.iu-tv__bg { position: fixed; inset: 0; background: radial-gradient(60vw 40vh at 15% 10%, rgba(20, 184, 166, .28), transparent 60%), radial-gradient(50vw 50vh at 90% 90%, rgba(245, 158, 11, .16), transparent 60%), linear-gradient(160deg, #031b18, #020c0b); }
.iu-tv__bg::after { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px); background-size: 3vw 3vw; mask-image: linear-gradient(180deg, transparent, #000 30%, #000 70%, transparent); }
.iu-tv__grid { position: relative; height: 100vh; display: grid; grid-template-columns: 1.35fr 1fr; grid-template-rows: auto 1fr auto; gap: 2.2vw 3vw; padding: 3vw 3.5vw 2.2vw; }
.iu-tv__head { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; }
.iu-tv__org { font-size: 1.5vw; font-weight: 800; letter-spacing: .04em; color: #5eead4; text-transform: uppercase; }
.iu-tv__clock { text-align: right; font-variant-numeric: tabular-nums; }
.iu-tv__clock strong { display: block; font-size: 2.6vw; line-height: 1; }
.iu-tv__clock span { font-size: 1.1vw; color: #99f6e4; }
.iu-tv__main { display: flex; flex-direction: column; justify-content: center; gap: 1.6vw; min-width: 0; }
.iu-tv__title { margin: 0; font-size: 3.6vw; line-height: 1.08; font-weight: 800; letter-spacing: -.02em; color: #fff; }
.iu-tv__label { font-size: 1.25vw; letter-spacing: .14em; text-transform: uppercase; color: #99f6e4; font-weight: 700; }
.iu-tv__today { font-size: 7.2vw; line-height: 1; font-weight: 800; letter-spacing: -.03em; color: #fde68a; font-variant-numeric: tabular-nums; text-shadow: 0 0 40px rgba(251, 191, 36, .25); transition: transform .4s var(--iu-ease); }
.iu-tv__today.is-bump { transform: scale(1.06); }
.iu-tv__sub { font-size: 1.5vw; color: #ccfbf1; }
.iu-tv__sub b { color: #fff; }
.iu-tv .iu-progress { height: 1.3vw; margin-top: .6vw; background: rgba(255, 255, 255, .1); }
.iu-tv__qr { align-self: center; justify-self: center; width: 100%; max-width: 30vw; background: #fff; color: #0f172a; border-radius: 2vw; padding: 2vw 2vw 1.6vw; text-align: center; box-shadow: 0 2vw 6vw rgba(0, 0, 0, .45); }
.iu-tv__qr-code svg { display: block; width: 100%; height: auto; }
.iu-tv__qr h2 { margin: 1.2vw 0 .3vw; font-size: 2vw; font-weight: 800; color: #0f766e; }
.iu-tv__qr p { margin: 0; font-size: 1.15vw; color: #475569; }
.iu-tv__ticker { grid-column: 1 / -1; overflow: hidden; white-space: nowrap; border-top: 1px solid rgba(153, 246, 228, .2); padding-top: 1.2vw; mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
.iu-tv__ticker-track { display: inline-flex; gap: 3vw; animation: iu-tv-scroll 40s linear infinite; padding-left: 100%; }
.iu-tv__ticker span { font-size: 1.5vw; color: #e6fffa; }
.iu-tv__ticker b { color: #fde68a; }
.iu-tv__ticker i { font-style: normal; color: #99f6e4; }
@keyframes iu-tv-scroll { to { transform: translateX(-100%); } }
.iu-tv__toast { position: fixed; left: 50%; top: 50%; z-index: 10; transform: translate(-50%, -50%) scale(.85); opacity: 0; pointer-events: none; min-width: 40vw; max-width: 70vw; text-align: center; padding: 3vw 4vw; border-radius: 2.4vw; background: linear-gradient(140deg, #0d9488, #115e59); box-shadow: 0 3vw 10vw rgba(0, 0, 0, .55), 0 0 0 .4vw rgba(253, 230, 138, .5); transition: opacity .35s, transform .5s var(--iu-ease); }
.iu-tv__toast.is-on { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.iu-tv__toast small { display: block; font-size: 1.3vw; letter-spacing: .14em; text-transform: uppercase; color: #99f6e4; font-weight: 700; }
.iu-tv__toast strong { display: block; margin: .6vw 0; font-size: 3.4vw; color: #fff; }
.iu-tv__toast b { font-size: 4.4vw; color: #fde68a; }
.iu-tv__toast em { display: block; margin-top: .8vw; font-size: 1.6vw; color: #ccfbf1; font-style: italic; }
.iu-tv__toast p { margin: 1vw 0 0; font-size: 1.6vw; color: #fef3c7; }
.iu-tv__full { position: fixed; right: 1.2vw; bottom: 1.2vw; z-index: 11; border: 1px solid rgba(255, 255, 255, .25); background: rgba(0, 0, 0, .35); color: #fff; padding: 10px 16px; border-radius: 999px; font: 700 14px var(--iu-font); cursor: pointer; }
.iu-tv.is-full .iu-tv__full { display: none; }
.iu-tv__closed { color: #fca5a5; font-weight: 700; }
@media (max-aspect-ratio: 1/1) {
	body.iu-tv { overflow: auto; height: auto; }
	.iu-tv__grid { grid-template-columns: 1fr; height: auto; min-height: 100vh; }
	.iu-tv__qr { max-width: 70vw; }
	.iu-tv__org, .iu-tv__label, .iu-tv__sub, .iu-tv__ticker span { font-size: 3.4vw; }
	.iu-tv__title { font-size: 7vw; }
	.iu-tv__today { font-size: 14vw; }
	.iu-tv__clock strong { font-size: 6vw; }
	.iu-tv__clock span, .iu-tv__qr p { font-size: 3vw; }
	.iu-tv__qr h2 { font-size: 5vw; }
}
@media (prefers-reduced-motion: reduce) {
	.iu-tv__ticker-track { animation: none; padding-left: 0; flex-wrap: wrap; white-space: normal; }
	.iu-tv__today, .iu-progress > i, .iu-tv__toast { transition: none; }
}

/* ---------- Poster ---------- */
body.iu-poster-page { margin: 0; background: #e5ebe9; font-family: var(--iu-font); color: #0f172a; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.iu-poster-tools { position: sticky; top: 0; z-index: 5; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: center; padding: 12px 16px; background: #fff; border-bottom: 1px solid var(--iu-line); }
.iu-poster-tools a, .iu-poster-tools button { border: 1px solid var(--iu-line); background: #fff; border-radius: 10px; padding: 9px 14px; font: 700 14px var(--iu-font); color: var(--iu-text); text-decoration: none; cursor: pointer; }
.iu-poster-tools a.is-on { border-color: var(--iu-brand); background: var(--iu-brand-50); color: var(--iu-brand-700); }
.iu-poster-tools button.iu-primary { background: var(--iu-brand); color: #fff; border-color: var(--iu-brand); }
.iu-poster-sheet { margin: 24px auto; background: #fff; box-shadow: 0 20px 50px rgba(15, 23, 42, .18); overflow: hidden; display: flex; flex-direction: column; }
.iu-poster-sheet--a4 { width: 210mm; height: 297mm; }
.iu-poster-sheet--a5 { width: 148mm; height: 210mm; font-size: .72em; }
.iu-poster-sheet--stiker { width: 100mm; height: 140mm; font-size: .5em; }
.iu-poster-head { padding: 2em 2.4em 1.7em; text-align: center; color: #ecfdf5; background: radial-gradient(60% 80% at 100% 0%, rgba(245, 158, 11, .4), transparent 60%), linear-gradient(140deg, #0d9488, #0b4f4e); }
.iu-poster-head small { display: block; font-size: 1.3em; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: #99f6e4; }
.iu-poster-head h1 { margin: .25em 0 0; font-size: 3.6em; line-height: 1.05; font-weight: 800; letter-spacing: -.02em; color: #fff; }
.iu-poster-body { flex: 1; min-height: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.1em; padding: 1.4em 2.4em; }
.iu-poster-cta { font-size: 2em; font-weight: 800; color: #0f766e; text-align: center; line-height: 1.15; }
.iu-poster-cta span { display: block; font-size: .55em; font-weight: 700; color: #475569; margin-top: .3em; }
.iu-poster-qr { width: 54%; padding: 1.2em; border-radius: 1.4em; border: .35em solid #0f766e; background: #fff; }
.iu-poster-sheet--stiker .iu-poster-qr { width: 78%; }
.iu-poster-qr svg { display: block; width: 100%; height: auto; }
.iu-poster-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1em; width: 100%; counter-reset: s; }
.iu-poster-steps div { text-align: center; font-size: 1.15em; font-weight: 700; color: #334155; line-height: 1.25; }
.iu-poster-steps div::before { counter-increment: s; content: counter(s); display: grid; place-items: center; width: 2em; height: 2em; margin: 0 auto .5em; border-radius: 50%; background: #f59e0b; color: #fff; font-weight: 800; }
.iu-poster-url { font-size: 1.05em; color: #64748b; word-break: break-all; text-align: center; }
.iu-poster-backup { display: flex; align-items: center; gap: 1.2em; width: 100%; padding: 1em 1.2em; border: 2px dashed #cbd5e1; border-radius: 1em; }
.iu-poster-backup img { width: 7em; height: 7em; object-fit: contain; }
.iu-poster-backup p { margin: 0; font-size: 1.1em; color: #475569; }
.iu-poster-foot { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 1em; padding: 1em 2.4em; border-top: 1px solid #e2e8f0; font-size: 1em; color: #64748b; }
.iu-poster-foot img { height: 2em; width: auto; }
.iu-poster-sheet--stiker .iu-poster-steps, .iu-poster-sheet--stiker .iu-poster-backup { display: none; }
@media screen and (max-width: 820px) {
	.iu-poster-sheet { transform-origin: top center; margin: 16px auto; }
	.iu-poster-sheet--a4 { zoom: .45; }
	.iu-poster-sheet--a5 { zoom: .6; }
	.iu-poster-sheet--stiker { zoom: .9; }
}
@media print {
	body.iu-poster-page { background: #fff; }
	.iu-poster-tools { display: none; }
	.iu-poster-sheet { margin: 0; box-shadow: none; zoom: 1 !important; }
}

/* ---------- TV leaderboard ---------- */
.iu-tv__grid--board { grid-template-columns: 1.2fr 1fr .85fr; }
.iu-tv__grid--board .iu-tv__title { font-size: 3vw; }
.iu-tv__grid--board .iu-tv__today { font-size: 6vw; }
.iu-tv__grid--board .iu-tv__qr { max-width: 25vw; }
.iu-tv__board { align-self: center; min-width: 0; background: rgba(255, 255, 255, .06); border: 1px solid rgba(153, 246, 228, .18); border-radius: 1.6vw; padding: 1.6vw; }
.iu-tv__board h2 { margin: 0 0 1vw; font-size: 1.4vw; letter-spacing: .08em; text-transform: uppercase; color: #fde68a; }
.iu-tv__board ol { list-style: none; margin: 0; padding: 0; display: grid; gap: .7vw; transition: transform .4s var(--iu-ease); }
.iu-tv__board ol.is-bump { transform: scale(1.02); }
.iu-tv__board li { display: flex; align-items: center; gap: .9vw; padding: .8vw 1vw; border-radius: 1vw; background: rgba(255, 255, 255, .06); font-size: 1.45vw; }
.iu-tv__board li span { flex: 0 0 auto; width: 2.3vw; height: 2.3vw; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 1.15vw; background: rgba(255, 255, 255, .15); }
.iu-tv__board li i { flex: 1; min-width: 0; font-style: normal; font-weight: 700; color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.iu-tv__board li b { color: #fde68a; font-variant-numeric: tabular-nums; white-space: nowrap; }
.iu-tv__board li.is-1 { background: linear-gradient(90deg, rgba(245, 158, 11, .35), rgba(245, 158, 11, .08)); }
.iu-tv__board li.is-1 span { background: #f59e0b; color: #1c1917; }
.iu-tv__board li.is-2 span { background: #cbd5e1; color: #0f172a; }
.iu-tv__board li.is-3 span { background: #d97706; color: #fff; }
.iu-tv__board li.is-empty { color: #99f6e4; justify-content: center; }
@media (max-width: 900px) {
	.iu-tv__grid--board { grid-template-columns: 1fr; }
	.iu-tv__board h2, .iu-tv__board li { font-size: 3.6vw; }
	.iu-tv__board li span { width: 6vw; height: 6vw; font-size: 3vw; }
	.iu-tv__grid--board .iu-tv__qr { max-width: 70vw; }
}
