/* ===== MONETIZATION FEATURES CSS ===== */
/* Uses FundFlow Homepage Color Scheme */
/* Primary: #01387A, Background: #FAFAF9, Text: #2c3e50, #6c757d */

/* ===== DONATION MODAL ===== */
.donation-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(1, 56, 122, 0.5);
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
}

.donation-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.donation-modal-content {
    background-color: #FAFAF9;
    margin: 20px;
    padding: 0;
    border-radius: 20px;
    width: 100%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 60px rgba(1, 56, 122, 0.2);
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.donation-close-btn {
    position: absolute;
    top: 20px;
    right: 25px;
    background: none;
    border: none;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    color: #999;
    z-index: 1;
    transition: color 0.2s ease;
}

.donation-close-btn:hover {
    color: #000;
}

.donation-header {
    padding: 30px 30px 20px;
    border-bottom: 1px solid #eee;
}

.donation-header h2 {
    margin: 0 0 15px 0;
    color: #2c3e50;
    font-size: 1.8rem;
}

.campaign-info h3 {
    margin: 0 0 8px 0;
    color: #01387A;
    font-size: 1.3rem;
}

.campaign-info p {
    margin: 0;
    color: #6c757d;
    font-size: 0.95rem;
    line-height: 1.5;
}

.donation-form {
    padding: 30px;
    background: white;
    border-radius: 0 0 20px 20px;
}

.donation-amount-section {
    margin-bottom: 30px;
}

.donation-amount-section h3 {
    margin: 0 0 20px 0;
    color: #2c3e50;
    font-size: 1.2rem;
}

.amount-buttons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 15px;
}

.amount-btn {
    padding: 15px;
    border: 2px solid #e1e8ed;
    background: white;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c3e50;
    cursor: pointer;
    transition: all 0.2s ease;
}

.amount-btn:hover {
    border-color: #01387A;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(1, 56, 122, 0.15);
}

.amount-btn.active {
    border-color: #01387A;
    background: #01387A;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(1, 56, 122, 0.3);
}

.custom-amount {
    position: relative;
    margin-top: 15px;
}

.custom-amount input {
    width: 100%;
    padding: 15px 50px 15px 20px;
    border: 2px solid #e1e8ed;
    border-radius: 12px;
    font-size: 1.1rem;
    transition: all 0.2s ease;
}

.custom-amount input:focus {
    border-color: #01387A;
    outline: none;
    box-shadow: 0 0 0 3px rgba(1, 56, 122, 0.1);
}

.custom-amount span {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #6c757d;
    font-weight: 600;
}

/* Platform Tip Section */
.platform-tip-section {
    margin: 30px 0;
    padding: 25px;
    background: linear-gradient(135deg, #FAFAF9 0%, #f0f0f0 100%);
    border-radius: 15px;
    border: 1px solid #e1e8ed;
}

.tip-header h3 {
    margin: 0 0 10px 0;
    color: #2c3e50;
    font-size: 1.2rem;
}

.tip-explanation {
    margin: 0 0 20px 0;
    color: #6c757d;
    font-size: 0.95rem;
    line-height: 1.5;
    padding: 15px;
    background: white;
    border-radius: 10px;
    border-left: 4px solid #667eea;
}

.tip-buttons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin-bottom: 15px;
}

.tip-btn {
    padding: 12px;
    border: 2px solid #e1e8ed;
    background: white;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 600;
    color: #2c3e50;
    cursor: pointer;
    transition: all 0.2s ease;
}

.tip-btn:hover {
    border-color: #667eea;
    transform: translateY(-1px);
}

.tip-btn.active {
    border-color: #667eea;
    background: #667eea;
    color: white;
    transform: translateY(-1px);
}

.custom-tip {
    position: relative;
}

.custom-tip input {
    width: 100%;
    padding: 12px 50px 12px 15px;
    border: 2px solid #e1e8ed;
    border-radius: 10px;
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

.custom-tip input:focus {
    border-color: #667eea;
    outline: none;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.custom-tip span {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #6c757d;
    font-weight: 600;
}

.tip-breakdown {
    margin-top: 20px;
    padding: 15px;
    background: white;
    border-radius: 10px;
    border: 1px solid #e1e8ed;
}

.breakdown-line {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
}

.breakdown-line.tip-line {
    color: #667eea;
}

.breakdown-line.total-line {
    border-top: 2px solid #e1e8ed;
    margin-top: 10px;
    padding-top: 15px;
    font-size: 1.1rem;
}

/* Donation Actions */
.donation-actions {
    margin-top: 30px;
}

.donor-info {
    margin-bottom: 20px;
}

.donor-info input {
    width: 100%;
    padding: 15px;
    border: 2px solid #e1e8ed;
    border-radius: 10px;
    font-size: 1rem;
    margin-bottom: 15px;
    transition: all 0.2s ease;
}

.donor-info input:focus {
    border-color: #01387A;
    outline: none;
    box-shadow: 0 0 0 3px rgba(1, 56, 122, 0.1);
}

.anonymous-checkbox {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 0.95rem;
    color: #6c757d;
}

.anonymous-checkbox input {
    margin-right: 10px;
    transform: scale(1.2);
}

.donation-btn {
    width: 100%;
    padding: 18px;
    background: linear-gradient(135deg, #01387A 0%, #0056b3 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.donation-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(1, 56, 122, 0.3);
}

.donation-btn:disabled {
    background: #bdc3c7;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* ===== PREMIUM VERIFICATION MODAL ===== */
.verification-modal,
.application-modal,
.success-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(1, 56, 122, 0.5);
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
}

.verification-modal.active,
.application-modal.active,
.success-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.verification-modal-content,
.application-modal-content,
.success-modal-content {
    background-color: #FAFAF9;
    margin: 20px;
    padding: 0;
    border-radius: 20px;
    width: 100%;
    max-width: 1000px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 60px rgba(1, 56, 122, 0.2);
    animation: modalSlideIn 0.3s ease-out;
}

.verification-close-btn,
.application-close-btn {
    position: absolute;
    top: 20px;
    right: 25px;
    background: none;
    border: none;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    color: #999;
    z-index: 1;
    transition: color 0.2s ease;
}

.verification-close-btn:hover,
.application-close-btn:hover {
    color: #000;
}

.verification-header {
    padding: 40px 40px 30px;
    text-align: center;
    background: linear-gradient(135deg, #01387A 0%, #667eea 100%);
    color: white;
    border-radius: 20px 20px 0 0;
}

.verification-header h2 {
    margin: 0 0 15px 0;
    font-size: 2rem;
}

.verification-header p {
    margin: 0;
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Verification Tiers */
.verification-tiers {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    padding: 40px;
}

.verification-tier {
    border: 2px solid #e1e8ed;
    border-radius: 15px;
    padding: 25px;
    position: relative;
    transition: all 0.3s ease;
    background: white;
}

.verification-tier:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.verification-tier.popular {
    border-color: #f39c12;
    transform: scale(1.05);
}

.verification-tier.popular:hover {
    transform: scale(1.05) translateY(-5px);
}

.popular-badge {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: #f39c12;
    color: white;
    padding: 5px 20px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.tier-header {
    text-align: center;
    margin-bottom: 25px;
}

.tier-header h3 {
    margin: 0 0 15px 0;
    color: #2c3e50;
    font-size: 1.4rem;
}

.tier-price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 5px;
}

.tier-price .currency {
    font-size: 1.2rem;
    color: #666;
}

.tier-price .amount {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2c3e50;
}

.tier-price .period {
    font-size: 0.9rem;
    color: #666;
}

.tier-features {
    margin-bottom: 25px;
}

.tier-features .feature {
    padding: 8px 0;
    color: #2c3e50;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
}

.tier-features .feature::before {
    content: '';
    width: 8px;
    height: 8px;
    background: #27ae60;
    border-radius: 50%;
    margin-right: 10px;
    flex-shrink: 0;
}

.tier-select-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #01387A 0%, #0056b3 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tier-select-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(1, 56, 122, 0.3);
}

.popular .tier-select-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.popular .tier-select-btn:hover {
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

/* Verification Process */
.verification-process {
    padding: 40px;
    background: #f8f9fa;
    border-radius: 0 0 20px 20px;
}

.verification-process h3 {
    text-align: center;
    margin: 0 0 30px 0;
    color: #2c3e50;
    font-size: 1.5rem;
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.process-step {
    text-align: center;
    padding: 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.step-number {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #01387A 0%, #0056b3 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    font-size: 1.3rem;
    font-weight: 700;
}

.step-content h4 {
    margin: 0 0 10px 0;
    color: #2c3e50;
    font-size: 1.1rem;
}

.step-content p {
    margin: 0;
    color: #666;
    font-size: 0.9rem;
    line-height: 1.4;
}

/* Application Form Styles */
.application-header {
    padding: 30px 40px;
    border-bottom: 1px solid #eee;
}

.application-header h2 {
    margin: 0 0 20px 0;
    color: #2c3e50;
    font-size: 1.8rem;
}

.selected-tier-info {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 10px;
}

.tier-badge {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
}

.tier-badge.verified-basic {
    background: linear-gradient(135deg, #27ae60 0%, #2ecc71 100%);
}

.tier-badge.verified-premium {
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
}

.tier-badge.verified-organization {
    background: linear-gradient(135deg, #9b59b6 0%, #8e44ad 100%);
}

.tier-details {
    display: flex;
    flex-direction: column;
}

.tier-name {
    font-weight: 600;
    color: #2c3e50;
}

.tier-price {
    color: #666;
    font-size: 0.9rem;
}

.application-form {
    padding: 30px 40px;
}

.form-section {
    margin-bottom: 30px;
}

.form-section h3 {
    margin: 0 0 20px 0;
    color: #2c3e50;
    font-size: 1.3rem;
    padding-bottom: 10px;
    border-bottom: 2px solid #e1e8ed;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #2c3e50;
    font-weight: 600;
    font-size: 0.95rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e1e8ed;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.2s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #01387A;
    outline: none;
    box-shadow: 0 0 0 3px rgba(1, 56, 122, 0.1);
}

.form-group small {
    display: block;
    margin-top: 5px;
    color: #666;
    font-size: 0.85rem;
}

.upload-requirements {
    margin-bottom: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 10px;
    border-left: 4px solid #01387A;
}

.upload-requirements p {
    margin: 0 0 10px 0;
    color: #2c3e50;
    font-weight: 600;
}

.upload-requirements ul {
    margin: 0;
    padding-left: 20px;
}

.upload-requirements li {
    margin-bottom: 5px;
    color: #666;
    font-size: 0.9rem;
}

/* Payment Section */
.payment-section {
    margin: 30px 0;
    padding: 25px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 15px;
    border: 1px solid #dee2e6;
}

.payment-section h3 {
    margin: 0 0 20px 0;
    color: #2c3e50;
    font-size: 1.3rem;
}

.payment-summary {
    background: white;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
}

.payment-line {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
}

.payment-line.total {
    border-top: 2px solid #e1e8ed;
    margin-top: 10px;
    padding-top: 15px;
    font-size: 1.1rem;
}

.payment-methods {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.payment-method {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    background: white;
    border: 2px solid #e1e8ed;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.payment-method:hover {
    border-color: #01387A;
}

.payment-method input[type="radio"] {
    margin-right: 10px;
    transform: scale(1.2);
}

.application-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e1e8ed;
}

.btn-secondary,
.btn-primary {
    padding: 15px 30px;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 180px;
}

.btn-secondary {
    background: #95a5a6;
    color: white;
}

.btn-secondary:hover {
    background: #7f8c8d;
    transform: translateY(-2px);
}

.btn-primary {
    background: linear-gradient(135deg, #01387A 0%, #0056b3 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(1, 56, 122, 0.3);
}

/* Success Modal */
.success-modal-content {
    max-width: 500px;
    text-align: center;
    padding: 40px;
}

.success-icon {
    font-size: 4rem;
    margin-bottom: 20px;
}

.success-modal h2 {
    margin: 0 0 15px 0;
    color: #01387A;
    font-size: 1.8rem;
}

.success-modal p {
    margin: 0 0 25px 0;
    color: #6c757d;
    font-size: 1.1rem;
}

.success-details {
    text-align: left;
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 25px;
}

.success-details h3 {
    margin: 0 0 15px 0;
    color: #2c3e50;
    font-size: 1.2rem;
}

.success-details ul {
    margin: 0;
    padding-left: 20px;
}

.success-details li {
    margin-bottom: 8px;
    color: #6c757d;
    line-height: 1.5;
}

.success-actions {
    text-align: center;
}

/* Premium Upgrade Section in Campaign Form */
.premium-upgrade-section {
    margin: 30px 0;
}

.upgrade-card {
    background: linear-gradient(135deg, #01387A 0%, #667eea 100%);
    color: white;
    padding: 30px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 15px 35px rgba(1, 56, 122, 0.3);
}

.upgrade-header h3 {
    margin: 0 0 10px 0;
    font-size: 1.5rem;
}

.upgrade-header p {
    margin: 0 0 25px 0;
    font-size: 1.1rem;
    opacity: 0.9;
}

.upgrade-benefits {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 25px;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
}

.benefit-icon {
    font-size: 1.2rem;
    opacity: 0.9;
}

.upgrade-pricing {
    text-align: center;
}

.price-options {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.price-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    min-width: 120px;
    position: relative;
}

.price-option.popular {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

.popular-badge {
    position: absolute;
    top: -10px;
    background: #f39c12;
    color: white;
    padding: 3px 10px;
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: 600;
}

.price {
    font-size: 1.3rem;
    font-weight: 700;
}

.plan {
    font-size: 0.85rem;
    opacity: 0.8;
}

.upgrade-btn {
    background: white;
    color: #01387A;
    border: none;
    padding: 15px 30px;
    border-radius: 25px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 10px;
}

.upgrade-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.3);
}

.upgrade-pricing small {
    opacity: 0.8;
    font-size: 0.85rem;
}

/* Verification Badges */
.verification-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-right: 10px;
    vertical-align: middle;
}

.verification-badge.verified-basic {
    background: #27ae60;
    color: white;
}

.verification-badge.verified-premium {
    background: #f39c12;
    color: white;
}

.verification-badge.verified-organization {
    background: #9b59b6;
    color: white;
}

/* Verification Icons */
.verification-icon {
    width: 18px;
    height: 18px;
    margin-left: 6px;
    vertical-align: middle;
    filter: brightness(0) saturate(100%);
    transition: all 0.2s ease;
}

/* Different colors for different verification tiers */
.verification-icon.verification-icon-basic {
    filter: brightness(0) saturate(100%) invert(65%) sepia(86%) saturate(372%) hue-rotate(86deg) brightness(92%) contrast(87%); /* Green */
}

.verification-icon.verification-icon-premium {
    filter: brightness(0) saturate(100%) invert(74%) sepia(89%) saturate(1408%) hue-rotate(11deg) brightness(101%) contrast(91%); /* Orange/Gold */
}

.verification-icon.verification-icon-organization {
    filter: brightness(0) saturate(100%) invert(38%) sepia(73%) saturate(1227%) hue-rotate(256deg) brightness(95%) contrast(85%); /* Purple */
}

.verification-icon.verified-basic {
    filter: brightness(0) saturate(100%) invert(65%) sepia(86%) saturate(372%) hue-rotate(86deg) brightness(92%) contrast(87%); /* Green */
}

.verification-icon.verified-premium {
    filter: brightness(0) saturate(100%) invert(74%) sepia(89%) saturate(1408%) hue-rotate(11deg) brightness(101%) contrast(91%); /* Orange/Gold */
}

.verification-icon.verified-organization {
    filter: brightness(0) saturate(100%) invert(38%) sepia(73%) saturate(1227%) hue-rotate(256deg) brightness(95%) contrast(85%); /* Purple */
}

/* Hover effects for verification icons */
.verification-icon:hover {
    transform: scale(1.1);
    cursor: help;
}

/* Verification icon in campaign titles */
h3 .verification-icon,
.campaign-title .verification-icon {
    width: 20px;
    height: 20px;
    margin-left: 8px;
    margin-right: 4px;
}

/* Verification icon in user names */
.organizer-name .verification-icon,
.donor-name .verification-icon,
.user-name .verification-icon {
    width: 16px;
    height: 16px;
    margin-left: 4px;
}

/* Verification icon in navigation */
#nav-username .verification-icon {
    width: 14px;
    height: 14px;
    margin-left: 4px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .verification-modal-content,
    .application-modal-content,
    .donation-modal-content {
        margin: 10px;
        max-height: 95vh;
    }
    
    .verification-tiers {
        grid-template-columns: 1fr;
        padding: 20px;
    }
    
    .verification-tier.popular {
        transform: none;
    }
    
    .verification-tier.popular:hover {
        transform: translateY(-5px);
    }
    
    .process-steps {
        grid-template-columns: 1fr;
    }
    
    .amount-buttons {
        grid-template-columns: 1fr;
    }
    
    .tip-buttons {
        grid-template-columns: 1fr;
    }
    
    .price-options {
        flex-direction: column;
        align-items: center;
    }
    
    .upgrade-benefits {
        grid-template-columns: 1fr;
    }
    
    .application-actions {
        flex-direction: column;
    }
    
    .verification-header,
    .donation-form,
    .application-form {
        padding: 20px;
    }
}