@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800&display=swap');

:root {
    --primary: #059669;
    --primary-gradient: linear-gradient(135deg, #059669 0%, #047857 100%);
    --primary-soft: rgba(5, 150, 105, 0.08);
    --primary-light: rgba(5, 150, 105, 0.12);
    --bg-premium: radial-gradient(at 0% 0%, rgba(5, 150, 105, 0.04) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(59, 130, 246, 0.04) 0px, transparent 50%),
        #f8fafc;
    --bg-card: #ffffff;
    --bg-subtle: #f5f7fa;
    --text-main: #0f172a;
    --text-secondary: #475569;
    --text-muted: #64748b;
    --border-premium: rgba(0, 0, 0, 0.03);
    --border-subtle: rgba(0, 0, 0, 0.05);
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 32px;
    --shadow-premium: 0 8px 20px -6px rgba(0, 0, 0, 0.04), 0 4px 8px -4px rgba(0, 0, 0, 0.02);
    --shadow-float: 0 20px 35px -10px rgba(5, 150, 105, 0.15);
    --shadow-input: 0 2px 8px rgba(0, 0, 0, 0.03);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: 'Montserrat', sans-serif;
    background: var(--bg-premium);
    color: var(--text-main);
    line-height: 1.55;
    min-height: 100vh;
}

.container {
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
    padding: 0 24px;
}

header {
    padding: 22px 0 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    /* background: rgba(255, 255, 255, 0.92); */
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
    backdrop-filter: blur(18px);
    position: sticky;
    top: 0;
    z-index: 12;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 14px;
}

.screen-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 20px;
}

.screen-back-btn {
    border: none;
    background: none;
    color: var(--primary);
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    padding: 8px 10px;
    border-radius: 14px;
    transition: background 0.2s ease, transform 0.2s ease;
}

.screen-back-btn:hover {
    background: rgba(5, 150, 105, 0.08);
    transform: translateX(-1px);
}

.screen-back-btn:active {
    transform: scale(0.98);
}

.screen-header h2 {
    font-size: 20px;
    font-weight: 800;
    color: var(--text-main);
    margin: 0;
}

.logo-circle {
    width: 52px;
    height: 52px;
    border-radius: 18px;
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: 0 14px 40px -24px rgba(15, 23, 42, 0.18);
}

.logo-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.logo-text h1 {
    font-size: 20px;
    font-weight: 900;
    letter-spacing: -0.9px;
    color: var(--text-main);
    margin-bottom: 0;
    line-height: 1.1;
}

.logo-text p {
    font-size: 11px;
    color: var(--text-secondary);
    font-weight: 700;
    letter-spacing: 1px;
    margin-top: 2px;
}

.icon-btn {
    width: 46px;
    height: 46px;
    border-radius: 16px;
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    color: var(--text-main);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 14px 30px -24px rgba(15, 23, 42, 0.18);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.icon-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 16px 32px -24px rgba(15, 23, 42, 0.22);
}

.icon-btn:active {
    transform: scale(0.94);
}

.hero-intro {
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.06);
    border-radius: 28px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-premium);
    animation: fadeInUp 0.6s ease both;
}

.hero-intro .eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary);
    text-transform: uppercase;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.7px;
}

.hero-intro h2 {
    margin-top: 14px;
    font-size: 24px;
    line-height: 1.2;
    color: var(--text-main);
    font-weight: 900;
    letter-spacing: -0.6px;
}

.hero-intro p {
    margin-top: 12px;
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.8;
    max-width: 360px;
}

/* Slider */
.slider-container {
    position: relative;
    width: 100%;
    height: 240px;
    border-radius: 32px;
    overflow: hidden;
    margin-bottom: 26px;
    border: 1px solid rgba(15, 23, 42, 0.05);
    box-shadow: 0 32px 70px -32px rgba(15, 23, 42, 0.18);
    animation: fadeInUp 0.65s ease both;
    background: #f8fbff;
}

.slider-container::before {
    content: '';
    position: absolute;
    top: -20px;
    right: -30px;
    width: 160px;
    height: 160px;
    background: radial-gradient(circle, rgba(5, 150, 105, 0.16) 0%, transparent 70%);
    pointer-events: none;
}

.slider-container::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: -16px;
    width: 140px;
    height: 140px;
    background: radial-gradient(circle, rgba(14, 165, 233, 0.12) 0%, transparent 70%);
    pointer-events: none;
}

.slider {
    display: flex;
    height: 100%;
    transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.slide {
    min-width: 100%;
    height: 100%;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.slide:hover img {
    transform: scale(1.02);
}

.slider-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(248, 250, 252, 0.58) 0%, rgba(248, 250, 252, 0.18) 22%, rgba(15, 23, 42, 0.14) 100%);
    pointer-events: none;
}

.slider-dots {
    position: absolute;
    bottom: 18px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    background: rgba(255, 255, 255, 0.78);
    padding: 8px 14px;
    border-radius: 999px;
    box-shadow: 0 16px 44px -30px rgba(15, 23, 42, 0.18);
}

.dot {
    width: 8px;
    height: 8px;
    background: rgba(15, 23, 42, 0.22);
    border-radius: 999px;
    transition: all 0.3s ease;
}

.dot.active {
    width: 26px;
    background: var(--primary);
    border-radius: 999px;
}

/* Stats Card */
.stats-card {
    background: #ffffff;
    border-radius: 28px;
    padding: 36px 26px;
    margin-bottom: 28px;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 28px 70px -36px rgba(15, 23, 42, 0.17);
    border: 1px solid rgba(15, 23, 42, 0.06);
    animation: fadeInUp 0.7s ease both;
}

.stats-card::after {
    content: '';
    position: absolute;
    width: 180px;
    height: 180px;
    background: radial-gradient(circle, rgba(5, 150, 105, 0.12) 0%, transparent 70%);
    top: -60px;
    right: -60px;
    z-index: 0;
}

.stats-label {
    font-size: 12px;
    font-weight: 800;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 2.6px;
    margin-bottom: 18px;
    position: relative;
    z-index: 1;
}

.stats-value {
    font-size: 46px;
    font-weight: 900;
    color: var(--text-main);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    letter-spacing: -1.8px;
    position: relative;
    z-index: 1;
}

.stats-value span:first-child {
    color: var(--primary);
    font-size: 32px;
    opacity: 0.96;
    font-weight: 700;
}

/* Action Buttons */
.btn-primary-gradient {
    background: var(--primary-gradient);
    color: white;
    border: none;
    box-shadow: 0 12px 24px -8px rgba(5, 150, 105, 0.25);
    transition: all 0.24s ease;
}

.btn-primary-gradient:active {
    transform: scale(0.98);
    box-shadow: 0 8px 16px -6px rgba(5, 150, 105, 0.28);
}

.btn-donate {
    width: 100%;
    padding: 16px 18px;
    border-radius: 24px;
    border: none;
    background: var(--primary-gradient);
    color: white;
    font-size: 16px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    box-shadow: 0 14px 30px -10px rgba(5, 150, 105, 0.28);
    transition: all 0.24s ease;
    margin-bottom: 24px;
}

.btn-donate:hover {
    transform: translateY(-1px);
    box-shadow: 0 16px 34px -14px rgba(5, 150, 105, 0.3);
}

.btn-donate:active {
    transform: scale(0.98);
    box-shadow: 0 10px 20px -12px rgba(5, 150, 105, 0.24);
}

.action-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 24px;
}

@media (min-width: 520px) {
    .action-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

#selected-unit-display {
    padding: 12px;
    margin-bottom: 16px;
}

.action-tile {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(15, 23, 42, 0.05);
    border-radius: 22px;
    padding: 16px 10px;
    min-height: 104px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: border-color 0.25s ease, background 0.25s ease, transform 0.25s ease;
    box-shadow: 0 8px 20px -12px rgba(15, 23, 42, 0.08);
}

.action-tile:hover {
    transform: translateY(-1px);
    border-color: rgba(5, 150, 105, 0.14);
    background: rgba(255, 255, 255, 0.98);
}

.action-tile:active {
    transform: translateY(0);
}

.tile-icon {
    width: 44px;
    height: 44px;
    border-radius: 16px;
    background: rgba(5, 150, 105, 0.08);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    transition: background 0.25s ease, transform 0.25s ease;
}

.action-tile:hover .tile-icon {
    transform: scale(1.02);
    background: rgba(5, 150, 105, 0.12);
}

.tile-label {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    text-align: center;
    line-height: 1.3;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes floatButton {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-2px);
    }
}

/* Policies */
.footer-links-mini {
    text-align: center;
    padding-bottom: 40px;
}

.policy-links {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 8px;
}

.policy-links a,
.policy-links span {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
}

.footer-copy {
    font-size: 12px;
    color: #94a3b8;
    font-weight: 500;
}

.powered-by-link {
    text-decoration: none;
    color: inherit;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    opacity: 0.75;
}

.collectway-logo {
    height: 14px;
    display: block;
}

/* Modals - Premium Minimal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.35);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: none;
    align-items: flex-end;
    justify-content: center;
    z-index: 2000;
}

@media (min-width: 640px) {
    .modal-overlay {
        align-items: center;
        padding: 24px;
        background: rgba(15, 23, 42, 0.4);
    }
}

.modal-content {
    width: 100%;
    max-width: 440px;
    max-height: 90vh;
    overflow-y: auto;
    background: var(--bg-card);
    border-top-left-radius: 24px;
    border-top-right-radius: 24px;
    padding: 14px 16px 12px;
    transform: translateY(100%);
    transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.35s ease;
    box-shadow: 0 28px 60px -22px rgba(0, 0, 0, 0.14);
}

@media (min-width: 640px) {
    .modal-content {
        max-width: 460px;
        border-radius: 28px;
        transform: scale(0.94) translateY(30px);
        opacity: 0;
        max-height: 85vh;
    }
}

.modal-overlay.active {
    display: flex;
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
    opacity: 1;
}

@media (min-width: 640px) {
    .modal-overlay.active .modal-content {
        transform: scale(1) translateY(0);
    }
}

/* Modal Header */
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
    gap: 10px;
}

.modal-title {
    flex: 1;
}

.modal-title h2 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 4px;
    letter-spacing: -0.3px;
}

.modal-title p {
    font-size: 12px;
    color: var(--text-secondary);
    font-weight: 500;
    letter-spacing: 0.2px;
}

.close-btn {
    width: 40px;
    height: 40px;
    background: var(--bg-subtle);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-main);
    transition: all 0.2s;
    flex-shrink: 0;
}

.close-btn:hover {
    background: #f0f4f8;
    border-color: var(--border-premium);
}

.close-btn:active {
    transform: scale(0.92);
}

/* Form Elements - Minimal */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 8px;
}

.form-group label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

input[type="text"],
input[type="tel"],
input[type="number"],
select {
    width: 100%;
    background: var(--bg-card);
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 14px;
    padding: 8px 12px;
    font-size: 13px;
    font-family: inherit;
    color: var(--text-main);
    transition: all 0.22s ease;
    outline: none;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.06);
}

@media (min-width: 640px) {
    .form-group {
        gap: 6px;
        margin-bottom: 14px;
    }

    .form-group label {
        font-size: 12px;
    }

    input[type="text"],
    input[type="tel"],
    input[type="number"],
    select {
        border-radius: 18px;
        padding: 12px 14px;
        font-size: 14px;
    }
}

input[type="text"]::placeholder,
input[type="tel"]::placeholder,
input[type="number"]::placeholder,
select {
    color: var(--text-muted);
}

input[type="text"]:focus,
input[type="tel"]:focus,
input[type="number"]:focus,
select:focus {
    background: #ffffff;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(5, 150, 105, 0.12), 0 2px 10px rgba(15, 23, 42, 0.08);
}

input[type="text"]::placeholder,
input[type="tel"]::placeholder,
input[type="number"]::placeholder,
select {
    color: var(--text-muted);
}

input[type="text"]:focus,
input[type="tel"]:focus,
input[type="number"]:focus,
select:focus {
    background: var(--bg-card);
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-light), var(--shadow-input);
}

input[type="text"]:disabled,
input[type="tel"]:disabled,
input[type="number"]:disabled {
    background: rgba(0, 0, 0, 0.02);
    color: var(--text-muted);
    cursor: not-allowed;
}

/* Custom Dropdowns - Premium Minimal */
.custom-select-trigger {
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 18px;
    padding: 12px 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 13px;
    color: var(--text-main);
    font-weight: 500;
}

.custom-dropdown-list {
    border-radius: 16px;
    margin-top: 6px;
    max-height: 240px;
}

.custom-dropdown-item {
    padding: 10px 14px;
    font-size: 13px;
}

.custom-select-trigger:hover {
    border-color: var(--primary);
    background: var(--bg-card);
}

.custom-select-trigger:focus {
    box-shadow: 0 0 0 3px var(--primary-light);
}

.custom-select-trigger span {
    flex: 1;
    text-align: left;
}

.custom-dropdown-list {
    background: var(--bg-card);
    border-radius: 16px;
    margin-top: 6px;
    max-height: 280px;
    overflow-y: auto;
    box-shadow: 0 12px 32px -8px rgba(0, 0, 0, 0.12);
    border: 1px solid var(--border-subtle);
    z-index: 100;
    animation: slideDown 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.custom-dropdown-item {
    padding: 12px 18px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-main);
    cursor: pointer;
    transition: all 0.15s;
}

.custom-dropdown-item:hover {
    background: var(--primary-soft);
    color: var(--primary);
    padding-left: 24px;
}

.custom-dropdown-item.selected {
    background: var(--primary-soft);
    color: var(--primary);
    font-weight: 600;
}

.hidden {
    display: none !important;
}

/* Premium Form States */
.field-error {
    color: #ef4444;
    font-size: 12px;
    margin-top: 6px;
    display: none;
    font-weight: 500;
    animation: slideIn 0.2s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-4px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.input-error {
    border-color: #ef4444 !important;
    background: rgba(239, 68, 68, 0.02) !important;
}

.input-error:focus {
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1), var(--shadow-input) !important;
}

/* Success State */
.input-success {
    border-color: var(--primary) !important;
}

.input-success:focus {
    box-shadow: 0 0 0 3px var(--primary-light), var(--shadow-input) !important;
}

/* Selected Unit Display */
#selected-unit-display {
    background: var(--primary-light);
    border: 1.5px solid rgba(5, 150, 105, 0.3);
    padding: 10px 12px;
    border-radius: var(--radius-lg);
    margin-bottom: 10px;
    animation: slideIn 0.3s ease-out;
    position: relative;
}

#selected-unit-display>div:first-child {
    font-size: 10px;
    text-transform: uppercase;
    color: var(--primary);
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}

#unit-name-badge {
    font-weight: 700;
    color: var(--text-main);
    font-size: 13px;
}

#unit-parent-badge {
    font-size: 11px;
    color: var(--text-secondary);
}

@media (min-width: 640px) {
    #selected-unit-display {
        padding: 16px;
        margin-bottom: 20px;
    }

    #selected-unit-display>div:first-child {
        font-size: 11px;
        margin-bottom: 6px;
    }

    #unit-name-badge {
        font-size: 15px;
    }

    #unit-parent-badge {
        font-size: 13px;
    }
}

/* Loader Animation */
.loader {
    width: 18px;
    height: 18px;
    border: 2.5px solid rgba(255, 255, 255, 0.25);
    border-top: 2.5px solid #ffffff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Checkbox Styling */
input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--primary);
}

/* Volunteer Field Container */
#volunteer-field-container input {
    margin-top: 8px;
}

/* Receipt Premium Styling */
.receipt-premium {
    padding-bottom: 6px;
}

.receipt-hero {
    text-align: center;
    margin-bottom: 14px;
}

.receipt-ok {
    width: 44px;
    height: 44px;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 8px;
    box-shadow: 0 6px 16px rgba(5, 150, 105, 0.15);
    animation: popIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes popIn {
    0% {
        transform: scale(0.8);
        opacity: 0;
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.receipt-ok i {
    width: 22px;
    height: 22px;
    stroke-width: 3;
}

.receipt-hero h2 {
    font-size: 18px;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 4px;
    letter-spacing: -0.5px;
}

.receipt-hero p {
    color: var(--text-muted);
    font-size: 12px;
}

.receipt-card {
    background: var(--bg-subtle);
    border-radius: var(--radius-lg);
    padding: 12px;
    border: 1px solid var(--border-subtle);
}

.receipt-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    font-size: 12px;
}

.receipt-row span:first-child {
    color: var(--text-secondary);
    font-weight: 500;
}

.receipt-row span:last-child {
    color: var(--text-main);
    font-weight: 600;
    text-align: right;
    max-width: 65%;
}

.receipt-amount-row {
    border-bottom: 1px solid var(--border-subtle);
    margin-bottom: 8px;
    padding-bottom: 8px;
}

.amount-text {
    font-size: 18px;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -0.5px;
}

.receipt-group {
    margin-bottom: 8px;
}

.status-chip {
    background: var(--primary-soft);
    color: var(--primary);
    padding: 4px 12px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 12px;
}

/* Receipt Actions */
.receipt-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 14px;
}

.btn-submit {
    background: var(--primary-gradient);
    color: white;
    border: none;
    padding: 11px 16px;
    border-radius: var(--radius-lg);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 13px;
}

.btn-submit:hover {
    box-shadow: 0 12px 24px -6px rgba(5, 150, 105, 0.25);
    transform: translateY(-2px);
}

.btn-submit:active {
    transform: scale(0.97);
}

.receipt-download-btn,
.receipt-print-btn {
    background: var(--bg-subtle);
    color: var(--text-main);
    border: 1.5px solid var(--border-subtle);
}

.receipt-download-btn:hover,
.receipt-print-btn:hover {
    background: var(--bg-card);
    border-color: var(--primary);
    box-shadow: 0 8px 16px -4px rgba(0, 0, 0, 0.08);
}

/* Profile & Receipt Search Premium */
.profile-card {
    background: var(--bg-card);
    padding: 28px;
    border-radius: 24px;
    box-shadow: var(--shadow-premium);
    border: 1px solid var(--border-subtle);
}

.mobile-search-row {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 12px;
}

.btn-mobile-search {
    background: var(--primary-gradient);
    color: white;
    border: none;
    padding: 14px 20px;
    border-radius: var(--radius-lg);
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    box-shadow: 0 12px 24px -6px rgba(5, 150, 105, 0.25);
    transition: all 0.25s;
}

.btn-mobile-search:hover {
    box-shadow: 0 16px 32px -8px rgba(5, 150, 105, 0.35);
    transform: translateY(-2px);
}

.btn-mobile-search:active {
    transform: scale(0.95);
}

.profile-note {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 10px;
    line-height: 1.5;
    padding: 0 2px;
}

/* Premium Interactive Elements */
button:disabled,
input:disabled,
.btn-primary-gradient:disabled,
.btn-submit:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Input Group Focus States */
.form-group:has(input:focus) label {
    color: var(--primary);
    font-weight: 700;
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.text-muted {
    color: var(--text-muted);
}

.text-secondary {
    color: var(--text-secondary);
}

.text-primary {
    color: var(--primary);
}

.gap-sm {
    gap: 8px;
}

.gap-md {
    gap: 12px;
}

.gap-lg {
    gap: 16px;
}

.p-sm {
    padding: 8px;
}

.p-md {
    padding: 12px;
}

.p-lg {
    padding: 16px;
}

.mt-sm {
    margin-top: 8px;
}

.mt-md {
    margin-top: 12px;
}

.mt-lg {
    margin-top: 16px;
}

.mb-sm {
    margin-bottom: 8px;
}

.mb-md {
    margin-bottom: 12px;
}

.mb-lg {
    margin-bottom: 16px;
}

/* Premium Transitions */
@media (prefers-reduced-motion: no-preference) {
    * {
        transition: background-color 0.2s ease, opacity 0.2s ease;
    }
}

/* Floating Elements Restored */
.floating-wa {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 60px;
    height: 60px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4);
    z-index: 999;
}

/* Premium Buttons */
.btn-primary-gradient {
    background: var(--primary-gradient);
    color: white;
    border: none;
    border-radius: var(--radius-lg);
    padding: 16px 24px;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    box-shadow: 0 12px 24px -6px rgba(5, 150, 105, 0.25);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    position: relative;
    overflow: hidden;
}

.btn-primary-gradient::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn-primary-gradient:hover {
    box-shadow: 0 16px 32px -8px rgba(5, 150, 105, 0.35);
    transform: translateY(-2px);
}

.btn-primary-gradient:active {
    transform: scale(0.95);
    box-shadow: 0 6px 12px -4px rgba(5, 150, 105, 0.25);
}

.btn-primary-gradient:hover::before {
    left: 100%;
}

/* Button Icons */
.btn-primary-gradient i {
    width: 18px;
    height: 18px;
}

/* Submit Button */
#submit-donation {
    width: 100%;
    padding: 18px;
    font-size: 16px;
    margin-top: 12px;
}

/* UPI Apps Container Grid */
.upi-apps {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 12px;
}

/* UPI App Buttons */
.upi-app-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--bg-subtle);
    border: 1.5px solid var(--border-subtle);
    padding: 10px 12px;
    border-radius: var(--radius-lg);
    text-decoration: none;
    color: var(--text-main);
    font-weight: 600;
    font-size: 13px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.upi-app-btn:hover {
    background: var(--bg-card);
    border-color: var(--primary);
}

.upi-app-btn:active {
    background: var(--primary-soft);
    transform: scale(0.97);
}

.upi-app-btn img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

/* Extra small viewport adjustment for UPI buttons */
@media (max-width: 350px) {
    .upi-apps {
        gap: 8px;
    }
    .upi-app-btn {
        gap: 6px;
        font-size: 11px;
        padding: 8px 6px;
    }
    .upi-app-btn img {
        width: 20px;
        height: 20px;
    }
}

/* Responsive Payment step layout helpers */
.payment-amount-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border-subtle);
}

.quick-payment-container {
    margin-bottom: 10px;
}

.qr-payment-container {
    border-top: 1px solid var(--border-subtle);
    padding-top: 10px;
}

.other-upi-btn {
    text-decoration: none !important;
    padding: 8px 10px !important;
    width: 100%;
    margin-bottom: 8px;
    border-radius: var(--radius-lg) !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    height: auto !important;
    min-height: unset !important;
}

@media (min-width: 640px) {
    .payment-amount-container {
        margin-bottom: 16px;
        padding-bottom: 12px;
    }

    .quick-payment-container {
        margin-bottom: 16px;
    }

    .qr-payment-container {
        padding-top: 16px;
    }

    .other-upi-btn {
        padding: 10px 12px !important;
        font-size: 13px !important;
    }
}

/* History Section Styling */
.history-section {
    margin-top: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.history-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    padding: 14px 16px;
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.history-item:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.08);
}

.history-item:active {
    transform: scale(0.98);
}

.history-info {
    display: flex;
    align-items: center;
    gap: 14px;
}

.history-icon-wrapper {
    width: 40px;
    height: 40px;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.history-icon-wrapper i {
    width: 20px;
    height: 20px;
    stroke-width: 2.5;
}

.history-details h4 {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-main);
    margin: 0 0 2px 0;
    letter-spacing: -0.3px;
}

.history-meta {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 500;
}

.history-item>i {
    width: 18px;
    height: 18px;
    opacity: 0.4;
}

/* Receipt Actions Responsive */
@media (max-width: 380px) {
    .receipt-actions {
        padding: 12px 0;
    }

    .btn-submit {
        padding: 12px 14px;
        font-size: 13px;
    }

    .receipt-card {
        padding: 12px;
    }

    .amount-text {
        font-size: 20px;
    }
}