/* ==========================================================================
   KHATU FOUNDATION — Saffron / Maroon / Gold design system
   ========================================================================== */

:root {
    --saffron: #C2410C;
    --saffron-bright: #EA580C;
    --saffron-deep: #9A3412;
    --saffron-light: #FFF7ED;
    --saffron-border: #FED7AA;
    --maroon: #7F1D1D;
    --gold: #B45309;
    --gold-bright: #F59E0B;
    --cream: #FFFBF5;

    --text-title: #3B0D0D;
    --text-body: #334155;
    --text-muted: #64748B;
    --border: #F1E4D6;

    --shadow-card: 0 2px 6px rgba(124, 45, 18, .04), 0 10px 30px -12px rgba(124, 45, 18, .14);
    --shadow-card-hover: 0 4px 10px rgba(124, 45, 18, .06), 0 22px 44px -16px rgba(124, 45, 18, .26);
    --ease: cubic-bezier(.16, 1, .3, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }

body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: var(--cream);
    color: var(--text-body);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { color: var(--text-title); }

::selection { background: var(--saffron); color: #fff; }

:focus-visible {
    outline: 3px solid rgba(234, 88, 12, .45);
    outline-offset: 2px;
    border-radius: 8px;
}

img { max-width: 100%; }

/* ---------- Header (sticky, hides on scroll down) ---------- */

.site-header-wrapper {
    position: sticky;
    top: 0;
    z-index: 50;
    transition: transform .35s var(--ease), box-shadow .25s ease;
    will-change: transform;
}
.site-header-wrapper.header-hidden { transform: translateY(-100%); }
.site-header-wrapper.header-scrolled { box-shadow: 0 6px 24px -8px rgba(124, 45, 18, .18); }

.nav-link {
    position: relative;
    padding: 6px 0;
    transition: color .2s ease;
}
.nav-link::after {
    content: '';
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 2px;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--saffron-bright), var(--gold-bright));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .3s var(--ease);
}
.nav-link:hover { color: var(--saffron); }
.nav-link:hover::after { transform: scaleX(1); }

.mobile-link {
    display: block;
    padding: 10px 12px;
    border-radius: 12px;
    font-weight: 600;
    color: #334155;
}
.mobile-link:hover { background: var(--saffron-light); color: var(--saffron); }

/* ---------- Cards ---------- */

/* Admin panel cards (static, no hover lift) */
.ios-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 18px;
    box-shadow: var(--shadow-card);
}

.gfm-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 20px;
    box-shadow: var(--shadow-card);
    transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s ease;
    position: relative;
    overflow: hidden;
}
.gfm-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-card-hover);
    border-color: var(--saffron-border);
}
.gfm-card-static:hover { transform: none; box-shadow: var(--shadow-card); border-color: var(--border); }

/* ---------- Progress ---------- */

.gfm-progress-track,
.ios-progress-track {
    height: 8px;
    background-color: #F5E6D8;
    border-radius: 9999px;
    overflow: hidden;
}
.gfm-progress-bar,
.ios-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--saffron-bright), var(--gold-bright));
    border-radius: 9999px;
    transition: width 1.2s var(--ease);
}

/* ---------- Buttons ---------- */

.btn-gfm-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--saffron-bright) 0%, var(--saffron) 100%);
    color: #fff !important;
    font-weight: 700;
    border-radius: 9999px;
    padding: 12px 26px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    box-shadow: 0 6px 18px -4px rgba(194, 65, 12, .45);
    transition: transform .25s var(--ease), box-shadow .25s ease, filter .25s ease;
}
.btn-gfm-primary:hover {
    transform: translateY(-2px);
    filter: brightness(1.05);
    box-shadow: 0 12px 26px -6px rgba(194, 65, 12, .55);
}
.btn-gfm-primary:active { transform: scale(.98); }
.btn-gfm-primary:disabled { opacity: .7; cursor: wait; transform: none; }

.btn-gfm-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #fff;
    color: var(--maroon);
    border: 1.5px solid var(--saffron-border);
    font-weight: 700;
    border-radius: 9999px;
    padding: 11px 24px;
    transition: all .2s ease;
}
.btn-gfm-secondary:hover {
    background: var(--saffron-light);
    border-color: var(--saffron-bright);
    color: var(--saffron);
    transform: translateY(-1px);
}

/* ---------- Donation presets & segmented control ---------- */

.gfm-preset-btn {
    background: #fff;
    border: 1.5px solid #EADCCF;
    border-radius: 14px;
    padding: 11px 10px;
    text-align: center;
    cursor: pointer;
    color: var(--text-title);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: all .2s var(--ease);
}
.gfm-preset-btn:hover { border-color: var(--saffron-bright); background: var(--saffron-light); }
.gfm-preset-btn.active {
    background: var(--saffron-light);
    border-color: var(--saffron);
    color: var(--saffron-deep);
    box-shadow: 0 0 0 3px rgba(234, 88, 12, .15);
}
.gfm-preset-btn .preset-desc { font-size: .68rem; color: var(--text-muted); margin-top: 2px; }
.gfm-preset-btn.active .preset-desc { color: var(--saffron); font-weight: 600; }

.gfm-segmented {
    background: #F7EDE3;
    border-radius: 9999px;
    padding: 3px;
    display: inline-flex;
}
.gfm-segmented button {
    padding: 8px 18px;
    border-radius: 9999px;
    font-size: .82rem;
    font-weight: 600;
    color: var(--text-muted);
    background: transparent;
    border: none;
    cursor: pointer;
    transition: all .2s ease;
}
.gfm-segmented button.active { background: #fff; color: var(--maroon); box-shadow: 0 2px 8px rgba(0, 0, 0, .08); }

/* ---------- Form fields ---------- */

.field-label {
    display: block;
    font-size: .75rem;
    font-weight: 600;
    color: #475569;
    margin-bottom: 4px;
}
.field-input {
    width: 100%;
    padding: 10px 14px;
    font-size: .875rem;
    color: #0F172A;
    background: #FFFDFB;
    border: 1px solid #EADCCF;
    border-radius: 12px;
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.field-input:focus {
    outline: none;
    background: #fff;
    border-color: var(--saffron-bright);
    box-shadow: 0 0 0 3px rgba(234, 88, 12, .15);
}

/* ---------- Pills & badges ---------- */

.gfm-cat-pill {
    padding: 8px 16px;
    border-radius: 9999px;
    font-size: .82rem;
    font-weight: 600;
    color: #57534E;
    background: #fff;
    border: 1px solid #EADCCF;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all .2s ease;
}
.gfm-cat-pill:hover,
.gfm-cat-pill.active {
    background: var(--saffron);
    color: #fff;
    border-color: var(--saffron);
}

.badge-gfm-verified {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 12px;
    border-radius: 9999px;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .02em;
    background: var(--saffron-light);
    border: 1px solid var(--saffron-border);
    color: var(--saffron-deep);
}

.section-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--gold);
}
.section-eyebrow::before,
.section-eyebrow::after {
    content: '';
    width: 22px;
    height: 1.5px;
    background: currentColor;
    opacity: .6;
}

/* Decorative divider (lotus-like ornament) */
.ornament {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: var(--gold-bright);
}
.ornament::before,
.ornament::after {
    content: '';
    height: 1px;
    width: 80px;
    background: linear-gradient(90deg, transparent, currentColor, transparent);
}

/* ---------- Footer ---------- */

.footer-title {
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: #fff;
    margin-bottom: 14px;
}
.footer-link { transition: color .2s ease; }
.footer-link:hover { color: #fff; }
.copy-btn {
    padding: 2px 8px;
    border-radius: 6px;
    background: rgba(255, 255, 255, .08);
    transition: background .2s ease;
}
.copy-btn:hover { background: rgba(255, 255, 255, .18); }

/* ---------- Hero ---------- */

.hero-bg {
    background:
        radial-gradient(1000px 420px at 85% -10%, rgba(245, 158, 11, .18), transparent 60%),
        radial-gradient(800px 380px at -10% 10%, rgba(234, 88, 12, .10), transparent 60%),
        var(--cream);
}

/* ---------- Seva illustration (used when no real photo is uploaded) ---------- */

.seva-art {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    overflow: hidden;
    color: #fff;
    background:
        radial-gradient(circle at 50% 38%, rgba(253, 230, 138, .55) 0, rgba(253, 230, 138, 0) 38%),
        repeating-conic-gradient(from 0deg at 50% 38%, rgba(255, 255, 255, .07) 0deg 6deg, transparent 6deg 18deg),
        linear-gradient(160deg, #F59E0B 0%, #EA580C 45%, #9F1239 100%);
}
.seva-art::after {
    content: '';
    position: absolute;
    left: -10%; right: -10%; bottom: -30%;
    height: 55%;
    border-radius: 50%;
    background: rgba(127, 29, 29, .35);
}
.seva-art i {
    position: relative;
    z-index: 1;
    font-size: clamp(2.6rem, 6vw, 4.2rem);
    filter: drop-shadow(0 6px 14px rgba(127, 29, 29, .45));
    transition: transform .6s var(--ease);
}
.seva-art span {
    position: relative;
    z-index: 1;
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-shadow: 0 2px 8px rgba(127, 29, 29, .5);
}
.group:hover .seva-art i { transform: scale(1.08) translateY(-3px); }

/* ---------- Prose (policy pages) ---------- */

.prose-kf h2 { font-size: 1.15rem; font-weight: 700; margin: 1.6rem 0 .5rem; color: var(--maroon); }
.prose-kf p,
.prose-kf li { font-size: .92rem; color: #475569; line-height: 1.75; }
.prose-kf ul { list-style: disc; padding-left: 1.25rem; margin: .5rem 0; }
.prose-kf a { color: var(--saffron); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Utilities ---------- */

.no-scrollbar { scrollbar-width: none; -ms-overflow-style: none; }
.no-scrollbar::-webkit-scrollbar { display: none; }

/* Reveal-on-scroll (activated by main.js) */
.js .reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.js .reveal.is-visible { opacity: 1; transform: none; }

@keyframes modalUp {
    from { opacity: 0; transform: translateY(24px) scale(.98); }
    to   { opacity: 1; transform: none; }
}
#global-donation-modal.flex .modal-panel { animation: modalUp .35s var(--ease); }

@keyframes diyaGlow {
    0%, 100% { opacity: .85; transform: scale(1); }
    50%      { opacity: 1;   transform: scale(1.08); }
}
.diya-glow { animation: diyaGlow 2.4s ease-in-out infinite; display: inline-block; }

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--cream); }
::-webkit-scrollbar-thumb { background: #E7CBB1; border-radius: 9999px; }
::-webkit-scrollbar-thumb:hover { background: var(--saffron-bright); }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
    .js .reveal { opacity: 1; transform: none; }
    html { scroll-behavior: auto; }
}

@media print {
    .site-header-wrapper, footer, #global-donation-modal { display: none !important; }
}

/* ==========================================================================
   2-STEP DONATION FLOW
   ========================================================================== */

.modal-head {
    position: sticky;
    top: 0;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    padding: 22px 24px 16px;
    background: linear-gradient(180deg, #FFF7ED 0%, #fff 100%);
    border-bottom: 1px solid var(--border);
}

.kf-steps { display: flex; align-items: center; gap: 8px; margin-bottom: 18px; }
.kf-step-dot {
    width: 26px; height: 26px; border-radius: 50%;
    display: grid; place-items: center;
    font-size: .75rem; font-weight: 800;
    background: #F5E6D8; color: #A8A29E;
    transition: all .35s var(--ease);
}
.kf-step-dot.is-active { background: linear-gradient(135deg, var(--saffron-bright), var(--saffron)); color: #fff; box-shadow: 0 4px 12px -2px rgba(194, 65, 12, .5); }
.kf-step-line { flex: 1; height: 3px; border-radius: 3px; background: #F5E6D8; overflow: hidden; }
.kf-step-line span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--saffron-bright), var(--gold-bright)); transition: width .45s var(--ease); }
.on-step-2 .kf-step-line span { width: 100%; }

.kf-step.is-active { animation: stepIn .45s var(--ease); }
@keyframes stepIn {
    from { opacity: 0; transform: translateX(18px); }
    to   { opacity: 1; transform: none; }
}

.kf-amount { position: relative; padding: 14px 8px; }
.kf-amount-badge {
    position: absolute; top: -9px; left: 50%; transform: translateX(-50%);
    font-size: .6rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
    background: linear-gradient(135deg, var(--maroon), #9F1239); color: #fff;
    padding: 2px 8px; border-radius: 99px; white-space: nowrap;
}
.kf-amount.active { transform: translateY(-2px); }

.kf-hint { font-size: .8rem; color: var(--saffron-deep); background: var(--saffron-light); border: 1px dashed var(--saffron-border); padding: 9px 12px; border-radius: 12px; }

.kf-cta { position: relative; overflow: hidden; }
.kf-cta::after {
    content: '';
    position: absolute; top: 0; left: -60%; width: 40%; height: 100%;
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .45), transparent);
    transform: skewX(-20deg);
    animation: shimmer 3.2s ease-in-out infinite;
}
@keyframes shimmer { 0%, 55% { left: -60%; } 100% { left: 130%; } }

.kf-back {
    width: 100%;
    display: flex; align-items: center; gap: 10px;
    padding: 12px 14px; border-radius: 14px;
    background: var(--saffron-light); border: 1px solid var(--saffron-border);
    font-size: .875rem; color: var(--maroon);
    transition: background .2s ease;
}
.kf-back:hover { background: #FFEDD5; }

.kf-field { position: relative; }
.kf-field > i {
    position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
    color: #C2A58A; font-size: .85rem; pointer-events: none;
}
.kf-field .field-input { padding-left: 2.5rem; padding-top: 12px; padding-bottom: 12px; }
.kf-prefix {
    position: absolute; left: 2.35rem; top: 50%; transform: translateY(-50%);
    font-size: .875rem; font-weight: 700; color: #57534E;
    padding-right: 8px; border-right: 1px solid #EADCCF;
}
.field-input.is-invalid { border-color: #DC2626; box-shadow: 0 0 0 3px rgba(220, 38, 38, .12); animation: shake .35s; }
@keyframes shake { 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }

.kf-more summary { list-style: none; cursor: pointer; font-size: .82rem; font-weight: 600; color: var(--saffron); }
.kf-more summary::-webkit-details-marker { display: none; }
.kf-more[open] summary i { transform: rotate(45deg); }
.kf-more summary i { transition: transform .2s ease; margin-right: 4px; }

.kf-trust { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px 16px; margin-top: 12px; font-size: .72rem; color: #78716C; }
.kf-trust i { color: var(--saffron); margin-right: 3px; }

.kf-cause-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.kf-cause input { position: absolute; opacity: 0; pointer-events: none; }
.kf-cause-box {
    display: flex; align-items: center; gap: 10px;
    height: 100%; padding: 10px 12px; border-radius: 14px;
    border: 1.5px solid #EADCCF; background: #fff; cursor: pointer;
    font-size: .78rem; font-weight: 600; line-height: 1.3; color: #44403C;
    transition: all .2s var(--ease);
}
.kf-cause-box i { color: var(--saffron); font-size: 1rem; }
.kf-cause input:checked + .kf-cause-box { border-color: var(--saffron); background: var(--saffron-light); box-shadow: 0 0 0 3px rgba(234, 88, 12, .15); color: var(--maroon); }
.kf-cause input:focus-visible + .kf-cause-box { outline: 3px solid rgba(234, 88, 12, .45); }

/* Quick amount chips (cause page sidebar) */
.quick-chip {
    padding: 9px 6px; border-radius: 12px; font-weight: 700; font-size: .85rem;
    border: 1.5px solid #EADCCF; background: #fff; color: var(--text-title);
    transition: all .2s var(--ease);
}
.quick-chip:hover { border-color: var(--saffron-bright); }
.quick-chip.active { border-color: var(--saffron); background: var(--saffron-light); color: var(--saffron-deep); box-shadow: 0 0 0 3px rgba(234, 88, 12, .14); }

/* ==========================================================================
   PROGRESS RING
   ========================================================================== */

.kf-ring { width: 64px; height: 64px; transform: rotate(-90deg); flex-shrink: 0; }
.kf-ring circle { fill: none; stroke-width: 6; }
.kf-ring .ring-bg { stroke: #F5E6D8; }
.kf-ring .ring-fg { stroke: url(#ringGrad); stroke-linecap: round; transition: stroke-dashoffset 1.6s var(--ease); }
.ring-wrap { position: relative; display: inline-grid; place-items: center; }
.ring-wrap span { position: absolute; font-size: .78rem; font-weight: 800; color: var(--maroon); }

/* ==========================================================================
   HERO & DECORATIVE ANIMATIONS
   ========================================================================== */

.hero-mandala {
    position: absolute;
    width: 720px; height: 720px;
    right: -180px; top: -160px;
    opacity: .14;
    pointer-events: none;
    animation: spin 90s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.spark {
    position: absolute;
    width: 6px; height: 6px; border-radius: 50%;
    background: radial-gradient(circle, #FDE68A 0%, rgba(245, 158, 11, .6) 50%, transparent 70%);
    animation: floatUp linear infinite;
    pointer-events: none;
}
@keyframes floatUp {
    0%   { transform: translateY(0) scale(.6); opacity: 0; }
    15%  { opacity: 1; }
    100% { transform: translateY(-420px) scale(1.2); opacity: 0; }
}

.text-shimmer {
    background: linear-gradient(90deg, #EA580C 0%, #C2410C 30%, #F59E0B 50%, #C2410C 70%, #9F1239 100%);
    background-size: 220% auto;
    -webkit-background-clip: text; background-clip: text;
    color: transparent;
    animation: textShine 6s linear infinite;
}
@keyframes textShine { to { background-position: -220% center; } }

.float-y { animation: floatY 6s ease-in-out infinite; }
@keyframes floatY { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* Scrolling devotional ribbon */
.marquee { overflow: hidden; white-space: nowrap; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: inline-flex; gap: 48px; padding-right: 48px; animation: marquee 38s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Shloka card */
.shloka-card {
    position: relative;
    background: linear-gradient(160deg, #7F1D1D 0%, #9A3412 60%, #C2410C 100%);
    color: #FFF7ED;
    border-radius: 24px;
    overflow: hidden;
}
.shloka-card::before {
    content: 'ॐ';
    position: absolute; right: -10px; bottom: -40px;
    font-size: 11rem; line-height: 1; opacity: .08; font-family: 'Noto Serif Devanagari', serif;
}

/* Timeline (story section) */
.timeline { position: relative; padding-left: 28px; }
.timeline::before { content: ''; position: absolute; left: 8px; top: 6px; bottom: 6px; width: 2px; background: linear-gradient(var(--saffron-bright), var(--gold-bright), transparent); }
.timeline-item { position: relative; padding-bottom: 22px; }
.timeline-item::before {
    content: ''; position: absolute; left: -26px; top: 4px;
    width: 14px; height: 14px; border-radius: 50%;
    background: #fff; border: 3px solid var(--saffron-bright);
    box-shadow: 0 0 0 4px rgba(234, 88, 12, .15);
}

/* Stat tiles */
.stat-tile { text-align: center; padding: 22px 12px; border-radius: 20px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); backdrop-filter: blur(6px); }
.stat-tile b { display: block; font-size: clamp(1.6rem, 3.5vw, 2.4rem); font-weight: 800; color: #fff; line-height: 1.1; }
.stat-tile small { color: #FED7AA; font-size: .8rem; font-weight: 600; }

/* ==========================================================================
   ONCE / MONTHLY TOGGLE & CUSTOM AMOUNT
   ========================================================================== */

.kf-freq {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    padding: 4px;
    border-radius: 16px;
    background: #F7EDE3;
}
.kf-freq-slider {
    position: absolute; top: 4px; bottom: 4px; left: 4px;
    width: calc(50% - 4px);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 4px 14px -4px rgba(124, 45, 18, .3);
    transition: transform .35s var(--ease);
}
.kf-freq.is-monthly .kf-freq-slider { transform: translateX(100%); }
.kf-freq-btn {
    position: relative; z-index: 1;
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    padding: 11px 8px;
    font-size: .875rem; font-weight: 700; color: #78716C;
    background: transparent; border: 0; cursor: pointer;
    transition: color .25s ease;
}
.kf-freq-btn.active { color: var(--maroon); }
.kf-freq-btn.active i { color: var(--saffron); }
.kf-freq-tag {
    position: absolute; top: -10px; right: 6px;
    font-size: .58rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase;
    padding: 2px 7px; border-radius: 99px;
    background: linear-gradient(135deg, var(--gold-bright), var(--saffron-bright)); color: #fff;
}
.kf-monthly-note {
    font-size: .78rem; line-height: 1.5; color: #713F12;
    background: #FFFBEB; border: 1px solid #FDE68A; border-radius: 12px; padding: 10px 12px;
    animation: stepIn .35s var(--ease);
}
.kf-monthly-note i { color: var(--gold); margin-right: 4px; }

.kf-custom { display: block; }
.kf-custom-label { display: block; font-size: .75rem; font-weight: 700; color: #57534E; margin-bottom: 6px; }
.kf-custom-box {
    display: flex; align-items: center;
    border: 2px dashed #E7CBB1; border-radius: 14px; background: #FFFDFB;
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.kf-custom-box:focus-within { border-style: solid; border-color: var(--saffron-bright); background: #fff; box-shadow: 0 0 0 3px rgba(234, 88, 12, .15); }
.kf-custom-rupee { padding: 0 6px 0 16px; font-size: 1.25rem; font-weight: 800; color: var(--saffron); }
.kf-custom-box input {
    flex: 1; min-width: 0; border: 0; outline: 0; background: transparent;
    padding: 12px 14px 12px 4px; font-size: 1.1rem; font-weight: 800; color: var(--text-title);
}
.kf-custom-box input::placeholder { color: #C8B5A3; font-weight: 600; }
.kf-custom-box input::-webkit-outer-spin-button,
.kf-custom-box input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.kf-custom-box input[type=number] { -moz-appearance: textfield; }

.quick-custom {
    width: 100%; margin-top: 8px;
    border: 1.5px dashed #E7CBB1; border-radius: 12px; background: #FFFDFB;
    padding: 10px 12px; font-weight: 700; font-size: .9rem;
}
.quick-custom:focus { outline: none; border-style: solid; border-color: var(--saffron-bright); box-shadow: 0 0 0 3px rgba(234, 88, 12, .15); }

/* ==========================================================================
   MOBILE (brro-style) CAUSE PAGE
   ========================================================================== */

.m-hero-media {
    position: relative;
    height: 62vh; min-height: 340px; max-height: 520px;
    overflow: hidden;
}
.m-hero-media > img,
.m-hero-media > .seva-art { width: 100%; height: 100%; object-fit: cover; }
.m-hero-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.25) 0%, transparent 30%, transparent 45%, rgba(59, 13, 13, .85) 100%); }
.m-hero-top { position: absolute; top: 14px; left: 14px; right: 14px; display: flex; justify-content: space-between; gap: 8px; }
.m-chip {
    display: inline-flex; align-items: center; gap: 6px;
    background: rgba(255, 255, 255, .95); color: var(--maroon);
    font-size: .72rem; font-weight: 700; padding: 5px 10px 5px 6px; border-radius: 99px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .12);
}
.m-chip img { width: 18px; height: 18px; }
.m-chip i { color: var(--saffron); margin-left: 4px; }
.m-hero-title {
    position: absolute; left: 18px; right: 18px; bottom: 44px;
    color: #fff; font-size: 1.6rem; line-height: 1.2; font-weight: 800;
    text-shadow: 0 2px 12px rgba(0, 0, 0, .35);
}
.m-sheet {
    position: relative; z-index: 2;
    margin-top: -28px;
    background: #fff;
    border-radius: 26px 26px 0 0;
    padding: 20px 18px 18px;
    box-shadow: 0 -10px 30px -12px rgba(124, 45, 18, .25);
}
.m-sheet .kf-ring { width: 56px; height: 56px; }
.m-share-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    border-radius: 99px; font-weight: 700; font-size: .875rem;
    background: var(--maroon); color: #fff;
    padding: 12px 18px;
    transition: transform .2s var(--ease), filter .2s ease;
}
.m-share-btn:active { transform: scale(.97); }

.m-bottom-bar {
    position: fixed; left: 10px; right: 10px; bottom: 10px; z-index: 40;
    display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
    padding: 10px;
    background: rgba(255, 255, 255, .96);
    backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    border: 1px solid var(--saffron-border);
    border-radius: 20px;
    box-shadow: 0 12px 34px -10px rgba(59, 13, 13, .35);
    transform: translateY(0);
    transition: transform .4s var(--ease), opacity .3s ease;
}
.m-bottom-bar--single { display: flex; align-items: center; justify-content: space-between; padding-left: 12px; }
.m-bottom-bar.is-hidden { transform: translateY(140%); opacity: 0; pointer-events: none; }

@media (max-width: 1023px) {
    .m-clamp:not(.is-open) {
        max-height: 8.5rem; overflow: hidden;
        -webkit-mask-image: linear-gradient(#000 55%, transparent);
        mask-image: linear-gradient(#000 55%, transparent);
    }
    /* Tighter rhythm on phones */
    .gfm-card:hover { transform: none; }
    .hero-mandala { width: 460px; height: 460px; right: -200px; top: -120px; }
}
