/* ================================================== */
/* EUROPEAN CHURCH DEVELOPMENT PLATFORM CSS */
/* ================================================== */

/* ===== GLOBAL RESET & BASE STYLES ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    overflow-x: hidden;
    height: 100%;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    min-height: 100vh;
    color: #374151;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    padding: 0;
}

/* ===== HERO BANNER ===== */
.hero-banner {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: clamp(2rem, 4vw, 2.5rem) 1.5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: float 20s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(-30px, -30px) rotate(180deg); }
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 0.8rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-title i {
    margin-right: 0.5rem;
    color: #ffd700;
}

.hero-description {
    font-size: clamp(0.9rem, 2vw, 1.1rem);
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

/* ===== CONTROLS SECTION ===== */
.controls {
    max-width: 1200px;
    margin: 30px auto 20px auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.filters {
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.filter-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #555;
}

select {
    padding: 8px 12px;
    border: 2px solid #e1e5e9;
    border-radius: 6px;
    font-size: 14px;
    background: white;
    cursor: pointer;
    transition: all 0.3s;
    min-width: 140px;
}

select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.view-toggle {
    display: flex;
    background: white;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    overflow: hidden;
}

.view-btn {
    padding: 8px 12px;
    border: none;
    background: transparent;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    font-weight: 500;
}

.view-btn.active {
    background: #667eea;
    color: white;
}

.view-btn:hover:not(.active) {
    background: #f8f9fa;
}

/* ===== CONTAINER ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== PROJECT CARDS ===== */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.projects-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 40px;
}

.project-card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 3px 12px rgba(0,0,0,0.08);
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    border: 1px solid #e8e8e8;
}

.project-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
    border-color: #667eea;
}

/* Grid View Specific Styles */
.projects-grid .project-card {
    display: flex;
    flex-direction: column;
    height: 460px;
}

.projects-grid .project-image {
    height: 120px;
    background: linear-gradient(45deg, #667eea, #764ba2);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.projects-grid .project-content {
    padding: 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.projects-grid .project-main-content {
    flex: 1;
}

/* List View Specific Styles */
.projects-list .project-card {
    display: flex;
    min-height: 160px;
    align-items: stretch;
}

.projects-list .project-image {
    width: 200px;
    flex-shrink: 0;
    background: linear-gradient(45deg, #667eea, #764ba2);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.projects-list .project-content {
    flex: 1;
    padding: 16px;
    display: flex;
    flex-direction: column;
}

.projects-list .project-main-content {
    flex: 1;
}

/* Common Image Styles */
.project-image i {
    font-size: 2.2rem;
    color: white;
    opacity: 0.9;
}

/* Badge Styles */
.project-badges {
    position: absolute;
    top: 8px;
    left: 8px;
    right: 8px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    z-index: 2;
}

.featured-badge {
    background: #ffd700;
    color: #333;
    padding: 3px 8px;
    border-radius: 10px;
    font-size: 0.65rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 3px;
}

.urgency-badge {
    background: #dc3545;
    color: white;
    padding: 3px 8px;
    border-radius: 10px;
    font-size: 0.65rem;
    font-weight: 600;
    animation: pulse 2s infinite;
    display: flex;
    align-items: center;
    gap: 3px;
}

/* Content Header */
.content-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
}

.project-location-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #667eea;
    color: white;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 500;
    white-space: nowrap;
}

.verified-badge {
    background: #28a745;
    color: white;
    padding: 2px 6px;
    border-radius: 8px;
    font-size: 0.65rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 3px;
}

/* Title and Description */
.project-title {
    font-size: 1.1rem;
    font-weight: bold;
    margin-bottom: 6px;
    color: #333;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.project-description {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 10px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Project Meta Info */
.project-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    font-size: 0.7rem;
    color: #777;
    gap: 10px;
    flex-wrap: wrap;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 3px;
}

/* Budget Section */
.budget-section {
    margin-bottom: 10px;
}

.budget-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}

.budget-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: #333;
}

.budget-percentage {
    font-size: 0.75rem;
    font-weight: 600;
    color: #28a745;
}

.budget-bar {
    background: #e9ecef;
    border-radius: 8px;
    height: 6px;
    overflow: hidden;
    margin-bottom: 4px;
}

.budget-progress {
    height: 100%;
    background: linear-gradient(90deg, #28a745, #20c997);
    transition: width 1.5s ease;
    border-radius: 8px;
}

.budget-amounts {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: #666;
}

.raised-amount {
    font-weight: 600;
    color: #28a745;
}

.target-amount {
    font-weight: 600;
    color: #333;
}

/* Supporters Section */
.supporters-section {
    margin-bottom: 10px;
}

.supporters-title {
    font-size: 0.7rem;
    font-weight: 600;
    color: #555;
    margin-bottom: 4px;
}

.supporters-list {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
}

.supporter-tag {
    background: #f8f9fa;
    padding: 2px 6px;
    border-radius: 8px;
    font-size: 0.65rem;
    color: #555;
    border: 1px solid #e8e8e8;
}

/* Project Footer */
.project-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 10px;
    border-top: 1px solid #eee;
    margin-top: auto;
}

.project-actions {
    display: flex;
    gap: 10px;
}

.action-btn {
    display: flex;
    align-items: center;
    gap: 3px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 0.7rem;
    color: #666;
    transition: color 0.3s;
    padding: 3px;
}

.action-btn:hover {
    color: #667eea;
}

.action-btn.liked {
    color: #e74c3c;
}

.action-buttons {
    display: flex;
    gap: 8px;
}

.details-btn {
    background: #667eea;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 0.75rem;
    font-weight: 500;
}

.details-btn:hover {
    background: #5a67d8;
}

.donate-btn {
    background: #28a745;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 0.75rem;
    font-weight: 500;
}

.donate-btn:hover {
    background: #218838;
    transform: translateY(-1px);
}

/* ===== PAGINATION ===== */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin: 30px 0;
}

.page-btn {
    padding: 8px 12px;
    border: 1px solid #ddd;
    background: white;
    cursor: pointer;
    border-radius: 5px;
    transition: all 0.3s;
    font-size: 0.85rem;
}

.page-btn:hover {
    background: #f8f9fa;
    border-color: #667eea;
}

.page-btn.active {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

/* ===== DETAIL PAGE STYLES ===== */
.detail-page {
    display: none;
    min-height: 100vh;
    background: #f8f9fa;
}

.detail-banner {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: clamp(2rem, 4vw, 3rem) 1.5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.detail-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: float 20s ease-in-out infinite;
}

.detail-banner .hero-content {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.project-status-badge {
    display: inline-block;
    background: rgba(40, 167, 69, 0.9);
    color: white;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 15px;
    animation: slideInDown 0.8s ease;
}

.detail-banner h1 {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 1rem;
    animation: slideInUp 0.8s ease 0.2s both;
}

.detail-banner h1 i {
    color: #ffd700;
    margin-right: 0.5rem;
}

.detail-banner p {
    font-size: clamp(1rem, 2.5vw, 1.3rem);
    opacity: 0.95;
    margin-bottom: 2rem;
    animation: slideInUp 0.8s ease 0.4s both;
}

.detail-location-info {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    animation: slideInUp 0.8s ease 0.6s both;
}

.location-badge, .project-category {
    background: rgba(255, 255, 255, 0.2);
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 500;
    font-size: 0.9rem;
    backdrop-filter: blur(10px);
}

/* Progress Summary */
.progress-summary {
    background: white;
    margin: -30px auto 0;
    max-width: 900px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    position: relative;
    z-index: 10;
    overflow: hidden;
}

.progress-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    padding: 30px 20px;
    gap: 20px;
}

.progress-item {
    text-align: center;
    padding: 15px;
}

.progress-number {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    color: #667eea;
    margin-bottom: 5px;
}

.progress-label {
    font-size: 0.85rem;
    color: #666;
    font-weight: 500;
}

.progress-divider {
    width: 1px;
    background: #e9ecef;
    margin: 10px 0;
}

.progress-bar-container {
    padding: 0 30px 30px;
}

.progress-bar {
    background: #e9ecef;
    height: 8px;
    border-radius: 10px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 10px;
    transition: width 2s ease;
}

/* Main Content */
.detail-content {
    max-width: 900px;
    margin: 40px auto;
    padding: 0 20px;
}

/* Biblical Section */
.biblical-section {
    text-align: center;
    margin-bottom: 40px;
    padding: 40px 20px;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 15px;
    border-left: 4px solid #667eea;
}

.bible-verse {
    max-width: 600px;
    margin: 0 auto;
}

.bible-verse i {
    font-size: 2rem;
    color: #667eea;
    margin-bottom: 15px;
}

.bible-verse p {
    font-size: clamp(1rem, 2.5vw, 1.3rem);
    font-style: italic;
    color: #333;
    margin-bottom: 15px;
    line-height: 1.6;
}

.bible-verse cite {
    font-size: 0.9rem;
    color: #666;
    font-weight: 600;
}

/* Proposal Sections */
.proposal-section {
    background: white;
    border-radius: 15px;
    padding: clamp(2rem, 4vw, 3rem);
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    border: 1px solid #e9ecef;
}

.section-title {
    font-size: clamp(1.3rem, 3vw, 1.8rem);
    font-weight: 700;
    color: #333;
    margin-bottom: clamp(1.5rem, 3vw, 2rem);
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 1rem;
    border-bottom: 3px solid #667eea;
}

.section-title i {
    color: #667eea;
    font-size: 1.5rem;
}

.section-content {
    color: #555;
    line-height: 1.8;
    font-size: clamp(0.95rem, 2vw, 1.05rem);
}

.section-content h4 {
    color: #333;
    margin: 20px 0 10px;
    font-weight: 600;
}

.section-content ul {
    margin: 15px 0;
    padding-left: 25px;
}

.section-content li {
    margin-bottom: 12px;
    line-height: 1.6;
}

/* Executive Summary Styles */
.summary-highlight {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 30px;
    text-align: center;
}

.summary-text {
    font-size: 1.1rem;
    line-height: 1.7;
    font-weight: 500;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    text-align: center;
}

.cta-section .section-title {
    color: white;
    border-color: rgba(255,255,255,0.3);
}

.cta-section .section-title i {
    color: #ffd700;
}

.final-cta {
    max-width: 600px;
    margin: 0 auto;
}

.cta-content h3 {
    font-size: clamp(1.3rem, 3vw, 1.8rem);
    margin-bottom: 20px;
    color: white;
}

.cta-content p {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 25px;
    opacity: 0.95;
}

.bible-verse-small {
    background: rgba(255,255,255,0.1);
    padding: 20px;
    border-radius: 12px;
    margin: 25px 0;
    font-style: italic;
    backdrop-filter: blur(10px);
}

.bible-verse-small i {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #ffd700;
}

.bible-verse-small cite {
    display: block;
    margin-top: 10px;
    font-size: 0.9rem;
    opacity: 0.8;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 30px;
}

.donate-btn-primary {
    background: #28a745;
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 5px 15px rgba(40, 167, 69, 0.3);
}

.donate-btn-primary:hover {
    background: #218838;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(40, 167, 69, 0.4);
}

.share-btn {
    background: rgba(255,255,255,0.2);
    color: white;
    border: 2px solid rgba(255,255,255,0.3);
    padding: 13px 28px;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    backdrop-filter: blur(10px);
}

.share-btn:hover {
    background: rgba(255,255,255,0.3);
    border-color: rgba(255,255,255,0.5);
    transform: translateY(-2px);
}

.back-btn {
    position: fixed;
    top: 70px;
    left: 20px;
    background: #667eea;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    z-index: 1000;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

.back-btn:hover {
    background: #5a67d8;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
}

/* ===== PAYMENT PAGE STYLES ===== */
.payment-page {
    display: none;
    min-height: 100vh;
    background-color: #f9fafb;
    color: #333;
    line-height: 1.6;
    padding: 20px;
}

/* Payment Header */
.payment-header {
    text-align: center;
    margin-bottom: 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: clamp(2rem, 4vw, 2.5rem) 1.5rem;
    border-radius: 15px;
    position: relative;
    overflow: hidden;
}

.payment-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: float 20s ease-in-out infinite;
}

.payment-header-content {
    position: relative;
    z-index: 1;
}

.payment-page-title {
    font-size: 2.1rem;
    color: white;
    margin-bottom: 5px;
}

.payment-page-subtitle {
    font-size: 1.2rem;
    color: rgba(255,255,255,0.9);
    margin-bottom: 20px;
}

.payment-section-title {
    color: #4a5568;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    text-align: center;
    position: relative;
}

.payment-section-title:after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, #2b6cb0, #4c51bf);
    margin: 10px auto 0;
    border-radius: 2px;
}

.payment-donation-description {
    text-align: center;
    margin-bottom: 30px;
    color: #718096;
}

.payment-donation-form-container {
    max-width: 800px;
    margin: 0 auto;
}

/* Form Tabs */
.payment-form-tabs {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    border-bottom: 1px solid #e2e8f0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.payment-form-tab {
    flex: 1;
    padding: 12px 5px;
    text-align: center;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    color: #718096;
    font-weight: 600;
    transition: all 0.3s;
    white-space: nowrap;
}

.payment-form-tab.payment-active {
    color: #4c51bf;
    border-bottom-color: #4c51bf;
}

.payment-form-tab i {
    margin-right: 8px;
    font-size: 16px;
}

/* Progress Indicator */
.payment-progress-indicator {
    display: none;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin: 20px 0;
}

.payment-progress-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #e2e8f0;
    position: relative;
}

.payment-progress-dot.payment-active {
    background-color: #4c51bf;
}

.payment-progress-dot:not(:last-child):after {
    content: '';
    position: absolute;
    height: 2px;
    width: 15px;
    background-color: #e2e8f0;
    top: 50%;
    left: 100%;
    transform: translateY(-50%);
}

.payment-progress-dot.payment-active:not(:last-child):after {
    background-color: #4c51bf;
}

/* Form Steps */
.payment-form-step {
    display: none;
    animation: paymentFadeIn 0.5s ease;
}

.payment-form-step.payment-active {
    display: block;
}

@keyframes paymentFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Form Elements */
.payment-form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.payment-form-row .payment-form-group {
    flex: 1;
}

.payment-form-group {
    margin-bottom: 20px;
}

.payment-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #4a5568;
}

.payment-input, .payment-select, .payment-textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #e2e8f0;
    border-radius: 5px;
    font-size: 16px;
    transition: border-color 0.3s;
    background-color: #ffffff;
}

.payment-input:focus, .payment-select:focus, .payment-textarea:focus {
    border-color: #4c51bf;
    outline: none;
    box-shadow: 0 0 0 3px rgba(76, 81, 191, 0.1);
}

.payment-checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.payment-checkbox-group input {
    width: auto;
    margin-top: 5px;
}

/* Amount Selection */
.payment-amount-section {
    display: flex;
    margin-bottom: 20px;
    gap: 20px;
    align-items: center;
}

.payment-amount-options-container {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.payment-amount-options {
    display: flex;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 10px;
}

.payment-amount-option {
    flex: 0 0 auto;
    width: 60px;
    background-color: #ffffff;
    border: 2px solid #e2e8f0;
    border-radius: 5px;
    padding: 10px;
    text-align: center;
    cursor: pointer;
    font-weight: bold;
    font-size: 1.1rem;
    transition: all 0.3s;
}

.payment-amount-option:hover {
    background-color: #f7fafc;
    border-color: #2b6cb0;
}

.payment-amount-option.payment-selected {
    background-color: #4c51bf;
    border-color: #4c51bf;
    color: white;
    box-shadow: 0 4px 6px rgba(76, 81, 191, 0.1);
}

.payment-custom-amount {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 0;
    flex: 1;
}

.payment-custom-amount .payment-label {
    margin-bottom: 0;
    white-space: nowrap;
}

.payment-custom-amount .payment-input {
    flex: 1;
}

/* Payment Methods */
.payment-methods {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 15px;
}

.payment-method {
    border: 1px solid #e2e8f0;
    border-radius: 5px;
    overflow: hidden;
}

.payment-method-header {
    padding: 15px;
    background-color: #f7fafc;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 15px;
}

.payment-method.payment-active .payment-method-header {
    background-color: rgba(76, 81, 191, 0.1);
    border-left: 4px solid #4c51bf;
}

.payment-icon {
    font-size: 20px;
    color: #718096;
}

.payment-method.payment-active .payment-icon {
    color: #4c51bf;
}

.payment-method-header h4 {
    margin: 0;
    font-size: 18px;
}

.payment-method-content {
    padding: 20px;
    display: none;
    border-top: 1px solid #e2e8f0;
}

.payment-method.payment-active .payment-method-content {
    display: block;
}

/* Step Navigation */
.payment-step-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
}

/* Buttons */
.payment-btn {
    border: none;
    border-radius: 5px;
    padding: 12px 20px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 16px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.payment-btn-primary {
    background-color: #4c51bf;
    color: white;
}

.payment-btn-primary:hover {
    background-color: #3c3f9e;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.payment-btn-secondary {
    background-color: #718096;
    color: white;
}

.payment-btn-secondary:hover {
    background-color: #5a6984;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Donation Summary */
.payment-donation-summary {
    background-color: #f7fafc;
    padding: 20px;
    border-radius: 5px;
    margin-bottom: 25px;
}

.payment-donation-summary h4 {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #4a5568;
    font-size: 18px;
}

.payment-summary-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.payment-summary-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.payment-summary-item span:first-child {
    color: #718096;
    display: flex;
    align-items: center;
    gap: 8px;
}

.payment-divider {
    margin: 30px 0;
    border: none;
    height: 1px;
    background-color: #e2e8f0;
}

.payment-thank-you-message {
    font-style: italic;
    text-align: center;
    margin-top: 20px;
    color: #718096;
}

/* ===== SUCCESS MODAL ===== */
.success-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1001;
    backdrop-filter: blur(5px);
}

.success-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.success-container {
    background: white;
    border-radius: 16px;
    padding: 40px;
    text-align: center;
    max-width: 500px;
    width: 90%;
    animation: successSlideIn 0.5s ease;
}

@keyframes successSlideIn {
    from { transform: translateY(-30px) scale(0.9); opacity: 0; }
    to { transform: translateY(0) scale(1); opacity: 1; }
}

.success-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #28a745, #20c997);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 2rem;
    color: white;
    animation: successPulse 0.8s ease;
}

@keyframes successPulse {
    0% { transform: scale(0.5); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.success-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 10px;
}

.success-message {
    color: #666;
    margin-bottom: 20px;
    line-height: 1.5;
}

.success-details {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 25px;
    text-align: left;
}

.success-detail-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.success-detail-row:last-child {
    margin-bottom: 0;
    font-weight: 600;
    border-top: 1px solid #dee2e6;
    padding-top: 8px;
}

.success-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.success-btn {
    flex: 1;
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s;
    min-width: 120px;
}

.success-btn.primary {
    background: #667eea;
    color: white;
}

.success-btn.primary:hover {
    background: #5a67d8;
}

.success-btn.secondary {
    background: #e9ecef;
    color: #333;
}

.success-btn.secondary:hover {
    background: #dee2e6;
}

/* ===== NOTIFICATION MODAL ===== */
.notification-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10001;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.notification-modal-content {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 24px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
    max-width: 600px;
    width: 95%;
    max-height: 90vh;
    overflow: hidden;
    animation: modalAppear 0.4s ease;
    border: 1px solid #e5e7eb;
}

@keyframes modalAppear {
    from {
        opacity: 0;
        transform: scale(0.85) translateY(-30px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.notification-modal-header {
    padding: 24px;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #f8fafc 0%, #e0f2fe 100%);
}

.notification-modal-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: #1a202c;
}

.notification-modal-close {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #6b7280;
    transition: all 0.3s ease;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.notification-modal-close:hover {
    color: #0066cc;
    background: #f3f4f6;
    transform: scale(1.1);
}

.notification-modal-body {
    padding: 24px;
    max-height: 400px;
    overflow-y: auto;
    line-height: 1.6;
    color: #374151;
}

.notification-modal-footer {
    padding: 24px;
    border-top: 1px solid #e5e7eb;
    text-align: right;
    background: linear-gradient(135deg, #f8fafc 0%, #e0f2fe 100%);
}

.notification-modal-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.notification-modal-close-btn {
    background: #6b7280;
    color: white;
}

/* ===== TOAST NOTIFICATIONS ===== */
.toast-container {
    position: fixed;
    top: 70px;
    right: 20px;
    z-index: 10003;
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 400px;
    width: 100%;
}

.toast {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 12px;
    padding: 16px 20px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    border: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    gap: 12px;
    transform: translateX(100%);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
}

.toast.show {
    transform: translateX(0);
    opacity: 1;
}

.toast.success {
    border-left: 4px solid #10b981;
}

.toast.error {
    border-left: 4px solid #ef4444;
}

.toast.warning {
    border-left: 4px solid #f59e0b;
}

.toast.info {
    border-left: 4px solid #3b82f6;
}

.toast-icon {
    font-size: 20px;
    flex-shrink: 0;
}

.toast.success .toast-icon {
    color: #10b981;
}

.toast.error .toast-icon {
    color: #ef4444;
}

.toast.warning .toast-icon {
    color: #f59e0b;
}

.toast.info .toast-icon {
    color: #3b82f6;
}

.toast-content {
    flex: 1;
    min-width: 0;
}

.toast-title {
    font-size: 14px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 4px;
}

.toast-message {
    font-size: 13px;
    color: #6b7280;
    line-height: 1.4;
}

.toast-close {
    background: none;
    border: none;
    font-size: 16px;
    color: #9ca3af;
    cursor: pointer;
    transition: color 0.3s ease;
    padding: 4px;
    border-radius: 4px;
    flex-shrink: 0;
}

.toast-close:hover {
    color: #374151;
    background: #f3f4f6;
}

.toast-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, #3b82f6, #10b981);
    transition: width 0.1s linear;
}

/* ===== FLOATING SOCIAL ICONS ===== */
.floating-social {
    position: fixed;
    bottom: 24px;
    right: 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 1500;
}

.social-icon {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #6b7280;
    font-size: 18px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    border: 2px solid #e5e7eb;
    backdrop-filter: blur(12px);
    background: #ffffff;
    cursor: pointer;
}

.social-icon:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    border-color: #d1d5db;
}

.social-icon:nth-child(1) i {
    color: #f59e0b;
}

.social-icon:nth-child(1):hover i {
    color: #d97706;
}

.social-icon:nth-child(2) i {
    color: #0084ff;
}

.social-icon:nth-child(2):hover i {
    color: #0066cc;
}

.social-icon:nth-child(3) i {
    color: #25d366;
}

.social-icon:nth-child(3):hover i {
    color: #1da851;
}

.social-icon:nth-child(4) i {
    color: #8b5cf6;
}

.social-icon:nth-child(4):hover i {
    color: #7c3aed;
}

/* ===== LOADING ANIMATION ===== */
.loading {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 200px;
    font-size: 1.2rem;
    color: #667eea;
}

.loading i {
    animation: spin 1s linear infinite;
    margin-right: 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Error State */
.error-state {
    text-align: center;
    padding: 60px 20px;
    color: #6b7280;
}

.error-state i {
    font-size: 3rem;
    color: #ef4444;
    margin-bottom: 1rem;
}

.error-state h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: #374151;
}

.error-state p {
    margin-bottom: 1.5rem;
}

.retry-btn {
    background: #667eea;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s;
}

.retry-btn:hover {
    background: #5a67d8;
}

/* No Projects State */
.no-projects {
    text-align: center;
    padding: 60px 20px;
    color: #6b7280;
}

.no-projects i {
    font-size: 3rem;
    color: #9ca3af;
    margin-bottom: 1rem;
}

.no-projects h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: #374151;
}

/* Input Error States */
.payment-input.error,
.payment-select.error {
    border-color: #dc3545;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

.error-message {
    color: #dc3545;
    font-size: 0.8rem;
    margin-top: 4px;
}

/* ===== ANIMATIONS ===== */
@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-in {
    animation: slideInUp 0.6s ease;
}

/* ===== SHOW/HIDE PAGES ===== */
.show-main #mainPage {
    display: block;
}

.show-main #detailPage,
.show-main #paymentPage {
    display: none;
}

.show-detail #detailPage {
    display: block;
}

.show-detail #mainPage,
.show-detail #paymentPage {
    display: none;
}

.show-payment #paymentPage {
    display: block;
}

.show-payment #mainPage,
.show-payment #detailPage {
    display: none;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    body {
        padding-top: 56px;
        padding-bottom: 80px;
    
