/* ============================================================
   Questo – Medical Donations | Premium Redesign
   Design: Dark Navy with Healing Teal & Golden Yellow
   Matches site-wide aesthetic (header, home, quizzes, citation)
   ============================================================ */
* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    font-family: "Inter", sans-serif;
}

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

/* ── Design Tokens ── */
:root {
    /* Core backgrounds – matching site-wide header.css / home.css */
    --don-bg-deep: #020617;
    --don-bg-body: #0b1120;
    --don-bg-card: rgba(15, 23, 42, 0.72);
    --don-bg-card-solid: #0f172a;
    --don-bg-elevated: rgba(20, 30, 55, 0.65);
    --don-bg-input: rgba(10, 16, 30, 0.85);

    /* Borders */
    --don-border: rgba(255, 255, 255, 0.08);
    --don-border-hover: rgba(255, 255, 255, 0.18);
    --don-border-accent: rgba(13, 148, 136, 0.25);

    /* Primary Accent: Healing Teal (site-wide --accent) */
    --don-teal: #0d9488;
    --don-teal-hover: #0f766e;
    --don-teal-glow: rgba(13, 148, 136, 0.12);
    --don-teal-bright: #2dd4bf;
    --don-teal-strong: rgba(13, 148, 136, 0.25);

    /* Secondary: Golden Yellow (matches quiz --secondary) */
    --don-amber: #f9df7b;
    --don-amber-hover: #f5d462;
    --don-amber-glow: rgba(249, 223, 123, 0.10);
    --don-amber-strong: rgba(249, 223, 123, 0.20);

    /* Danger / Critical */
    --don-danger: #ef4444;
    --don-danger-glow: rgba(239, 68, 68, 0.12);

    /* Text */
    --don-text-white: #f1f5f9;
    --don-text-primary: #e2e8f0;
    --don-text-secondary: #94a3b8;
    --don-text-muted: #64748b;

    /* Shadows */
    --don-shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.25);
    --don-shadow-md: 0 4px 24px rgba(0, 0, 0, 0.4), 0 0 1px rgba(255, 255, 255, 0.05);
    --don-shadow-lg: 0 12px 48px rgba(0, 0, 0, 0.55), 0 0 32px rgba(13, 148, 136, 0.04);
    --don-shadow-glow: 0 0 40px rgba(13, 148, 136, 0.08);

    /* Glass */
    --don-glass-blur: blur(16px);
    --don-glass-saturate: saturate(180%);

    /* Radii */
    --don-radius-sm: 10px;
    --don-radius-md: 16px;
    --don-radius-lg: 24px;
    --don-radius-xl: 32px;
    --don-radius-full: 50px;

    /* Transitions */
    --don-ease: cubic-bezier(0.16, 1, 0.3, 1);
}


/* ── Base ── */
.donations-page {
    background-color: var(--don-bg-deep);
    background-image:
        radial-gradient(ellipse at 15% 0%, rgba(13, 148, 136, 0.05) 0%, transparent 50%),
        radial-gradient(ellipse at 85% 100%, rgba(249, 223, 123, 0.03) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(15, 23, 42, 0.6) 0%, transparent 100%);
    color: var(--don-text-primary);
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    min-height: 100vh;
    padding-top: 90px;
    padding-bottom: 6rem;
    position: relative;
    overflow-x: hidden;
}

/* Subtle noise texture overlay */
.donations-page::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.015'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 0;
}

.donations-page>* {
    position: relative;
    z-index: 1;
}

/* Container */
.donations-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Custom Scrollbar */
.donations-page ::-webkit-scrollbar {
    width: 6px;
}

.donations-page ::-webkit-scrollbar-track {
    background: transparent;
}

.donations-page ::-webkit-scrollbar-thumb {
    background: rgba(13, 148, 136, 0.25);
    border-radius: 3px;
}

.donations-page ::-webkit-scrollbar-thumb:hover {
    background: rgba(13, 148, 136, 0.45);
}


/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes heartbeat-soft {

    0%,
    100% {
        transform: scale(1);
    }

    14% {
        transform: scale(1.08);
    }

    28% {
        transform: scale(1);
    }

    42% {
        transform: scale(1.05);
    }

    56% {
        transform: scale(1);
    }
}

@keyframes float-glow {

    0%,
    100% {
        opacity: 0.5;
        transform: translateY(0) scale(1);
    }

    50% {
        opacity: 1;
        transform: translateY(-8px) scale(1.1);
    }
}

@keyframes shimmer {
    0% {
        background-position: -200% center;
    }

    100% {
        background-position: 200% center;
    }
}

@keyframes fade-up {
    from {
        opacity: 0;
        transform: translateY(24px);
    }

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

@keyframes pulse-ring {
    0% {
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.35);
    }

    70% {
        box-shadow: 0 0 0 12px rgba(239, 68, 68, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
    }
}

@keyframes progress-glow {

    0%,
    100% {
        filter: drop-shadow(0 0 4px rgba(13, 148, 136, 0.4));
    }

    50% {
        filter: drop-shadow(0 0 12px rgba(13, 148, 136, 0.7));
    }
}

@keyframes gradient-shift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.heart-pulse {
    display: inline-block;
    animation: heartbeat-soft 2.5s infinite ease-in-out;
}

.fade-up {
    animation: fade-up 0.6s var(--don-ease) both;
}


/* ============================================================
   HERO SECTION – Premium Gradient Banner
   ============================================================ */
.donations-hero {
    position: relative;
    padding: 4rem 3rem 3.5rem;
    margin-bottom: 3rem;
    border-radius: var(--don-radius-xl);
    overflow: hidden;
    text-align: center;

    /* Multi-layer glass background - matching Academic Library */
    background: linear-gradient(135deg, #0f172a 0%, #0c1a2e 40%, #132f4c 100%);
    border: 1px solid var(--don-border);
    box-shadow: var(--don-shadow-lg), var(--don-shadow-glow);
    backdrop-filter: var(--don-glass-blur);
    -webkit-backdrop-filter: var(--don-glass-blur);
}

/* Warm radial glow */
.donations-hero::before {
    content: '';
    position: absolute;
    top: -40%;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 400px;
    background: radial-gradient(ellipse, rgba(249, 223, 123, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

/* Bottom gold accent line */
.donations-hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 10%;
    right: 10%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #f9df7b, #e8d05f, transparent);
    opacity: 0.5;
}

.donations-hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 1.25rem;
    border-radius: var(--don-radius-full);
    background: rgba(249, 223, 123, 0.12);
    border: 1px solid rgba(249, 223, 123, 0.25);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #f9df7b;
    margin-bottom: 1.75rem;
    box-shadow: 0 0 20px rgba(249, 223, 123, 0.15);
    animation: fade-up 0.5s var(--don-ease) both;
}

.donations-hero-tag i {
    font-size: 0.95rem;
}

.donations-hero h1 {
    font-size: clamp(2rem, 5vw, 3.25rem);
    font-weight: 900;
    line-height: 1.15;
    margin-bottom: 1rem;
    letter-spacing: -1.5px;
    color: #ffffff;
    animation: fade-up 0.6s var(--don-ease) 0.1s both;
}

.donations-hero p {
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 2.5rem;
    color: var(--don-text-secondary);
    line-height: 1.75;
    animation: fade-up 0.6s var(--don-ease) 0.2s both;
}

/* Hero Stats Row */
.donations-hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-bottom: 2rem;
    animation: fade-up 0.6s var(--don-ease) 0.25s both;
}

.donations-hero-stat {
    text-align: center;
}

.donations-hero-stat .stat-value {
    font-size: 2rem;
    font-weight: 900;
    color: #f9df7b;
    letter-spacing: -1px;
    line-height: 1;
}

.donations-hero-stat .stat-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--don-text-muted);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-top: 0.4rem;
}


/* ============================================================
   BUTTONS
   ============================================================ */
.don-btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    background: linear-gradient(135deg, #f9df7b 0%, #e8d05f 100%);
    color: #020617 !important;
    padding: 0.85rem 2rem;
    border-radius: var(--don-radius-sm);
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.3px;
    transition: all 0.3s var(--don-ease);
    box-shadow: none !important;
    border: none;
    cursor: pointer;
    text-decoration: none !important;
}

.don-btn-primary:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: none !important;
    background: linear-gradient(135deg, #fff0aa 0%, #f9df7b 100%);
}

.don-btn-primary:active {
    transform: translateY(0);
}

/* Gold variant for donate actions */
.don-btn-donate {
    background: linear-gradient(135deg, #f9df7b 0%, #e8d05f 100%);
    color: #020617 !important;
    box-shadow: none !important;
    border: none;
    font-weight: 700;
}

.don-btn-donate:hover {
    box-shadow: none !important;
    background: linear-gradient(135deg, #fff0aa 0%, #f9df7b 100%);
}

.don-btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.04);
    color: var(--don-text-primary) !important;
    padding: 0.85rem 1.5rem;
    border-radius: var(--don-radius-sm);
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.25s ease;
    border: 1px solid var(--don-border);
    cursor: pointer;
    text-decoration: none !important;
}

.don-btn-secondary:hover {
    background: rgba(249, 223, 123, 0.1);
    border-color: #f9df7b;
    color: #f9df7b !important;
}

/* Small pill-style button */
.don-btn-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 1rem;
    border-radius: var(--don-radius-full);
    font-size: 0.8rem;
    font-weight: 700;
    border: 1px solid #f9df7b;
    background: linear-gradient(135deg, #f9df7b 0%, #e8d05f 100%);
    color: #020617 !important;
    cursor: pointer;
    text-decoration: none !important;
    transition: all 0.25s ease;
    box-shadow: none !important;
}

.don-btn-pill:hover {
    border-color: #f9df7b;
    color: #020617 !important;
    background: linear-gradient(135deg, #fff0aa 0%, #f9df7b 100%);
    transform: translateY(-2px);
    box-shadow: none !important;
}


/* ============================================================
   TOOLBAR & FILTERS
   ============================================================ */
.donations-toolbar {
    background: var(--don-bg-card);
    border: 1px solid var(--don-border);
    border-radius: var(--don-radius-lg);
    padding: 1.25rem 1.5rem;
    margin-bottom: 1.75rem;
    box-shadow: var(--don-shadow-sm);
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
    backdrop-filter: var(--don-glass-blur);
    -webkit-backdrop-filter: var(--don-glass-blur);
}

.donations-search-wrap {
    flex: 1 1 280px;
    position: relative;
}

.donations-search-input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 2.75rem;
    border-radius: var(--don-radius-sm);
    background-color: var(--don-bg-input);
    border: 1px solid var(--don-border);
    color: var(--don-text-primary);
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.25s ease;
}

.donations-search-input:focus {
    outline: none;
    border-color: #f9df7b;
    box-shadow: 0 0 16px rgba(249, 223, 123, 0.2);
    background-color: rgba(15, 20, 35, 0.95);
}

.donations-search-input::placeholder {
    color: var(--don-text-muted);
}

.donations-search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--don-text-muted);
    font-size: 0.9rem;
}

/* Selects */
.donations-select-wrap {
    position: relative;
    flex: 0 1 200px;
}

.donations-select {
    width: 100%;
    appearance: none;
    -webkit-appearance: none;
    padding: 0.75rem 2.25rem 0.75rem 1rem;
    border-radius: var(--don-radius-sm);
    background-color: var(--don-bg-input);
    border: 1px solid var(--don-border);
    color: var(--don-text-primary);
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.25s ease;
    cursor: pointer;
}

.donations-select:focus {
    outline: none;
    border-color: #f9df7b;
    box-shadow: 0 0 16px rgba(249, 223, 123, 0.2);
}

.donations-select option {
    background: var(--don-bg-card-solid);
    color: var(--don-text-primary);
}

.donations-select-wrap::after {
    content: '\f078';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #f9df7b;
    pointer-events: none;
    font-size: 0.75rem;
}


/* ============================================================
   CATEGORY QUICK TABS
   ============================================================ */
.donations-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-bottom: 2.5rem;
    justify-content: center;
}

.donations-tab {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.35rem;
    border-radius: var(--don-radius-full);
    background-color: rgba(15, 23, 42, 0.5);
    border: 1px solid var(--don-border);
    color: var(--don-text-secondary);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s var(--don-ease);
    text-decoration: none;
}

.donations-tab:hover {
    color: var(--don-text-white);
    border-color: rgba(249, 223, 123, 0.35);
    background-color: rgba(249, 223, 123, 0.08);
    transform: translateY(-1px);
}

.donations-tab.active {
    color: #020617 !important;
    background: linear-gradient(135deg, #f9df7b 0%, #e8d05f 100%);
    border-color: transparent;
    box-shadow: none !important;
    font-weight: 700;
}


/* ============================================================
   CASES GRID
   ============================================================ */
.donations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 2rem;
}

@media (max-width: 480px) {
    .donations-grid {
        grid-template-columns: 1fr;
    }
}


/* ============================================================
   CASE CARD – Premium Glass
   ============================================================ */
.don-card {
    background: var(--don-bg-card);
    border: 1px solid var(--don-border);
    border-radius: var(--don-radius-lg);
    overflow: hidden;
    box-shadow: var(--don-shadow-md);
    transition: all 0.4s var(--don-ease);
    display: flex;
    flex-direction: column;
    height: 100%;
    backdrop-filter: var(--don-glass-blur);
    -webkit-backdrop-filter: var(--don-glass-blur);
    position: relative;
}

.don-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #f9df7b, #fbbf24);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.don-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5), 0 0 24px rgba(249, 223, 123, 0.1);
    border-color: rgba(249, 223, 123, 0.35);
}

.don-card:hover::before {
    opacity: 1;
}

/* Card Header */
.don-card-header {
    padding: 1.5rem 1.75rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.don-card-category {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Urgency Badges */
.don-urgency-badge {
    padding: 0.35rem 0.85rem;
    border-radius: var(--don-radius-full);
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.don-urgency-badge.critical {
    background-color: var(--don-danger-glow);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #fca5a5;
    animation: pulse-ring 2s infinite;
}

.don-urgency-badge.high {
    background-color: rgba(249, 115, 22, 0.12);
    border: 1px solid rgba(249, 115, 22, 0.25);
    color: #fed7aa;
}

.don-urgency-badge.medium {
    background-color: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    color: #bfdbfe;
}

/* Card Body */
.don-card-body {
    padding: 1.5rem 1.75rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.don-card-title {
    font-size: 1.2rem;
    font-weight: 800;
    line-height: 1.35;
    margin-bottom: 0.75rem;
    color: var(--don-text-white);
    letter-spacing: -0.3px;
}

.don-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    font-size: 0.8rem;
    color: var(--don-text-secondary);
    margin-bottom: 1rem;
}

.don-card-meta span {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.don-card-meta span i {
    color: var(--don-teal);
    font-size: 0.75rem;
}

.don-card-desc {
    font-size: 0.9rem;
    line-height: 1.65;
    color: var(--don-text-secondary);
    margin-bottom: 1.75rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Progress Section */
.don-progress-section {
    margin-top: auto;
    padding-top: 0.75rem;
}

.don-progress-stats {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 0.5rem;
}

.don-progress-raised {
    font-size: 0.95rem;
    font-weight: 800;
    color: #f9df7b;
}

.don-progress-target {
    font-size: 0.8rem;
    color: var(--don-text-muted);
    font-weight: 500;
}

.don-progress-track {
    height: 6px;
    background-color: rgba(255, 255, 255, 0.04);
    border-radius: var(--don-radius-full);
    overflow: hidden;
    margin-bottom: 1rem;
    position: relative;
}

.don-progress-fill {
    height: 100%;
    border-radius: var(--don-radius-full);
    background: linear-gradient(90deg, #f9df7b 0%, #fbbf24 100%);
    width: 0%;
    transition: width 1.2s var(--don-ease);
    box-shadow: 0 0 8px rgba(249, 223, 123, 0.4);
}

.don-progress-fill.critical-fill {
    background: linear-gradient(90deg, var(--don-danger) 0%, #f87171 100%);
    box-shadow: 0 0 8px rgba(239, 68, 68, 0.4);
}

/* Card Footer */
.don-card-footer {
    padding: 1.1rem 1.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(0, 0, 0, 0.12);
}

.don-donors-count {
    font-size: 0.8rem;
    color: var(--don-text-secondary);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.don-donors-count i {
    color: var(--don-teal-bright);
}


/* ============================================================
   SHOW PAGE – Case Detail
   ============================================================ */
.don-detail-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 2rem;
    align-items: start;
    margin-top: 1.25rem;
}

@media (max-width: 991px) {
    .don-detail-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

/* Main content card */
.don-detail-main {
    background: var(--don-bg-card);
    border: 1px solid var(--don-border);
    border-radius: 14px;
    padding: 2rem;
    box-shadow: var(--don-shadow-md);
    backdrop-filter: var(--don-glass-blur);
    -webkit-backdrop-filter: var(--don-glass-blur);
}

.don-detail-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
}

.don-detail-title {
    font-size: 1.55rem;
    font-weight: 850;
    line-height: 1.35;
    color: var(--don-text-white);
    margin-bottom: 1rem;
    letter-spacing: -0.5px;
}

.don-detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    padding-bottom: 1.25rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--don-border);
}

.don-detail-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.84rem;
    color: var(--don-text-secondary);
}

.don-detail-meta-item i {
    color: #f9df7b;
    font-size: 0.8rem;
}

.don-detail-meta-item strong {
    color: var(--don-text-white);
    font-weight: 700;
}

/* Story Section */
.don-detail-section-title {
    font-size: 0.98rem;
    font-weight: 700;
    margin-bottom: 0.85rem;
    color: var(--don-text-white);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.don-detail-section-title i {
    color: #f9df7b;
}

.don-detail-story {
    font-size: 0.88rem;
    line-height: 1.7;
    color: rgba(226, 232, 240, 0.9);
    margin-bottom: 2rem;
    white-space: pre-line;
}


/* Trust Verification */
.don-trust-section {
    border-top: 1px solid var(--don-border);
    padding-top: 1.75rem;
}

.don-trust-title {
    font-size: 0.98rem;
    font-weight: 700;
    margin-bottom: 0.65rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--don-text-white);
}

.don-trust-title i {
    color: #f9df7b;
}

.don-trust-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 1rem;
}

@media (max-width: 575px) {
    .don-trust-grid {
        grid-template-columns: 1fr;
    }
}

.don-trust-card {
    border: 1px solid var(--don-border);
    border-radius: var(--don-radius-md);
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 0.85rem;
    background-color: rgba(255, 255, 255, 0.02);
    transition: all 0.3s ease;
}

.don-trust-card:hover {
    border-color: rgba(249, 223, 123, 0.35);
    background-color: rgba(249, 223, 123, 0.04);
    transform: translateY(-2px);
}

.don-trust-icon {
    font-size: 1.6rem;
    color: #f9df7b;
    flex-shrink: 0;
}

.don-trust-info h4 {
    font-weight: 700;
    font-size: 0.88rem;
    color: var(--don-text-white);
    margin-bottom: 0.15rem;
}

.don-trust-info span {
    font-size: 0.72rem;
    color: var(--don-text-muted);
}

.don-trust-btn {
    margin-left: auto;
    font-size: 0.8rem;
    font-weight: 700;
    color: #f9df7b;
    cursor: pointer;
    background: none;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    text-decoration: none !important;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.don-trust-btn:hover {
    color: #ffffff;
}


/* ============================================================
   SIDEBAR – Donation Action Card
   ============================================================ */
.don-sidebar-card {
    background: var(--don-bg-card);
    border: 1px solid var(--don-border);
    border-radius: 14px;
    padding: 2rem 1.6rem;
    box-shadow: var(--don-shadow-lg);
    position: sticky;
    top: 90px;
    backdrop-filter: var(--don-glass-blur);
    -webkit-backdrop-filter: var(--don-glass-blur);
    overflow: hidden;
}

/* Subtle top gradient accent */
.don-sidebar-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #f9df7b, #fbbf24);
}

.don-sidebar-title {
    font-size: 1.05rem;
    font-weight: 800;
    text-align: center;
    color: var(--don-text-white);
    letter-spacing: -0.3px;
    margin-bottom: 1.5rem;
}

/* Circular Progress Ring */
.don-ring-container {
    text-align: center;
    position: relative;
    width: 140px;
    height: 140px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.don-ring-container svg {
    animation: progress-glow 3s ease-in-out infinite;
}

.don-ring-center {
    position: absolute;
    text-align: center;
}

.don-ring-percent {
    font-size: 1.65rem;
    font-weight: 900;
    color: #f9df7b;
    letter-spacing: -0.5px;
    line-height: 1;
}

.don-ring-label {
    font-size: 0.65rem;
    color: var(--don-text-muted);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: 4px;
}

/* Progress Stats */
.don-sidebar-stats {
    margin-bottom: 1.5rem;
}

.don-sidebar-stats-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 0.5rem;
}

.don-stat-raised {
    font-size: 1.35rem;
    font-weight: 900;
    color: #f9df7b;
    line-height: 1;
}

.don-stat-raised-label {
    font-size: 0.72rem;
    color: var(--don-text-muted);
    font-weight: 600;
    margin-top: 0.2rem;
}

.don-stat-goal {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--don-text-primary);
    text-align: right;
    line-height: 1;
}

.don-stat-goal-label {
    font-size: 0.72rem;
    color: var(--don-text-muted);
    font-weight: 600;
    text-align: right;
    margin-top: 0.2rem;
}

.don-stat-percent {
    color: #f9df7b;
    font-weight: 700;
    font-size: 0.8rem;
}

.don-stat-remaining {
    color: var(--don-text-muted);
    font-weight: 600;
    font-size: 0.8rem;
}

/* Donors pill */
.don-donors-pill {
    text-align: center;
    margin-bottom: 1.5rem;
    background-color: rgba(249, 223, 123, 0.08);
    border: 1px solid rgba(249, 223, 123, 0.2);
    padding: 0.65rem 0.85rem;
    border-radius: var(--don-radius-md);
}

.don-donors-pill-count {
    font-weight: 800;
    color: #f9df7b;
    font-size: 0.9rem;
}

.don-donors-pill-count i {
    color: #f9df7b;
}

.don-donors-pill-label {
    font-size: 0.75rem;
    color: var(--don-text-secondary);
    font-weight: 500;
    display: block;
    margin-top: 2px;
}

/* Payment Widget */
.don-payment-widget {
    background-color: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--don-border);
    border-radius: var(--don-radius-md);
    padding: 1rem;
    margin-bottom: 1.5rem;
}

.don-payment-method-header {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    font-weight: 700;
    font-size: 0.8rem;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #f9df7b;
}

.don-copy-field {
    display: flex;
    background-color: var(--don-bg-input);
    border: 1px solid var(--don-border);
    border-radius: var(--don-radius-sm);
    overflow: hidden;
}

.don-copy-value {
    flex-grow: 1;
    padding: 0.65rem 0.85rem;
    font-family: 'JetBrains Mono', 'Courier New', monospace;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--don-text-white);
    border: none;
    background: transparent;
    pointer-events: none;
    text-align: center;
}

.don-copy-btn {
    background: linear-gradient(135deg, #f9df7b 0%, #e8d05f 100%);
    color: #020617;
    border: none;
    padding: 0 1rem;
    cursor: pointer;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
}

.don-copy-btn:hover {
    background: linear-gradient(135deg, #fff0aa 0%, #f9df7b 100%);
}

.don-copy-hint {
    font-size: 0.68rem;
    color: var(--don-text-muted);
    margin-top: 0.4rem;
    text-align: center;
}

/* Simulation Form */
.don-sim-form {
    border-top: 1px solid var(--don-border);
    padding-top: 1.25rem;
}

.don-sim-title {
    font-weight: 800;
    font-size: 0.95rem;
    margin-bottom: 0.35rem;
    color: var(--don-text-white);
}

.don-sim-hint {
    font-size: 0.76rem;
    color: var(--don-text-muted);
    margin-bottom: 0.85rem;
    line-height: 1.45;
}

.don-sim-input-group {
    display: flex;
    gap: 0;
    margin-bottom: 0.85rem;
}

.don-sim-currency {
    display: flex;
    align-items: center;
    padding: 0 0.85rem;
    background-color: rgba(249, 223, 123, 0.1);
    border: 1px solid var(--don-border);
    border-right: none;
    border-radius: var(--don-radius-sm) 0 0 var(--don-radius-sm);
    font-weight: 800;
    font-size: 0.8rem;
    color: #f9df7b;
}

.don-sim-input {
    flex-grow: 1;
    background-color: var(--don-bg-input);
    border: 1px solid var(--don-border);
    padding: 0.65rem;
    border-radius: 0 var(--don-radius-sm) var(--don-radius-sm) 0;
    color: var(--don-text-white);
    font-weight: 700;
    font-size: 0.95rem;
    text-align: center;
    transition: all 0.25s ease;
}

.don-sim-input:focus {
    outline: none;
    border-color: #f9df7b;
    box-shadow: 0 0 16px rgba(249, 223, 123, 0.2);
}

/* Completed Badge */
.don-completed-badge {
    text-align: center;
    background-color: rgba(249, 223, 123, 0.08);
    border: 1px solid #f9df7b;
    padding: 1.25rem;
    border-radius: var(--don-radius-md);
    margin-bottom: 1.5rem;
}

.don-completed-badge i {
    font-size: 2rem;
    color: #f9df7b;
    margin-bottom: 0.35rem;
}

.don-completed-badge h4 {
    font-weight: 800;
    color: #f9df7b;
    font-size: 0.95rem;
    margin-bottom: 0.2rem;
}

.don-completed-badge p {
    font-size: 0.76rem;
    color: var(--don-text-secondary);
}

/* Status Message */
.don-status-message {
    margin-top: 0.75rem;
    text-align: center;
    font-size: 0.85rem;
    font-weight: 600;
}


/* ============================================================
   CREATE PAGE – Form Styles
   ============================================================ */
.don-form-container {
    max-width: 740px;
    margin: 0 auto;
    background: var(--don-bg-card);
    border: 1px solid var(--don-border);
    border-radius: 14px;
    padding: 2.2rem 2rem;
    box-shadow: var(--don-shadow-lg);
    backdrop-filter: var(--don-glass-blur);
    -webkit-backdrop-filter: var(--don-glass-blur);
    position: relative;
    overflow: hidden;
}

/* Top accent bar - Gold theme */
.don-form-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #f9df7b, #fbbf24);
}

@media (max-width: 575px) {
    .don-form-container {
        padding: 1.25rem 0.95rem;
        border-radius: 12px;
    }
}

.don-form-title {
    font-size: 1.6rem;
    font-weight: 850;
    color: var(--don-text-white);
    margin-bottom: 0.35rem;
    text-align: center;
    letter-spacing: -0.5px;
}

.don-form-subtitle {
    color: var(--don-text-secondary);
    font-size: 0.82rem;
    margin-bottom: 1.5rem;
    text-align: center;
    line-height: 1.55;
    max-width: 540px;
    margin-left: auto;
    margin-right: auto;
}

.don-form-group {
    margin-bottom: 1.5rem;
}

.don-form-label {
    display: block;
    font-weight: 700;
    font-size: 0.82rem;
    margin-bottom: 0.4rem;
    color: var(--don-text-primary);
}

.don-form-label span.required {
    color: var(--don-danger);
}

.don-form-control {
    width: 100%;
    background-color: var(--don-bg-input);
    border: 1px solid var(--don-border);
    padding: 0.7rem 1rem;
    border-radius: var(--don-radius-sm);
    color: var(--don-text-white);
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.25s var(--don-ease);
}

.don-form-control:focus {
    outline: none;
    border-color: #f9df7b;
    box-shadow: 0 0 16px rgba(249, 223, 123, 0.2);
    background-color: rgba(15, 20, 35, 0.95);
}

.don-form-control::placeholder {
    color: var(--don-text-muted);
}

textarea.don-form-control {
    resize: vertical;
    min-height: 130px;
    line-height: 1.6;
}

/* Two-column form grid */
.don-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
    margin-bottom: 1.5rem;
}

@media (max-width: 575px) {
    .don-form-row {
        grid-template-columns: 1fr;
    }
}

/* Payment panel */
.don-form-payment-panel {
    background-color: rgba(249, 223, 123, 0.03);
    border: 1px solid rgba(249, 223, 123, 0.2);
    padding: 1.5rem;
    border-radius: var(--don-radius-md);
    margin-bottom: 2rem;
}

.don-form-payment-title {
    font-size: 0.92rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    color: #f9df7b;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* File Dropzones */
.don-dropzone {
    border: 2px dashed rgba(249, 223, 123, 0.25);
    border-radius: var(--don-radius-md);
    padding: 1.75rem 1rem;
    text-align: center;
    background-color: rgba(20, 24, 36, 0.5);
    cursor: pointer;
    transition: all 0.3s var(--don-ease);
    position: relative;
}

.don-dropzone:hover {
    border-color: #f9df7b;
    background-color: rgba(249, 223, 123, 0.05);
    transform: scale(1.01);
}

.don-dropzone-input {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
    width: 100%;
    height: 100%;
}

.don-dropzone-icon {
    font-size: 2rem;
    color: #f9df7b;
    opacity: 0.85;
    margin-bottom: 0.75rem;
    transition: all 0.3s ease;
}

.don-dropzone:hover .don-dropzone-icon {
    opacity: 1;
    transform: translateY(-3px);
}

.don-dropzone-text h5 {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--don-text-white);
    margin-bottom: 0.2rem;
}

.don-dropzone-text p {
    font-size: 0.75rem;
    color: var(--don-text-muted);
}

.don-file-selected {
    margin-top: 0.75rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.78rem;
    font-weight: 700;
    color: #020617;
    background: linear-gradient(135deg, #f9df7b 0%, #e8d05f 100%);
    padding: 0.4rem 0.9rem;
    border-radius: var(--don-radius-full);
}

/* Error text */
.don-error-text {
    color: #fca5a5;
    font-size: 0.8rem;
    margin-top: 0.4rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.don-error-text::before {
    content: '\f06a';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 0.75rem;
}


/* ============================================================
   EMPTY STATE
   ============================================================ */
.don-empty-state {
    text-align: center;
    padding: 5rem 2rem;
    background: var(--don-bg-card);
    border: 1px solid var(--don-border);
    border-radius: var(--don-radius-lg);
    box-shadow: var(--don-shadow-md);
}

.don-empty-icon {
    font-size: 4rem;
    color: var(--don-teal);
    opacity: 0.25;
    margin-bottom: 1.5rem;
}

.don-empty-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--don-text-white);
}

.don-empty-desc {
    color: var(--don-text-secondary);
    max-width: 480px;
    margin: 0 auto 2rem;
    line-height: 1.6;
    font-size: 0.95rem;
}


/* ============================================================
   CONFETTI CELEBRATION
   ============================================================ */
.don-confetti-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    overflow: hidden;
}

@keyframes confetti-fall {
    0% {
        transform: translateY(-100vh) rotate(0deg);
        opacity: 1;
    }

    100% {
        transform: translateY(100vh) rotate(720deg);
        opacity: 0;
    }
}

.don-particle {
    position: absolute;
    top: -20px;
    border-radius: 3px;
    animation: confetti-fall 2s ease-out forwards;
}


/* ============================================================
   PAGINATION OVERRIDE (for Laravel default)
   ============================================================ */
.donations-page nav[role="navigation"] {
    margin-top: 3rem;
    display: flex;
    justify-content: center;
}

.donations-page .pagination {
    display: flex;
    gap: 0.35rem;
    list-style: none;
    padding: 0;
}

.donations-page .pagination li a,
.donations-page .pagination li span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 0.5rem;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid var(--don-border);
    background: rgba(15, 23, 42, 0.5);
    color: var(--don-text-secondary);
    text-decoration: none;
    transition: all 0.2s ease;
}

.donations-page .pagination li a:hover {
    border-color: var(--don-teal);
    color: var(--don-teal-bright);
    background: var(--don-teal-glow);
}

.donations-page .pagination li.active span {
    background: linear-gradient(135deg, var(--don-teal), var(--don-teal-hover));
    border-color: transparent;
    color: #ffffff;
    font-weight: 700;
}

.donations-page .pagination li.disabled span {
    opacity: 0.3;
    cursor: not-allowed;
}


/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
    .donations-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1.25rem !important;
    }
}

@media (max-width: 768px) {
    .donations-container {
        padding: 0 10px !important;
    }

    .donations-hero {
        padding: 2.2rem 1.25rem 1.75rem;
        border-radius: var(--don-radius-lg);
        margin-bottom: 2rem;
    }

    .donations-hero h1 {
        font-size: 1.6rem !important;
        letter-spacing: -0.5px;
    }

    .donations-hero p {
        font-size: 0.84rem;
        line-height: 1.55;
        margin-bottom: 1.5rem;
    }

    .donations-hero-stats {
        gap: 1.25rem;
        flex-wrap: wrap;
        margin-bottom: 1.5rem;
    }

    .donations-hero-stat .stat-value {
        font-size: 1.35rem;
    }

    .donations-hero-stat .stat-label {
        font-size: 0.68rem;
    }

    /* Single-Row Touch-Scrollable Category Tabs Capsule */
    .donations-tabs {
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        justify-content: flex-start !important;
        padding: 4px 6px 12px !important;
        gap: 8px !important;
        margin-bottom: 1.5rem !important;
        scrollbar-width: none !important;
        -webkit-overflow-scrolling: touch !important;
    }

    .donations-tabs::-webkit-scrollbar {
        display: none !important;
    }

    .donations-tabs::before,
    .donations-tabs::after {
        content: '' !important;
        display: inline-block !important;
        width: 6px !important;
        height: 1px !important;
        flex-shrink: 0 !important;
    }

    .donations-tab {
        flex-shrink: 0 !important;
        white-space: nowrap !important;
        padding: 0.45rem 1rem !important;
        font-size: 0.78rem !important;
    }

    .donations-toolbar {
        border-radius: var(--don-radius-md);
        padding: 1rem;
        gap: 0.75rem;
    }

    .don-card-title {
        font-size: 0.98rem;
    }

    .don-card-desc {
        font-size: 0.82rem;
        line-height: 1.5;
    }

    .don-detail-main {
        padding: 1.15rem 0.95rem !important;
        border-radius: 10px !important;
    }

    .don-detail-title {
        font-size: 1.15rem !important;
        line-height: 1.35 !important;
        margin-bottom: 0.75rem !important;
    }

    .don-sidebar-card {
        padding: 1.25rem 1rem !important;
        border-radius: 10px !important;
        position: static;
    }
}

@media (max-width: 640px) {
    .donations-grid {
        grid-template-columns: 1fr !important;
    }

    .donations-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .donations-search-wrap,
    .donations-select-wrap {
        flex: 1 1 100%;
        width: 100%;
    }

    .don-verified-header {
        padding: 0.75rem 0.85rem !important;
        gap: 0.5rem !important;
    }

    .don-verified-icon-box {
        width: 32px !important;
        height: 32px !important;
        border-radius: 8px !important;
    }

    .don-verified-icon-box i {
        font-size: 0.85rem !important;
    }

    .don-verified-title-wrap h4 {
        font-size: 0.82rem !important;
    }

    .don-verified-title-wrap span {
        font-size: 0.62rem !important;
    }

    .don-verified-approved-pill {
        padding: 2px 7px !important;
        font-size: 0.62rem !important;
    }

    .don-verified-checklist {
        padding: 0.75rem 0.85rem !important;
        gap: 0.45rem !important;
    }

    .don-verified-item {
        padding: 0.5rem 0.65rem !important;
        gap: 0.6rem !important;
    }

    .don-verified-item-icon {
        width: 28px !important;
        height: 28px !important;
    }

    .don-verified-item-info .title {
        font-size: 0.75rem !important;
    }

    .don-verified-item-info .sub {
        font-size: 0.62rem !important;
    }

    .don-verified-notice {
        margin: 0 0.85rem 0.85rem !important;
        padding: 0.6rem 0.75rem !important;
    }

    .don-verified-notice p {
        font-size: 0.68rem !important;
    }
}

@media (max-width: 480px) {
    .donations-page {
        padding-top: 75px;
    }

    .donations-hero h1 {
        font-size: 1.45rem !important;
    }

    .don-form-container {
        padding: 1.15rem 0.85rem !important;
        border-radius: 10px !important;
    }

    .don-form-title {
        font-size: 1.25rem !important;
    }

    .don-form-row {
        grid-template-columns: 1fr;
    }
}


/* ============================================================
   SUCCESS MODAL POPUP
   ============================================================ */
.don-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(2, 6, 23, 0.78);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    animation: donFadeIn 0.3s ease;
}

.don-modal-card {
    background: linear-gradient(135deg, #0f172a 0%, #0c1a2e 50%, #132f4c 100%);
    border: 1px solid rgba(249, 223, 123, 0.3);
    border-radius: 18px;
    padding: 2.25rem 1.75rem 1.75rem;
    max-width: 420px;
    width: 100%;
    text-align: center;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6), 0 0 30px rgba(249, 223, 123, 0.15);
    animation: donModalBounce 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.don-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #94a3b8;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.don-modal-close:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
}

.don-modal-icon-wrap {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: rgba(249, 223, 123, 0.12);
    border: 1px solid rgba(249, 223, 123, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
}

.don-modal-icon-inner {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f9df7b 0%, #e8d05f 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #020617;
    font-size: 1.5rem;
    box-shadow: 0 4px 16px rgba(249, 223, 123, 0.3);
}

.don-modal-title {
    font-size: 1.35rem;
    font-weight: 850;
    color: #ffffff;
    margin-bottom: 0.5rem;
    letter-spacing: -0.3px;
}

.don-modal-desc {
    font-size: 0.86rem;
    color: #cbd5e1;
    line-height: 1.6;
    margin-bottom: 1rem;
}

@media (max-width: 480px) {
    .don-modal-card {
        padding: 1.75rem 1.25rem 1.25rem;
        border-radius: 14px;
    }

    .don-modal-title {
        font-size: 1.15rem;
    }

    .don-modal-desc {
        font-size: 0.8rem;
    }

    .don-modal-icon-wrap {
        width: 60px;
        height: 60px;
        margin-bottom: 1rem;
    }

    .don-modal-icon-inner {
        width: 44px;
        height: 44px;
        font-size: 1.25rem;
    }
}

@keyframes donModalBounce {
    0% {
        opacity: 0;
        transform: scale(0.85) translateY(20px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes donFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}