@font-face{font-family:Vazirmatn;src:url('/miniapp-assets/fonts/vazirmatn-400.woff2') format('woff2');font-style:normal;font-weight:400;font-display:swap}
@font-face{font-family:Vazirmatn;src:url('/miniapp-assets/fonts/vazirmatn-700.woff2') format('woff2');font-style:normal;font-weight:700;font-display:swap}

:root{
  --bg:#f7f5ee;
  --bg-deep:#eeece3;
  --card:#fff;
  --card-warm:#fcfbf6;
  --text:#1d2925;
  --muted:#66716c;
  --muted-2:#87908c;
  --primary:#0e5946;
  --primary-deep:#153c31;
  --primary-soft:#e4f0eb;
  --teal:#2b8174;
  --teal-soft:#e4f3f0;
  --gold:#c4a35a;
  --gold-deep:#806426;
  --gold-soft:#f6eedb;
  --danger:#b34f45;
  --danger-soft:#faece9;
  --warn:#8b6515;
  --warn-soft:#fff6de;
  --line:#e2e5df;
  --line-strong:#d3d9d4;
  --shadow-sm:0 5px 18px rgba(20,58,48,.055);
  --shadow:0 15px 40px rgba(20,58,48,.09);
  --radius-sm:13px;
  --radius:18px;
  --radius-lg:26px;
  --nav-h:76px;
  --safe-top:env(safe-area-inset-top,0px);
  --safe-bottom:env(safe-area-inset-bottom,0px);
}

*{box-sizing:border-box}
[hidden]{display:none!important}
html{min-height:100%;background:var(--bg);font-family:Vazirmatn,Tahoma,"Segoe UI",Arial,sans-serif;color:var(--text);font-size:16px;scroll-behavior:smooth;-webkit-text-size-adjust:100%}
body{min-height:100vh;margin:0;background:var(--bg);color:var(--text);overscroll-behavior-y:none}
body.sheet-open{overflow:hidden}
button,input,select,textarea{font:inherit}
button{cursor:pointer;-webkit-tap-highlight-color:transparent}
button,select,input{color:inherit}
svg{width:1.35em;height:1.35em;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
img{max-width:100%;display:block}
.svg-sprite{position:absolute;width:0;height:0;overflow:hidden}
.app-shell{width:100%;max-width:540px;min-height:100vh;margin:0 auto;padding-bottom:calc(var(--nav-h) + var(--safe-bottom) + 22px);background:var(--bg)}

.topbar{height:calc(66px + var(--safe-top));padding:calc(8px + var(--safe-top)) 16px 8px;position:sticky;top:0;z-index:50;display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:10px;background:rgba(247,245,238,.94);border-bottom:1px solid rgba(226,229,223,.85);backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px)}
.brand{min-width:0;display:flex;align-items:center;gap:10px;justify-self:start}
.brand-mark{width:42px;height:42px;display:grid;place-items:center;border:1px solid rgba(196,163,90,.42);border-radius:14px;color:var(--gold);background:linear-gradient(145deg,#fff,#f6f0e2);box-shadow:0 5px 16px rgba(103,80,29,.08)}
.brand-mark svg{width:30px;height:30px;stroke-width:1.35}
.brand>span:last-child{display:grid;line-height:1.25}
.brand small{font-size:.68rem;color:var(--muted);font-weight:400}
.brand strong{font-size:1.05rem;color:var(--primary-deep);font-weight:700}
.icon-button{width:48px;height:48px;display:grid;place-items:center;padding:0;border:1px solid var(--line);border-radius:14px;background:var(--card);color:var(--primary-deep)}
.icon-button svg{width:22px;height:22px}
.icon-button.subtle{width:48px;height:48px;border-color:transparent;background:var(--primary-soft);color:var(--primary)}
.connection-badge{justify-self:end;padding:7px 10px;border:1px solid #ead69f;border-radius:999px;background:var(--warn-soft);color:var(--warn);font-size:.69rem;font-weight:700;white-space:nowrap}
.network-notice{margin:10px 16px 0;padding:12px 14px;border:1px solid #ead69f;border-radius:14px;background:var(--warn-soft);color:#6f5215;font-size:.82rem;line-height:1.85}

main{padding:14px 16px 0}
.page{display:none;animation:page-in .2s ease}
.page.is-active{display:block}
@keyframes page-in{from{opacity:.45;transform:translateY(4px)}to{opacity:1;transform:none}}

.hero{min-height:310px;position:relative;isolation:isolate;overflow:hidden;padding:28px 24px;border-radius:var(--radius-lg);background:linear-gradient(145deg,#153c31 0%,#0e5946 55%,#2b8174 140%);box-shadow:var(--shadow);color:#fff}
.hero:before{content:"";position:absolute;inset:auto -45px -95px auto;width:220px;height:220px;border-radius:50%;background:radial-gradient(circle,rgba(231,247,239,.18),rgba(231,247,239,0) 68%);z-index:-1}
.hero-pattern{position:absolute;inset:-8px auto auto -25px;width:310px;height:230px;color:rgba(255,255,255,.1);stroke-width:1;z-index:-1}
.hero-copy{max-width:295px;position:relative;z-index:2}
.eyebrow,.section-kicker{display:block;color:var(--gold-deep);font-size:.74rem;font-weight:700;letter-spacing:.01em}
.hero .eyebrow{color:#d9c487}
.hero h1{margin:8px 0 8px;font-size:2rem;line-height:1.55;letter-spacing:-.02em}
.hero p{max-width:300px;margin:0 0 22px;color:#edf6f2;font-size:.94rem;line-height:1.95}
.hero-glow{width:106px;height:106px;position:absolute;left:13px;bottom:4px;display:grid;place-items:center;color:rgba(255,255,255,.18)}
.hero-glow:before,.hero-glow:after,.hero-glow i{content:"";position:absolute;border:1px solid currentColor;border-radius:50%;transform:rotate(45deg)}
.hero-glow:before{width:72px;height:72px;border-radius:24px}
.hero-glow:after{width:48px;height:48px;border-radius:16px}
.hero-glow i:nth-child(1){width:88px;height:26px;border-radius:50%}
.hero-glow i:nth-child(2){width:26px;height:88px;border-radius:50%}
.hero-glow i:nth-child(3){width:13px;height:13px;background:rgba(255,255,255,.14)}

.button{min-height:50px;width:100%;display:flex;align-items:center;justify-content:center;gap:8px;padding:0 18px;border:0;border-radius:15px;font-weight:700;font-size:.96rem;transition:transform .12s ease,opacity .12s ease,box-shadow .12s ease}
.button:active{transform:scale(.985)}
.button:disabled{opacity:.48;cursor:not-allowed}
.button-fit{width:max-content;max-width:100%}
.button-primary{background:linear-gradient(135deg,var(--primary),var(--primary-deep));color:#fff;box-shadow:0 8px 20px rgba(14,89,70,.18)}
.button-light{position:relative;z-index:2;background:#fff;color:var(--primary-deep);box-shadow:0 8px 22px rgba(6,30,24,.13)}
.button-light svg{width:18px;height:18px}
.button-outline{margin-top:10px;border:1px solid var(--primary);background:transparent;color:var(--primary)}
.button-ghost{margin-top:6px;background:transparent;color:var(--muted);box-shadow:none}

.section-heading{min-height:40px;display:flex;align-items:flex-end;justify-content:space-between;gap:12px;margin:27px 2px 12px}
.section-heading.compact{margin-top:20px}
.section-heading h1,.section-heading h2{margin:2px 0 0;color:var(--primary-deep);line-height:1.55}
.section-heading h1{font-size:1.5rem}
.section-heading h2{font-size:1.18rem}
.text-button{min-height:48px;padding:8px 5px;border:0;background:transparent;color:var(--primary);font-size:.83rem;font-weight:700}

.featured-case-card{overflow:hidden;border:1px solid var(--line);border-radius:22px;background:var(--card);box-shadow:var(--shadow-sm)}
.featured-media{aspect-ratio:16/9;position:relative;overflow:hidden;background:linear-gradient(145deg,#dcece6,#b8d5ca)}
.featured-media img{width:100%;height:100%;object-fit:cover}
.featured-media:after{content:"";position:absolute;inset:auto 0 0;height:45%;background:linear-gradient(transparent,rgba(8,35,28,.45));pointer-events:none}
.featured-badge{position:absolute;right:12px;top:12px;z-index:2;padding:6px 10px;border-radius:999px;background:rgba(179,79,69,.94);color:#fff;font-size:.7rem;font-weight:700;box-shadow:0 4px 12px rgba(60,16,11,.15)}
.featured-copy{padding:16px}
.featured-copy h3{margin:0 0 6px;font-size:1.12rem;line-height:1.7;color:var(--primary-deep)}
.featured-copy p{margin:0 0 12px;color:var(--muted);font-size:.87rem;line-height:1.85;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.featured-meta{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:9px;color:var(--muted);font-size:.73rem}
.featured-meta strong{color:var(--primary);font-size:.78rem}
.featured-action{min-height:48px;width:100%;margin-top:14px;border:0;border-radius:13px;background:var(--primary-soft);color:var(--primary);font-weight:700}

.route-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.route-card{min-height:158px;position:relative;overflow:hidden;display:flex;flex-direction:column;align-items:flex-start;gap:12px;padding:16px 15px;border:1px solid var(--line);border-radius:19px;background:var(--card);color:var(--text);text-align:right;box-shadow:0 5px 16px rgba(20,58,48,.035)}
.route-card:before{content:"";position:absolute;left:-22px;bottom:-25px;width:82px;height:82px;border:1px solid currentColor;border-radius:24px;opacity:.055;transform:rotate(32deg)}
.route-card:active{transform:scale(.985)}
.route-icon{width:45px;height:45px;display:grid;place-items:center;border-radius:14px;background:var(--primary-soft);color:var(--primary)}
.route-icon svg{width:25px;height:25px}
.route-card>span:nth-child(2){display:grid;gap:4px}
.route-card strong{font-size:.9rem;line-height:1.65;color:var(--primary-deep)}
.route-card small{color:var(--muted);font-size:.72rem;line-height:1.6}
.route-arrow{position:absolute;left:12px;top:17px;width:18px;height:18px;color:var(--muted-2)}
.route-culture .route-icon{background:var(--gold-soft);color:var(--gold-deep)}
.route-mowkeb .route-icon{background:#e9eef4;color:#3f617e}
.route-general .route-icon{background:var(--teal-soft);color:var(--teal)}

.sadaqah-card{width:100%;min-height:88px;margin-top:14px;display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:12px;padding:14px;border:1px solid rgba(43,129,116,.2);border-radius:19px;background:linear-gradient(135deg,#f3faf7,#e9f4ef);color:var(--text);text-align:right}
.sadaqah-icon{width:50px;height:50px;display:grid;place-items:center;border-radius:16px;background:#fff;color:var(--primary);box-shadow:0 5px 16px rgba(14,89,70,.08)}
.sadaqah-icon svg{width:27px;height:27px}
.sadaqah-card>span:nth-child(2){display:grid;gap:4px}
.sadaqah-card strong{color:var(--primary-deep);font-size:1rem}
.sadaqah-card small{color:var(--muted);font-size:.76rem;line-height:1.6}
.sadaqah-action{display:flex;align-items:center;gap:2px;color:var(--primary);font-size:.78rem;font-weight:700;white-space:nowrap}
.sadaqah-action svg{width:17px;height:17px}

.report-list,.impact-list,.donation-list,.case-list,.subscription-list{display:grid;gap:11px}
.report-card{position:relative;overflow:hidden;padding:17px 18px 17px 54px;border:1px solid rgba(196,163,90,.24);border-radius:19px;background:linear-gradient(135deg,#fffdfa,#f8f3e7);box-shadow:var(--shadow-sm)}
.report-card:after{content:"";position:absolute;left:18px;top:18px;width:19px;height:19px;border:1px solid var(--gold);border-radius:6px;transform:rotate(45deg);opacity:.65}
.report-card .report-label{display:block;margin-bottom:4px;color:var(--gold-deep);font-size:.7rem;font-weight:700}
.report-card h3{margin:0 0 7px;color:var(--primary-deep);font-size:1rem;line-height:1.65}
.report-card p{margin:0;color:var(--muted);font-size:.86rem;line-height:1.9}
.report-card .report-campaign{display:block;margin-top:10px;color:var(--primary);font-size:.72rem;font-weight:700}
.trust-strip{min-height:54px;margin:25px 2px 4px;display:flex;align-items:center;justify-content:center;gap:12px;color:var(--muted);font-size:.72rem}
.trust-strip span{display:flex;align-items:center;gap:5px}
.trust-strip svg{width:17px;height:17px;color:var(--teal)}
.trust-strip i{width:4px;height:4px;border-radius:50%;background:var(--gold)}

.page-heading{margin:6px 2px 18px}
.page-heading.with-action{display:flex;align-items:center;justify-content:space-between;gap:12px}
.page-heading h1{margin:3px 0 4px;color:var(--primary-deep);font-size:1.56rem;line-height:1.55}
.page-heading p{margin:0;color:var(--muted);font-size:.86rem;line-height:1.9}
.filter-chips{display:flex;gap:8px;margin:0 -16px 15px;padding:2px 16px 8px;overflow-x:auto;scrollbar-width:none}
.filter-chips::-webkit-scrollbar{display:none}
.filter-chips button{min-height:48px;padding:0 15px;border:1px solid var(--line);border-radius:999px;background:var(--card);color:var(--muted);font-size:.78rem;font-weight:700;white-space:nowrap}
.filter-chips button.is-selected{border-color:var(--primary);background:var(--primary);color:#fff;box-shadow:0 6px 15px rgba(14,89,70,.14)}

.case-card{width:100%;display:grid;grid-template-columns:104px minmax(0,1fr);gap:12px;padding:11px;border:1px solid var(--line);border-radius:19px;background:var(--card);color:var(--text);text-align:right;box-shadow:var(--shadow-sm)}
.case-card:active{transform:scale(.99)}
.case-thumb{width:104px;min-height:125px;overflow:hidden;display:grid;place-items:center;border-radius:14px;background:linear-gradient(145deg,#dcece6,#b8d5ca);color:var(--primary)}
.case-thumb img{width:100%;height:100%;object-fit:cover}
.case-thumb svg{width:38px;height:38px}
.case-card>span:last-child{min-width:0;align-self:center}
.case-card h3{margin:0 0 4px;color:var(--primary-deep);font-size:.95rem;line-height:1.65}
.case-card p{margin:0 0 8px;color:var(--muted);font-size:.78rem;line-height:1.72;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.badge-row{display:flex;flex-wrap:wrap;gap:5px;margin-bottom:7px}
.badge{display:inline-flex;align-items:center;min-height:25px;padding:3px 8px;border-radius:999px;background:var(--primary-soft);color:var(--primary);font-size:.65rem;font-weight:700}
.badge.urgent{background:var(--danger-soft);color:var(--danger)}
.badge.completed{background:var(--gold-soft);color:var(--gold-deep)}
.progress-track{height:7px;overflow:hidden;border-radius:999px;background:#edf0ee}
.progress-track span{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,var(--teal),var(--primary));transition:width .35s ease}
.progress-meta{display:flex;justify-content:space-between;gap:7px;margin-top:6px;color:var(--muted);font-size:.64rem;line-height:1.5}
.empty-state{padding:34px 18px;border:1px dashed var(--line-strong);border-radius:20px;background:rgba(255,255,255,.35);color:var(--muted);text-align:center}
.empty-state>svg{width:42px;height:42px;margin-bottom:10px;color:var(--gold)}
.empty-state strong{display:block;color:var(--text);font-size:.96rem;line-height:1.8}
.empty-state p{margin:8px 0 16px;line-height:1.85}

.case-media{aspect-ratio:16/10;position:relative;overflow:hidden;display:grid;place-items:center;margin:-2px 0 0;border-radius:23px;background:linear-gradient(145deg,#dcece6,#b8d5ca)}
.case-media:after{content:"";position:absolute;inset:auto 0 0;height:30%;background:linear-gradient(transparent,rgba(10,40,33,.2));pointer-events:none}
.case-media img{width:100%;height:100%;object-fit:cover}
.media-placeholder{display:grid;place-items:center;color:var(--primary)}
.media-placeholder svg{width:64px;height:64px;stroke-width:1.2}
.play-button{width:66px;height:66px;position:absolute;z-index:2;display:grid;place-items:center;padding:0;border:4px solid rgba(255,255,255,.84);border-radius:50%;background:rgba(14,89,70,.94);color:#fff;box-shadow:0 8px 25px rgba(4,26,20,.22)}
.play-button svg{width:30px;height:30px;margin-right:3px}
.case-video{width:100%;margin-bottom:12px;border-radius:20px;background:#000}
.case-content{padding:1px 2px}
.case-content>.badge-row{margin-top:15px}
.case-content h1{margin:8px 0 7px;color:var(--primary-deep);font-size:1.52rem;line-height:1.65}
.body-text{margin:0;color:#46534f;font-size:.97rem;line-height:2.05;white-space:pre-line}
.child-cases-section{margin-top:22px;padding-top:2px;border-top:1px solid var(--line)}
.compact-list .case-card{grid-template-columns:82px minmax(0,1fr)}
.compact-list .case-thumb{width:82px;min-height:96px}
.stats-grid{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin:18px 0 12px}
.stat{padding:14px;border:1px solid var(--line);border-radius:16px;background:var(--card)}
.stat small{display:block;margin-bottom:5px;color:var(--muted);font-size:.72rem}
.stat strong{display:block;color:var(--primary-deep);font-size:.93rem;line-height:1.65}
.progress-wrap{margin:0 2px 17px}

.supporters-section{margin:17px 0;padding:16px;border:1px solid rgba(43,129,116,.2);border-radius:20px;background:linear-gradient(145deg,#fbfffd,#eef7f3)}
.supporters-summary{display:grid;grid-template-columns:auto 1fr;align-items:center;gap:11px;padding-bottom:13px;border-bottom:1px solid rgba(43,129,116,.14)}
.supporters-heart{width:43px;height:43px;display:grid;place-items:center;border-radius:14px;background:var(--primary);color:#fff;font-size:1.15rem;box-shadow:0 6px 16px rgba(14,89,70,.18)}
.supporters-summary h2{margin:0;color:var(--primary-deep);font-size:1rem;line-height:1.65}
.supporters-summary p{margin:2px 0;color:var(--text);font-size:.82rem;line-height:1.7}
.supporters-summary p strong{color:var(--primary);font-size:1rem}
.supporters-summary small{display:block;color:var(--teal);font-size:.7rem;line-height:1.65}
.supporter-group{margin-top:14px}
.supporter-group h3{margin:0 0 8px;color:var(--primary-deep);font-size:.82rem}
.supporter-list{display:grid;gap:7px;margin:0;padding:0;list-style:none}
.supporter-row{min-height:58px;display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:9px;padding:8px 9px;border:1px solid rgba(211,217,212,.8);border-radius:14px;background:rgba(255,255,255,.78)}
.supporter-avatar{width:34px;height:34px;display:grid;place-items:center;border-radius:11px;background:var(--primary-soft);color:var(--primary);font-size:.82rem}
.supporter-name,.supporter-amount{display:grid;gap:1px}
.supporter-name strong{overflow:hidden;color:var(--text);font-size:.77rem;line-height:1.6;text-overflow:ellipsis;white-space:nowrap}
.supporter-name small,.supporter-amount small{color:var(--muted);font-size:.61rem;line-height:1.45}
.supporter-amount{text-align:left}
.supporter-amount strong{color:var(--primary-deep);font-size:.69rem;line-height:1.55;white-space:nowrap}
.top-supporters .supporter-row:first-child{border-color:rgba(196,163,90,.45);background:#fffaf0}
.top-supporters .supporter-row:first-child .supporter-avatar{background:var(--gold-soft);color:var(--gold-deep)}
.supporter-privacy{margin:13px 0 0;padding-top:10px;border-top:1px dashed rgba(43,129,116,.2);color:var(--muted);font-size:.66rem;line-height:1.75;text-align:center}

.usage-box{display:grid;grid-template-columns:auto 1fr;gap:11px;margin:17px 0;padding:16px;border:1px solid #e6d6ac;border-radius:18px;background:#fffaf0;color:#443b28}
.usage-icon{width:34px;height:34px;display:grid;place-items:center;border-radius:11px;background:#f3e6c6;color:var(--gold-deep)}
.usage-icon svg{width:20px;height:20px}
.usage-box strong{display:block;margin-bottom:5px;color:#684f1b;font-size:.92rem;line-height:1.6}
.usage-box p{margin:0;color:#4f4838;font-size:.91rem;line-height:2}
.usage-box-final{margin-bottom:13px}
.sticky-action{position:sticky;bottom:calc(var(--nav-h) + var(--safe-bottom) + 7px);z-index:30;margin:18px -2px 0;padding:10px 2px 2px;background:linear-gradient(0deg,var(--bg) 75%,rgba(247,245,238,0))}

.amount-heading{margin-bottom:12px}
.selected-campaign{display:grid;grid-template-columns:64px 1fr;align-items:center;gap:11px;padding:11px;border:1px solid var(--line);border-radius:17px;background:var(--card)}
.selected-campaign img,.selected-campaign .selected-placeholder{width:64px;height:64px;border-radius:13px;object-fit:cover;background:var(--primary-soft)}
.selected-placeholder{display:grid;place-items:center;color:var(--primary)}
.selected-campaign small{display:block;margin-bottom:3px;color:var(--muted);font-size:.7rem}
.selected-campaign strong{display:block;color:var(--primary-deep);font-size:.94rem;line-height:1.6}
.amount-grid{display:grid;grid-template-columns:1fr 1fr;gap:9px}
.amount-option{min-height:51px;padding:6px 9px;border:1px solid var(--line);border-radius:14px;background:var(--card);color:var(--text);font-size:.84rem;font-weight:700}
.amount-option.is-selected{border:2px solid var(--primary);background:var(--primary-soft);color:var(--primary)}
.amount-input{display:block;margin:12px 0}
.amount-input>span,.select-label>span,.field>span{display:block;margin-bottom:7px;color:var(--primary-deep);font-size:.82rem;font-weight:700}
.amount-input>div{height:55px;display:flex;align-items:center;gap:8px;padding:0 14px;border:1px solid var(--line-strong);border-radius:14px;background:var(--card)}
.amount-input input{width:100%;min-width:0;border:0;outline:0;background:transparent;font-size:1rem}
.amount-input em{color:var(--muted);font-size:.8rem;font-style:normal;white-space:nowrap}
.amount-input>small{min-height:20px;display:block;margin-top:4px;color:var(--danger);font-size:.73rem;line-height:1.6}
.official-payment{display:flex;align-items:center;gap:10px;padding:12px 14px;border:1px solid rgba(43,129,116,.2);border-radius:15px;background:var(--teal-soft)}
.official-payment>svg{width:27px;height:27px;color:var(--teal);flex:0 0 auto}
.official-payment span{display:grid;gap:2px}
.official-payment strong{color:var(--primary-deep);font-size:.82rem}
.official-payment small{color:var(--muted);font-size:.7rem;line-height:1.5}
.compact-official{margin:15px 0}

.segmented-tabs{display:grid;grid-template-columns:1fr 1fr;gap:4px;margin-bottom:15px;padding:4px;border:1px solid var(--line);border-radius:15px;background:#ecece6}
.segmented-tabs button{min-height:48px;border:0;border-radius:11px;background:transparent;color:var(--muted);font-size:.82rem;font-weight:700}
.segmented-tabs button.is-selected{background:var(--card);color:var(--primary);box-shadow:0 3px 10px rgba(20,58,48,.08)}
.donation-group,.impact-card,.subscription-card{padding:15px;border:1px solid var(--line);border-radius:18px;background:var(--card);box-shadow:var(--shadow-sm)}
.donation-group-head,.impact-head,.subscription-head{display:flex;align-items:flex-start;justify-content:space-between;gap:10px}
.donation-group h3,.impact-card h3,.subscription-card h3{margin:0;color:var(--primary-deep);font-size:.98rem;line-height:1.65}
.donation-group-meta{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:12px 0}
.donation-group-meta span{padding:9px;border-radius:12px;background:var(--card-warm)}
.donation-group-meta small{display:block;color:var(--muted);font-size:.66rem}
.donation-group-meta strong{display:block;margin-top:2px;color:var(--text);font-size:.8rem;line-height:1.55}
.status-pill{display:inline-flex;align-items:center;min-height:26px;padding:4px 9px;border-radius:999px;font-size:.65rem;font-weight:700;white-space:nowrap}
.status-paid{background:var(--primary-soft);color:var(--primary)}
.status-pending{background:var(--warn-soft);color:var(--warn)}
.status-failed{background:var(--danger-soft);color:var(--danger)}
.status-completed{background:var(--gold-soft);color:var(--gold-deep)}
.small-button{min-height:48px;width:100%;border:0;border-radius:13px;background:var(--primary-soft);color:var(--primary);font-size:.79rem;font-weight:700}
.impact-card{position:relative;overflow:hidden}
.impact-card.has-result{border-color:rgba(196,163,90,.35);background:linear-gradient(135deg,#fff,#fcf8ee)}
.impact-card p{margin:9px 0 0;color:var(--muted);font-size:.86rem;line-height:1.95}
.impact-card .impact-waiting{color:var(--muted)}
.impact-card .impact-media{width:100%;margin-top:12px;border-radius:13px;aspect-ratio:16/9;object-fit:cover}
.impact-card .impact-label{display:block;margin-bottom:4px;color:var(--gold-deep);font-size:.7rem;font-weight:700}
.report-media{width:100%;margin-top:12px;border-radius:14px;aspect-ratio:16/9;object-fit:cover;background:#000}

.receipt-card{padding:20px 18px;border:1px solid var(--line);border-radius:24px;background:var(--card);box-shadow:var(--shadow)}
.receipt-icon{width:74px;height:74px;display:grid;place-items:center;margin:2px auto 9px;border-radius:50%;background:var(--primary-soft);color:var(--primary);font-size:2rem;font-weight:700}
.receipt-kicker{display:block;color:var(--gold-deep);font-size:.7rem;font-weight:700;text-align:center}
.receipt-card h1{margin:3px 0 0;color:var(--primary-deep);font-size:1.35rem;text-align:center}
.receipt-status{margin:5px 0 12px;color:var(--muted);font-size:.85rem;line-height:1.8;text-align:center}
.receipt-rows{margin:10px 0}
.receipt-rows>div{display:flex;justify-content:space-between;gap:15px;padding:11px 0;border-bottom:1px dashed var(--line);font-size:.82rem;line-height:1.65}
.receipt-rows dt{color:var(--muted)}
.receipt-rows dd{margin:0;font-weight:700;text-align:left;overflow-wrap:anywhere}
.public-alias-box{display:grid;gap:9px;margin:15px 0;padding:15px;border:1px solid rgba(43,129,116,.24);border-radius:17px;background:var(--teal-soft)}
.public-alias-box label strong{display:block;color:var(--primary-deep);font-size:.88rem;line-height:1.75}
.public-alias-box label small{display:block;margin-top:3px;color:var(--muted);font-size:.7rem;line-height:1.75}
.public-alias-box input{width:100%;height:52px;padding:0 12px;border:1px solid var(--line-strong);border-radius:13px;outline:0;background:#fff;font-size:.84rem}
.public-alias-box input:focus{border-color:var(--teal);box-shadow:0 0 0 3px rgba(43,129,116,.1)}
.public-alias-box p{margin:0;color:var(--primary);font-size:.7rem;line-height:1.7}
.field-error{min-height:0;color:var(--danger);font-size:.7rem;line-height:1.6}
.field-error:empty{display:none}
.alias-privacy{display:flex;align-items:flex-start;justify-content:center;gap:5px;color:var(--muted);font-size:.65rem;line-height:1.65;text-align:center}
.alias-privacy svg{width:15px;height:15px;flex:0 0 auto;color:var(--teal)}

.profile-card{width:100%;display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:11px;padding:14px;border:1px solid var(--line);border-radius:18px;background:var(--card);color:var(--text);text-align:right;box-shadow:var(--shadow-sm)}
.avatar{width:52px;height:52px;display:grid;place-items:center;border-radius:16px;background:linear-gradient(145deg,var(--primary),var(--teal));color:#fff;font-size:1.15rem;font-weight:700}
.profile-card>span:nth-child(2){display:grid;gap:3px}
.profile-card strong{color:var(--primary-deep);font-size:.95rem}
.profile-card small{color:var(--muted);font-size:.74rem}
.profile-card>svg{width:19px;height:19px;color:var(--muted-2)}
.profile-reminder{margin-top:10px;padding:13px;border:1px solid #e5d29d;border-radius:16px;background:var(--warn-soft)}
.profile-reminder>span{display:grid;gap:4px}
.profile-reminder strong{color:#63480d;font-size:.84rem}
.profile-reminder small{color:#755b22;font-size:.72rem;line-height:1.7}
.profile-reminder button{min-height:48px;margin-top:9px;padding:0 13px;border:0;border-radius:11px;background:#fff;color:var(--gold-deep);font-size:.75rem;font-weight:700}
.menu-group{overflow:hidden;margin-top:13px;border:1px solid var(--line);border-radius:18px;background:var(--card)}
.menu-row{min-height:71px;width:100%;display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:11px;padding:12px 14px;border:0;border-bottom:1px solid var(--line);background:var(--card);color:var(--text);text-align:right}
.menu-row:last-child{border-bottom:0}
.menu-icon{width:39px;height:39px;display:grid;place-items:center;border-radius:12px;background:var(--primary-soft);color:var(--primary)}
.menu-icon svg{width:21px;height:21px}
.menu-row>span:nth-child(2){display:grid;gap:3px}
.menu-row strong{color:var(--primary-deep);font-size:.86rem}
.menu-row small{color:var(--muted);font-size:.71rem;line-height:1.55}
.menu-row>svg{width:18px;height:18px;color:var(--muted-2)}
.privacy-note{display:flex;align-items:center;justify-content:center;gap:6px;margin:18px 0;color:var(--muted);font-size:.7rem;line-height:1.7;text-align:center}
.privacy-note svg{width:17px;height:17px;color:var(--teal)}

.form-card{padding:16px;border:1px solid var(--line);border-radius:19px;background:var(--card);box-shadow:var(--shadow-sm)}
.field{display:block;margin-bottom:14px}
.field input,.select-label select{width:100%;height:53px;padding:0 13px;border:1px solid var(--line-strong);border-radius:14px;outline:0;background:var(--card-warm)}
.field input:focus,.select-label select:focus,.amount-input>div:focus-within{border-color:var(--teal);box-shadow:0 0 0 3px rgba(43,129,116,.1)}
.field small{color:var(--muted);font-weight:400}
.form-privacy{display:flex;align-items:flex-start;gap:6px;margin:4px 0 15px;color:var(--muted);font-size:.72rem;line-height:1.7}
.form-privacy svg{width:17px;height:17px;flex:0 0 auto;color:var(--teal)}
.setting-card{min-height:86px;display:flex;align-items:center;justify-content:space-between;gap:14px;padding:15px;border:1px solid var(--line);border-radius:18px;background:var(--card)}
.setting-card strong{display:block;color:var(--primary-deep);font-size:.9rem}
.setting-card p{margin:5px 0 0;color:var(--muted);font-size:.73rem;line-height:1.65}
.switch{width:56px;height:48px;position:relative;flex:0 0 auto;padding:0;border:0;background:transparent}
.switch:before{content:"";width:52px;height:30px;position:absolute;top:9px;right:2px;border-radius:999px;background:#c9cfcc;transition:background .18s}
.switch span{width:24px;height:24px;position:absolute;top:12px;right:5px;border-radius:50%;background:#fff;box-shadow:0 2px 7px rgba(0,0,0,.15);transition:transform .18s}
.switch[aria-checked="true"]:before{background:var(--primary)}
.switch[aria-checked="true"] span{transform:translateX(-22px)}
.select-label{display:block;margin:14px 0}
.weekday-field{margin:14px 0;padding:14px;border:1px solid var(--line);border-radius:16px;background:var(--card)}
.weekday-field legend{padding:0 5px;color:var(--primary-deep);font-size:.8rem;font-weight:700}
.weekday-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:7px}
.weekday{min-height:48px;padding:4px;border:1px solid var(--line);border-radius:11px;background:var(--card-warm);color:var(--muted);font-size:.68rem}
.weekday.is-selected{border-color:var(--primary);background:var(--primary-soft);color:var(--primary);font-weight:700}
.subscription-list:empty{display:none}
.subscription-card{margin-bottom:1px}
.subscription-card p{margin:7px 0 11px;color:var(--muted);font-size:.76rem;line-height:1.7}
.subscription-card button{min-height:48px;padding:0 12px;border:0;border-radius:10px;background:var(--primary-soft);color:var(--primary);font-size:.72rem;font-weight:700}
.two-fields{display:grid;grid-template-columns:1fr 1fr;gap:9px}
.compact-setting{min-height:76px;margin:13px 0}
.notice-setting{min-height:84px;width:100%;display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:11px;margin-bottom:10px;padding:14px;border:1px solid var(--line);border-radius:17px;background:var(--card);color:var(--text);text-align:right}
.notice-setting>span:nth-child(2){display:grid;gap:4px}
.notice-setting strong{color:var(--primary-deep);font-size:.87rem}
.notice-setting small{color:var(--muted);font-size:.72rem;line-height:1.65}
.notice-setting>svg{width:18px;height:18px;color:var(--muted-2)}
.notice-setting.mandatory{border-color:rgba(43,129,116,.2);background:var(--teal-soft)}
.fixed-label{padding:5px 8px;border-radius:999px;background:#fff;color:var(--primary);font-size:.64rem;font-weight:700;white-space:nowrap}

.bottom-nav{height:calc(var(--nav-h) + var(--safe-bottom));position:fixed;right:50%;bottom:0;z-index:60;width:100%;max-width:540px;transform:translateX(50%);display:grid;grid-template-columns:repeat(4,1fr);padding:7px 7px calc(7px + var(--safe-bottom));border-top:1px solid rgba(211,217,212,.9);background:rgba(255,255,255,.96);box-shadow:0 -8px 28px rgba(20,58,48,.07);backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px)}
.bottom-nav button{min-width:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;padding:3px;border:0;border-radius:13px;background:transparent;color:#75817c}
.bottom-nav button svg{width:22px;height:22px;stroke-width:1.7}
.bottom-nav button small{font-size:.62rem;line-height:1.45;white-space:nowrap}
.bottom-nav button.is-active{background:var(--primary-soft);color:var(--primary)}
.bottom-nav button.is-active small{font-weight:700}

.sheet-backdrop{position:fixed;inset:0;z-index:90;background:rgba(15,28,24,.48);backdrop-filter:blur(2px);-webkit-backdrop-filter:blur(2px)}
.bottom-sheet{max-height:88vh;position:fixed;right:50%;bottom:0;z-index:100;width:min(540px,100%);overflow-y:auto;transform:translateX(50%);padding:10px 18px calc(18px + var(--safe-bottom));border-radius:25px 25px 0 0;background:var(--bg);box-shadow:0 -18px 50px rgba(10,35,28,.2);animation:sheet-in .22s ease}
@keyframes sheet-in{from{transform:translate(50%,20px);opacity:.5}to{transform:translate(50%,0);opacity:1}}
.sheet-handle{width:46px;height:5px;margin:0 auto 15px;border-radius:999px;background:#c7ceca}
.bottom-sheet>p{margin:5px 0 14px;color:var(--muted);font-size:.84rem;line-height:1.85}
.sheet-title,.sheet-heading{display:flex;align-items:center;gap:11px}
.sheet-title h2,.sheet-heading h2{margin:1px 0;color:var(--primary-deep);font-size:1.2rem}
.sheet-heading{justify-content:space-between;margin-bottom:13px}
.prompt-sheet{text-align:center}
.prompt-icon{width:68px;height:68px;display:grid;place-items:center;margin:0 auto 10px;border-radius:50%;background:var(--primary-soft);color:var(--primary)}
.prompt-icon svg{width:37px;height:37px}
.prompt-sheet h2{margin:0;color:var(--primary-deep);font-size:1.25rem}
.prompt-sheet>p{max-width:390px;margin:8px auto 17px}
.receipt-list{display:grid;gap:9px}
.receipt-list-item{display:grid;grid-template-columns:1fr auto;align-items:center;gap:8px;padding:12px;border:1px solid var(--line);border-radius:14px;background:var(--card)}
.receipt-list-item span{display:grid;gap:3px}
.receipt-list-item strong{color:var(--primary-deep);font-size:.82rem}
.receipt-list-item small{color:var(--muted);font-size:.68rem}
.receipt-list-item button{min-height:48px;padding:0 11px;border:0;border-radius:10px;background:var(--primary-soft);color:var(--primary);font-size:.7rem;font-weight:700}
.toast{position:fixed;right:50%;bottom:calc(var(--nav-h) + var(--safe-bottom) + 14px);z-index:130;width:max-content;max-width:calc(100% - 32px);padding:11px 15px;border-radius:13px;background:#1f302b;color:#fff;font-size:.78rem;line-height:1.7;text-align:center;box-shadow:0 8px 25px rgba(0,0,0,.18);opacity:0;pointer-events:none;transform:translate(50%,10px);transition:opacity .18s,transform .18s}
.toast.is-visible{opacity:1;transform:translate(50%,0)}

.skeleton-list{display:grid;gap:10px}
.skeleton-card{min-height:132px;display:grid;grid-template-columns:100px 1fr;gap:12px;padding:11px;border:1px solid var(--line);border-radius:18px;background:var(--card)}
.skeleton-card i,.skeleton-card b{display:block;border-radius:10px;background:linear-gradient(90deg,#eceeea,#f7f8f5,#eceeea);background-size:200% 100%;animation:shimmer 1.15s infinite}
.skeleton-card i{height:110px}
.skeleton-card div{display:grid;align-content:center;gap:9px}
.skeleton-card b{height:12px}
.skeleton-card b:nth-child(2){width:85%}.skeleton-card b:nth-child(3){width:60%}
@keyframes shimmer{to{background-position:-200% 0}}

@media(max-width:370px){
  main{padding-right:13px;padding-left:13px}
  .hero{padding:24px 19px}.hero h1{font-size:1.8rem}
  .route-card{min-height:162px;padding:14px 12px}.route-card strong{font-size:.84rem}
  .case-card{grid-template-columns:92px minmax(0,1fr)}.case-thumb{width:92px}
  .bottom-nav button small{font-size:.58rem}
}

@media(min-width:600px){
  body{padding:18px 0;background:linear-gradient(90deg,#eeece3,var(--bg) 24%,var(--bg) 76%,#eeece3)}
  .app-shell{min-height:calc(100vh - 36px);border:1px solid var(--line);border-radius:28px 28px 0 0;box-shadow:0 20px 60px rgba(20,58,48,.08)}
  .topbar{border-radius:28px 28px 0 0}
}

@media(prefers-reduced-motion:reduce){
  *,*:before,*:after{scroll-behavior:auto!important;animation-duration:.001ms!important;animation-iteration-count:1!important;transition-duration:.001ms!important}
}

button:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid rgba(43,129,116,.32);outline-offset:2px}

/* Featured charity slider */
.featured-slider{
  display:flex;
  gap:12px;
  overflow-x:auto;
  scroll-snap-type:x mandatory;
  overscroll-behavior-inline:contain;
  scrollbar-width:none;
  -webkit-overflow-scrolling:touch;
}

.featured-slider::-webkit-scrollbar{
  display:none;
}

.featured-slider .featured-case-card{
  flex:0 0 100%;
  scroll-snap-align:start;
  scroll-snap-stop:always;
}

.featured-pager{
  display:flex;
  justify-content:center;
  align-items:center;
  gap:7px;
  margin:11px auto 2px;
}

.featured-pager-item{
  width:28px;
  height:5px;
  padding:0;
  border:0;
  border-radius:999px;
  background:#d9dfdc;
  transition:width .25s ease, background .25s ease;
}

.featured-pager-item.is-active{
  width:44px;
  background:var(--primary);
}
