/* =================================================================
   MIRROR AI SIGNUP - IMPROVED SPACING & VISUAL DESIGN
   Enhanced spacing, proportions, and visual hierarchy
   ================================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Enhanced Futuristic Variables */
:root {
    /* Deep space backgrounds */
    --bg-primary: #0a0b14;
    --bg-secondary: #12141d;
    --bg-card: #1a1d2e;
    --bg-card-elevated: #1e2133;
    
    /* Vibrant cosmic gradients */
    --gradient-purple: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    --gradient-cosmic: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #00f2fe 100%);
    --gradient-aurora: linear-gradient(135deg, #f093fb 0%, #f5576c 50%, #4facfe 100%);
    --gradient-ocean: linear-gradient(135deg, #00c6ff 0%, #0072ff 100%);
    
    /* Neon accent colors */
    --accent-purple: #8b5cf6;
    --accent-violet: #7c3aed;
    --accent-cyan: #00f2fe;
    --accent-pink: #f093fb;
    --accent-blue: #4facfe;
    
    /* Enhanced text hierarchy */
    --text-primary: #ffffff;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;
    --text-subtle: #64748b;
    --text-input: #9ca3af;
    
    /* Sophisticated borders and glows */
    --border-subtle: rgba(255, 255, 255, 0.05);
    --border-card: rgba(148, 163, 184, 0.1);
    --border-glow: rgba(0, 242, 254, 0.4);
    --glow-purple: rgba(139, 92, 246, 0.5);
    --glow-cyan: rgba(0, 242, 254, 0.5);
    
    /* Dynamic shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.15);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.25);
    --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.4);
    --shadow-cosmic: 0 30px 90px rgba(102, 126, 234, 0.3);
    --shadow-glow: 0 0 40px rgba(139, 92, 246, 0.3);
    
    /* Status colors */
    --success: #10b981;
    --warning: #f59e0b;
    --error: #ef4444;
    --info: #3b82f6;
}

/* Base Styles with Enhanced Typography */
html, body {
    background: var(--bg-primary) !important;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif !important;
    min-height: 100vh;
    color: var(--text-primary) !important;
    overflow-x: hidden;
}

/* Hide legacy elements from base.html - keep only custom header */
nav.navbar,
nav.quantum-nav,
.quantum-footer,
footer,
.legal-footer {
    display: none !important;
}

/* Override base.html container to allow full-width onboarding */
.container-fluid {
    padding: 0 !important;
    max-width: 100% !important;
}

.container {
    padding: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
}

/* ===== ENHANCED BACKGROUND EFFECTS ===== */
.quantum-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -2;
    overflow: hidden;
}

.quantum-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.quantum-layer-1 {
    background: 
        radial-gradient(circle at 20% 30%, rgba(139, 92, 246, 0.4) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(0, 242, 254, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(240, 147, 251, 0.2) 0%, transparent 70%);
    animation: quantumFloat1 20s ease-in-out infinite;
    opacity: 0.7;
}

.quantum-layer-2 {
    background: 
        radial-gradient(circle at 60% 20%, rgba(240, 147, 251, 0.25) 0%, transparent 40%),
        radial-gradient(circle at 40% 80%, rgba(102, 126, 234, 0.2) 0%, transparent 40%),
        radial-gradient(circle at 10% 50%, rgba(6, 182, 212, 0.15) 0%, transparent 50%);
    animation: quantumFloat2 25s ease-in-out infinite reverse;
    opacity: 0.5 !important;
}

@keyframes quantumFloat1 {
    0%, 100% { 
        transform: translate(0, 0) rotate(0deg) scale(1);
    }
    33% { 
        transform: translate(30px, -30px) rotate(120deg) scale(1.1);
    }
    66% { 
        transform: translate(-20px, 20px) rotate(240deg) scale(0.95);
    }
}

@keyframes quantumFloat2 {
    0%, 100% { 
        transform: translate(0, 0) rotate(0deg) scale(1);
    }
    50% { 
        transform: translate(-40px, -40px) rotate(180deg) scale(1.15);
    }
}

/* Enhanced Particle Canvas */
#particle-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    opacity: 0.6 !important;
    mix-blend-mode: screen;
}

/* Logo */
.auth-logo {
    position: fixed;
    top: 2rem;
    left: 2.5rem;
    display: flex;
    align-items: center;
    gap: 0.875rem;
    text-decoration: none;
    z-index: 100;
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-primary);
    transition: transform 0.2s ease;
}

.auth-logo:hover {
    transform: translateX(3px);
}

.auth-logo img {
    height: 36px;
    border-radius: 8px;
}

/* ===== IMPROVED MAIN CONTAINER ===== */
.onboarding-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    position: relative;
    gap: 3rem;
}

/* ===== ENHANCED PROGRESS BAR ===== */
.progress-wrapper {
    width: 100%;
    max-width: 700px;
    margin-bottom: 0;
    position: relative;
    z-index: 10;
}

.progress-bar {
    height: 3px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 999px;
    overflow: visible;
    margin-bottom: 2.5rem;
    position: relative;
}

.progress-bar::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 0;
    right: 0;
    bottom: -10px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(139, 92, 246, 0.1) 50%, 
        transparent 100%);
    animation: progressGlow 3s ease-in-out infinite;
}

@keyframes progressGlow {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.6; }
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea, #764ba2, #00f2fe);
    border-radius: 999px;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    box-shadow: 0 0 30px rgba(0, 242, 254, 0.6);
}

.progress-fill::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 14px;
    height: 14px;
    background: #00f2fe;
    border-radius: 50%;
    box-shadow: 0 0 20px rgba(0, 242, 254, 0.8);
    animation: pulseDot 2s ease-in-out infinite;
}

@keyframes pulseDot {
    0%, 100% { 
        box-shadow: 0 0 20px rgba(0, 242, 254, 0.8);
        transform: translateY(-50%) scale(1);
    }
    50% { 
        box-shadow: 0 0 30px rgba(0, 242, 254, 1);
        transform: translateY(-50%) scale(1.2);
    }
}

/* ===== IMPROVED STEP INDICATORS ===== */
.progress-steps {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    position: relative;
}

.progress-steps::before {
    content: '';
    position: absolute;
    top: 26px;
    left: 12%;
    right: 12%;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    z-index: -1;
}

.progress-step {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    opacity: 0.4;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.progress-step.active,
.progress-step.completed {
    opacity: 1;
}

.step-circle {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(26, 31, 58, 0.8);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    cursor: pointer;
}

.progress-step.active .step-circle {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    border-color: #8b5cf6;
    box-shadow: 
        0 0 0 10px rgba(139, 92, 246, 0.1),
        0 12px 30px rgba(139, 92, 246, 0.4);
    animation: stepPulse 2s ease-in-out infinite;
}

@keyframes stepPulse {
    0%, 100% { 
        box-shadow: 
            0 0 0 10px rgba(139, 92, 246, 0.1),
            0 12px 30px rgba(139, 92, 246, 0.4);
    }
    50% { 
        box-shadow: 
            0 0 0 14px rgba(139, 92, 246, 0.05),
            0 16px 40px rgba(139, 92, 246, 0.5);
    }
}

.progress-step.completed .step-circle {
    background: linear-gradient(135deg, #10b981, #059669);
    border-color: #10b981;
    box-shadow: 0 10px 25px rgba(16, 185, 129, 0.3);
}

.step-circle .step-number {
    font-size: 18px;
    font-weight: 700;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.step-circle .fa-check {
    display: none;
    font-size: 20px;
    color: white;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.progress-step.completed .step-circle .step-number {
    display: none;
}

.progress-step.completed .step-circle .fa-check {
    display: block;
}

.step-label {
    font-size: 0.95rem;
    color: var(--text-muted);
    text-align: center;
    font-weight: 500;
    transition: all 0.3s ease;
}

.progress-step.active .step-label {
    color: var(--text-primary);
    font-weight: 600;
    text-shadow: 0 0 20px rgba(139, 92, 246, 0.5);
}

/* ===== FLOATING CARD CONTAINER ===== */
.steps-container {
    width: 100%;
    max-width: 1100px;
    position: relative;
    z-index: 1;
    perspective: 1000px;
}

.step-panel {
    display: none;
    animation: stepFadeIn 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
}

.step-panel.active {
    display: block;
}

@keyframes stepFadeIn {
    from {
        opacity: 0;
        transform: translateY(30px) rotateX(-5deg);
    }
    to {
        opacity: 1;
        transform: translateY(0) rotateX(0);
    }
}

/* ===== STUNNING FORM CONTAINER ===== */
.signup-form,
.auth-container,
.email-verification-container {
    width: 100%;
    max-width: 520px;
    margin: 0 auto;
    background: linear-gradient(135deg,
        rgba(26, 31, 58, 0.7) 0%,
        rgba(22, 25, 43, 0.6) 100%);
    backdrop-filter: blur(40px) saturate(180%);
    -webkit-backdrop-filter: blur(40px) saturate(180%);
    border: 1px solid transparent;
    border-image: linear-gradient(135deg, 
        rgba(139, 92, 246, 0.3), 
        rgba(0, 242, 254, 0.3)) 1;
    border-radius: 32px;
    overflow: hidden;
    box-shadow: 
        0 30px 90px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.05),
        inset 0 2px 4px rgba(255, 255, 255, 0.03);
    position: relative;
    transform: translateZ(0);
}

/* Add cosmic glow effect */
.signup-form::before,
.email-verification-container::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, 
        #667eea, #764ba2, #00f2fe, #f093fb, #667eea);
    background-size: 400% 400%;
    border-radius: 32px;
    opacity: 0;
    z-index: -1;
    transition: opacity 0.3s ease;
    animation: borderRotate 10s linear infinite;
}

@keyframes borderRotate {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.signup-form:hover::before,
.email-verification-container:hover::before {
    opacity: 0.3;
}

/* ===== IMPROVED HEADER ===== */
.form-header,
.step-header {
    background: linear-gradient(135deg, 
        rgba(139, 92, 246, 0.95) 0%, 
        rgba(124, 58, 237, 0.9) 100%);
    backdrop-filter: blur(20px);
    padding: 3.5rem 3rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Animated background pattern */
.step-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 40% 20%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
    animation: patternFloat 15s ease-in-out infinite;
}

@keyframes patternFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-20px, -20px) scale(1.1); }
}

.step-title {
    font-size: 2.25rem;
    font-weight: 800;
    color: white;
    margin-bottom: 0.75rem;
    letter-spacing: -0.5px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    position: relative;
}

.step-subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    font-weight: 400;
    position: relative;
}

/* ===== IMPROVED FORM BODY ===== */
.form-body,
.signup-form .form-group:first-of-type {
    padding: 2.5rem 3rem;
}

.form-group {
    margin-bottom: 2rem;
    position: relative;
}

.form-label {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    color: var(--text-primary);
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.875rem;
    letter-spacing: 0.025em;
}

.form-label i {
    color: var(--accent-purple);
    font-size: 1rem;
}

/* ===== IMPROVED PRICING CARDS ===== */
.pricing-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem !important;
    padding: 2.5rem 2rem !important;
    max-width: 1000px;
    margin: 0 auto;
    background: transparent !important;
}

.pricing-card {
    background: linear-gradient(135deg, 
        rgba(26, 31, 58, 0.4) 0%,
        rgba(30, 37, 64, 0.35) 100%) !important;
    backdrop-filter: blur(40px) saturate(150%) !important;
    -webkit-backdrop-filter: blur(40px) saturate(150%) !important;
    border: 1px solid rgba(148, 163, 184, 0.12) !important;
    border-radius: 28px !important;
    padding: 3.5rem 2.5rem 3rem 2.5rem !important;
    position: relative !important;
    overflow: hidden !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
    cursor: pointer;
    box-shadow: 
        0 10px 40px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.05) !important;
}

/* Add subtle gradient overlay to cards */
.pricing-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(139, 92, 246, 0.05) 0%,
        transparent 60%);
    pointer-events: none;
    z-index: 0;
}

.pricing-card > * {
    position: relative;
    z-index: 1;
}

.pricing-card:hover {
    transform: translateY(-10px) scale(1.02) !important;
    background: linear-gradient(135deg, 
        rgba(26, 31, 58, 0.5) 0%,
        rgba(30, 37, 64, 0.45) 100%) !important;
    border-color: rgba(139, 92, 246, 0.4) !important;
    box-shadow: 
        0 25px 70px rgba(139, 92, 246, 0.15),
        0 15px 40px rgba(0, 0, 0, 0.2),
        0 0 0 1px rgba(139, 92, 246, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
}

.pricing-card.selected {
    background: linear-gradient(135deg, 
        rgba(26, 31, 58, 0.55) 0%,
        rgba(30, 37, 64, 0.5) 100%) !important;
    border: 2px solid rgba(139, 92, 246, 0.5) !important;
    box-shadow: 
        0 30px 80px rgba(139, 92, 246, 0.2),
        0 15px 40px rgba(0, 0, 0, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
}

.pricing-card.featured {
    border-color: var(--accent-purple);
}

.featured-badge {
    position: absolute;
    top: -12px;
    right: 2rem;
    background: var(--gradient-purple);
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.card-header {
    text-align: center;
    margin-bottom: 2rem;
}

.card-title {
    font-size: 1.65rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1.25rem;
}

.card-price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 6px;
    margin-bottom: 0.75rem;
}

.price-currency {
    font-size: 1.35rem;
    color: var(--text-secondary);
}

.price-amount {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.price-period {
    font-size: 1.1rem;
    color: var(--text-secondary);
}

.card-description p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    text-align: center;
    margin-bottom: 2rem;
}

.card-features {
    margin-bottom: 2rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 0.625rem 0;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.feature-item .fa-check-circle {
    color: var(--accent-purple);
    font-size: 1.1rem;
}

.select-plan-btn {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, 
        rgba(139, 92, 246, 0.95) 0%,
        rgba(124, 58, 237, 0.9) 100%) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    border: 1px solid rgba(139, 92, 246, 0.3) !important;
    border-radius: 14px;
    color: white !important;
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.625rem;
    box-shadow: 
        0 10px 28px rgba(139, 92, 246, 0.25),
        inset 0 1px 3px rgba(255, 255, 255, 0.2) !important;
}

.select-plan-btn:hover {
    transform: translateY(-3px) scale(1.02) !important;
    box-shadow: 
        0 14px 40px rgba(139, 92, 246, 0.35),
        0 8px 20px rgba(0, 0, 0, 0.15),
        inset 0 1px 3px rgba(255, 255, 255, 0.3) !important;
}

.select-plan-btn .fa-arrow-right {
    transition: transform 0.2s ease;
}

.select-plan-btn:hover .fa-arrow-right {
    transform: translateX(4px);
}

/* ===== IMPROVED INPUT FIELDS ===== */
.form-control,
.form-input {
    width: 100%;
    padding: 1rem 1.25rem;
    background: rgba(22, 25, 43, 0.6) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border: 1px solid rgba(148, 163, 184, 0.15) !important;
    border-radius: 14px;
    color: var(--text-primary);
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    outline: none;
}

.form-control::placeholder,
.form-input::placeholder {
    color: var(--text-input);
    font-weight: 400;
}

.form-control:hover,
.form-input:hover {
    background: rgba(22, 25, 43, 0.7) !important;
    border-color: rgba(148, 163, 184, 0.25) !important;
    transform: translateY(-1px) !important;
}

.form-control:focus,
.form-input:focus {
    background: rgba(22, 25, 43, 0.75) !important;
    border-color: rgba(139, 92, 246, 0.6) !important;
    box-shadow: 
        0 0 0 4px rgba(139, 92, 246, 0.1),
        0 0 20px rgba(139, 92, 246, 0.15),
        0 4px 12px rgba(0, 0, 0, 0.1) !important;
    transform: translateY(-2px) !important;
}

/* Password Field with Toggle */
.password-wrapper {
    position: relative;
}

.password-wrapper .form-input,
.password-wrapper .form-control {
    padding-right: 3.5rem;
}

.password-toggle {
    position: absolute;
    right: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0.375rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
}

.password-toggle:hover {
    color: var(--text-secondary);
}

/* ===== IMPROVED PASSWORD STRENGTH ===== */
.password-strength {
    margin-top: 1rem;
    background: var(--bg-card);
    padding: 1rem;
    border-radius: 12px;
    border: 1px solid var(--border-subtle);
}

.strength-bar {
    height: 5px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 999px;
    overflow: hidden;
    margin-bottom: 0.75rem;
}

.strength-fill {
    height: 100%;
    width: 0%;
    border-radius: 999px;
    transition: all 0.3s ease;
}

.strength-fill.weak {
    width: 33%;
    background: var(--error);
}

.strength-fill.medium {
    width: 66%;
    background: var(--warning);
}

.strength-fill.strong {
    width: 100%;
    background: var(--success);
}

.strength-text {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ===== IMPROVED SUBMIT BUTTON ===== */
.btn-submit,
.submit-btn {
    width: 100%;
    padding: 1.125rem;
    background: linear-gradient(135deg, 
        rgba(139, 92, 246, 0.95) 0%,
        rgba(124, 58, 237, 0.9) 100%) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    border: 1px solid rgba(139, 92, 246, 0.3) !important;
    border-radius: 14px;
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 2rem;
    margin-bottom: 1.75rem;
    box-shadow: 
        0 10px 28px rgba(139, 92, 246, 0.25),
        inset 0 1px 3px rgba(255, 255, 255, 0.2) !important;
}

.btn-submit:hover,
.submit-btn:hover {
    transform: translateY(-3px) scale(1.02) !important;
    box-shadow: 
        0 14px 40px rgba(139, 92, 246, 0.35),
        0 8px 20px rgba(0, 0, 0, 0.15),
        inset 0 1px 3px rgba(255, 255, 255, 0.3) !important;
}

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

/* Loading State */
.btn-submit.loading,
.submit-btn.loading {
    pointer-events: none;
    opacity: 0.8;
}

.btn-loader {
    display: none;
}

.btn-submit.loading .btn-text,
.btn-submit.loading .btn-icon,
.submit-btn.loading .btn-text,
.submit-btn.loading .btn-icon {
    display: none;
}

.btn-submit.loading .btn-loader,
.submit-btn.loading .btn-loader {
    display: block;
    width: 18px;
    height: 18px;
    border: 2px solid transparent;
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ===== IMPROVED EMAIL VERIFICATION ===== */
.email-verification-container {
    max-width: 650px;
    padding: 2.5rem 3rem 3rem;
    text-align: center;
}

.email-icon-wrapper {
    margin-bottom: 2rem;
}

.email-icon {
    font-size: 72px;
    color: var(--accent-purple);
}

.email-display {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--accent-purple);
    margin-top: 1.25rem;
}

.email-instructions {
    margin: 2.5rem auto 0;
    max-width: 550px;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.instruction-item {
    display: flex;
    gap: 1.25rem;
    padding: 1.25rem;
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: 14px;
    text-align: left;
}

.instruction-number {
    width: 40px;
    height: 40px;
    min-width: 40px;
    background: var(--gradient-purple);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    font-weight: 700;
    color: white;
}

.instruction-content h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.375rem;
    color: var(--text-primary);
}

.instruction-content p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.6;
}

.email-providers {
    margin-top: 2.5rem;
    text-align: center;
}

.providers-label {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 1.25rem;
}

.provider-buttons {
    display: flex;
    gap: 0.875rem;
    justify-content: center;
    flex-wrap: wrap;
}

.provider-btn {
    padding: 0.875rem 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: 14px;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    transition: all 0.2s ease;
    cursor: pointer;
}

.provider-btn:hover {
    border-color: var(--accent-purple);
    background: var(--accent-purple);
    color: white;
    transform: translateY(-2px);
}

.resend-section {
    text-align: center;
    margin-top: 2.5rem;
}

.resend-section p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 1.25rem;
}

.spam-reminder {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.25rem;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 10px;
    color: var(--info);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.resend-btn {
    padding: 0.875rem 1.75rem;
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: 14px;
    color: var(--text-primary);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
}

.resend-btn:hover {
    border-color: var(--accent-purple);
    background: var(--accent-purple);
    color: white;
}

.resend-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.resend-hint {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-top: 1rem;
}

.polling-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.625rem;
    padding: 1rem;
    margin-top: 2rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ===== PROMO CODE REMINDER - CLEAN & INFORMATIVE ===== */
.promo-reminder {
    max-width: 550px;
    margin: 2rem auto;
    padding: 1.25rem 1.75rem;
    background: rgba(139, 92, 246, 0.08);
    border: 2px solid rgba(139, 92, 246, 0.25);
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.1);
}

.promo-icon {
    font-size: 1.5rem;
    color: var(--accent-purple);
    animation: gentle-pulse 2s ease-in-out infinite;
}

@keyframes gentle-pulse {
    0%, 100% { opacity: 0.7; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.05); }
}

.promo-content {
    flex: 1;
}

.promo-content strong {
    display: block;
    color: var(--text-primary);
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.promo-content p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 0;
}

/* Payment Summary Promo Reminder */
.promo-code-reminder {
    padding: 1rem 1.25rem;
    margin: 1.5rem 0;
    background: rgba(59, 130, 246, 0.08);
    border: 1px solid rgba(59, 130, 246, 0.25);
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.promo-code-reminder i {
    color: var(--info);
    font-size: 1.1rem;
}

/* ===== IMPROVED FOOTER ===== */
.step-footer {
    text-align: center;
    margin-top: 2.5rem;
    padding: 2rem 2rem 2.5rem;
    border-top: none !important;
    background: transparent !important;
}

.step-footer p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
}

.step-footer a {
    color: var(--accent-purple);
    text-decoration: none;
    font-weight: 500;
}

.step-footer a:hover {
    text-decoration: underline;
}

.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
    padding: 0.625rem 1.25rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-bottom: 1.25rem;
}

.back-btn:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.08);
    transform: translateX(-4px);
}

/* ===== SECURITY BADGE ===== */
.security-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.625rem;
    padding: 0.875rem;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 10px;
    color: var(--success);
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
}

/* ===== TRUST INDICATORS ===== */
.trust-indicators {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 1.5rem;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.trust-item i {
    color: var(--success);
}

/* ===== HELP SECTION ===== */
.help-section {
    margin-top: 2.5rem;
    text-align: center;
}

.help-dropdown {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: 14px;
    padding: 0;
    cursor: pointer;
}

.help-dropdown summary {
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.625rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 600;
    list-style: none;
}

.help-dropdown summary::-webkit-details-marker {
    display: none;
}

.help-content {
    padding: 0 1.5rem 1.5rem;
    text-align: left;
}

.help-content ul {
    list-style: none;
    padding: 0;
    margin: 0 0 1rem 0;
}

.help-content li {
    padding: 0.5rem 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.help-content li::before {
    content: '• ';
    color: var(--accent-purple);
    font-weight: bold;
    margin-right: 0.5rem;
}

.support-link {
    color: var(--accent-purple);
    text-decoration: none;
    font-weight: 600;
}

.support-link:hover {
    text-decoration: underline;
}

/* Error Messages */
.form-error,
.input-feedback.error {
    color: var(--error);
    font-size: 0.9rem;
    margin-top: 0.625rem;
    padding: 0.875rem;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: 10px;
}

.form-error {
    display: none;
    text-align: center;
}

.form-error.show {
    display: block;
}

.input-feedback {
    display: none;
    margin-top: 0.625rem;
    padding: 0.625rem;
    border-radius: 10px;
    font-size: 0.9rem;
}

.input-feedback.show {
    display: block;
}

.input-feedback.success {
    color: var(--success);
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

/* Email Suggestion */
.email-suggestion {
    display: none;
    margin-top: 0.625rem;
    padding: 0.875rem;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 10px;
    color: #60a5fa;
    font-size: 0.9rem;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.email-suggestion strong {
    color: #3b82f6;
    font-weight: 600;
}

/* Progress indicator */
.form-progress {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
}

.progress-step-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 999px;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.step-number-small {
    font-weight: 700;
    color: var(--accent-purple);
}

/* Header animation */
.header-animation {
    position: absolute;
    top: -20px;
    right: -20px;
    width: 100px;
    height: 100px;
    pointer-events: none;
}

.pulse-ring {
    position: absolute;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    width: 100%;
    height: 100%;
    animation: pulseRing 2s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
}

.pulse-ring:nth-child(2) {
    animation-delay: 1s;
}

@keyframes pulseRing {
    0% {
        transform: scale(0.33);
        opacity: 1;
    }
    80%, 100% {
        transform: scale(1.2);
        opacity: 0;
    }
}

/* Email icon animation */
.email-icon-bg {
    position: absolute;
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    animation: iconPulse 3s ease-in-out infinite;
}

.email-checkmark {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 32px;
    height: 32px;
    background: var(--success);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
    animation: checkmarkPop 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes iconPulse {
    0%, 100% { transform: scale(1); opacity: 0.7; }
    50% { transform: scale(1.1); opacity: 1; }
}

@keyframes checkmarkPop {
    0% { transform: scale(0); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.card-glow {
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border-radius: 28px;
    opacity: 0;
    background: linear-gradient(135deg, var(--accent-purple), var(--accent-cyan));
    filter: blur(20px);
    z-index: -1;
    transition: opacity 0.3s ease;
}

.pricing-card:hover .card-glow {
    opacity: 0.3;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .onboarding-container {
        padding: 2rem 1rem;
        gap: 2rem;
    }
    
    .steps-container {
        padding: 1rem !important;
    }
    
    .auth-logo {
        top: 1rem;
        left: 1rem;
        font-size: 1.1rem;
    }
    
    .auth-logo img {
        height: 28px;
    }
    
    .signup-form,
    .auth-container,
    .email-verification-container {
        max-width: 100%;
        border-radius: 24px;
    }
    
    .form-header,
    .step-header {
        padding: 2.5rem 2rem;
    }
    
    .step-title {
        font-size: 1.875rem;
    }
    
    .form-body {
        padding: 2rem;
    }
    
    .signup-form .form-group:first-of-type {
        padding: 0 2rem;
        margin-top: 2rem;
    }
    
    .pricing-cards {
        grid-template-columns: 1fr;
        padding: 1.5rem;
        gap: 1.5rem !important;
    }
    
    .pricing-card {
        padding: 3rem 2rem 2.5rem 2rem !important;
    }
    
    .step-label {
        font-size: 0.8rem;
    }
    
    .step-circle {
        width: 46px;
        height: 46px;
    }
    
    .progress-wrapper {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .onboarding-container {
        padding: 1.5rem 0.75rem;
    }
    
    .step-label {
        display: none;
    }
    
    .auth-logo {
        font-size: 1rem;
    }
    
    .auth-logo img {
        height: 24px;
    }
    
    .form-header,
    .step-header {
        padding: 2rem 1.5rem;
    }
    
    .step-title {
        font-size: 1.5rem;
    }
    
    .form-body {
        padding: 1.5rem;
    }
    
    .signup-form .form-group:first-of-type {
        padding: 0 1.5rem;
    }
}

/* Focus Styles for Accessibility */
:focus-visible {
    outline: 2px solid var(--accent-purple);
    outline-offset: 2px;
}

/* Keyboard Navigation */
body.keyboard-navigation *:focus {
    outline: 2px solid var(--accent-purple);
    outline-offset: 2px;
}

/* Reduced Motion for Users Who Prefer It */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Skip link for accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--accent-purple);
    color: white;
    padding: 0.5rem 1rem;
    text-decoration: none;
    border-radius: 0 0 8px 0;
    z-index: 10000;
}

.skip-link:focus {
    top: 0;
}

/* Toast notifications */
.toast-container {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* Loading overlay */
.loading-overlay {
    position: fixed;
    inset: 0;
    background: rgba(10, 11, 20, 0.95);
    backdrop-filter: blur(10px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9998;
}

.loading-overlay[aria-hidden="false"] {
    display: flex;
}

.loading-spinner {
    text-align: center;
    color: var(--accent-purple);
}

.loading-spinner i {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.loading-spinner span {
    display: block;
    font-size: 1.125rem;
    color: var(--text-secondary);
}

/* =================================================================
   PAYMENT SUMMARY PAGE STYLES
   ================================================================= */

.payment-summary-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    position: relative;
    z-index: 10;
}

.summary-card {
    width: 100%;
    max-width: 600px;
    background: rgba(26, 29, 46, 0.85);
    backdrop-filter: blur(40px);
    border-radius: 24px;
    padding: 3rem 2.5rem;
    border: 1px solid rgba(148, 163, 184, 0.1);
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.5), 
                0 0 60px rgba(139, 92, 246, 0.15);
    position: relative;
    overflow: hidden;
    animation: slideUp 0.6s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.summary-card .card-glow {
    position: absolute;
    inset: -2px;
    background: linear-gradient(135deg, 
        rgba(139, 92, 246, 0.3) 0%,
        rgba(0, 242, 254, 0.2) 50%,
        rgba(139, 92, 246, 0.3) 100%);
    border-radius: 24px;
    opacity: 0;
    filter: blur(20px);
    animation: glowPulse 3s ease-in-out infinite;
    z-index: -1;
}

@keyframes glowPulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.6; }
}

/* Header Section */
.summary-header {
    text-align: center;
    margin-bottom: 3rem;
}

.success-icon-wrapper {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 40px rgba(16, 185, 129, 0.5);
    animation: successPop 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes successPop {
    0% {
        transform: scale(0) rotate(-180deg);
        opacity: 0;
    }
    100% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
}

.success-icon {
    font-size: 2.5rem;
    color: white;
}

.summary-title {
    font-size: 2rem;
    font-weight: 800;
    background: linear-gradient(135deg, #10b981 0%, #00f2fe 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.summary-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
}

/* Order Summary Section */
.order-summary {
    background: rgba(30, 33, 51, 0.6);
    border: 1px solid rgba(148, 163, 184, 0.08);
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.section-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.section-title::before {
    content: '';
    width: 4px;
    height: 20px;
    background: var(--gradient-purple);
    border-radius: 2px;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 1rem 0;
}

.plan-item {
    padding-top: 0;
}

.item-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.item-label {
    font-size: 0.875rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

.item-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
}

.item-price {
    display: flex;
    align-items: baseline;
    gap: 0.25rem;
    text-align: right;
}

.price-amount {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--accent-cyan);
}

.price-period {
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* Discount Item */
.discount-item {
    padding: 1rem;
    background: rgba(16, 185, 129, 0.05);
    border-radius: 12px;
    margin: 1rem 0;
}

.coupon-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.item-discount {
    display: flex;
    align-items: center;
}

.discount-amount {
    font-size: 1.25rem;
    font-weight: 700;
    color: #10b981;
}

/* Divider */
.summary-divider {
    height: 1px;
    background: linear-gradient(90deg, 
        transparent 0%,
        rgba(148, 163, 184, 0.2) 50%,
        transparent 100%);
    margin: 1.5rem 0;
}

/* Total Item */
.total-item {
    padding: 1.5rem 0 0;
    border-top: 2px solid rgba(148, 163, 184, 0.1);
}

.total-label {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-primary);
}

.billing-note {
    font-size: 0.875rem;
    color: var(--text-muted);
    font-weight: 400;
}

.total-price {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.total-amount {
    font-size: 2rem;
    font-weight: 900;
    background: var(--gradient-cosmic);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Payment Features */
.payment-features {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.feature-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 12px;
    font-size: 0.875rem;
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.feature-badge i {
    color: var(--accent-purple);
}

.feature-badge:hover {
    background: rgba(139, 92, 246, 0.15);
    border-color: rgba(139, 92, 246, 0.3);
    transform: translateY(-2px);
}

/* Payment Button */
.payment-btn {
    width: 100%;
    padding: 1.25rem 2rem;
    background: var(--gradient-cosmic);
    color: white;
    border: none;
    border-radius: 14px;
    font-size: 1.125rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.3);
    position: relative;
    overflow: hidden;
    margin-bottom: 2rem;
}

.payment-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.2) 0%,
        transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.payment-btn:hover::before {
    opacity: 1;
}

.payment-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(139, 92, 246, 0.5);
}

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

.payment-btn.loading .btn-text {
    opacity: 0;
}

.payment-btn.loading .btn-icon {
    opacity: 0;
}

.payment-btn .btn-loader {
    display: none;
    position: absolute;
}

.payment-btn.loading .btn-loader {
    display: block;
}

.payment-btn:disabled {
    cursor: not-allowed;
    opacity: 0.7;
}

/* Trust Indicators */
.trust-indicators {
    text-align: center;
    margin-bottom: 2rem;
}

.trust-text {
    font-size: 0.875rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.trust-text i {
    color: var(--accent-cyan);
}

.payment-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
}

.payment-logo {
    height: 28px;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.payment-logo:hover {
    opacity: 1;
}

/* Summary Footer */
.summary-footer {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(148, 163, 184, 0.08);
}

.summary-footer p {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.summary-footer a {
    color: var(--accent-cyan);
    text-decoration: none;
    transition: color 0.3s ease;
}

.summary-footer a:hover {
    color: var(--accent-purple);
    text-decoration: underline;
}

.support-text {
    margin-top: 0.75rem;
}

/* Quantum Background for Payment Page */
.quantum-bg-wrapper {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

.quantum-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.3;
    animation: orbFloat 20s ease-in-out infinite;
}

.orb-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.4) 0%, transparent 70%);
    top: -200px;
    left: -200px;
    animation-delay: 0s;
}

.orb-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(0, 242, 254, 0.3) 0%, transparent 70%);
    bottom: -150px;
    right: -150px;
    animation-delay: 7s;
}

.orb-3 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.3) 0%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: 14s;
}

@keyframes orbFloat {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(30px, -30px) scale(1.1);
    }
    66% {
        transform: translate(-20px, 20px) scale(0.9);
    }
}

/* Responsive Design for Payment Summary */
@media (max-width: 768px) {
    .payment-summary-container {
        padding: 1rem;
    }

    .summary-card {
        padding: 2rem 1.5rem;
        border-radius: 20px;
    }

    .summary-title {
        font-size: 1.75rem;
    }

    .success-icon-wrapper {
        width: 70px;
        height: 70px;
    }

    .success-icon {
        font-size: 2rem;
    }

    .order-summary {
        padding: 1.5rem;
    }

    .summary-item {
        flex-direction: column;
        gap: 0.75rem;
        align-items: flex-start;
    }

    .item-price,
    .total-price {
        align-items: flex-start;
    }

    .payment-features {
        gap: 0.5rem;
    }

    .feature-badge {
        padding: 0.625rem 1rem;
        font-size: 0.8125rem;
    }

    .payment-btn {
        font-size: 1rem;
        padding: 1.125rem 1.5rem;
    }
}

@media (max-width: 480px) {
    .summary-card {
        padding: 1.5rem 1rem;
    }

    .summary-title {
        font-size: 1.5rem;
    }

    .item-name {
        font-size: 1.125rem;
    }

    .price-amount {
        font-size: 1.25rem;
    }

    .total-amount {
        font-size: 1.75rem;
    }
}

/* ============================================
   SUCCESS PAGE STYLES
   ============================================ */

/* Success Container */
.success-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    position: relative;
    z-index: 1;
}

/* Success Card */
.success-card {
    position: relative;
    max-width: 700px;
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 32px;
    padding: 4rem 3rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3),
                0 0 0 1px rgba(255, 255, 255, 0.05) inset;
    overflow: hidden;
    animation: slideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.success-card.glassmorphic {
    background: rgba(255, 255, 255, 0.03);
}

/* Success Glow Effect */
.success-glow {
    position: absolute;
    inset: -2px;
    background: linear-gradient(
        135deg,
        rgba(16, 185, 129, 0.3) 0%,
        rgba(5, 150, 105, 0.2) 50%,
        rgba(4, 120, 87, 0.1) 100%
    );
    border-radius: 32px;
    opacity: 0;
    filter: blur(20px);
    z-index: -1;
    animation: successGlow 2s ease-in-out infinite;
}

@keyframes successGlow {
    0%, 100% {
        opacity: 0.3;
        transform: scale(1);
    }
    50% {
        opacity: 0.6;
        transform: scale(1.02);
    }
}

/* Success Animation Container */
.success-animation {
    display: flex;
    justify-content: center;
    margin-bottom: 2.5rem;
}

.checkmark-circle {
    width: 120px;
    height: 120px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: scaleIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) 0.3s both;
}

.checkmark {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    display: block;
    stroke-width: 3;
    stroke: #10b981;
    stroke-miterlimit: 10;
    box-shadow: 0 0 0 rgba(16, 185, 129, 0.4);
    animation: fillCheck 0.4s ease-in-out 0.4s forwards,
               scaleCheck 0.3s ease-in-out 0.9s both,
               pulseGlow 2s ease-in-out 1.2s infinite;
}

.checkmark-circle-path {
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    stroke-width: 3;
    stroke-miterlimit: 10;
    stroke: #10b981;
    fill: rgba(16, 185, 129, 0.1);
    animation: strokeCheck 0.6s cubic-bezier(0.65, 0, 0.45, 1) 0.4s forwards;
}

.checkmark-check {
    transform-origin: 50% 50%;
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    stroke-width: 3;
    stroke: #10b981;
    animation: strokeCheck 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.8s forwards;
}

@keyframes strokeCheck {
    100% {
        stroke-dashoffset: 0;
    }
}

@keyframes scaleCheck {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@keyframes fillCheck {
    100% {
        box-shadow: 0 0 40px rgba(16, 185, 129, 0.3);
    }
}

@keyframes pulseGlow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(16, 185, 129, 0.3);
    }
    50% {
        box-shadow: 0 0 40px rgba(16, 185, 129, 0.5);
    }
}

@keyframes scaleIn {
    0% {
        opacity: 0;
        transform: scale(0.5);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Success Content */
.success-content {
    text-align: center;
    margin-bottom: 3rem;
    animation: fadeInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.5s both;
}

.success-title {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.success-message {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0.75rem;
    line-height: 1.6;
}

.success-submessage {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.6;
}

/* What's Next Section */
.whats-next-section {
    margin-bottom: 3rem;
    animation: fadeInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.7s both;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1.5rem;
    text-align: center;
}

.next-steps {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.next-step-item {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
    padding: 1.25rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.next-step-item:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(16, 185, 129, 0.3);
    transform: translateX(8px);
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.1);
}

.step-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2) 0%, rgba(5, 150, 105, 0.1) 100%);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 12px;
    color: #10b981;
    font-size: 1.25rem;
}

.step-content {
    flex: 1;
}

.step-content h4 {
    font-size: 1.125rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0.375rem;
}

.step-content p {
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.5;
}

/* Quick Actions */
.quick-actions {
    margin-bottom: 2rem;
    animation: fadeInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.9s both;
}

.primary-action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    width: 100%;
    padding: 1.25rem 2rem;
    font-size: 1.125rem;
    font-weight: 600;
    color: #ffffff;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border: none;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 20px rgba(16, 185, 129, 0.3);
    text-decoration: none;
    margin-bottom: 1.5rem;
}

.primary-action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(16, 185, 129, 0.4);
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
}

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

.primary-action-btn i {
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.primary-action-btn:hover i {
    transform: translateX(4px);
}

.secondary-actions {
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.secondary-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 0.9375rem;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.secondary-link:hover {
    color: #10b981;
    transform: translateY(-2px);
}

.secondary-link i {
    font-size: 1rem;
}

/* Confirmation Details */
.confirmation-details {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    animation: fadeInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) 1.1s both;
}

.confirmation-text,
.receipt-text {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.625rem;
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 0.75rem;
    line-height: 1.6;
}

.confirmation-text:last-child,
.receipt-text:last-child {
    margin-bottom: 0;
}

.confirmation-text i,
.receipt-text i {
    color: #10b981;
    font-size: 1rem;
}

.confirmation-text strong {
    color: rgba(255, 255, 255, 0.8);
}

/* Slide Up Animation */
@keyframes slideUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Fade In Up Animation */
@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design for Success Page */
@media (max-width: 768px) {
    .success-container {
        padding: 1.5rem;
    }

    .success-card {
        padding: 3rem 2rem;
        border-radius: 24px;
    }

    .checkmark-circle {
        width: 100px;
        height: 100px;
    }

    .checkmark {
        width: 100px;
        height: 100px;
    }

    .success-title {
        font-size: 2rem;
    }

    .success-message {
        font-size: 1.125rem;
    }

    .section-title {
        font-size: 1.25rem;
    }

    .next-step-item {
        padding: 1rem;
        gap: 1rem;
    }

    .step-icon {
        width: 44px;
        height: 44px;
        font-size: 1.125rem;
    }

    .step-content h4 {
        font-size: 1rem;
    }

    .step-content p {
        font-size: 0.875rem;
    }

    .primary-action-btn {
        padding: 1.125rem 1.75rem;
        font-size: 1rem;
    }

    .secondary-actions {
        gap: 1.5rem;
    }
}

@media (max-width: 480px) {
    .success-card {
        padding: 2rem 1.5rem;
        border-radius: 20px;
    }

    .checkmark-circle {
        width: 80px;
        height: 80px;
    }

    .checkmark {
        width: 80px;
        height: 80px;
    }

    .success-title {
        font-size: 1.75rem;
    }

    .success-message {
        font-size: 1rem;
    }

    .section-title {
        font-size: 1.125rem;
    }

    .next-step-item {
        padding: 0.875rem;
        gap: 0.875rem;
    }

    .step-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .step-content h4 {
        font-size: 0.9375rem;
    }

    .step-content p {
        font-size: 0.8125rem;
    }

    .primary-action-btn {
        padding: 1rem 1.5rem;
        font-size: 0.9375rem;
    }

    .secondary-actions {
        flex-direction: column;
        gap: 1rem;
    }

    .confirmation-text,
    .receipt-text {
        font-size: 0.875rem;
        flex-direction: column;
        gap: 0.375rem;
    }
}

/* ============================================
   TRIAL MESSAGING STYLES - NEW
   ============================================ */

/* Trial Badge on Plan Cards */
.trial-badge {
    position: absolute;
    top: 16px;
    right: 20px;
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    z-index: 10;
    animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 6px 18px rgba(16, 185, 129, 0.5);
    }
}

/* Trial Disclaimer under Price */
.trial-disclaimer {
    font-size: 0.875rem;
    color: #10b981;
    margin-top: 0.5rem;
    font-weight: 500;
}

/* Trial Info Header (on plan selection page) */
.trial-info-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 16px;
    margin-top: 1rem;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
}

.trial-info-header i {
    font-size: 1.25rem;
    color: #10b981;
}

/* Trial Info Banner (on payment summary page) */
.trial-info-banner {
    background: linear-gradient(135deg, 
        rgba(59, 130, 246, 0.15) 0%,
        rgba(99, 102, 241, 0.1) 100%);
    border: 2px solid rgba(59, 130, 246, 0.3);
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    display: flex;
    gap: 1rem;
    animation: fadeIn 0.5s ease-out;
}

.trial-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #3b82f6, #6366f1);
    border-radius: 12px;
    color: white;
    font-size: 1.5rem;
}

.trial-content {
    flex: 1;
}

.trial-content h4 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #60a5fa;
    margin-bottom: 0.5rem;
}

.trial-content p {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

.trial-details {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

.trial-cancel {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
    font-style: italic;
}

/* Payment Success Banner (after payment validation) */
.payment-success-banner {
    background: linear-gradient(135deg, 
        rgba(16, 185, 129, 0.2) 0%,
        rgba(5, 150, 105, 0.15) 100%);
    border: 2px solid #10b981;
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    margin-bottom: 2.5rem;
    animation: successSlideIn 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 8px 32px rgba(16, 185, 129, 0.2);
}

@keyframes successSlideIn {
    0% {
        opacity: 0;
        transform: translateY(-20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.success-icon {
    font-size: 3rem;
    color: #10b981;
    margin-bottom: 1rem;
    animation: iconBounce 0.6s ease-out;
}

@keyframes iconBounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.payment-success-banner h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #10b981;
    margin-bottom: 0.5rem;
}

.success-message {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1rem;
}

.trial-badge-inline {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: rgba(59, 130, 246, 0.2);
    border: 1px solid rgba(59, 130, 246, 0.4);
    border-radius: 12px;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.9);
    margin-top: 0.75rem;
}

.trial-badge-inline i {
    font-size: 1.125rem;
    color: #60a5fa;
}

/* Trial Status Card (on success page) */
.trial-status-card {
    background: linear-gradient(135deg, 
        rgba(59, 130, 246, 0.1) 0%,
        rgba(99, 102, 241, 0.08) 100%);
    border: 2px solid rgba(59, 130, 246, 0.3);
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 2.5rem;
    animation: fadeInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.5s both;
}

.trial-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.trial-icon-large {
    width: 64px;
    height: 64px;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #3b82f6, #6366f1);
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.3);
}

.trial-icon-large i {
    font-size: 2rem;
    color: white;
}

.trial-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #60a5fa;
    margin-bottom: 0;
}

.trial-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.trial-info-item {
    background: rgba(30, 33, 51, 0.6);
    border: 1px solid rgba(148, 163, 184, 0.1);
    border-radius: 12px;
    padding: 1rem;
    text-align: center;
}

.info-label {
    display: block;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

.info-value {
    display: block;
    font-size: 1.125rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.9);
}

.trial-reminder {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 12px;
    margin-bottom: 1.5rem;
}

.trial-reminder i {
    color: #60a5fa;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.trial-reminder p {
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
    line-height: 1.5;
}

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

.trial-manage-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.875rem 1.75rem;
    background: rgba(59, 130, 246, 0.2);
    border: 1px solid rgba(59, 130, 246, 0.4);
    border-radius: 14px;
    color: #60a5fa;
    text-decoration: none;
    font-size: 0.9375rem;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.trial-manage-btn:hover {
    background: rgba(59, 130, 246, 0.3);
    border-color: rgba(59, 130, 246, 0.6);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.3);
}

.trial-manage-btn i {
    font-size: 1rem;
}

.trial-manage-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.trial-manage-btn:disabled:hover {
    background: rgba(59, 130, 246, 0.2);
    border-color: rgba(59, 130, 246, 0.4);
    transform: none;
    box-shadow: none;
}

/* Error Page Container */
.error-page-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    position: relative;
    z-index: 10;
}

.error-card {
    max-width: 600px;
    width: 100%;
    background: rgba(26, 29, 46, 0.85);
    backdrop-filter: blur(40px);
    border-radius: 28px;
    padding: 3rem 2.5rem;
    border: 1px solid rgba(148, 163, 184, 0.1);
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.5);
    position: relative;
    overflow: hidden;
    animation: slideUp 0.6s ease-out;
    text-align: center;
}

.error-card.glassmorphic {
    background: rgba(26, 29, 46, 0.85);
}

.error-glow {
    position: absolute;
    inset: -2px;
    background: linear-gradient(135deg, 
        rgba(239, 68, 68, 0.3) 0%,
        rgba(220, 38, 38, 0.2) 50%,
        rgba(239, 68, 68, 0.3) 100%);
    border-radius: 28px;
    opacity: 0;
    filter: blur(20px);
    animation: errorGlow 2s ease-in-out infinite;
    z-index: -1;
}

@keyframes errorGlow {
    0%, 100% {
        opacity: 0.3;
    }
    50% {
        opacity: 0.5;
    }
}

.error-icon-wrapper {
    margin-bottom: 2rem;
}

.error-icon {
    font-size: 4rem;
    color: #ef4444;
    animation: errorShake 0.6s ease-out;
}

.error-icon.warning {
    color: #f59e0b;
}

@keyframes errorShake {
    0%, 100% {
        transform: translateX(0);
    }
    25% {
        transform: translateX(-10px);
    }
    75% {
        transform: translateX(10px);
    }
}

.error-header {
    margin-bottom: 2rem;
}

.error-title {
    font-size: 2rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 0.75rem;
}

.error-subtitle {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.7);
}

.error-message {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin-bottom: 2rem;
}

.info-box,
.reasons-box {
    background: rgba(30, 33, 51, 0.6);
    border: 1px solid rgba(148, 163, 184, 0.1);
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    text-align: left;
}

.info-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(59, 130, 246, 0.2);
    border-radius: 10px;
    color: #60a5fa;
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.info-content h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1rem;
}

.info-content ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.info-content li {
    padding: 0.5rem 0;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9375rem;
    line-height: 1.5;
}

.info-content li::before {
    content: '✓ ';
    color: #10b981;
    font-weight: 700;
    margin-right: 0.5rem;
}

.reasons-box {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.reason-item {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 0.875rem;
    background: rgba(22, 25, 43, 0.6);
    border-radius: 10px;
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.8);
}

.reason-item i {
    color: #f59e0b;
    font-size: 1.125rem;
}

.error-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.retry-btn {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
}

.retry-btn:hover {
    background: linear-gradient(135deg, #059669, #047857);
}

.secondary-action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.625rem;
    padding: 1rem 2rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.secondary-action-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.support-section {
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.support-section p {
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 0.5rem;
}

.support-link {
    color: #60a5fa;
    text-decoration: none;
    font-weight: 600;
}

.support-link:hover {
    text-decoration: underline;
}

.support-note {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.5);
}

/* Responsive - Trial Elements */
@media (max-width: 768px) {
    .trial-info-banner {
        flex-direction: column;
        text-align: center;
    }

    .trial-icon {
        margin: 0 auto;
    }

    .trial-info-grid {
        grid-template-columns: 1fr;
    }

    .error-card {
        padding: 2rem 1.5rem;
    }

    .error-title {
        font-size: 1.75rem;
    }

    .error-icon {
        font-size: 3.5rem;
    }
}

@media (max-width: 480px) {
    .trial-badge {
        top: 12px;
        right: 10px;
        padding: 0.375rem 0.75rem;
        font-size: 0.75rem;
    }

    .payment-success-banner {
        padding: 1.5rem 1rem;
    }

    .payment-success-banner h2 {
        font-size: 1.5rem;
    }

    .trial-status-card {
        padding: 1.5rem 1rem;
    }

    .trial-header h3 {
        font-size: 1.25rem;
    }

    .error-card {
        padding: 1.5rem 1rem;
    }

    .error-title {
        font-size: 1.5rem;
    }

    .error-actions {
        gap: 0.75rem;
    }
}
