@font-face {
    font-family: 'GoogleSans';
    src: url('../../fonts/GoogleSans-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'GoogleSans';
    src: url('../../fonts/GoogleSans-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
}

@font-face {
    font-family: 'GoogleSans';
    src: url('../../fonts/GoogleSans-Bold.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
}

:root {
    --primary: #4481EB;
    --secondary: #04BEFE;
    --accent: #FFD700;
    --dark: #111827;
    --light: #F4F7FE;
    --white: #FFFFFF;
    --gray-50: #F9FAFB;
    --gray-100: #F3F4F6;
    --gray-200: #E5E7EB;
    --gray-300: #D1D5DB;
    --gray-400: #9CA3AF;
    --gray-500: #6B7280;
    --success: #22C55E;
    --warning: #F59E0B;
    --danger: #EF4444;
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-premium: 0 20px 25px -5px rgba(68, 129, 235, 0.15), 0 10px 10px -5px rgba(68, 129, 235, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'GoogleSans', sans-serif;
    background-color: var(--light);
    color: var(--dark);
    line-height: 1.5;
    overflow-x: hidden;
}

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

header {
    padding: 24px 0;
}

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

.logo-circle {
    width: 40px;
    height: 40px;
    background: #fff; /* fallback instead of var if not defined */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden; /* important */
    border: 1px solid rgba(255, 255, 255, 0.25);
}

.logo-image {
    width: 100%;
    height: 100%;
    object-fit: cover;   /* 🔥 change from contain to cover */
    border-radius: 50%;  /* ensure image itself is rounded */
}
.logo-text h1 {
    font-size: 18px;
    font-weight: bold;
    color: #0f172a;
}

.logo-text p {
    font-size: 12px;
    color: var(--gray-500);
}

/* Slider Style */
.slider-container {
    position: relative;
    width: 100%;
    height: 200px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 24px;
    border: 1px solid var(--gray-200);
}

.slider {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
}

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

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slider-dots {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}

.dot {
    width: 6px;
    height: 6px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    transition: all 0.3s;
}

.dot.active {
    width: 20px;
    background: var(--white);
    border-radius: 10px;
}

/* Stats Card */
.stats-card {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: var(--radius-xl);
    padding: 32px 24px;
    color: var(--white);
    text-align: center;
    position: relative;
    overflow: hidden;
    margin-bottom: 24px;
    box-shadow: var(--shadow-premium);
}

.stats-card::before {
    content: '';
    position: absolute;
    width: 150px;
    height: 150px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    top: -50px;
    right: -50px;
}

.stats-card::after {
    content: '';
    position: absolute;
    width: 100px;
    height: 100px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    bottom: -30px;
    left: -20px;
}

.stats-label {
    font-size: 14px;
    font-weight: 500;
    opacity: 0.9;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stats-value {
    font-size: 40px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* Donate Button */
.btn-donate {
    width: 100%;
    background: linear-gradient(to bottom, #5BBAF9, #2D8DEC, #005BEA);
    color: var(--white);
    border: none;
    padding: 20px;
    border-radius: 50px;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(45, 141, 236, 0.3);
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 32px;
}

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

/* Action Tiles */
.action-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 14px;
}

.quick-row {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
}

.action-tile {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 14px 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    color: var(--dark);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-100);
    transition: all 0.2s;
}

.action-tile:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.tile-icon {
    width: 36px;
    height: 36px;
    background: var(--gray-100);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-600);
}

.tile-label {
    font-size: 12px;
    font-weight: 600;
}

.footer-links-mini {
    text-align: center;
    margin-bottom: 32px;
    color: var(--gray-500);
    font-size: 12px;
}

.footer-links-mini a {
    color: var(--gray-500);
    text-decoration: none;
    margin: 0 6px;
}

.footer-links-mini a:hover {
    color: var(--primary);
    text-decoration: underline;
}

.footer-copy {
    margin-top: 8px;
    font-size: 11px;
    color: var(--gray-400);
}

.profile-card {
    background: var(--white);
    border: 1px solid var(--gray-100);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    padding: 16px;
    margin-bottom: 16px;
}

.mobile-search-row {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 10px;
    margin-top: 4px;
}

.btn-mobile-search {
    border: none;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--white);
    font-weight: 700;
    border-radius: 14px;
    padding: 0 18px;
    cursor: pointer;
    min-height: 48px;
}

#receipt-mobile,
#receipt-amount-search {
    min-height: 48px;
}

#receipt-mobile:focus,
#receipt-amount-search:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.14);
}

@media (max-width: 520px) {
    .mobile-search-row {
        grid-template-columns: 1fr;
    }

    .btn-mobile-search {
        width: 100%;
    }
}

.profile-note {
    margin-top: 10px;
    font-size: 12px;
    color: var(--gray-500);
}

.empty-state {
    text-align: center;
    padding: 24px 12px;
    color: #64748b;
    font-size: 13px;
}

/* Modal Style */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: flex-end;
    justify-content: center;
    z-index: 100;
}

.modal-content {
    width: 100%;
    max-width: 500px;
    background: var(--white);
    border-top-left-radius: var(--radius-xl);
    border-top-right-radius: var(--radius-xl);
    padding: 24px;
    padding-bottom: 40px;
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

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

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.modal-title h2 {
    font-size: 20px;
    font-weight: bold;
}

.modal-title p {
    font-size: 12px;
    color: var(--gray-500);
}

.close-btn {
    width: 36px;
    height: 36px;
    background: var(--gray-50);
    border: 1px solid var(--gray-100);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

/* Form Styling */
.form-group {
    margin-bottom: 16px;
}

label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--gray-600);
    margin-bottom: 6px;
    margin-left: 4px;
}

input {
    width: 100%;
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    padding: 14px 16px;
    font-size: 15px;
    font-family: inherit;
    color: var(--dark);
    transition: all 0.2s;
}

input:focus {
    outline: none;
    border-color: var(--primary);
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(68, 129, 235, 0.1);
}

.preset-amounts {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}

.preset-btn {
    flex: 1;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    padding: 12px 0;
    font-weight: bold;
    font-size: 14px;
    color: var(--gray-500);
    cursor: pointer;
    transition: all 0.2s;
}

.preset-btn.active {
    background: rgba(68, 129, 235, 0.05);
    border-color: #A3BFFA;
    color: var(--primary);
}

.btn-submit {
    width: 100%;
    background: linear-gradient(to bottom, var(--primary), var(--secondary));
    color: var(--white);
    border: none;
    padding: 16px;
    border-radius: var(--radius-md);
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    margin-top: 8px;
    transition: opacity 0.3s;
}

.btn-submit:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Payment Step Style */
.payment-step {
    text-align: center;
    display: none;
}

.receipt-premium .receipt-hero {
    margin: 6px 0 18px;
}

.receipt-premium .receipt-ok {
    width: 72px;
    height: 72px;
    background: #DCFCE7;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 18px;
    box-shadow: 0 8px 20px rgba(34, 197, 94, 0.22);
}

.receipt-premium .receipt-ok i {
    color: #22C55E;
    width: 40px;
    height: 40px;
    stroke-width: 3;
}

.receipt-premium .receipt-hero h2 {
    font-size: 32px;
    line-height: 1.1;
    margin-bottom: 8px;
    color: #0F172A;
}

.receipt-premium .receipt-hero p {
    color: #64748B;
    font-size: 14px;
}

.receipt-card {
    text-align: left;
    background: linear-gradient(180deg, #ffffff, #f8fbff);
    border: 1px solid #dbe8f9;
    border-radius: 20px;
    padding: 18px 16px;
    margin-bottom: 18px;
}

.receipt-group {
    padding-top: 12px;
    margin-top: 12px;
    border-top: 1px dashed #d7e2f1;
}

.receipt-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    margin-bottom: 10px;
}

.receipt-row:last-child {
    margin-bottom: 0;
}

.receipt-row span:first-child {
    color: #64748b;
    font-size: 13px;
    min-width: 110px;
}

.receipt-row span:last-child:not(.status-chip) {
    color: #0f172a;
    font-size: 13px;
    font-weight: 700;
    text-align: right;
    flex: 1;
    word-break: break-word;
}

.receipt-amount-row .amount-text {
    color: var(--success);
    font-size: 24px;
    font-weight: 800;
}

.status-chip {
    display: inline-flex;
    background: #22C55E;
    color: #fff !important;
    border-radius: 999px;
    padding: 3px 12px;
    font-size: 11px !important;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
    flex: 0 0 auto;
}

.receipt-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.receipt-home-btn {
    background: #0f172a;
    flex: 1.7;
}

.receipt-download-btn {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    flex: 1.3;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.receipt-print-btn {
    flex: 0 0 56px;
    background: var(--white);
    color: var(--dark);
    border: 1px solid var(--gray-200);
    padding: 0;
}

.qr-container {
    padding: 16px;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-100);
    display: inline-block;
    margin: 20px 0;
}

#qrcode img {
    display: block;
}

.timer-badge {
    background: #FFFBEB;
    border: 1px solid #FEF3C7;
    color: #B45309;
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
}

.upi-apps {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin: 24px 0;
}

.upi-app-btn {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    padding: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: bold;
    font-size: 14px;
    color: #374151;
    cursor: pointer;
    text-decoration: none;
}

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

.btn-verify {
    width: 100%;
    background: var(--white);
    border: 1px solid var(--gray-300);
    padding: 16px;
    border-radius: var(--radius-md);
    font-weight: bold;
    color: var(--gray-500);
    cursor: pointer;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.footer-brand {
    font-size: 11px;
    color: var(--gray-400);
    margin-top: 16px;
}

/* History Styles */
.history-section {
    padding-bottom: 24px;
}

.history-item {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 16px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 1px solid var(--gray-100);
    box-shadow: var(--shadow-sm);
}

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

.history-icon {
    width: 40px;
    height: 40px;
    background: #EBF5FF;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #3B82F6;
}

.history-details h4 {
    font-size: 14px;
    font-weight: bold;
    color: #1F2937;
}

.history-details p {
    font-size: 11px;
    color: var(--gray-400);
}

.history-amount {
    font-weight: bold;
    color: var(--success);
    font-size: 15px;
}

/* Animations */
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.hidden {
    display: none !important;
}
