/* ═══════════════════════════════════════════════════════════════
   SUCCESS PAGE - PREMIUM STYLES
   ═══════════════════════════════════════════════════════════════ */

:root {
    --checkout-primary: #3b82f6;
    --checkout-secondary: #8b5cf6;
    --checkout-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --checkout-gradient-soft: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    --checkout-success: #10b981;
    --glass-bg: rgba(255, 255, 255, 0.95);
    --glass-border: rgba(255, 255, 255, 0.3);
    --glass-shadow: 0 8px 32px rgba(102, 126, 234, 0.15);
    --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --border-radius: 16px;
    --border-radius-lg: 24px;
}

body.dark-mode {
    --glass-bg: rgba(15, 23, 42, 0.95);
    --glass-border: rgba(100, 116, 139, 0.3);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    box-sizing: border-box;
}

body {
    min-height: 100vh;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 50%, #e2e8f0 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    margin: 0;
}

body.dark-mode {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #334155 100%);
}

/* ═══════════════════════════════════════════════════════════════
   SUCCESS CONTAINER
   ═══════════════════════════════════════════════════════════════ */
.success-container {
    max-width: 600px;
    width: 100%;
    background: var(--glass-bg);
    backdrop-filter: blur(20px) saturate(180%);
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--glass-border);
    padding: 60px 40px;
    text-align: center;
    box-shadow: var(--glass-shadow);
    position: relative;
    z-index: 1;
    transition: var(--transition-smooth);
}

.success-container:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 48px rgba(102, 126, 234, 0.25);
}

/* ═══════════════════════════════════════════════════════════════
   SUCCESS ICON
   ═══════════════════════════════════════════════════════════════ */
.success-icon {
    width: 120px;
    height: 120px;
    margin: 0 auto 30px;
    background: linear-gradient(135deg, #10b981, #059669);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 60px;
    color: white;
    box-shadow: 0 12px 30px rgba(16, 185, 129, 0.4);
    animation: scaleIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) 0.3s both;
}

@keyframes scaleIn {
    from {
        transform: scale(0);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* ═══════════════════════════════════════════════════════════════
   TYPOGRAPHY
   ═══════════════════════════════════════════════════════════════ */
h1 {
    font-size: 2.5rem;
    font-weight: 900;
    color: #1e293b;
    margin-bottom: 16px;
    line-height: 1.2;
}

body.dark-mode h1 {
    color: #f1f5f9;
}

.success-message {
    font-size: 1.2rem;
    color: #64748b;
    margin-bottom: 12px;
    font-weight: 500;
}

body.dark-mode .success-message {
    color: #94a3b8;
}

/* ═══════════════════════════════════════════════════════════════
   PLAN INFO
   ═══════════════════════════════════════════════════════════════ */
.plan-info {
    display: inline-block;
    background: var(--checkout-gradient);
    color: white;
    padding: 16px 32px;
    border-radius: 20px;
    font-size: 1.2rem;
    font-weight: 800;
    margin: 24px 0;
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.3);
}

/* ═══════════════════════════════════════════════════════════════
   DETAILS BOX
   ═══════════════════════════════════════════════════════════════ */
.details-box {
    background: var(--checkout-gradient-soft);
    backdrop-filter: blur(20px) saturate(180%);
    border-radius: var(--border-radius);
    padding: 28px;
    margin: 30px 0;
    text-align: left;
    border: 2px solid rgba(59, 130, 246, 0.2);
}

body.dark-mode .details-box {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
    border-color: rgba(100, 116, 139, 0.3);
}

.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid rgba(203, 213, 225, 0.3);
}

body.dark-mode .detail-row {
    border-bottom-color: rgba(100, 116, 139, 0.3);
}

.detail-row:last-child {
    border-bottom: none;
}

.detail-label {
    font-weight: 700;
    color: #475569;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

body.dark-mode .detail-label {
    color: #cbd5e1;
}

.detail-value {
    font-weight: 700;
    color: #1e293b;
    font-size: 1.05rem;
}

body.dark-mode .detail-value {
    color: #f1f5f9;
}

.detail-value.status {
    color: #10b981;
    font-weight: 800;
}

.detail-value i {
    margin-right: 6px;
}

/* ═══════════════════════════════════════════════════════════════
   DASHBOARD BUTTON
   ═══════════════════════════════════════════════════════════════ */
.btn-dashboard {
    display: inline-block;
    background: var(--checkout-gradient);
    color: white;
    padding: 20px 48px;
    border-radius: var(--border-radius);
    font-size: 1.2rem;
    font-weight: 800;
    text-decoration: none;
    margin-top: 30px;
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.4);
    transition: var(--transition-smooth);
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.btn-dashboard:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 40px rgba(59, 130, 246, 0.5);
}

.btn-dashboard:active {
    transform: translateY(-2px);
}

/* ═══════════════════════════════════════════════════════════════
   THANK YOU NOTE
   ═══════════════════════════════════════════════════════════════ */
.thank-you-note {
    margin-top: 40px;
    padding-top: 32px;
    border-top: 2px solid rgba(203, 213, 225, 0.3);
    color: #64748b;
    font-size: 0.95rem;
    line-height: 1.7;
}

body.dark-mode .thank-you-note {
    border-top-color: rgba(100, 116, 139, 0.3);
    color: #94a3b8;
}

.thank-you-note p {
    margin: 8px 0;
}

.thank-you-note strong {
    color: #1e293b;
    font-weight: 800;
}

body.dark-mode .thank-you-note strong {
    color: #f1f5f9;
}

.thank-you-note a {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 800;
    transition: all 0.3s ease;
}

.thank-you-note a:hover {
    color: #8b5cf6;
    text-decoration: underline;
}

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
    body {
        padding: 20px 10px;
    }

    .success-container {
        padding: 40px 24px;
        border-radius: var(--border-radius);
    }

    h1 {
        font-size: 2rem;
    }

    .success-message {
        font-size: 1.1rem;
    }

    .plan-info {
        font-size: 1.1rem;
        padding: 14px 28px;
    }

    .details-box {
        padding: 20px;
    }

    .btn-dashboard {
        width: 100%;
        justify-content: center;
        padding: 18px 32px;
        font-size: 1.1rem;
    }

    .detail-label, .detail-value {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .success-container {
        padding: 30px 16px;
    }

    h1 {
        font-size: 1.6rem;
    }

    .success-icon {
        width: 100px;
        height: 100px;
        font-size: 50px;
    }

    .plan-info {
        font-size: 1rem;
        padding: 12px 24px;
    }

    .btn-dashboard {
        font-size: 1rem;
        padding: 16px 28px;
    }
}

/* ═══════════════════════════════════════════════════════════════
   ACCESSIBILITÉ
   ═══════════════════════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus states pour accessibilité */
.btn-dashboard:focus {
    outline: 3px solid rgba(59, 130, 246, 0.5);
    outline-offset: 2px;
}

.thank-you-note a:focus {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
    border-radius: 2px;
}