/**
 * Ainprokash Donation Tracker (Pro Ultra) - Frontend Stylesheet
 * Responsive, Modern, High-Converting & Clean Design
 */

:root {
    --ap-emerald: #059669;
    --ap-emerald-dark: #064e3b;
    --ap-emerald-light: #ecfdf5;
    --ap-blue: #2563eb;
    --ap-blue-dark: #1e3a8a;
    --ap-gold: #f59e0b;
    --ap-slate-900: #0f172a;
    --ap-slate-700: #334155;
    --ap-slate-500: #64748b;
    --ap-slate-200: #e2e8f0;
    --ap-slate-50: #f8fafc;
}

/* 1. Summary Stats Grid */
.ap-donation-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin: 25px 0 30px;
}

.ap-stat-card {
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid var(--ap-slate-200);
    padding: 20px 18px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.04);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.ap-stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.ap-stat-card.card-target { border-left: 4px solid #8b5cf6; }
.ap-stat-card.card-month { border-left: 4px solid var(--ap-emerald); }
.ap-stat-card.card-alltime { border-left: 4px solid #f59e0b; }
.ap-stat-card.card-donors { border-left: 4px solid var(--ap-blue); }

.stat-card-icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
    background: var(--ap-slate-50);
}

.card-target .stat-card-icon { background: #f3e8ff; }
.card-month .stat-card-icon { background: #d1fae5; }
.card-alltime .stat-card-icon { background: #fef3c7; }
.card-donors .stat-card-icon { background: #dbeafe; }

.stat-card-body {
    display: flex;
    flex-direction: column;
}

.stat-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--ap-slate-500);
    margin-bottom: 4px;
}

.stat-val {
    font-size: 22px;
    font-weight: 800;
    color: var(--ap-slate-900);
    line-height: 1.2;
}

.stat-sub {
    font-size: 12px;
    color: var(--ap-slate-500);
    margin-top: 4px;
}

/* 2. Dynamic Progress Box */
.ap-progress-box {
    background: #ffffff;
    border: 1px solid var(--ap-slate-200);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 30px;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.03);
}

.ap-progress-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 18px;
}

.ap-progress-title {
    margin: 0 0 5px 0;
    font-size: 20px;
    font-weight: 700;
    color: var(--ap-slate-900);
}

.ap-progress-sub {
    margin: 0;
    font-size: 14px;
    color: var(--ap-slate-500);
}

.ap-progress-numbers {
    display: flex;
    align-items: baseline;
    gap: 6px;
    background: var(--ap-slate-50);
    padding: 8px 16px;
    border-radius: 30px;
    border: 1px solid var(--ap-slate-200);
}

.collected-val {
    font-size: 22px;
    font-weight: 800;
    color: var(--ap-emerald);
}

.target-divider {
    font-size: 18px;
    color: var(--ap-slate-500);
}

.target-val {
    font-size: 17px;
    font-weight: 700;
    color: var(--ap-slate-700);
}

.ap-bar-container {
    background: #e2e8f0;
    height: 24px;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.06);
}

.ap-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #10b981 0%, #059669 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 12px;
    color: #ffffff;
    font-weight: 800;
    font-size: 12px;
    transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.4);
}

.ap-progress-milestones {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
    font-size: 12px;
    color: var(--ap-slate-500);
    font-weight: 600;
}

.milestone-item.reached {
    color: var(--ap-emerald);
    font-weight: 700;
}

.ap-progress-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px dashed var(--ap-slate-200);
    font-size: 14px;
    color: var(--ap-slate-700);
}

.ap-days-left strong { color: var(--ap-blue); }
.ap-needed-amt strong { color: #dc2626; }
.ap-goal-achieved { color: var(--ap-emerald); font-weight: 700; }

/* 3. Modern Pure-CSS Live Continuous Ticker */
.ap-live-ticker-wrap {
    display: flex;
    align-items: center;
    background: #0f172a;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 24px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.12);
    border-left: 4px solid var(--ap-emerald);
}

.ap-ticker-badge {
    background: #1e293b;
    color: #f8fafc;
    padding: 12px 18px;
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    z-index: 2;
    border-right: 1px solid #334155;
}

.pulse-dot {
    width: 9px;
    height: 9px;
    background: #10b981;
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    animation: apPulse 1.8s infinite;
}

@keyframes apPulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.ap-ticker-track-container {
    overflow: hidden;
    white-space: nowrap;
    width: 100%;
    position: relative;
}

.ap-ticker-track {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    animation: apTickerScroll 30s linear infinite;
}

.ap-ticker-track:hover {
    animation-play-state: paused;
}

@keyframes apTickerScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.ap-ticker-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    color: #cbd5e1;
    font-size: 13.5px;
    border-right: 1px solid rgba(255,255,255,0.08);
}

.ticker-name { color: #f8fafc; font-weight: 600; }
.ticker-amount { color: #34d399; font-weight: 700; }
.ticker-method {
    background: rgba(255,255,255,0.1);
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11.5px;
    color: #93c5fd;
}
.ticker-date { font-size: 12px; color: #64748b; }

/* 4. Payment Methods Grid */
.ap-payment-methods-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
    margin: 25px 0 35px;
}

.ap-method-card {
    background: #ffffff;
    border-radius: 12px;
    border: 1.5px solid var(--ap-slate-200);
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    transition: all 0.25s ease;
    display: flex;
    flex-direction: column;
}

.ap-method-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

.method-bkash { border-top: 4px solid #e2136e; }
.method-nagad { border-top: 4px solid #f7941d; }
.method-rocket { border-top: 4px solid #8c3494; }
.method-bank { border-top: 4px solid #059669; }

.method-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.method-brand-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 13.5px;
    font-weight: 700;
    color: #ffffff;
}

.bkash-bg { background: #e2136e; }
.nagad-bg { background: #f7941d; }
.rocket-bg { background: #8c3494; }
.bank-bg { background: #059669; }

.method-type {
    font-size: 12px;
    color: var(--ap-slate-500);
    font-weight: 600;
}

.method-card-number-box {
    background: var(--ap-slate-50);
    border: 1px solid var(--ap-slate-200);
    border-radius: 8px;
    padding: 12px 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}

.method-number {
    font-size: 18px;
    font-weight: 800;
    color: var(--ap-slate-900);
    letter-spacing: 0.5px;
}

.ap-copy-btn {
    background: #ffffff;
    border: 1px solid var(--ap-slate-200);
    border-radius: 6px;
    padding: 6px 12px;
    font-size: 12.5px;
    font-weight: 600;
    cursor: pointer;
    color: var(--ap-slate-700);
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: all 0.2s ease;
}

.ap-copy-btn:hover {
    background: var(--ap-emerald);
    color: #ffffff;
    border-color: var(--ap-emerald);
}

.ap-copy-btn.mini {
    padding: 3px 8px;
    font-size: 11px;
}

.ap-copy-btn.copied {
    background: #10b981 !important;
    color: #ffffff !important;
    border-color: #10b981 !important;
}

.method-steps {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 13.5px;
    color: var(--ap-slate-700);
    line-height: 1.6;
}

.method-steps li {
    position: relative;
    padding-left: 18px;
    margin-bottom: 6px;
}

.method-steps li::before {
    content: "•";
    position: absolute;
    left: 4px;
    color: var(--ap-emerald);
    font-weight: bold;
}

/* Bank Details Table */
.bank-details-table {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 13.5px;
}

.bank-row {
    display: flex;
    justify-content: space-between;
    padding-bottom: 6px;
    border-bottom: 1px dashed var(--ap-slate-200);
}

.bank-row:last-child { border-bottom: none; }
.bank-row .b-lbl { color: var(--ap-slate-500); font-weight: 600; }
.bank-row .b-val { color: var(--ap-slate-900); font-weight: 600; text-align: right; }
.bank-row.highlight-acc {
    background: #ecfdf5;
    padding: 8px 10px;
    border-radius: 6px;
    border: 1px solid #a7f3d0;
}

/* 5. Donor Form Container */
.ap-donor-form-container {
    background: #ffffff;
    border: 1.5px solid #a7f3d0;
    border-radius: 14px;
    padding: 28px;
    margin: 35px 0;
    box-shadow: 0 6px 20px rgba(5, 150, 105, 0.08);
}

.ap-donor-form-header {
    text-align: center;
    margin-bottom: 25px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--ap-slate-200);
}

.ap-donor-form-header h3 {
    margin: 0 0 8px 0;
    font-size: 22px;
    color: var(--ap-emerald-dark);
}

.ap-donor-form-header p {
    margin: 0;
    font-size: 14.5px;
    color: var(--ap-slate-500);
    max-width: 650px;
    margin: 0 auto;
}

.ap-quick-amounts {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.ap-amount-pill {
    background: var(--ap-slate-50);
    border: 1px solid var(--ap-slate-200);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    color: var(--ap-slate-700);
    transition: all 0.2s ease;
}

.ap-amount-pill:hover,
.ap-amount-pill.active {
    background: var(--ap-emerald);
    color: #ffffff;
    border-color: var(--ap-emerald);
    box-shadow: 0 2px 8px rgba(5, 150, 105, 0.25);
}

.ap-input-with-symbol {
    position: relative;
    display: flex;
    align-items: center;
}

.currency-symbol {
    position: absolute;
    left: 14px;
    font-size: 18px;
    font-weight: bold;
    color: var(--ap-slate-500);
}

.ap-input-with-symbol input {
    width: 100%;
    padding: 12px 14px 12px 35px !important;
    font-size: 17px !important;
    font-weight: 700 !important;
    border: 2px solid var(--ap-slate-200) !important;
    border-radius: 8px !important;
    outline: none !important;
    box-sizing: border-box !important;
}

.ap-input-with-symbol input:focus {
    border-color: var(--ap-emerald) !important;
    box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.15) !important;
}

.ap-form-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    margin-bottom: 18px;
}

@media (max-width: 768px) {
    .ap-form-grid-2 { 
        grid-template-columns: 1fr;
        gap: 14px;
    }
}

.ap-form-group {
    margin-bottom: 16px;
}

.ap-form-label {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: var(--ap-slate-700);
    margin-bottom: 8px;
    line-height: 1.4;
}

/* Inputs & Form Controls - Bulletproof against Theme Overrides */
.ap-donor-form input:not([type=checkbox]):not([type=radio]),
.ap-form-input {
    width: 100% !important;
    height: 48px !important;
    min-height: 48px !important;
    max-height: 52px !important;
    line-height: 24px !important;
    padding: 11px 14px !important;
    border: 1.5px solid var(--ap-slate-200) !important;
    border-radius: 8px !important;
    font-size: 15px !important;
    font-family: inherit !important;
    color: var(--ap-slate-900) !important;
    background-color: #ffffff !important;
    outline: none !important;
    box-sizing: border-box !important;
    transition: border-color 0.2s, box-shadow 0.2s !important;
}

/* Select Dropdown (Payment Method) */
.ap-donor-form select,
select.ap-form-select,
.ap-form-select {
    width: 100% !important;
    height: 48px !important;
    min-height: 48px !important;
    max-height: 48px !important;
    line-height: 26px !important;
    padding: 10px 40px 10px 14px !important;
    border: 1.5px solid var(--ap-slate-200) !important;
    border-radius: 8px !important;
    font-size: 15px !important;
    font-family: inherit !important;
    font-weight: 500 !important;
    color: var(--ap-slate-900) !important;
    background-color: #ffffff !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23475569' stroke-width='2.2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 14px center !important;
    background-size: 16px 16px !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    outline: none !important;
    box-sizing: border-box !important;
    cursor: pointer !important;
    transition: border-color 0.2s, box-shadow 0.2s !important;
}

select.ap-form-select option,
.ap-donor-form select option {
    padding: 10px 14px !important;
    font-size: 15px !important;
    color: #0f172a !important;
    background: #ffffff !important;
    line-height: 1.6 !important;
}

.ap-donor-form textarea,
.ap-form-textarea {
    width: 100% !important;
    min-height: 95px !important;
    line-height: 1.6 !important;
    padding: 12px 14px !important;
    border: 1.5px solid var(--ap-slate-200) !important;
    border-radius: 8px !important;
    font-size: 15px !important;
    font-family: inherit !important;
    color: var(--ap-slate-900) !important;
    background-color: #ffffff !important;
    outline: none !important;
    box-sizing: border-box !important;
    transition: border-color 0.2s, box-shadow 0.2s !important;
}

.ap-donor-form input:focus,
.ap-donor-form select:focus,
.ap-donor-form textarea:focus,
.ap-form-input:focus,
.ap-form-select:focus,
.ap-form-textarea:focus {
    border-color: var(--ap-emerald) !important;
    box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.15) !important;
}

.ap-checkbox-group {
    background: var(--ap-slate-50);
    border: 1px dashed var(--ap-slate-200);
    border-radius: 8px;
    padding: 12px 16px;
}

.ap-checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--ap-slate-700);
    cursor: pointer;
}

.ap-checkbox-label input {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.ap-form-actions {
    text-align: center;
    margin-top: 22px;
}

.ap-btn-submit-donation {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    color: #ffffff;
    border: none;
    padding: 14px 28px;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(5, 150, 105, 0.35);
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.ap-btn-submit-donation:hover {
    background: linear-gradient(135deg, #047857 0%, #065f46 100%);
    box-shadow: 0 6px 20px rgba(5, 150, 105, 0.45);
    transform: translateY(-2px);
}

.ap-form-feedback {
    margin-top: 18px;
    padding: 14px;
    border-radius: 8px;
    font-size: 14.5px;
    text-align: center;
    font-weight: 600;
}

.ap-form-feedback.success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #6ee7b7;
}

.ap-form-feedback.error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}

/* ==========================================================================
   5. Official Digital Money Receipt & Certificate Voucher
   ========================================================================== */

.ap-receipt-card {
    margin-top: 28px;
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(5, 150, 105, 0.15);
    padding: 20px;
    border: 2px solid #a7f3d0;
    animation: rcptFadeIn 0.35s ease-in-out;
}

@keyframes rcptFadeIn {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: translateY(0); }
}

.ap-receipt-actions-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    padding: 12px 18px;
    border-radius: 10px;
    margin-bottom: 20px;
}

.rcpt-badge-success {
    font-size: 15px;
    font-weight: 700;
    color: #065f46;
}

.rcpt-top-btns {
    display: flex;
    gap: 10px;
}

.btn-print-receipt {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    color: #ffffff;
    border: none;
    padding: 9px 18px;
    border-radius: 8px;
    font-size: 13.5px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 3px 10px rgba(5, 150, 105, 0.3);
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-print-receipt:hover {
    background: linear-gradient(135deg, #047857 0%, #065f46 100%);
    box-shadow: 0 5px 14px rgba(5, 150, 105, 0.4);
    transform: translateY(-1px);
}

.btn-close-receipt {
    background: #ffffff;
    color: #475569;
    border: 1px solid #cbd5e1;
    padding: 9px 16px;
    border-radius: 8px;
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-close-receipt:hover {
    background: #f1f5f9;
    color: #0f172a;
}

/* Printable Official Voucher */
.ap-official-voucher {
    background: #ffffff;
    position: relative;
    overflow: hidden;
}

.voucher-frame {
    border: 3px double #059669;
    border-radius: 12px;
    padding: 28px 30px;
    background: #ffffff;
    position: relative;
}

.voucher-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #059669;
    padding-bottom: 16px;
    margin-bottom: 18px;
    flex-wrap: wrap;
    gap: 15px;
}

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

.v-scale-icon {
    font-size: 38px;
    line-height: 1;
}

.v-org-name {
    margin: 0 0 3px 0;
    font-size: 24px;
    font-weight: 800;
    color: #064e3b;
    letter-spacing: -0.3px;
}

.v-org-en {
    font-size: 16px;
    color: #059669;
    font-weight: 700;
}

.v-org-tagline {
    margin: 0 0 3px 0;
    font-size: 13px;
    color: #475569;
    font-weight: 600;
}

.v-org-url {
    margin: 0;
    font-size: 12px;
    color: #64748b;
}

.voucher-title-badge {
    text-align: right;
}

.voucher-title-badge h3 {
    margin: 0 0 4px 0;
    font-size: 17px;
    font-weight: 800;
    color: #0f172a;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    padding: 6px 14px;
    border-radius: 8px;
    display: inline-block;
}

.v-title-sub {
    display: block;
    font-size: 11px;
    color: #64748b;
    font-weight: 600;
    text-transform: uppercase;
    margin-top: 3px;
}

.voucher-meta-strip {
    display: flex;
    justify-content: space-between;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 10px 18px;
    margin-bottom: 18px;
    font-size: 13.5px;
    flex-wrap: wrap;
    gap: 10px;
}

.v-meta-item {
    display: flex;
    gap: 6px;
    align-items: center;
}

.vm-lbl {
    color: #64748b;
    font-weight: 600;
}

.vm-val {
    color: #0f172a;
    font-weight: 700;
}

.status-badge-pending {
    color: #b45309;
    background: #fef3c7;
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 12px;
    border: 1px solid #fde68a;
}

.voucher-table-box {
    margin-bottom: 18px;
    overflow-x: auto;
}

.voucher-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.voucher-table td {
    padding: 9px 14px;
    border: 1px solid #e2e8f0;
}

.vt-lbl {
    background: #f8fafc;
    color: #475569;
    font-weight: 700;
}

.vt-val {
    color: #0f172a;
}

.vt-donor-name {
    font-size: 15.5px;
    color: #0f172a;
}

.vt-method-pill {
    background: #ecfdf5;
    color: #065f46;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 6px;
    border: 1px solid #a7f3d0;
    display: inline-block;
    font-size: 13px;
}

.vt-trx-code {
    font-family: Consolas, monospace;
    letter-spacing: 0.5px;
    color: #2563eb;
    font-weight: 700;
}

.vt-sector {
    color: #059669;
    font-weight: 700;
}

.voucher-amount-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f0fdf4;
    border: 2px solid #86efac;
    border-radius: 10px;
    padding: 14px 20px;
    margin-bottom: 18px;
    flex-wrap: wrap;
    gap: 12px;
}

.amt-label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: #065f46;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.amt-figure {
    font-size: 28px;
    font-weight: 900;
    color: #059669;
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.taka-symbol {
    font-size: 26px;
    font-weight: 800;
}

.amt-currency {
    font-size: 15px;
    font-weight: 700;
    color: #047857;
    margin-left: 4px;
}

.amount-right {
    text-align: right;
    max-width: 320px;
}

.words-label {
    display: block;
    font-size: 11.5px;
    color: #64748b;
    font-weight: 600;
    margin-bottom: 2px;
}

.words-val {
    font-size: 13px;
    font-weight: 700;
    color: #334155;
}

.voucher-statement {
    background: #fafafa;
    border-left: 3px solid #059669;
    padding: 13px 18px;
    border-radius: 6px;
    font-size: 13px;
    line-height: 1.65;
    color: #334155;
    margin-bottom: 20px;
}

.voucher-statement p {
    margin: 0;
}

.voucher-signatures {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    padding: 6px 10px 16px;
    margin-bottom: 14px;
    flex-wrap: wrap;
    gap: 16px;
}

.v-seal-col {
    text-align: center;
}

.official-seal {
    width: 104px;
    height: 104px;
    border: 3px dashed #059669;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 5px;
    background: rgba(16, 185, 129, 0.04);
}

.seal-inner {
    width: 90px;
    height: 90px;
    border: 1.5px solid #059669;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 8px;
    font-weight: 800;
    color: #065f46;
    line-height: 1.15;
    padding: 4px;
}

.seal-icon {
    font-size: 16px;
    margin: 2px 0;
}

.seal-text-mid {
    font-size: 9px;
    letter-spacing: 1px;
    color: #059669;
    font-weight: 900;
}

.seal-caption {
    font-size: 10.5px;
    color: #059669;
    font-weight: 700;
}

.v-sign-col {
    text-align: center;
    min-width: 200px;
}

.sign-space {
    font-family: "Brush Script MT", "Segoe Script", cursive;
    font-size: 22px;
    color: #1e3a8a;
    margin-bottom: 4px;
    font-weight: bold;
}

.sign-line {
    width: 100%;
    height: 1.5px;
    background: #0f172a;
    margin-bottom: 6px;
}

.sign-title {
    display: block;
    font-size: 12px;
    color: #0f172a;
    font-weight: 700;
}

.sign-org {
    font-size: 10.5px;
    color: #64748b;
}

.voucher-footer {
    border-top: 1px dashed #cbd5e1;
    padding-top: 10px;
    font-size: 11.5px;
    color: #64748b;
    line-height: 1.5;
}

.vf-note {
    margin: 0 0 4px 0;
}

.vf-copy {
    margin: 0;
    text-align: center;
    font-size: 10.5px;
    color: #94a3b8;
}

.ap-receipt-actions-bottom {
    text-align: center;
    margin-top: 22px;
    display: flex;
    justify-content: center;
    gap: 12px;
}

.btn-print-receipt.large {
    padding: 12px 28px;
    font-size: 15px;
    border-radius: 30px;
}

.btn-close-receipt.large {
    padding: 12px 24px;
    font-size: 15px;
    border-radius: 30px;
}

/* ==========================================================================
   CSS Fallback Print Rules (Ctrl + P support)
   ========================================================================== */

@media print {
    html, body {
        background: #ffffff !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    
    header, footer, nav, aside, #masthead, #colophon, .site-header, .site-footer,
    .main-navigation, .entry-header, .ain-donation-hero, .ap-live-ticker-wrap,
    .ain-page-section:not(#confirm-form), .ap-payment-methods-grid, .ap-donor-form,
    .no-print, .ap-toast, #wpadminbar, #comments, .sidebar {
        display: none !important;
        visibility: hidden !important;
    }

    #confirm-form, #apReceiptModal, #apReceiptPrintArea {
        display: block !important;
        visibility: visible !important;
        position: static !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        border: none !important;
        box-shadow: none !important;
    }

    .voucher-frame {
        border: 2px solid #059669 !important;
        padding: 20px !important;
        page-break-inside: avoid !important;
    }
}

/* 6. Donor Wall & Smart Table */
.ap-donor-wall-wrapper {
    background: #ffffff;
    border: 1px solid var(--ap-slate-200);
    border-radius: 14px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.04);
    margin-bottom: 40px;
    overflow: hidden;
}

.ap-wall-header {
    padding: 24px;
    border-bottom: 1px solid var(--ap-slate-200);
    background: #f8fafc;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.ap-wall-title-box h3 {
    margin: 0 0 6px 0;
    font-size: 20px;
    color: var(--ap-slate-900);
}

.ap-wall-title-box p {
    margin: 0;
    font-size: 13.5px;
    color: var(--ap-slate-500);
}

.ap-wall-search-input {
    padding: 10px 16px !important;
    border: 1px solid var(--ap-slate-200) !important;
    border-radius: 20px !important;
    font-size: 14px !important;
    width: 250px;
    outline: none !important;
    background: #ffffff !important;
}

.ap-wall-search-input:focus {
    border-color: var(--ap-emerald) !important;
    box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.15) !important;
}

.ap-wall-tabs {
    display: flex;
    background: #f1f5f9;
    padding: 6px 10px;
    gap: 8px;
    border-bottom: 1px solid var(--ap-slate-200);
    overflow-x: auto;
}

.ap-wall-tab {
    background: none;
    border: none;
    padding: 9px 18px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--ap-slate-700);
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.ap-wall-tab:hover {
    background: #ffffff;
    color: var(--ap-emerald);
}

.ap-wall-tab.active {
    background: #ffffff;
    color: var(--ap-emerald);
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}

.ap-table-responsive {
    overflow-x: auto;
}

.ap-smart-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 14.5px;
}

.ap-smart-table th {
    background: #ffffff;
    padding: 14px 20px;
    font-size: 12.5px;
    text-transform: uppercase;
    color: var(--ap-slate-500);
    font-weight: 700;
    border-bottom: 2px solid var(--ap-slate-200);
}

.ap-smart-table td {
    padding: 14px 20px;
    border-bottom: 1px solid #f1f5f9;
    color: var(--ap-slate-700);
    vertical-align: middle;
}

.ap-smart-table tr:hover {
    background: #f8fafc;
}

.ap-donor-flex {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ap-avatar-circle {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: #ffffff;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    flex-shrink: 0;
}

.ap-avatar-circle.anon {
    background: #cbd5e1;
    color: #475569;
}

.d-name {
    display: block;
    color: var(--ap-slate-900);
    font-size: 15px;
}

.d-sub-anon {
    font-size: 12px;
    color: #94a3b8;
}

.ap-amt-cell {
    font-weight: 800;
    color: var(--ap-emerald);
    font-size: 16px;
}

.ap-amt-cell.highlight {
    font-size: 17px;
    color: #047857;
}

.ap-badge-pill {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11.5px;
    font-weight: 700;
    display: inline-block;
}

.method-bikash, .method-bKash { background: #fce7f3; color: #be185d; }
.method-nagad, .method-Nagad { background: #fef3c7; color: #b45309; }
.method-rocket, .method-Rocket { background: #f3e8ff; color: #6b21a8; }
.method-bank, .method-brac-bank { background: #d1fae5; color: #047857; }

.ap-tier-badge {
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 700;
}

.tier-platinum { background: #ede9fe; color: #6d28d9; border: 1px solid #ddd6fe; }
.tier-gold { background: #fef3c7; color: #b45309; border: 1px solid #fde68a; }
.tier-silver { background: #f1f5f9; color: #475569; border: 1px solid #e2e8f0; }
.tier-general { background: #ecfdf5; color: #065f46; }

.rank-circle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    font-size: 16px;
    font-weight: bold;
}

/* 7. Chart Section */
.ap-chart-wrapper {
    background: #ffffff;
    border: 1px solid var(--ap-slate-200);
    border-radius: 12px;
    padding: 22px;
    margin-bottom: 30px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
}

.ap-chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 20px;
}

.chart-title {
    margin: 0 0 4px 0;
    font-size: 18px;
    color: var(--ap-slate-900);
}

.chart-subtitle {
    margin: 0;
    font-size: 13.5px;
    color: var(--ap-slate-500);
}

.chart-legend-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--ap-slate-700);
    font-weight: 600;
}

.badge-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.dot-green { background: var(--ap-emerald); }

/* Global Toast Notification for Clipboard */
.ap-toast {
    position: fixed;
    bottom: 25px;
    right: 25px;
    background: #0f172a;
    color: #ffffff;
    padding: 12px 22px;
    border-radius: 30px;
    font-size: 14.5px;
    font-weight: 600;
    box-shadow: 0 8px 24px rgba(0,0,0,0.25);
    z-index: 99999;
    display: flex;
    align-items: center;
    gap: 8px;
    animation: toastSlideUp 0.3s ease;
}

@keyframes toastSlideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   8. Premium Page Layout Styles (/donation/ Page ID: 1144)
   ========================================================================== */

.ain-donation-page-wrapper {
    max-width: 1120px;
    margin: 0 auto;
    padding: 10px 15px 40px;
    font-family: inherit;
    color: #1e293b;
    line-height: 1.65;
}

/* Hero Section */
.ain-donation-hero {
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
    border: 1px solid var(--ap-slate-200);
    border-radius: 16px;
    padding: 42px 28px 36px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.04);
    margin-bottom: 28px;
    position: relative;
    overflow: hidden;
}

.ain-donation-hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #10b981 0%, #3b82f6 50%, #f59e0b 100%);
}

.ain-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
    padding: 6px 16px;
    border-radius: 30px;
    font-size: 13.5px;
    font-weight: 700;
    margin-bottom: 16px;
}

.ain-hero-title {
    font-size: 32px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.35;
    margin: 0 0 16px 0;
    letter-spacing: -0.3px;
}

@media (max-width: 768px) {
    .ain-hero-title { font-size: 24px; }
}

.ain-hero-desc {
    font-size: 16px;
    color: #475569;
    max-width: 820px;
    margin: 0 auto 24px;
    line-height: 1.7;
}

.ain-hero-trust-badges {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 26px;
}

.ain-trust-badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #ffffff;
    border: 1px solid var(--ap-slate-200);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    color: #334155;
    box-shadow: 0 1px 3px rgba(0,0,0,0.03);
}

.ain-hero-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 14px;
}

.ain-btn-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 28px;
    border-radius: 30px;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
}

.ain-btn-cta.primary {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(5, 150, 105, 0.35);
}

.ain-btn-cta.primary:hover {
    background: linear-gradient(135deg, #047857 0%, #065f46 100%);
    box-shadow: 0 6px 20px rgba(5, 150, 105, 0.45);
    transform: translateY(-2px);
    color: #ffffff;
}

.ain-btn-cta.secondary {
    background: #ffffff;
    color: #1e293b;
    border: 1.5px solid var(--ap-slate-200);
}

.ain-btn-cta.secondary:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
    transform: translateY(-2px);
    color: #0f172a;
}

/* General Page Section Card */
.ain-page-section {
    background: #ffffff;
    border: 1px solid var(--ap-slate-200);
    border-radius: 14px;
    padding: 32px 28px;
    margin-bottom: 30px;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.03);
}

.ain-section-head {
    text-align: center;
    margin-bottom: 26px;
}

.ain-section-title {
    font-size: 22px;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 8px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.ain-section-subtitle {
    font-size: 14.5px;
    color: #64748b;
    max-width: 680px;
    margin: 0 auto;
}

/* Transparency & Allocation Grid */
.ain-transparency-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 16px;
    margin-top: 15px;
}

.ain-alloc-card {
    background: #f8fafc;
    border: 1px solid var(--ap-slate-200);
    border-radius: 12px;
    padding: 22px 18px;
    transition: all 0.25s ease;
    display: flex;
    flex-direction: column;
}

.ain-alloc-card:hover {
    transform: translateY(-4px);
    border-color: #10b981;
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.1);
    background: #ffffff;
}

.ain-alloc-pct {
    font-size: 26px;
    font-weight: 800;
    color: #059669;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.ain-alloc-icon {
    font-size: 26px;
}

.ain-alloc-title {
    font-size: 16px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 8px 0;
}

.ain-alloc-desc {
    font-size: 13.5px;
    color: #475569;
    line-height: 1.55;
    margin: 0;
}

.ain-alloc-trust-note {
    background: #ecfdf5;
    border-left: 4px solid #059669;
    border-radius: 8px;
    padding: 14px 18px;
    margin-top: 22px;
    font-size: 14px;
    color: #065f46;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Donor Tiers Grid */
.ain-tiers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 18px;
    margin-top: 20px;
}

.ain-tier-card {
    background: #ffffff;
    border: 1.5px solid var(--ap-slate-200);
    border-radius: 12px;
    padding: 24px 20px;
    display: flex;
    flex-direction: column;
    transition: all 0.25s ease;
}

.ain-tier-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.08);
}

.ain-tier-card.tier-1 { border-top: 4px solid #10b981; }
.ain-tier-card.tier-2 { border-top: 4px solid #3b82f6; }
.ain-tier-card.tier-3 { border-top: 4px solid #f59e0b; }
.ain-tier-card.tier-4 { border-top: 4px solid #8b5cf6; }

.ain-tier-badge {
    font-size: 28px;
    margin-bottom: 10px;
}

.ain-tier-name {
    font-size: 18px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 4px 0;
}

.ain-tier-amount-range {
    display: inline-block;
    font-size: 13.5px;
    font-weight: 700;
    color: #059669;
    background: #ecfdf5;
    padding: 3px 10px;
    border-radius: 16px;
    margin-bottom: 14px;
    align-self: flex-start;
}

.ain-tier-benefits {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 13.5px;
    color: #475569;
}

.ain-tier-benefits li {
    position: relative;
    padding-left: 18px;
    margin-bottom: 8px;
    line-height: 1.5;
}

.ain-tier-benefits li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #059669;
    font-weight: bold;
}

/* Modern FAQ Details Accordion */
.ain-faq-accordion {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 15px;
}

.ain-faq-item {
    background: #f8fafc;
    border: 1px solid var(--ap-slate-200);
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.2s ease;
}

.ain-faq-item[open] {
    background: #ffffff;
    border-color: #a7f3d0;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.08);
}

.ain-faq-question {
    padding: 16px 20px;
    font-size: 15.5px;
    font-weight: 700;
    color: #0f172a;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
}

.ain-faq-question::-webkit-details-marker {
    display: none;
}

.ain-faq-question::after {
    content: "+";
    font-size: 20px;
    font-weight: bold;
    color: #059669;
    transition: transform 0.2s ease;
}

.ain-faq-item[open] .ain-faq-question::after {
    content: "−";
    color: #dc2626;
}

.ain-faq-answer {
    padding: 0 20px 18px;
    font-size: 14.5px;
    color: #475569;
    line-height: 1.65;
    margin: 0;
    border-top: 1px dashed var(--ap-slate-200);
    padding-top: 14px;
}

/* Final Call To Action Banner */
.ain-final-cta-banner {
    background: linear-gradient(135deg, #064e3b 0%, #0f172a 100%);
    border-radius: 16px;
    padding: 44px 30px;
    text-align: center;
    color: #ffffff;
    box-shadow: 0 8px 30px rgba(6, 78, 59, 0.25);
    margin-top: 40px;
}

.ain-final-cta-banner h2 {
    font-size: 26px;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 12px 0;
}

.ain-final-cta-banner p {
    font-size: 16px;
    color: #cbd5e1;
    max-width: 680px;
    margin: 0 auto 24px;
    line-height: 1.65;
}

.ain-btn-final-donate {
    background: #10b981;
    color: #ffffff !important;
    padding: 14px 36px;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 800;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.4);
    transition: all 0.2s ease;
}

.ain-btn-final-donate:hover {
    background: #059669;
    transform: translateY(-2px);
    box-shadow: 0 6px 22px rgba(16, 185, 129, 0.55);
    color: #ffffff !important;
}

