/* =============================================================
   Vargani System — Festive temple-paper UI
   Palette: सिंदूर / मॅरीगोल्ड / हळद / कागद / शाई / तुळस
   ============================================================= */

:root {
    --sindoor: #C63A1E;
    --marigold: #E8892B;
    --haldi: #F5B02E;
    --paper: #FDF6E3;
    --paper-2: #FFF3DC;
    --card: #FFFDF6;
    --ink: #2B1B12;
    --ink-soft: #6B5540;
    --tulsi: #1F6F4A;
    --line: #E9D9B6;
    --shadow: 0 10px 30px -18px rgba(70, 40, 10, .55);
    --r: 14px;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: 'Mukta', sans-serif;
    color: var(--ink);
    background:
        radial-gradient(1200px 500px at 100% -5%, #FFE2B8 0%, transparent 60%),
        radial-gradient(900px 400px at -10% 100%, #FFE7CE 0%, transparent 55%),
        var(--paper);
    background-attachment: fixed;
    padding-bottom: 84px;
}

h1, h2, h3, .mr-title, .mr-display { font-family: 'Khand', sans-serif; font-weight: 700; margin: 0; }

a { color: inherit; text-decoration: none; }

/* ---------- Topbar ---------- */
.topbar { position: sticky; top: 0; z-index: 40; background: rgba(253, 246, 227, .92); backdrop-filter: blur(8px); }
.topbar-in { max-width: 1120px; margin: 0 auto; padding: 10px 18px; display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { height: 40px; }
.brand b { font-family: 'Khand', sans-serif; font-size: 19px; display: block; line-height: 1.05; }
.brand small { font-size: 12px; color: var(--ink-soft); letter-spacing: .08em; }
.topnav { display: flex; gap: 4px; align-items: center; }
.topnav a { font-family: 'Khand', sans-serif; font-size: 17px; padding: 7px 13px; border-radius: 999px; color: var(--ink-soft); }
.topnav a.on { background: var(--sindoor); color: #fff; }
.topnav a:hover:not(.on) { background: #F6E6C6; color: var(--ink); }
.band { height: 4px; background: repeating-linear-gradient(115deg, var(--sindoor) 0 26px, var(--marigold) 26px 52px, var(--haldi) 52px 78px); }

.wrap { max-width: 1120px; margin: 0 auto; padding: 22px 18px 40px; }

/* ---------- Hero ---------- */
.hero { position: relative; display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 10px;
        background: linear-gradient(120deg, #FFF6E2 0%, #FFE9C6 100%);
        border: 1px solid var(--line); border-radius: 20px; padding: 22px 26px 0; overflow: hidden; box-shadow: var(--shadow); }
.hero::after { content: ''; position: absolute; inset: auto 0 0 0; height: 5px;
               background: repeating-linear-gradient(115deg, var(--sindoor) 0 20px, var(--haldi) 20px 40px); }
.eyebrow { margin: 0 0 4px; font-size: 12px; letter-spacing: .22em; text-transform: uppercase; color: var(--sindoor); font-weight: 700; }
.mr-display { font-size: clamp(28px, 5vw, 46px); line-height: 1.02; color: var(--sindoor); }
.hero-sub { margin: 6px 0 22px; color: var(--ink-soft); }
.hero-murti { height: 190px; margin-bottom: -6px; filter: drop-shadow(0 12px 18px rgba(120, 60, 10, .28)); }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 14px; margin: 18px 0; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 15px 17px; box-shadow: var(--shadow); }
.stat .lbl { display: block; font-size: 13px; color: var(--ink-soft); }
.stat .val { display: block; font-family: 'Khand', sans-serif; font-size: 33px; line-height: 1.2; font-weight: 700; }
.stat .val small { font-size: 17px; color: var(--ink-soft); }
.stat .sub { font-size: 12px; color: var(--ink-soft); }
.stat.big { background: linear-gradient(135deg, #FFF7E6, #FFEBCB); }
.bar { height: 9px; border-radius: 99px; background: #F0DFBE; overflow: hidden; margin: 8px 0 6px; }
.bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--sindoor), var(--haldi)); }

/* ---------- Panels ---------- */
.split { display: grid; grid-template-columns: 1.6fr 1fr; gap: 16px; align-items: start; }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 16px 18px; box-shadow: var(--shadow); }
.panel-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.panel-head h2 { font-size: 22px; }
.link { color: var(--sindoor); font-size: 14px; font-weight: 600; }
.empty { color: var(--ink-soft); padding: 14px 0; }
.empty a, .alert a { color: var(--sindoor); font-weight: 600; }

.rlist { list-style: none; margin: 0; padding: 0; }
.rlist a { display: grid; grid-template-columns: 78px 1fr auto; gap: 10px; align-items: center; padding: 10px 6px; border-bottom: 1px dashed var(--line); }
.rlist a:hover { background: #FFF6E4; }
.rno { font-family: 'Khand', sans-serif; font-weight: 700; color: var(--sindoor); }
.rname small { display: block; font-size: 12px; color: var(--ink-soft); }
.ramt { font-family: 'Khand', sans-serif; font-size: 21px; font-weight: 700; }

.moderow { position: relative; padding: 9px 0 12px; border-bottom: 1px dashed var(--line); display: flex; justify-content: space-between; }
.moderow i { position: absolute; left: 0; bottom: 4px; height: 4px; border-radius: 9px; background: var(--marigold); }
.mt { margin-top: 14px; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer;
       font-family: 'Khand', sans-serif; font-size: 18px; font-weight: 600; padding: 11px 20px;
       border-radius: 11px; border: 1px solid transparent; transition: transform .12s ease, filter .12s ease; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: linear-gradient(135deg, var(--sindoor), #E2661F); color: #fff; }
.btn-primary:hover { filter: brightness(1.07); }
.btn-ghost { background: #FFF; border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { background: #FFF3DE; }
.btn-block { display: flex; width: 100%; margin-top: 8px; }
.btn:disabled { opacity: .6; cursor: wait; }

.icon-btn { background: none; border: 0; cursor: pointer; color: var(--ink-soft); padding: 6px 8px; border-radius: 8px; font-size: 15px; }
.icon-btn:hover { background: #FFEFD6; color: var(--ink); }
.icon-btn.danger:hover { background: #FCE3DD; color: var(--sindoor); }

/* ---------- Forms ---------- */
.page-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.mr-title { font-size: 30px; color: var(--sindoor); }
.chip { background: #FFF; border: 1px dashed var(--line); border-radius: 999px; padding: 6px 14px; font-size: 14px; }
.chip.ok { border-color: var(--tulsi); color: var(--tulsi); }

.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field.full { grid-column: 1 / -1; }
label { display: block; font-size: 13px; color: var(--ink-soft); margin-bottom: 5px; font-weight: 600; }
input, select, textarea {
    width: 100%; font-family: 'Mukta', sans-serif; font-size: 16px; color: var(--ink);
    background: #FFFDF7; border: 1px solid var(--line); border-radius: 10px; padding: 11px 13px;
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--haldi); outline-offset: 1px; border-color: var(--haldi); }
.req { color: var(--sindoor); }
.hint { font-size: 12px; color: var(--ink-soft); margin: 6px 0 0; }
.words { font-family: 'Khand', sans-serif; font-size: 19px; color: var(--ink-soft); margin: 7px 0 0; min-height: 26px; }
.words.has { color: var(--tulsi); font-weight: 600; }
.quick { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 9px; }
.qbtn { cursor: pointer; font-family: 'Khand', sans-serif; font-size: 15px; background: #FFF3DE; border: 1px solid var(--line); border-radius: 999px; padding: 5px 13px; }
.qbtn:hover { background: var(--haldi); }
.radios { display: flex; gap: 7px; flex-wrap: wrap; }
.radio input { display: none; }
.radio span { display: inline-block; cursor: pointer; border: 1px solid var(--line); background: #FFF; border-radius: 999px; padding: 9px 17px; font-size: 15px; }
.radio input:checked + span { background: var(--sindoor); color: #fff; border-color: var(--sindoor); }

.alert { border-radius: 11px; padding: 12px 15px; margin-bottom: 14px; font-size: 15px; }
.alert.ok { background: #E7F4EC; border: 1px solid #B8DCC7; color: #17573B; }
.alert.bad { background: #FCE7E2; border: 1px solid #F0BFB4; color: #912A13; }

/* ---------- Flats ---------- */
.tabs { display: flex; gap: 6px; }
.tabs a { font-family: 'Khand', sans-serif; padding: 7px 15px; border-radius: 999px; border: 1px solid var(--line); background: #FFF; }
.tabs a.on { background: var(--ink); color: #FFF6E2; border-color: var(--ink); }

.flatgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(148px, 1fr)); gap: 11px; }
.flat { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: 13px; padding: 13px 14px; box-shadow: var(--shadow); }
.flat.is-paid { background: linear-gradient(150deg, #F0FAF3, #E4F4EA); border-color: #BFE0CC; }
.flat.is-pending::before { content: ''; position: absolute; inset: 0 auto 0 0; width: 4px; border-radius: 13px 0 0 13px; background: var(--marigold); }
.flat-no { font-family: 'Khand', sans-serif; font-size: 25px; font-weight: 700; line-height: 1.1; }
.flat-owner { font-size: 12px; color: var(--ink-soft); min-height: 18px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.flat-amt { font-family: 'Khand', sans-serif; font-size: 21px; font-weight: 700; color: var(--tulsi); }
.flat-amt.muted { color: var(--ink-soft); font-size: 16px; }
.flat-tag { display: inline-flex; gap: 5px; align-items: center; font-size: 12px; margin-top: 5px; color: var(--tulsi); }
.flat-tag.act { color: var(--sindoor); font-weight: 700; }
.flat-edit { position: absolute; top: 8px; right: 8px; background: none; border: 0; cursor: pointer; color: #C9B591; font-size: 12px; }
.flat-edit:hover { color: var(--sindoor); }
.inline-form { display: flex; gap: 8px; margin-top: 16px; max-width: 420px; }

/* ---------- Modal ---------- */
.modal { display: none; position: fixed; inset: 0; z-index: 60; background: rgba(43, 27, 18, .45); align-items: center; justify-content: center; padding: 20px; }
.modal.open { display: flex; }
.modal-box { background: var(--card); border-radius: 16px; padding: 22px; width: 100%; max-width: 380px; }
.modal-box h3 { font-size: 22px; margin-bottom: 12px; color: var(--sindoor); }
.modal-box label { margin-top: 10px; }
.modal-act { display: flex; gap: 9px; justify-content: flex-end; margin-top: 16px; }

/* ---------- Table ---------- */
.filterbar { display: flex; gap: 8px; margin-bottom: 14px; flex-wrap: wrap; }
.search { position: relative; flex: 1; min-width: 200px; }
.search i { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: #C1AC86; }
.search input { padding-left: 36px; }
.filterbar select { width: auto; }
.table-wrap { overflow-x: auto; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); }
.dtable { width: 100%; border-collapse: collapse; font-size: 15px; }
.dtable th { text-align: left; font-family: 'Khand', sans-serif; font-size: 15px; letter-spacing: .04em; color: var(--ink-soft); padding: 12px 14px; border-bottom: 1px solid var(--line); }
.dtable td { padding: 11px 14px; border-bottom: 1px dashed var(--line); vertical-align: middle; }
.dtable tr:hover td { background: #FFF7E7; }
.dtable small { display: block; font-size: 12px; color: var(--ink-soft); }
.dtable .r { text-align: right; }
.dtable .amt { font-family: 'Khand', sans-serif; font-size: 19px; font-weight: 700; }
.mono { font-family: 'Khand', sans-serif; font-weight: 700; color: var(--sindoor); }
.pill { background: #FFF1D8; border-radius: 999px; padding: 3px 11px; font-size: 13px; }
.nowrap { white-space: nowrap; }

.ulist { list-style: none; margin: 0 0 14px; padding: 0; }
.ulist li { display: flex; justify-content: space-between; align-items: center; padding: 9px 0; border-bottom: 1px dashed var(--line); }
.ulist small { display: block; font-size: 12px; color: var(--ink-soft); }
.mini-form { display: grid; gap: 8px; }

/* =============================================================
   पावती (Receipt) — Rich Festive Modern Style (Khand & Mukta)
   ============================================================= */
.receipt-actions { display: flex; gap: 9px; flex-wrap: wrap; margin-bottom: 16px; }
.pavti-scale { width: 100%; overflow: hidden; }

.pavti {
    position: relative;
    width: 900px;
    transform-origin: top left;
    padding: 24px 30px;
    font-family: 'Khand', sans-serif;
    color: #2D1405;
    background: radial-gradient(circle at 50% 30%, #FFFDF5 0%, #FFF3DA 55%, #FFE6B8 100%);
    border: 6px double #D97706;
    border-radius: 20px;
    box-shadow: 0 20px 45px -12px rgba(120, 30, 0, 0.35);
    box-sizing: border-box;
    overflow: hidden;
}

/* Background Watermark */
.p-watermark {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 420px;
    height: auto;
    opacity: 0.06;
    pointer-events: none;
    z-index: 1;
}
.p-watermark img {
    width: 100%;
    height: auto;
}

/* Top Bar: Logo on Top-Left, Shloka on Top-Right without background */
.p-top-bar {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
}
.p-top-logo img {
    height: 75px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 3px 6px rgba(180, 83, 9, 0.15));
}
.p-top-shloka {
    font-family: 'Khand', sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: #991B1B;
    background: none;
    letter-spacing: 0.08em;
}

/* Center Hero Ganesha & Mandal Title Header */
.p-header-center-hero {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin: -65px 0 4px;
}

.p-ganesha-hero {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
}
.p-ganesha-hero .p-aura {
    position: absolute;
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(251, 191, 36, 0.65) 0%, rgba(245, 158, 11, 0.25) 65%, transparent 100%);
    border-radius: 50%;
}
.p-ganesha-hero .p-murti-img {
    position: relative;
    z-index: 2;
    height: 255px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 10px 22px rgba(120, 30, 0, 0.4));
}

.p-main-title.centered {
    text-align: center;
    width: 100%;
    margin-top: 6px;
}
.p-main-title.centered .p-mandal-name {
    font-family: 'Khand', sans-serif;
    font-size: 46px;
    line-height: 1.05;
    font-weight: 700;
    color: #991B1B;
    margin: 0;
    text-shadow: 1px 1px 0px #FDE68A;
}
.p-main-title.centered .p-mandal-sub {
    font-family: 'Khand', sans-serif;
    font-size: 28px;
    line-height: 1.1;
    font-weight: 600;
    color: #B45309;
    margin: 2px 0 0;
}
.p-main-title.centered .p-address {
    font-family: 'Mukta', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: #78350F;
    margin-top: 3px;
}
.p-address {
    font-family: 'Mukta', sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: #78350F;
    margin-top: 3px;
}

.p-ganesha-wrap {
    flex: 0 0 110px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}
.p-aura {
    position: absolute;
    width: 110px;
    height: 110px;
    background: radial-gradient(circle, rgba(251, 191, 36, 0.6) 0%, rgba(245, 158, 11, 0.2) 65%, transparent 100%);
    border-radius: 50%;
}
.p-murti-img {
    position: relative;
    z-index: 2;
    height: 115px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 6px 10px rgba(120, 30, 0, 0.25));
}

/* Meta Ribbon Divider */
.p-meta-ribbon {
    position: relative;
    z-index: 2;
    background: linear-gradient(135deg, #FFFBEB 0%, #FEF3C7 100%);
    border: 2px solid #F59E0B;
    border-radius: 12px;
    padding: 6px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 10px 0 16px;
    box-shadow: 0 4px 10px rgba(217, 119, 6, 0.15);
}

.p-badge-rno {
    display: flex;
    align-items: center;
    gap: 6px;
}
.p-badge-rno .lbl {
    font-family: 'Khand', sans-serif;
    font-size: 18px;
    font-weight: 600;
    color: #78350F;
}
.p-badge-rno .val {
    font-family: 'Khand', sans-serif;
    color: #991B1B;
    font-size: 24px;
    font-weight: 700;
}

.p-pavti-tag {
    background: linear-gradient(135deg, #D97706, #B45309);
    color: #FFFDF0;
    font-family: 'Khand', sans-serif;
    font-size: 26px;
    font-weight: 700;
    padding: 3px 28px;
    border-radius: 999px;
    border: 2px solid #FDE68A;
    letter-spacing: 0.08em;
    box-shadow: 0 4px 10px rgba(180, 83, 9, 0.3);
}

.p-badge-date {
    font-family: 'Khand', sans-serif;
    color: #78350F;
    font-size: 20px;
    font-weight: 700;
}

/* Details Card */
.p-body-card {
    position: relative;
    z-index: 2;
    background: rgba(255, 253, 247, 0.95);
    border: 2px solid #F59E0B;
    border-radius: 16px;
    padding: 18px 22px;
    box-shadow: 0 6px 18px rgba(217, 119, 6, 0.1);
}

.p-row {
    display: flex;
    gap: 16px;
    align-items: center;
    margin-bottom: 12px;
}
.p-row.sub-info {
    margin-top: 12px;
    margin-bottom: 0;
    padding-top: 10px;
    border-top: 1px dashed #FDE68A;
}

.p-field {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
}
.p-field.flex-2 { flex: 2; }
.p-field.flex-1 { flex: 1; }

.p-lbl {
    font-family: 'Khand', sans-serif;
    font-weight: 600;
    color: #78350F;
    white-space: nowrap;
    font-size: 20px;
}
.p-lbl i {
    color: #D97706;
    margin-right: 4px;
}

.p-val {
    font-family: 'Khand', sans-serif;
    font-weight: 700;
    color: #1F2937;
    font-size: 22px;
}
.p-val.donor-name {
    font-family: 'Khand', sans-serif;
    font-size: 34px;
    font-weight: 700;
    color: #991B1B;
    border-bottom: 2px dashed #D97706;
    padding: 0 8px;
    flex: 1;
    line-height: 1.1;
}
.p-val.flat-badge {
    font-family: 'Khand', sans-serif;
    background: linear-gradient(135deg, #FEF3C7, #FDE68A);
    color: #78350F;
    border: 1px solid #F59E0B;
    border-radius: 8px;
    padding: 2px 14px;
    font-size: 24px;
}

.p-body-card.text-center {
    text-align: center;
}

.p-donor-hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px dashed #FDE68A;
}

.p-donor-label {
    font-family: 'Khand', sans-serif;
    font-size: 22px;
    font-weight: 600;
    color: #78350F;
}
.p-donor-label i {
    color: #D97706;
    margin-right: 4px;
}

.p-donor-name-title {
    font-family: 'Khand', sans-serif;
    font-size: 38px;
    font-weight: 700;
    color: #991B1B;
    line-height: 1.1;
    margin: 2px 0 6px;
    text-shadow: 0 1px 0 #FDE68A;
}

.p-donor-flat-wrap {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.p-sub-info-center {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px dashed #FDE68A;
}

.p-sub-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.p-intro-text {
    font-family: 'Khand', sans-serif;
    font-size: 20px;
    font-weight: 600;
    color: #78350F;
    margin: 8px 0 2px;
}

.p-amount-box {
    background: linear-gradient(135deg, #FFFBEB 0%, #FEF3C7 100%);
    border: 2px solid #F59E0B;
    border-radius: 14px;
    padding: 12px 20px;
    margin: 8px 0;
    text-align: center;
    box-shadow: inset 0 2px 4px rgba(251, 191, 36, 0.15);
}

.p-amt-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-bottom: 8px;
    border-bottom: 1px dashed #F59E0B;
}

.p-amt-title {
    font-family: 'Khand', sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: #78350F;
    margin-bottom: 2px;
}

.p-amt-num {
    display: inline-block;
    font-family: 'Khand', sans-serif;
    font-size: 44px;
    font-weight: 700;
    color: #FFFDF0;
    background: linear-gradient(135deg, #D97706 0%, #B45309 100%);
    border: 2px solid #FDE68A;
    border-radius: 12px;
    padding: 6px 32px;
    margin-top: 6px;
    box-shadow: 0 6px 16px rgba(180, 83, 9, 0.35);
    line-height: 1.1;
    letter-spacing: 0.04em;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.25);
}

.p-amt-words-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 8px;
}

.p-amt-words-label {
    font-family: 'Khand', sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: #B45309;
}

.p-amt-words-text {
    font-family: 'Khand', sans-serif;
    font-size: 32px;
    font-weight: 700;
    color: #991B1B;
}

.p-outro-text {
    font-family: 'Khand', sans-serif;
    font-size: 20px;
    font-weight: 600;
    color: #78350F;
    margin: 2px 0 8px;
}

.pay-pill {
    font-family: 'Khand', sans-serif;
    background: #DCFCE7;
    color: #15803D;
    border: 1px solid #86EFAC;
    border-radius: 6px;
    padding: 2px 12px;
    font-size: 20px;
    font-weight: 700;
}

/* Footer Section */
.p-footer {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-top: 18px;
}

.p-bappa-blessing { flex: 1; }
.bappa-text {
    font-family: 'Khand', sans-serif;
    font-size: 38px;
    font-weight: 700;
    color: #991B1B;
    line-height: 1.1;
}
.sub-blessing {
    font-family: 'Khand', sans-serif;
    font-size: 20px;
    color: #78350F;
    font-weight: 600;
}

.p-stamp-wrap { flex: 0 0 auto; }
.p-stamp-verified {
    font-family: 'Khand', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: #15803D;
    border: 3px double #16A34A;
    border-radius: 10px;
    padding: 4px 16px;
    text-align: center;
    background: rgba(220, 252, 231, 0.95);
    transform: rotate(-4deg);
    box-shadow: 0 4px 10px rgba(22, 163, 74, 0.2);
}
.p-stamp-verified small {
    display: block;
    font-family: 'Khand', sans-serif;
    font-size: 16px;
    color: #15803D;
    margin-top: -3px;
}

/* ---------- Login / setup ---------- */
.plain-page { display: flex; align-items: center; justify-content: center; min-height: 100vh; padding: 24px; }
.login-wrap { width: 100%; max-width: 380px; text-align: center; background: var(--card);
              border: 1px solid var(--line); border-radius: 20px; padding: 30px 26px; box-shadow: var(--shadow); }
.login-logo { width: 150px; margin-bottom: 10px; }
.login-page .mr-title { font-size: 30px; }
.mr-sub { color: var(--ink-soft); margin: 2px 0 18px; }
.login-form { text-align: left; }
.login-form label { margin-top: 10px; }
.bappa { font-family: 'Khand', sans-serif; font-size: 21px; color: var(--sindoor); margin: 18px 0 0; }
.setup-card { width: 100%; max-width: 560px; background: var(--card); border: 1px solid var(--line);
              border-radius: 18px; padding: 26px; box-shadow: var(--shadow); }
.dev-title { font-size: 28px; color: var(--sindoor); margin-bottom: 14px; }
.setup-card label { margin-top: 12px; }
code { background: #FFF1D8; padding: 1px 6px; border-radius: 5px; }

/* ---------- Footer + bottom nav ---------- */
.foot { text-align: center; font-family: 'Khand', sans-serif; font-size: 19px; color: var(--sindoor); padding: 10px 0 24px; }
.bottomnav { display: none; }

/* ---------- Mobile ---------- */
@media (max-width: 900px) {
    .stats { grid-template-columns: 1fr 1fr; }
    .stat.big { grid-column: 1 / -1; }
    .split { grid-template-columns: 1fr; }
    .hero-murti { height: 130px; }
}

@media (max-width: 640px) {
    .topnav { display: none; }
    .wrap { padding: 16px 13px 30px; }
    .grid2 { grid-template-columns: 1fr; }
    .hero { padding: 18px 18px 0; }
    .foot { padding-bottom: 8px; }

    .bottomnav {
        display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
        background: rgba(255, 250, 238, .96); backdrop-filter: blur(10px);
        border-top: 1px solid var(--line); padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
        justify-content: space-around; align-items: center;
    }
    .bottomnav a { flex: 1; text-align: center; font-size: 11px; color: var(--ink-soft); padding: 5px 0; }
    .bottomnav a i { display: block; font-size: 17px; margin-bottom: 3px; }
    .bottomnav a.on { color: var(--sindoor); font-weight: 700; }
    .bottomnav .fab {
        flex: 0 0 54px; height: 54px; border-radius: 50%; margin-top: -24px;
        background: linear-gradient(135deg, var(--sindoor), #E2661F); color: #fff;
        display: flex; align-items: center; justify-content: center;
        box-shadow: 0 8px 18px -6px rgba(198, 58, 30, .7);
    }
    .bottomnav .fab i { font-size: 21px; margin: 0; }
}
