@import url('https://fonts.googleapis.com/css2?family=Noto+Sans:wght@100;200;300;400;500;600&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Malayalam:wght@400;500;600;700&display=swap');

:root {
    --primary: #4f46e5;
    --primary-light: #6366f1;
    --primary-dark: #3730a3;
    --secondary: #10b981;
    --accent: #f59e0b;
    --background: #fcfdfe;
    --surface: #ffffff;
    --surface-accent: #f8fbff;
    --text-main: #0f172a;
    --text-muted: #64748b;
    --glass-bg: rgba(255, 255, 255, 0.9);
    --glass-border: rgba(226, 232, 240, 0.8);
    --shadow-premium: 0 25px 50px -12px rgba(15, 23, 42, 0.08);
    --font-heading: 'Noto Sans', sans-serif;
    --font-body: 'Noto Sans', sans-serif;
    --gradient-primary: linear-gradient(135deg, #4f46e5 0%, #3730a3 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    overflow-x: hidden;
}

body {
    font-family: var(--font-body);
    background-color: var(--background);
    color: var(--text-main);
    line-height: 1.6;
    background-image:
        radial-gradient(circle at top right, rgba(79, 70, 229, 0.06) 0%, transparent 45%),
        radial-gradient(circle at bottom left, rgba(16, 185, 129, 0.04) 0%, transparent 40%);
    background-attachment: fixed;
    font-weight: 300;
}

body.modal-open {
    overflow: hidden;
    height: 100vh;
    touch-action: none;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* --- Logo --- */
.logo-container {
    margin-bottom: 24px;
    animation: fadeInUp 0.6s ease-out;
}

.logo-img {
    height: 70px;
    width: auto;
    filter: drop-shadow(0 0 15px rgba(99, 102, 241, 0.3));
    transition: transform 0.3s ease;
}

.logo-img:hover {
    transform: scale(1.05);
}

/* --- Hero Section --- */
.hero {
    min-height: 78vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 28px 20px 24px;
    position: relative;
    background: radial-gradient(circle at center, rgba(99, 102, 241, 0.1) 0%, transparent 70%);
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 50% 18%, rgba(255, 255, 255, 0.9), transparent 26%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.35), rgba(255, 255, 255, 0));
    pointer-events: none;
}

.hero .container {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-mobile-card {
    width: min(100%, 410px);
    padding: 26px 24px 24px;
    border-radius: 42px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(249, 251, 255, 0.94));
    border: 1px solid #edf2f8;
    box-shadow: 0 36px 90px -24px rgba(15, 23, 42, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.95);
    position: relative;
    z-index: 2;
    overflow: hidden;
}

.hero-image-shell {
    position: relative;
    width: 100%;
    background: linear-gradient(180deg, #fbfdff, #f4f8fe);
    border-radius: 32px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border: 1px solid #edf2f7;
    box-shadow: inset 0 2px 10px rgba(15, 23, 42, 0.02);
    overflow: hidden;
}


.hero-copy-block {
    padding: 20px 4px 14px;
}

.hero-copy-block p {
    font-family: 'Noto Sans Malayalam', 'Noto Sans', sans-serif;
    font-size: 0.82rem;
    line-height: 1.6;
    font-variation-settings: "wght" 500;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 26px;
    padding: 0 10px;
    border-radius: 999px;
    background: #eef2ff;
    color: #4f46e5;
    font-size: 0.66rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    font-weight: 500;
    margin-bottom: 12px;
}

.hero-badge {
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid var(--primary-light);
    color: var(--primary-light);
    padding: 6px 16px;
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 16px;
    backdrop-filter: blur(10px);
    animation: fadeInUp 0.8s ease-out;
}

.hero h1 {
    font-family: var(--font-heading);
    font-size: clamp(2.45rem, 7vw, 3.8rem);
    font-weight: 500;
    line-height: 0.98;
    letter-spacing: -0.07em;
    margin-bottom: 8px;
    color: var(--text-main);
    animation: fadeInUp 1s ease-out;
}

.hero p {
    font-size: 0.92rem;
    color: var(--text-muted);
    max-width: 320px;
    margin: 0 auto 12px;
    font-weight: 300;
    animation: fadeInUp 1.2s ease-out;
}

.hero-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 116px));
    justify-content: center;
    gap: 12px;
    width: 100%;
    animation: fadeInUp 1.4s ease-out;
}

.hero-malayalam {
    font-family: 'Noto Sans Malayalam', 'Noto Sans', sans-serif;
    line-height: 1.8;
}

/* --- Site Header --- */
.site-header {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 24px 20px;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
}

.site-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.site-logo-circle {
    width: 68px;
    height: 68px;
    border-radius: 24px;
    background: #ffffff;
    border: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.04);
}

.site-logo-circle img {
    width: 54px;
    height: 54px;
    object-fit: contain;
}

.site-brand {
    font-size: 1.35rem;
    font-weight: 800;
    color: #1e3a8a;
    /* Deep blue to match SKSSF */
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.site-subbrand {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #94a3b8;
    margin-top: 4px;
    white-space: nowrap;
}

.site-bell {
    width: 52px;
    height: 52px;
    border-radius: 20px;
    border: 2px solid #000;
    background: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.05);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.site-bell:active {
    transform: scale(0.95);
}

.site-bell-dot {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ef4444;
    border: 2px solid #fff;
}

.hero-actions-mobile {
    display: block;
}

.hero-donate-wide {
    width: 100%;
    min-height: 60px;
    border-radius: 999px;
    font-size: 0.96rem;
    font-weight: 500;
    box-shadow: 0 20px 40px rgba(79, 70, 229, 0.28);
    margin-top: 2px;
}

.quick-nav-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 14px;
}

.nav-item {
    background: #ffffff;
    border-radius: 28px;
    padding: 16px 4px 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid #f1f5f9;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.03);
}

.nav-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 30px rgba(15, 23, 42, 0.1);
    border-color: #e5eef9;
}

.nav-icon-box {
    width: 42px;
    height: 42px;
    background: #f8fafc;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
    color: #334155;
    transition: all 0.3s ease;
}

.nav-item:hover .nav-icon-box {
    background: #f1f5f9;
    color: var(--primary);
    transform: scale(1.05);
}

.nav-icon-box svg {
    width: 20px;
    height: 20px;
}

.nav-item span {
    font-size: 0.78rem;
    font-weight: 600;
    color: #1e293b;
    letter-spacing: -0.01em;
}

.hero-image {
    width: 100%;
    max-width: none;
    max-height: none;
    height: auto;
    min-height: 0;
    border-radius: 26px;
    box-shadow: 0 18px 34px rgba(15, 23, 42, 0.08);
    margin-bottom: 0;
    object-fit: cover;
    animation: fadeInUp 1s ease-out;
    aspect-ratio: 16 / 9;
}

/* --- Buttons --- */
.btn {
    padding: 16px 28px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.95rem;
    font-family: var(--font-body);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    gap: 10px;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 12px 28px -6px rgba(79, 70, 229, 0.45);
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 22px 42px -10px rgba(79, 70, 229, 0.55);
    filter: brightness(1.1);
}

.btn-secondary {
    background: #ffffff;
    color: var(--text-main);
    border: 1.5px solid #f1f5f9;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.03);
}

.btn-secondary:hover {
    background: #f8fafc;
    border-color: #e2e8f0;
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
}

.btn-block {
    width: 100%;
}

.premium-cta {
    height: 54px;
    border-radius: 16px;
    font-weight: 800;
    letter-spacing: -0.01em;
    background: linear-gradient(135deg, #e5e7eb 0%, #f8fafc 100%);
    border: 1.5px solid #e5e7eb;
    color: #0f172a;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.premium-cta:hover {
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    transform: translateY(-1px);
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.12);
}


/* --- Live Status Section --- */
.live-status-section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 80px;
}

.section-header h2 {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 500;
    margin-bottom: 16px;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

.status-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 32px;
    padding: 32px;
    box-shadow: var(--shadow-premium);
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 40px;
    align-items: center;
}

.visual-container {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
}

.visual-container img {
    width: 100%;
    display: block;
    mix-blend-mode: normal;
    opacity: 0.9;
}

.progress-info h3 {
    font-family: var(--font-heading);
    font-size: 2rem;
    margin-bottom: 32px;
}

.main-progress {
    height: 16px;
    background: var(--surface-light);
    border-radius: 100px;
    margin-bottom: 24px;
    overflow: hidden;
    position: relative;
}

.main-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary) 0%, var(--primary-light) 100%);
    border-radius: 100px;
    transition: width 1.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.main-progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}

.stage-tracker {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
}

.stage-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    opacity: 0.4;
    transition: opacity 0.3s;
}

.stage-step.active {
    opacity: 1;
    color: var(--primary-light);
}

.step-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: currentColor;
    box-shadow: 0 0 15px currentColor;
}

.step-label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* --- Material Grid --- */
/* --- Material Listing --- */
.materials-section {
    padding: 60px 0;
}

.materials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
}

@media (max-width: 768px) {
    .materials-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

.material-card {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 20px;
    padding: 12px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
    position: relative;
    overflow: hidden;
}

.material-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.06);
    border-color: var(--primary-light);
}

.material-thumb {
    width: 80px;
    height: 80px;
    border-radius: 16px;
    overflow: hidden;
    flex-shrink: 0;
    background: #f8fafc;
}

.material-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.material-content-compact {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.material-content-compact h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0;
    color: var(--text-main);
}

.material-price-small {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
}

.material-progress-inline {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 4px;
}

.mini-progress-track {
    flex-grow: 1;
    height: 6px;
    background: #f1f5f9;
    border-radius: 10px;
    overflow: hidden;
}

.mini-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary) 0%, var(--primary-light) 100%);
    border-radius: 10px;
}

.perc-text {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--primary);
    white-space: nowrap;
}

.material-action-btn {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: #f8fafc;
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.2s;
    border: 1px solid #e2e8f0;
}

.material-action-btn span {
    display: none;
    /* Icon only for small design */
}

.material-action-btn:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    transform: scale(1.05);
}

@media (min-width: 1024px) {
    .material-action-btn {
        width: auto;
        padding: 0 16px;
        gap: 8px;
    }

    .material-action-btn span {
        display: block;
        font-size: 0.85rem;
        font-weight: 600;
    }
}


.footer {
    /* padding: 54px 0 26px; */
    text-align: center;
    /* border-top: 1px solid rgba(229, 231, 235, 0.7);
    margin-top: 72px; */
}

.footer-premium-card {
    width: min(100%, 460px);
    margin: 0 auto;
    padding: 24px 22px;
    border-radius: 28px;
    /* background: linear-gradient(180deg, rgba(255,255,255,0.94), rgba(246,249,255,0.98));
    border: 1px solid rgba(225, 232, 242, 0.95);
    box-shadow: 0 26px 54px rgba(15, 23, 42, 0.08);
    backdrop-filter: blur(16px); */
}

.footer-mini {
    display: inline-flex;
    min-height: 28px;
    padding: 0 12px;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: #eef2ff;
    color: #4f46e5;
    font-size: 0.68rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    font-weight: 500;
}

.footer-premium-card p {
    margin: 12px 0 6px;
    font-size: 1.02rem;
    color: var(--text-main);
    font-weight: 400;
}

.footer-premium-card small {
    color: var(--text-muted);
    font-size: 0.82rem;
    letter-spacing: 0.04em;
}

/* --- Animations --- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Modern Form / Page Styles --- */
.donation-page {
    min-height: 100vh;
    padding: 100px 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.form-container {
    background: var(--glass-bg);
    backdrop-filter: blur(30px);
    /* border: 1px solid var(--glass-border); */
    border-radius: 32px;
    padding: 48px;
    width: 100%;
    max-width: 600px;
    box-shadow: var(--shadow-premium);
}

.form-group {
    margin-bottom: 8px;
}

.form-label-premium {
    font-size: 0.72rem;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 8px;
    display: block;
    padding-left: 4px;
}



.form-input {
    width: 100%;
    background: transparent;
    border: none;
    padding: 12px 12px 12px 42px;
    color: var(--text-main);
    font-family: inherit;
    font-size: 0.94rem;
    font-weight: 500;
    transition: all 0.3s;
    position: relative;
    z-index: 1;
}


.input-with-icon {
    position: relative;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    box-shadow: none;
}


.input-with-icon:focus-within {
    border-color: var(--primary);
    background: #fff;
    box-shadow: 0 10px 25px -5px rgba(99, 102, 241, 0.1), 0 0 0 4px rgba(99, 102, 241, 0.05);
    transform: translateY(-1px);
}

.field-icon {
    position: absolute;
    left: 16px;
    color: #94a3b8;
    pointer-events: none;
    z-index: 2;
    transition: all 0.3s ease;
}

.input-with-icon:focus-within .field-icon {
    color: var(--primary);
    transform: scale(1.1);
}


.field-icon-text {
    position: absolute;
    left: 18px;
    font-weight: 700;
    color: var(--text-muted);
    z-index: 2;
    opacity: 0.72;
}

/* amount display removed for minimalism */

/* --- Modal --- */
.modal {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.4);
    opacity: 0;
    visibility: hidden;
    display: flex;
    align-items: center;
    /* Center vertically */
    justify-content: center;
    z-index: 2000;
    padding: 16px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(0px);
}


.modal.active {
    opacity: 1;
    visibility: visible;
    backdrop-filter: blur(14px);
}

.modal-content {
    background: #ffffff;
    padding: 15px;
    border-radius: 28px;
    /* Uniform rounded corners for centered modal */
    width: 100%;
    max-width: 520px;
    max-height: 92vh;

    color: var(--text-main);
    position: relative;
    box-shadow: 0 30px 100px -20px rgba(15, 23, 42, 0.25) !important;
    border: none !important;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    transform: translateY(20px) scale(0.95);
    transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
}

.modal.active .modal-content {
    transform: translateY(0) scale(1);
}



.modal-drag,
.modal-content::after,
.modal-content::before,
.modal-body::after,
.modal-body::before {
    display: none !important;
    content: none !important;
}

.modal-content .modal-body {
    overflow-y: auto;
    padding: 0 6px;
    margin: 0;
    scrollbar-width: none;
    -ms-overflow-style: none;
    flex: 1;
}

.modal-content::after,
.modal-content::before,
.modal-body::after,
.modal-body::before {
    display: none !important;
    content: none !important;
}

/* removed drag handle for minimalism */

.sheet-shell {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 6px 4px 12px;
}

.sheet-header {
    background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
    border: 1px solid #e5ebf7;
    border-radius: 20px;
    padding: 14px 14px 10px;
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.06);
}

.sheet-grip {
    width: 52px;
    height: 6px;
    border-radius: 999px;
    background: #e2e8f0;
    margin: 0 auto 12px;
}

.sheet-title-block h2 {
    margin: 2px 0 4px;
    font-size: 1.42rem;
    letter-spacing: -0.03em;
}

.sheet-eyebrow {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--primary);
    font-weight: 700;
}

.sheet-subtext {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
}

.sheet-amount-block {
    margin-top: 10px;
    padding: 12px;
    border-radius: 16px;
    background: #eef2ff;
    border: 1px solid #dfe6ff;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.amount-label {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: #475569;
    text-transform: uppercase;
}

.amount-value {
    font-size: 1.8rem;
    font-weight: 800;
    color: #312e81;
}

.quick-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.quick-chip {
    border: 1px solid #c7d2fe;
    background: #fff;
    border-radius: 999px;
    padding: 8px 12px;
    font-weight: 700;
    color: #4338ca;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.quick-chip:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 12px rgba(67, 56, 202, 0.15);
}

.quick-chip.outline {
    background: #f8fafc;
    color: #0f172a;
    border-color: #e2e8f0;
}

.reset-ghost {
    border: 1px solid #e5e7eb;
    background: #fff;
    color: #0f172a;
    border-radius: 999px;
    padding: 6px 12px;
    font-weight: 700;
    font-size: 0.86rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.reset-ghost:hover {
    background: #f8fafc;
    box-shadow: 0 6px 14px rgba(15, 23, 42, 0.06);
}

.sheet-toprow {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    margin-bottom: 4px;
}

.sheet-title-inline {
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--text-main);
}

.inline-close {
    margin-left: auto;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    width: 38px;
    height: 38px;
    border-radius: 12px;
    font-size: 1.1rem;
    line-height: 1;
    cursor: pointer;
    color: #475569;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.inline-close:hover {
    background: #eef2ff;
    color: #111827;
    transform: scale(1.02);
}

.sheet-section {
    background: #ffffff;
    border: 1px solid #e5ebf7;
    border-radius: 18px;
    padding: 12px 12px 10px;
    box-shadow: 0 12px 26px rgba(15, 23, 42, 0.04);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.stacked-inputs {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.dual-inputs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
}

.form-group.mini {
    margin: 0;
}

.pill-muted {
    display: inline-flex;
    align-items: center;
    padding: 10px 12px;
    border-radius: 12px;
    background: #f8fafc;
    border: 1px dashed #d7e3f5;
    color: #94a3b8;
    font-size: 0.85rem;
}

.sticky-cta {
    width: 100%;
    margin-top: 4px;
}

.commodity-cards {
    display: flex;
    gap: 14px;
    padding: 6px 6px 14px;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-overflow-scrolling: touch;
    flex-wrap: nowrap;
}

.commodity-cards::-webkit-scrollbar {
    display: none;
}

.commodity-card {
    min-width: 186px;
    max-width: 186px;
    background: linear-gradient(180deg, #ffffff 0%, #f6f9ff 100%);
    border: 1px solid #e5ebf7;
    border-radius: 22px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    padding: 8px 8px 8px;
    text-align: center;
    flex-shrink: 0;
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.08);
}

.commodity-card:hover {
    transform: translateY(-4px);
    border-color: #cbd5e1;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

.commodity-card.selected {
    border-color: var(--primary);
    background: #f8fbff;
    box-shadow: 0 18px 32px rgba(99, 102, 241, 0.14), 0 0 0 2px var(--primary);
    transform: translateY(-2px);
}




.card-thumb {
    width: 100%;
    height: 100px;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 8px;
    background: #eef2f7;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #edf2f7;
}


.card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.commodity-card:hover .card-thumb img {
    transform: scale(1.15) rotate(-3deg);
}


.donation-modal-topbar {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 6px 12px 12px 6px;
}

.donation-modal-title {
    font-size: 1.28rem;
    font-weight: 800;
    color: var(--text-main);
    letter-spacing: -0.015em;
}

.card-content {
    padding: 0 3px 2px;
}

.card-title {
    font-weight: 700;
    font-size: 0.98rem;
    color: var(--text-main);
    margin-bottom: 6px;
    line-height: 1.2;
}

.card-price {
    font-size: 0.74rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-bottom: 6px;
}

.card-progress-shell {
    width: 100%;
    height: 18px;
    background: #eef2ff;
    border-radius: 10px;
    position: relative;
    overflow: hidden;
    margin-top: 6px;
    border: 1px solid rgba(79, 70, 229, 0.08);
}

.card-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #4f46e5 0%, #6366f1 100%);
    border-radius: 10px;
    transition: width 0.6s ease;
}

.card-percent-inner {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.68rem;
    font-weight: 800;
    color: #312e81;
    /* Darker blue for visibility */
    pointer-events: none;
    z-index: 2;
}


.qty-control {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.qty-control button {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    border: 1px solid #d8e0ea;
    background: #fff;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-main);
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.qty-control button:hover {
    border-color: var(--primary-light);
    background: #f8fafc;
}

.qty-control button:active {
    transform: scale(0.92);
}

.qty-control input {
    width: 56px;
    height: 38px;
    text-align: center;
    border: 1px solid #d8e0ea;
    border-radius: 12px;
    padding: 0;
    font-size: 1rem;
    font-weight: 800;
    font-family: var(--font-heading);
    color: var(--text-main);
    background: #fbfcfe;
}

.qty-control input::-webkit-inner-spin-button,
.qty-control input::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.modal-close {
    position: static;
    align-self: flex-end;
    margin: 0 0 10px 0;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    font-size: 1.2rem;
    cursor: pointer;
    color: #64748b;
    width: 36px;
    height: 36px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    z-index: 10;
}

.modal-close:hover {
    background: #f1f5f9;
    color: var(--text-main);
    transform: rotate(90deg);
}

#donateModal .modal-close {
    display: none;
}




.modal-header {
    margin-bottom: 20px;
    text-align: center;
    padding: 0 40px;
}

.modal-header h2 {
    font-size: 1.4rem;
    font-weight: 800;
    margin: 8px 0 0;
    letter-spacing: -0.02em;
}

.modal-kicker {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 24px;
    padding: 0 12px;
    border-radius: 999px;
    background: #f0f4ff;
    color: #4f46e5;
    font-size: 0.64rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}


.modal .form-input {
    background: transparent;
    color: var(--text-main);
    border: none;
}

.modal-form-shell .btn.btn-primary {
    width: 100%;
}

.modal-form-shell {
    background: #ffffff;
    border: 1px solid #f1f5f9;
    border-radius: 26px;
    padding: 15px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04);
}


.selected-commodity-mini {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    background: linear-gradient(135deg, #f8fbff, #eef2ff);
    border: 1px solid #dbe4f0;
    border-radius: 18px;
    padding: 10px;
}

/* --- Minimal Form Adjustments --- */
.minimal-form {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
}

.minimal-form .form-group {
    margin-bottom: 8px;
}

.minimal-form .form-input {
    min-height: 48px;
    padding-top: 11px;
    padding-bottom: 11px;
    font-size: 0.86rem;
}

.minimal-section {
    margin: 16px 0;
}

.unit-helper {
    color: var(--text-muted);
    display: block;
    margin-top: 6px;
    font-weight: 500;
    font-size: 0.7rem;
    text-align: center;
}

/* --- Animated Tick --- */
.animated-tick {
    width: 64px !important;
    height: 64px !important;
    margin: 0 auto 16px !important;
    background: #f0fdf4 !important;
    border: none !important;
}

.checkmark {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: block;
    stroke-width: 3;
    stroke: #22c55e;
    stroke-miterlimit: 10;
    margin: 0 auto;
}

.checkmark__circle {
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    stroke-width: 3;
    stroke-miterlimit: 10;
    stroke: #22c55e;
    fill: none;
    animation: stroke 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.checkmark__check {
    transform-origin: 50% 50%;
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    animation: stroke 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.8s forwards;
}

@keyframes stroke {
    100% {
        stroke-dashoffset: 0;
    }
}

@keyframes scale {

    0%,
    100% {
        transform: none;
    }

    50% {
        transform: scale3d(1.1, 1.1, 1);
    }
}

@keyframes fill {
    100% {
        box-shadow: inset 0px 0px 0px 30px #22c55e;
    }
}

.selected-commodity-mini.minimal-qty {
    justify-content: center;
    padding: 6px 8px;
    background: #f8fbff;
    border: 1px solid #e2e8f0;
}



.selected-commodity-mini.minimal-qty .qty-control.compact {
    width: 100%;
    justify-content: space-between;
}

.selected-commodity-info {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.selected-commodity-icon {
    width: 40px;
    height: 40px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
}

.selected-commodity-icon svg {
    width: 18px;
    height: 18px;
    stroke: white;
}

.selected-commodity-name {
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--text-main);
    line-height: 1.1;
}

.selected-commodity-price {
    margin-top: 2px;
    font-size: 0.76rem;
    color: var(--text-muted);
}

#quantitySection small,
.commodity-details {
    display: none !important;
}

.qty-control.compact {
    flex-shrink: 0;
}

.payment-modal-content,
.receipt-modal-content {
    max-width: 430px;
}

.payment-modal-content {
    max-height: 92vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.payment-sheet,
.receipt-sheet,
.history-search-card,
.history-page-header,
.home-history-strip .container {
    background: rgba(255, 255, 255, 0.88);
    /* border: 1px solid rgba(226, 232, 240, 0.95);
    border-radius: 24px;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08); */
}

.payment-sheet,
.receipt-sheet {
    padding: 18px;
}

.payment-sheet {
    padding: 14px;
}

.payment-sheet-top,
.section-head-inline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.payment-sheet-top h2,
.receipt-hero-mini h2,
.history-page-header h1,
.section-head-inline h3 {
    margin: 0;
    font-family: var(--font-heading);
    font-weight: 500;
}

.payment-timer {
    padding: 6px 11px;
    border-radius: 999px;
    background: #fff7ed;
    border: 1px solid #fed7aa;
    color: #c2410c;
    font-weight: 700;
    font-size: 0.82rem;
}

.payment-amount-block {
    text-align: center;
    padding: 14px 0;
    margin: 12px 0;
    border-top: 1px dashed #dbe4f0;
    border-bottom: 1px dashed #dbe4f0;
}

.payment-amount-block span {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.payment-amount-block strong {
    font-size: 1.94rem;
    font-family: var(--font-heading);
}

.payment-apps p,
.qr-scan-block p {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #94a3b8;
    margin-bottom: 10px;
}

.upi-app-button,
.causes-upi-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 48px;
    margin-bottom: 8px;
    text-decoration: none;
    color: var(--text-main);
    background: white;
    border: 1px solid #dbe4f0;
    border-radius: 18px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.upi-app-button:hover,
.causes-upi-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    border-color: var(--primary-light);
}

.upi-app-button.primary,
.causes-upi-btn.primary {
    background: var(--gradient-primary);
    color: white;
    border: none;
    box-shadow: 0 10px 20px -5px rgba(99, 102, 241, 0.3);
}

.button-icon {
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.button-icon svg {
    width: 100%;
    height: 100%;
}

.qr-scan-block {
    margin-top: 10px;
    text-align: center;
}

.qr-image-shell {
    display: inline-flex;
    padding: 10px;
    border-radius: 18px;
    background: white;
    border: 1px solid #e2e8f0;
}

.qr-image-shell img {
    width: 188px;
    height: 188px;
    object-fit: contain;
}

.payment-cancel-btn {
    width: 100%;
    margin-top: 12px;
    min-height: 44px;
    border: none;
    border-radius: 16px;
    background: #eef2f7;
    color: #64748b;
    font-weight: 600;
    cursor: pointer;
}

.receipt-hero-mini {
    text-align: center;
    margin-bottom: 16px;
}

.receipt-topline {
    font-size: 0.82rem;
    letter-spacing: -0.03em;
    color: #0f172a;
    font-weight: 500;
    margin-bottom: 18px;
}

.receipt-ok-dot {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: #dcfce7;
    color: #16a34a;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.65rem;
    font-weight: 800;
    margin: 0 auto 10px;
    box-shadow: 0 18px 36px rgba(22, 163, 74, 0.12);
}

.receipt-hero-mini h2 {
    margin: 0;
    font-size: clamp(1.65rem, 3.6vw, 2rem);
    letter-spacing: -0.04em;
}

.receipt-hero-mini p {
    margin: 8px 0 0;
    font-size: 1rem;
    color: var(--text-muted);
}

/* Premium Success Animation */
.success-anim-container {
    padding: 40px 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 280px;
}


.success-anim-circle {
    width: 100px;
    height: 100px;
    background: #dcfce7;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    box-shadow: 0 20px 40px rgba(22, 163, 74, 0.15);
    animation: successPulse 2s infinite ease-out;
}

.checkmark-anim {
    width: 60px;
    height: 60px;
}

.checkmark-anim__circle {
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    stroke-width: 2;
    stroke-miterlimit: 10;
    stroke: #16a34a;
    fill: none;
    animation: stroke 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.checkmark-anim__check {
    transform-origin: 50% 50%;
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    stroke-width: 4;
    stroke: #16a34a;
    fill: none;
    animation: stroke 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.8s forwards;
}

@keyframes stroke {
    100% {
        stroke-dashoffset: 0;
    }
}

@keyframes successPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(22, 163, 74, 0.4);
    }

    70% {
        box-shadow: 0 0 0 20px rgba(22, 163, 74, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(22, 163, 74, 0);
    }
}

.success-anim-text {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 8px;
    animation: fadeInUp 0.5s ease-out;
}

.success-anim-subtext {
    font-size: 0.95rem;
    color: var(--text-muted);
    animation: fadeInUp 0.7s ease-out;
}


.receipt-card-mini {
    border: 1px solid #e2e8f0;
    border-radius: 22px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    padding: 18px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.receipt-ledger {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px 20px;
    border-color: #d7e3f5;
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.05);
}

.receipt-amount-bar {
    grid-column: 1 / -1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 16px;
    margin-bottom: 4px;
    border-bottom: 1px dashed #dbe4f0;
}

.receipt-amount-bar span {
    color: #64748b;
    font-size: 0.9rem;
    font-weight: 500;
}

.receipt-amount-bar strong {
    font-size: 1.85rem;
    font-family: var(--font-heading);
    color: var(--text-main);
    line-height: 1;
}

.receipt-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-width: 0;
}

.receipt-item-full {
    grid-column: 1 / -1;
}

.receipt-item span {
    color: #94a3b8;
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.receipt-item strong {
    font-size: 1rem;
    color: var(--text-main);
    line-height: 1.3;
    font-weight: 500;
    word-break: break-word;
}


.receipt-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 12px 0;
    border-top: 1px dashed #dbe4f0;
}

.receipt-row span {
    color: #64748b;
    font-size: 0.9rem;
}

.receipt-row strong {
    font-size: 1rem;
    text-align: right;
    max-width: 62%;
}

.receipt-grid div {
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-width: 0;
}

.receipt-grid-full {
    grid-column: 1 / -1;
}

.receipt-grid strong {
    font-size: 1rem;
    line-height: 1.35;
    word-break: break-word;
}

.receipt-name-value {
    font-weight: 500;
    letter-spacing: -0.02em;
}

.receipt-phone-value,
.receipt-qty-value {
    font-variant-numeric: tabular-nums;
}

.receipt-chip {
    display: inline-flex;
    width: fit-content;
    min-height: 30px;
    padding: 0 12px;
    align-items: center;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    border: 1px solid transparent;
}

.receipt-chip-soft {
    background: #eef2ff;
    color: #4338ca;
    border-color: #c7d2fe;
}

.receipt-chip-warm {
    background: #fff7ed;
    color: #b45309;
    border-color: #fed7aa;
}

.receipt-status-badge {
    display: inline-flex;
    width: fit-content;
    min-height: 30px;
    padding: 0 12px;
    align-items: center;
    border-radius: 999px;
    background: #ecfdf3;
    color: #15803d;
    border: 1px solid #bbf7d0;
    font-size: 0.84rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.receipt-code-value {
    font-family: "Courier New", monospace;
    font-size: 0.9rem;
    letter-spacing: 0.01em;
}

.receipt-date-value {
    font-size: 0.92rem;
    color: #334155;
}

.receipt-actions-mini {
    display: flex;
    gap: 12px;
    margin-top: 18px;
}

.receipt-actions-bar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 18px;
}

.receipt-actions-mini .btn {
    flex: 1;
    min-height: 52px;
}

.receipt-action-download {
    min-height: 52px;
}

.receipt-action-close {
    min-height: 52px;
}

.home-history-strip {
    padding: 0 0 44px;
}

.home-history-strip .container {
    padding: 0 22px;
    max-width: 1180px;
}

.section-head-inline {
    padding: 0 4px 14px;
}

.section-head-inline h3 {
    font-size: 1.7rem;
    letter-spacing: -0.04em;
}

.text-link {
    text-decoration: none;
    font-weight: 300;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-size: 0.78rem;
}

.home-history-list {
    display: grid;
    gap: 12px;
    margin-top: 14px;
    padding: 6px 2px 2px;
}

.home-history-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 18px;
    border-radius: 20px;
    border: 1px solid #eef2f6;
    background: #ffffff;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
}

.home-history-card:hover {
    transform: translateY(-2px);
    border-color: var(--primary-light);
    box-shadow: 0 12px 24px -10px rgba(99, 102, 241, 0.15);
    background: #fbfdff;
}

.powered-by-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 0;
    text-decoration: none;
    transition: transform 0.2s ease;
}

.powered-by-container:active {
    transform: scale(0.98);
}

.powered-by-text {
    font-size: 0.88rem;
    color: #94a3b8;
    font-weight: 500;
}

.powered-by-logo {
    height: 18px;
    width: auto;
    object-fit: contain;
    display: block;
}

.modal-footer-branding {
    margin-top: 12px;
    border-top: 1px dashed #e2e8f0;
    padding-top: 8px;
}


.home-history-card.static-card {
    cursor: default;
}

.home-history-card strong,
.home-history-card b {
    display: block;
    color: var(--text-main);
    font-weight: 400;
}

.home-history-card span,
.home-history-card small {
    display: block;
    font-size: 0.8rem;
}

.home-history-card b {
    font-size: 1.15rem;
    letter-spacing: -0.03em;
}

.history-empty {
    padding: 18px;
    border-radius: 18px;
    text-align: center;
    background: #f8fafc;
    color: var(--text-muted);
    border: 1px dashed #dbe4f0;
}

.history-page-shell {
    padding-top: 40px;
    padding-bottom: 60px;
}

.history-page-header {
    margin-bottom: 24px;
    text-align: left;
}

.history-page-header h1 {
    font-size: 2.2rem;
    letter-spacing: -0.05em;
    margin-bottom: 6px;
}

.history-page-header p {
    font-size: 0.95rem;
    color: var(--text-muted);
    font-weight: 400;
}

.history-search-grid {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 12px;
}

.history-search-input {
    padding-left: 16px;
}

.history-block {
    margin-top: 24px;
}

/* Responsive */
@media (max-width: 992px) {
    .status-card {
        grid-template-columns: 1fr;
        padding: 32px;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .hero-mobile-card {
        width: min(100%, 360px);
        padding: 16px 16px 14px;
        border-radius: 30px;
    }

    .material-card {
        padding: 20px;
    }

    .form-container {
        padding: 32px 24px;
    }

    .modal-header h2 {
        font-size: 1.08rem;
    }
}

@media (max-width: 640px) {
    .site-header {
        padding: 16px 14px;
    }

    .site-logo-circle {
        width: 52px;
        height: 52px;
        border-radius: 16px;
    }

    .site-logo-circle img {
        width: 40px;
        height: 40px;
    }

    .site-brand {
        font-size: 1.05rem;
    }

    .site-subbrand {
        font-size: 0.6rem;
        letter-spacing: 0.1em;
    }

    .site-bell {
        width: 42px;
        height: 42px;
        border-radius: 14px;
    }

    .site-bell-dot {
        top: 11px;
        right: 11px;
    }

    .nav-item {
        padding: 14px 4px 12px;
        border-radius: 28px;
    }

    .nav-icon-box {
        width: 42px;
        height: 42px;
        margin-bottom: 6px;
    }

    .nav-icon-box svg {
        width: 20px;
        height: 20px;
    }

    .nav-item span {
        font-size: 0.74rem;
    }

    .btn {
        width: 100%;
        padding: 12px 20px;
        font-size: 0.9rem;
    }

    .hero {
        padding: 12px 10px;
        min-height: auto;
    }

    .hero-image {
        max-height: 260px;
        border-radius: 18px;
    }

    .hero-copy-block {
        padding: 12px 2px 10px;
    }

    .hero-donate-wide {
        min-height: 54px;
        font-size: 0.94rem;
    }

    .hero-action-small {
        min-height: 44px;
        border-radius: 16px;
        font-size: 0.82rem;
    }

    .form-container {
        padding: 24px 16px;
    }

    .modal-content {
        max-width: 100%;
        max-height: 90vh;
        padding: 8px 8px 8px;
        border-radius: 24px;
    }

    .modal-close {
        align-self: flex-end;
        margin: 0 0 8px 0;
        width: 42px;
        height: 42px;
    }

    #donateModal {
        align-items: flex-end;
        padding: 0 10px;
    }

    #donateModal .modal-content {
        width: 100%;
        max-width: 100%;
        height: 85vh;
        max-height: 85vh;
        border-radius: 22px 22px 0 0;
        padding: 14px 14px 10px;
        transform: translateY(100%);
        margin: 0 !important;
        display: flex;
        flex-direction: column;
    }

    #donateModal .modal-body {
        flex: 1;
        padding: 0;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    #donateModal.active .modal-content {
        transform: translateY(0);
    }

    .commodity-cards {
        display: flex;
        gap: 10px;
        padding: 6px 4px 10px;
        overflow-x: auto;
        flex-wrap: nowrap;
    }

    .commodity-card {
        min-width: 130px;
        max-width: 130px;
        padding: 8px;
        text-align: center;
        flex-shrink: 0;
    }

    .card-thumb {
        height: 110px;
        margin-bottom: 6px;
        border-radius: 12px;
    }

    .modal-content .modal-body {
        overflow-y: visible;
    }

    .modal-close {
        top: 10px;
        right: 10px;
        width: 42px;
        height: 42px;
    }

    .modal-form-shell {
        padding: 10px;
        border-radius: 22px;
    }

    .minimal-form .form-group {
        margin-bottom: 7px;
    }

    .minimal-form .form-input {
        min-height: 46px;
        font-size: 0.84rem;
    }

    .selected-commodity-mini.minimal-qty {
        padding: 6px;
    }

    .selected-commodity-mini {
        flex-direction: column;
        align-items: stretch;
    }

    .qty-control.compact {
        justify-content: space-between;
    }

    .receipt-grid,
    .history-search-grid,
    .receipt-actions-mini {
        flex-direction: column;
    }

    .history-search-grid,
    .receipt-actions-mini {
        grid-template-columns: 1fr;
    }

    .receipt-sheet {
        padding: 4px;
    }

    .receipt-topline {
        margin-bottom: 14px;
    }

    .receipt-hero-mini {
        margin-bottom: 14px;
        text-align: center;
    }

    .receipt-hero-mini h2 {
        font-size: 1.34rem;
        line-height: 1.06;
    }

    .receipt-hero-mini p {
        font-size: 0.84rem;
        margin-top: 6px;
    }

    .receipt-card-mini {
        padding: 14px;
        border-radius: 20px;
    }

    .receipt-amount-mini {
        align-items: center;
        gap: 10px;
        padding-bottom: 14px;
        margin-bottom: 14px;
    }

    .receipt-amount-mini strong {
        font-size: 1.56rem;
    }

    .receipt-amount-bar {
        padding-bottom: 14px;
        margin-bottom: 8px;
    }

    .receipt-amount-bar span {
        font-size: 0.8rem;
    }

    .receipt-amount-bar strong {
        font-size: 1.6rem;
    }

    .receipt-row {
        padding: 11px 0;
        align-items: flex-start;
    }

    .receipt-row span {
        font-size: 0.84rem;
    }

    .receipt-row strong {
        max-width: 56%;
        font-size: 0.92rem;
    }

    .receipt-chip,
    .receipt-status-badge {
        min-height: 28px;
        padding: 0 10px;
        font-size: 0.76rem;
    }

    .receipt-actions-bar {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .receipt-actions-mini .btn,
    .receipt-actions-bar .btn {
        min-height: 48px;
    }

    .payment-sheet {
        padding: 12px;
    }

    .payment-sheet-top h2 {
        font-size: 1.18rem;
    }

    .payment-timer {
        font-size: 0.78rem;
        padding: 5px 10px;
    }

    .payment-amount-block strong {
        font-size: 1.74rem;
    }

    .upi-app-button,
    .causes-upi-btn {
        min-height: 46px;
        border-radius: 16px;
    }

    .qr-image-shell {
        padding: 8px;
        border-radius: 16px;
    }

    .home-history-strip .container {
        padding: 0 14px;
    }

    .section-head-inline {
        padding: 0 2px 10px;
    }

    .home-history-list {
        margin-top: 10px;
        padding: 6px 0 0;
    }

    .home-history-card {
        padding: 12px 13px;
    }

    .qr-image-shell img {
        width: 168px;
        height: 168px;
    }

    .status-card {
        padding: 24px;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.5rem;
    }

    .hero-malayalam {
        font-size: 0.8rem;
        line-height: 1.5;
    }

    .hero p {
        font-size: 0.65rem;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .hero-actions-row {
        gap: 8px;
    }

    .btn {
        font-size: 0.9rem;
        padding: 12px 20px;
    }

    .form-group {
        margin-bottom: 12px;
    }

    .total-amount {
        font-size: 2.25rem;
    }

    .materials-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .material-card {
        padding: 16px;
    }

    .material-card h3 {
        font-size: 1rem;
    }

    .modal-close {
        font-size: 1.25rem;
    }
}

/* Ultra-small devices: keep premium look but allow two cards per row and shorter thumbs */
@media (max-width: 480px) {
    .commodity-cards {
        gap: 12px;
        padding: 6px 6px 12px;
    }

    .commodity-card {
        min-width: calc(44vw - 18px);
        max-width: calc(44vw - 18px);
        padding: 10px;
    }

    .card-thumb {
        height: 100px;
        border-radius: 14px;
    }
}

/* --- Premium Progress Bar Design --- */
.progress-container-premium {
    width: 100%;
    margin-top: 18px;
    padding: 0 16px 12px 16px;
    /* Increased side padding for better alignment */
    display: flex;
    flex-direction: column;
    gap: 10px;
    box-sizing: border-box;
}

.progress-header-premium {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.progress-subtitle-premium {
    font-size: 0.75rem;
    font-weight: 800;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    opacity: 0.9;
}

.progress-percentage-premium {
    font-size: 1.25rem;
    font-weight: 900;
    color: #4f46e5;
    font-family: var(--font-heading);
    line-height: 1;
    text-shadow: 0 0 15px rgba(79, 70, 229, 0.2);
    animation: pulsePercentage 2s ease-in-out infinite;
}

.progress-bar-premium {
    height: 14px;
    background: rgba(148, 163, 184, 0.1);
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.progress-fill-premium {
    height: 100%;
    background: linear-gradient(90deg, #4f46e5 0%, #7c3aed 30%, #a855f7 60%, #4f46e5 100%);
    background-size: 200% 100%;
    border-radius: 20px;
    position: relative;
    transition: width 2.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    animation: liquidFlow 4s linear infinite;
    box-shadow: 0 0 15px rgba(79, 70, 229, 0.4);
}

.progress-shimmer-premium {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg,
            transparent 0%,
            rgba(255, 255, 255, 0) 30%,
            rgba(255, 255, 255, 0.3) 50%,
            rgba(255, 255, 255, 0) 70%,
            transparent 100%);
    animation: shimmerPremium 3s infinite;
}

.progress-glow-premium {
    position: absolute;
    top: 0;
    right: 0;
    width: 20px;
    height: 100%;
    background: white;
    filter: blur(8px);
    opacity: 0.5;
}

.progress-footer-premium {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.progress-footer-premium span {
    font-size: 0.75rem;
    font-weight: 700;
    color: #64748b;
    letter-spacing: 0.02em;
}

@keyframes liquidFlow {
    0% {
        background-position: 0% 50%;
    }

    100% {
        background-position: 200% 50%;
    }
}

@keyframes shimmerPremium {
    0% {
        transform: translateX(-150%);
    }

    100% {
        transform: translateX(150%);
    }
}

@keyframes pulsePercentage {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.05);
        opacity: 0.85;
    }
}

/* Hero shell refinements */
.hero-image-shell {
    margin-bottom: 0px !important;
    padding-bottom: 8px;
    background: #f8fafc;
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
    flex-direction: column !important;
}



/* Button Spinner */
.btn-loader {
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: btn-spin 0.8s linear infinite;
}

@keyframes btn-spin {
    to {
        transform: rotate(360deg);
    }
}

.btn:disabled {
    opacity: 0.8;
    cursor: not-allowed;
}