/* Confirmation Page */
.page-confirmation {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
}

.confirmation-modal {
    width: 100%;
    max-width: 480px;
    background: rgba(255, 255, 255, 0.98);
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
    animation: slideIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.confirmation-modal h2 {
    text-align: center;
    font-size: 26px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 28px;
}

.confirmation-details {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.08) 0%, rgba(118, 75, 162, 0.08) 100%);
    border-radius: 16px;
    padding: 20px 24px;
    margin-bottom: 28px;
    border: 1px solid rgba(102, 126, 234, 0.15);
}

.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid rgba(102, 126, 234, 0.1);
}

.detail-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.detail-row:first-child {
    padding-top: 0;
}

.detail-label {
    font-size: 13px;
    color: #64748b;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.detail-value {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a2e;
    text-align: right;
    max-width: 60%;
}

.error-text {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #dc2626;
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 14px;
    text-align: center;
    margin-bottom: 20px;
}

.confirmation-actions {
    display: flex;
    gap: 12px;
}

.confirmation-actions button {
    flex: 1;
    padding: 14px 24px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
}

.back-btn {
    background: #f1f5f9;
    color: #64748b;
    border: 1px solid #e2e8f0 !important;
}

.back-btn:hover {
    background: #e2e8f0;
    color: #475569;
}

.confirm-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.confirm-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
}

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

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.loading-overlay.active {
    opacity: 1;
    visibility: visible;
}

.loading-content {
    text-align: center;
    color: white;
}

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(255, 255, 255, 0.2);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 24px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-text {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px;
}

.loading-subtext {
    font-size: 14px;
    opacity: 0.9;
}

.loading-dots {
    display: inline-block;
}

.loading-dots span {
    animation: blink 1.4s infinite;
    animation-fill-mode: both;
}

.loading-dots span:nth-child(2) {
    animation-delay: 0.2s;
}

.loading-dots span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes blink {
    0%, 80%, 100% { opacity: 0; }
    40% { opacity: 1; }
}

@media (max-width: 600px) {
    .page-confirmation {
        padding: 16px;
    }

    .confirmation-modal {
        padding: 28px 24px;
        border-radius: 20px;
    }

    .confirmation-modal h2 {
        font-size: 22px;
        margin-bottom: 24px;
    }

    .confirmation-details {
        padding: 16px 18px;
        margin-bottom: 24px;
    }

    .detail-row {
        padding: 12px 0;
    }

    .detail-label {
        font-size: 12px;
    }

    .detail-value {
        max-width: 55%;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .confirmation-modal {
        padding: 24px 20px;
        border-radius: 16px;
    }

    .confirmation-modal h2 {
        font-size: 20px;
        margin-bottom: 20px;
    }

    .confirmation-details {
        padding: 14px 16px;
        border-radius: 12px;
    }

    .detail-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
        padding: 10px 0;
    }

    .detail-value {
        max-width: 100%;
        text-align: left;
        font-size: 15px;
    }

    .confirmation-actions {
        flex-direction: column-reverse;
        gap: 10px;
    }

    .confirmation-actions button {
        width: 100%;
        padding: 14px 20px;
    }

    .error-text {
        font-size: 13px;
        padding: 10px 14px;
    }
}

@media (max-width: 360px) {
    .confirmation-modal {
        padding: 20px 16px;
    }

    .confirmation-modal h2 {
        font-size: 18px;
    }

    .detail-label {
        font-size: 11px;
    }

    .detail-value {
        font-size: 14px;
    }
}