/* Comments Section Styles */
.comments-modal {
    position: fixed;
    bottom: -100%;
    left: 0;
    right: 0;
    height: 85vh;
    background: #1a1a1a;
    border-radius: 20px 20px 0 0;
    transition: bottom 0.3s ease;
    z-index: 2000;
    display: flex;
    flex-direction: column;
}

.comments-modal.active {
    bottom: 0;
}

.comments-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1999;
    display: none;
}

.comments-modal-overlay.active {
    display: block;
}

.comments-header {
    padding: 15px 20px;
    border-bottom: 1px solid #333;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.comments-header h5 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
}

.comments-header .close-btn {
    background: none;
    border: none;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
}

.comments-list {
    flex: 1;
    overflow-y: auto;
    padding: 15px 20px;
}

.comment-item {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
}

.comment-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    flex-shrink: 0;
}

.comment-content {
    flex: 1;
}

.comment-author {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 4px;
}

.comment-author .verified {
    color: #fbbf24;
    font-size: 12px;
    margin-left: 4px;
}

.comment-text {
    font-size: 14px;
    line-height: 1.4;
    margin-bottom: 6px;
}

.comment-meta {
    display: flex;
    gap: 15px;
    font-size: 12px;
    color: #888;
}

.comment-meta button {
    background: none;
    border: none;
    color: #888;
    cursor: pointer;
    padding: 0;
}

.comment-meta button:hover {
    color: #fff;
}

.comment-input-area {
    padding: 15px 20px;
    border-top: 1px solid #333;
    display: flex;
    gap: 10px;
    align-items: center;
}

.comment-input-area input {
    flex: 1;
    background: #2a2a2a;
    border: 1px solid #444;
    border-radius: 20px;
    padding: 10px 15px;
    color: #fff;
    font-size: 14px;
}

.comment-input-area input:focus {
    outline: none;
    border-color: #fbbf24;
}

.comment-input-area button {
    background: #fbbf24;
    border: none;
    color: #000;
    padding: 10px 20px;
    border-radius: 20px;
    font-weight: 600;
    cursor: pointer;
}

.comment-input-area button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Giving Modal Styles */
.giving-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    background: #1a1a1a;
    border-radius: 20px;
    width: 90%;
    max-width: 400px;
    max-height: 90vh;
    overflow-y: auto;
    z-index: 2001;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.giving-modal.active {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

.giving-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    display: none;
}

.giving-modal-overlay.active {
    display: block;
}

.giving-header {
    padding: 20px;
    border-bottom: 1px solid #333;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.giving-header h5 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.giving-body {
    padding: 25px;
}

.giving-step {
    display: none;
}

.giving-step.active {
    display: block;
}

.recipient-info {
    text-align: center;
    margin-bottom: 25px;
    padding: 20px;
    background: #2a2a2a;
    border-radius: 15px;
}

.recipient-info img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin-bottom: 10px;
}

.recipient-info h6 {
    margin: 10px 0 5px;
    font-size: 16px;
    font-weight: 600;
}

.recipient-info p {
    margin: 0;
    font-size: 13px;
    color: #888;
}

.amount-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 20px;
}

.amount-option {
    background: #2a2a2a;
    border: 2px solid #444;
    border-radius: 12px;
    padding: 15px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
}

.amount-option:hover {
    border-color: #fbbf24;
}

.amount-option.selected {
    background: #fbbf24;
    border-color: #fbbf24;
    color: #000;
}

.amount-option .currency {
    font-size: 12px;
    font-weight: 500;
}

.amount-option .value {
    font-size: 20px;
    font-weight: 700;
    display: block;
}

.custom-amount {
    margin-bottom: 20px;
}

.custom-amount label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    color: #888;
}

.custom-amount input {
    width: 100%;
    background: #2a2a2a;
    border: 2px solid #444;
    border-radius: 12px;
    padding: 12px 15px;
    color: #fff;
    font-size: 18px;
    font-weight: 600;
}

.custom-amount input:focus {
    outline: none;
    border-color: #fbbf24;
}

.phone-input {
    margin-bottom: 20px;
}

.phone-input label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    color: #888;
}

.phone-input input {
    width: 100%;
    background: #2a2a2a;
    border: 2px solid #444;
    border-radius: 12px;
    padding: 12px 15px;
    color: #fff;
    font-size: 16px;
}

.phone-input input:focus {
    outline: none;
    border-color: #fbbf24;
}

.giving-btn {
    width: 100%;
    background: #fbbf24;
    border: none;
    color: #000;
    padding: 15px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.giving-btn:hover {
    background: #f59e0b;
}

.giving-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.back-btn {
    width: 100%;
    background: #2a2a2a;
    border: none;
    color: #fff;
    padding: 12px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 10px;
}

.processing-animation {
    text-align: center;
    padding: 30px 0;
}

.mpesa-logo {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, #00a651 0%, #006b3d 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

.processing-text {
    margin-top: 15px;
    font-size: 16px;
    color: #888;
}

.processing-steps {
    margin-top: 20px;
    text-align: left;
}

.processing-step {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    padding: 12px;
    background: #2a2a2a;
    border-radius: 8px;
}

.processing-step .icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

.processing-step.completed .icon {
    background: #00a651;
    color: #fff;
}

.processing-step.active .icon {
    background: #fbbf24;
    color: #000;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.success-animation {
    text-align: center;
    padding: 30px 0;
}

.success-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: #00a651;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    animation: successPop 0.5s ease;
}

@keyframes successPop {
    0% {
        transform: scale(0);
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
    }
}

.success-text {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 10px;
}

.success-amount {
    font-size: 32px;
    font-weight: 700;
    color: #fbbf24;
    margin-bottom: 15px;
}

.success-recipient {
    color: #888;
    font-size: 14px;
}

.receipt-info {
    margin-top: 25px;
    background: #2a2a2a;
    border-radius: 12px;
    padding: 15px;
}

.receipt-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 13px;
}

.receipt-row .label {
    color: #888;
}

.receipt-row .value {
    font-weight: 600;
}

