/* ═══════════════════════════════════════════════════════════════
   Jeloda — Premium Registration Wizard
   Modern multi-step onboarding with glassmorphism & animations
   ═══════════════════════════════════════════════════════════════ */

/* ─── Google Font ──────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

/* ─── CSS Custom Properties ────────────────────────────────── */
:root {
    --wizard-bg-1: #0f172a;
    --wizard-bg-2: #1e3a8a;
    --wizard-bg-3: #172554;
    --accent: #3b7ddd;
    --accent-light: #83b1f0;
    --accent-glow: rgba(59, 125, 221, 0.4);
    --success: #10b981;
    --success-glow: rgba(16, 185, 129, 0.3);
    --warning: #f59e0b;
    --danger: #ef4444;
    --glass-bg: rgba(255, 255, 255, 0.06);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-bg-hover: rgba(255, 255, 255, 0.1);
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --card-bg: rgba(15, 23, 42, 0.6);
    --input-bg: rgba(255, 255, 255, 0.07);
    --input-border: rgba(255, 255, 255, 0.12);
    --input-focus: var(--accent);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 16px 64px rgba(0, 0, 0, 0.4);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ─── Reset & Base ─────────────────────────────────────────── */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body.wizard-body {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--wizard-bg-1);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ─── Animated Background ──────────────────────────────────── */
.wizard-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    background: linear-gradient(-45deg, #0f0c29, #1e3a8a, #0c1a33, #0a1128);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
}

.wizard-bg::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 20% 50%, rgba(59, 125, 221, 0.08) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(30, 64, 175, 0.06) 0%, transparent 50%),
                radial-gradient(circle at 40% 80%, rgba(37, 99, 235, 0.05) 0%, transparent 50%);
    animation: floatingOrbs 20s ease-in-out infinite;
}

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

@keyframes floatingOrbs {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(30px, -50px) rotate(120deg); }
    66% { transform: translate(-20px, 20px) rotate(240deg); }
}

/* ─── Main Wizard Container ────────────────────────────────── */
.wizard-container {
    position: relative;
    z-index: 1;
    max-width: 680px;
    width: 95%;
    margin: 2rem auto;
    padding: 0 1rem;
    min-height: calc(100vh - 4rem);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* ─── Logo ─────────────────────────────────────────────────── */
.wizard-logo {
    text-align: center;
    margin-bottom: 1.5rem;
}

.wizard-logo img {
    max-height: 60px;
    width: auto;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.3));
    transition: var(--transition);
}

.wizard-logo img:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 6px 20px rgba(124, 58, 237, 0.3));
}

/* ─── Progress Bar ─────────────────────────────────────────── */
.wizard-progress {
    width: 100%;
    max-width: 520px;
    margin: 0 auto 2rem;
    padding: 0 1rem;
}

.progress-track {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.progress-track::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 30px;
    right: 30px;
    height: 3px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 2px;
    z-index: 0;
}

.progress-fill {
    position: absolute;
    top: 20px;
    left: 30px;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--accent-light));
    border-radius: 2px;
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
    box-shadow: 0 0 12px var(--accent-glow);
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
    cursor: default;
}

.step-circle {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--card-bg);
    border: 2px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    transition: var(--transition);
    position: relative;
}

.step-circle i {
    font-size: 1rem;
}

.step-label {
    margin-top: 0.5rem;
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: var(--transition);
    text-align: center;
    white-space: nowrap;
}

/* Progress step states */
.progress-step.active .step-circle {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
    box-shadow: 0 0 20px var(--accent-glow), 0 0 40px rgba(59, 125, 221, 0.2);
    transform: scale(1.1);
}

.progress-step.active .step-label {
    color: var(--accent-light);
    font-weight: 600;
}

.progress-step.completed .step-circle {
    background: var(--success);
    border-color: var(--success);
    color: #fff;
    box-shadow: 0 0 12px var(--success-glow);
}

.progress-step.completed .step-label {
    color: var(--success);
}

/* ─── Wizard Card (Glass) ──────────────────────────────────── */
.wizard-card {
    width: 100%;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.wizard-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
}

/* ─── Step Panels ──────────────────────────────────────────── */
.wizard-steps {
    position: relative;
    overflow: hidden;
    min-height: 340px;
}

.wizard-step {
    display: none;
    animation-duration: 0.4s;
    animation-fill-mode: both;
    animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

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

.wizard-step.slide-in-right {
    animation-name: slideInRight;
}

.wizard-step.slide-in-left {
    animation-name: slideInLeft;
}

.wizard-step.slide-out-left {
    animation-name: slideOutLeft;
}

.wizard-step.slide-out-right {
    animation-name: slideOutRight;
}

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(40px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-40px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes slideOutLeft {
    from { opacity: 1; transform: translateX(0); }
    to { opacity: 0; transform: translateX(-40px); }
}

@keyframes slideOutRight {
    from { opacity: 1; transform: translateX(0); }
    to { opacity: 0; transform: translateX(40px); }
}

/* ─── Step Header ──────────────────────────────────────────── */
.step-header {
    text-align: center;
    margin-bottom: 2rem;
}

.step-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.4rem;
}

.step-header p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 300;
}

/* ─── Form Fields ──────────────────────────────────────────── */
.wizard-form-group {
    margin-bottom: 1.25rem;
}

.wizard-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 0.4rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

body.wizard-body .wizard-input-wrap {
    position: relative !important;
    display: block !important;
}

body.wizard-body .wizard-input-wrap .field-icon {
    position: absolute !important;
    left: 14px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    color: var(--text-muted);
    font-size: 0.95rem;
    transition: var(--transition);
    pointer-events: none;
    z-index: 5;
    line-height: 1;
    margin: 0 !important;
    padding: 0 !important;
    width: 1em !important;
    height: 1em !important;
    overflow: visible !important;
}

body.wizard-body .wizard-input {
    width: 100% !important;
    padding: 0.85rem 1rem 0.85rem 2.75rem !important;
    background: var(--input-bg) !important;
    border: 1.5px solid var(--input-border) !important;
    border-radius: var(--radius-md) !important;
    color: var(--text-primary) !important;
    font-family: 'Outfit', sans-serif !important;
    font-size: 0.95rem !important;
    font-weight: 400;
    transition: var(--transition);
    outline: none !important;
    height: auto !important;
    line-height: 1.5 !important;
    box-shadow: none;
}

body.wizard-body .wizard-input::placeholder {
    color: var(--text-muted) !important;
    font-weight: 300;
}

body.wizard-body .wizard-input:focus {
    border-color: var(--accent) !important;
    background: rgba(59, 125, 221, 0.06) !important;
    box-shadow: 0 0 0 3px rgba(59, 125, 221, 0.15) !important;
}

body.wizard-body .wizard-input:focus ~ .field-icon {
    color: var(--accent-light);
}

body.wizard-body .wizard-input.is-valid {
    border-color: var(--success) !important;
}

body.wizard-body .wizard-input.is-invalid {
    border-color: var(--danger) !important;
}

/* Select styling */
body.wizard-body .wizard-select {
    width: 100% !important;
    padding: 0.85rem 2.5rem 0.85rem 2.75rem !important;
    background-color: var(--input-bg) !important;
    border: 1.5px solid var(--input-border) !important;
    border-radius: var(--radius-md) !important;
    color: var(--text-primary) !important;
    font-family: 'Outfit', sans-serif !important;
    font-size: 0.95rem !important;
    transition: var(--transition);
    outline: none !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2394a3b8' d='M6 8.825L.35 3.175l.7-.7L6 7.425l4.95-4.95.7.7z'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 14px center !important;
    height: auto !important;
    line-height: 1.5 !important;
}

body.wizard-body .wizard-select:focus {
    border-color: var(--accent) !important;
    box-shadow: 0 0 0 3px rgba(59, 125, 221, 0.15) !important;
}

body.wizard-body .wizard-select option {
    background: #0f172a;
    color: var(--text-primary);
}

/* Password toggle */
body.wizard-body .btn-password-toggle {
    position: absolute !important;
    right: 12px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    background: none !important;
    border: none !important;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px !important;
    font-size: 0.95rem;
    transition: var(--transition);
    z-index: 5;
    margin: 0 !important;
    width: auto !important;
    height: auto !important;
    line-height: 1;
}

body.wizard-body .btn-password-toggle:hover {
    color: var(--accent-light);
}

/* Password strength */
.password-strength {
    margin-top: 0.5rem;
    display: flex;
    gap: 4px;
    align-items: center;
}

.strength-bar {
    flex: 1;
    height: 3px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.08);
    transition: var(--transition);
}

.strength-bar.active.weak { background: var(--danger); }
.strength-bar.active.medium { background: var(--warning); }
.strength-bar.active.strong { background: var(--success); }

.strength-text {
    font-size: 0.7rem;
    font-weight: 500;
    margin-left: 0.5rem;
    min-width: 50px;
    text-align: right;
}

.strength-text.weak { color: var(--danger); }
.strength-text.medium { color: var(--warning); }
.strength-text.strong { color: var(--success); }

/* Field validation messages */
.field-feedback {
    font-size: 0.75rem;
    margin-top: 0.3rem;
    display: none;
    align-items: center;
    gap: 4px;
}

.field-feedback.show { display: flex; }
.field-feedback.valid { color: var(--success); }
.field-feedback.invalid { color: var(--danger); }

/* Row grid for form */
.wizard-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

/* ─── Navigation Buttons ───────────────────────────────────── */
.wizard-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 2rem;
    gap: 1rem;
}

.btn-wizard {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.85rem 1.75rem;
    border-radius: var(--radius-md);
    font-family: 'Outfit', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    outline: none;
    text-decoration: none;
    white-space: nowrap;
}

.btn-wizard:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

.btn-prev {
    background: transparent;
    color: var(--text-secondary);
    border: 1.5px solid var(--glass-border);
}

.btn-prev:hover:not(:disabled) {
    background: var(--glass-bg-hover);
    color: var(--text-primary);
    border-color: rgba(255, 255, 255, 0.2);
}

.btn-next {
    background: linear-gradient(135deg, var(--accent), #2b50aa);
    color: #fff;
    flex: 1;
    max-width: 220px;
    box-shadow: 0 4px 16px var(--accent-glow);
}

.btn-next:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px var(--accent-glow);
}

.btn-next:active:not(:disabled) {
    transform: translateY(0);
}

.btn-submit-wizard {
    background: linear-gradient(135deg, var(--success), #059669);
    color: #fff;
    flex: 1;
    max-width: 260px;
    box-shadow: 0 4px 16px var(--success-glow);
}

.btn-submit-wizard:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px var(--success-glow);
}

/* Loading spinner in button */
.btn-wizard .spinner-icon {
    display: none;
    animation: spin 1s linear infinite;
}

.btn-wizard.loading .btn-text { display: none; }
.btn-wizard.loading .spinner-icon { display: inline-block; }

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

/* ─── Step 3: Single Plan Card ─────────────────────────────── */
.single-plan-card {
    background: var(--card-bg);
    border: 1.5px solid var(--accent);
    border-radius: var(--radius-xl);
    padding: 2rem 1.75rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}

.single-plan-card .plan-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(59, 125, 221, 0.08) 0%, transparent 60%);
    pointer-events: none;
    animation: pulseGlow 4s ease-in-out infinite;
}

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

.single-plan-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--accent-light), var(--accent));
    background-size: 200% 100%;
    animation: shimmerBar 3s ease-in-out infinite;
}

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

.plan-header-row {
    position: relative;
    z-index: 1;
    margin-bottom: 1rem;
}

.plan-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 1rem;
    background: linear-gradient(135deg, var(--accent), #1e40af);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.plan-price-block {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 2px;
    margin-bottom: 0.5rem;
}

.plan-currency {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1;
}

.plan-amount {
    font-size: 4rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1;
    letter-spacing: -2px;
}

.plan-cents {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.plan-period {
    font-size: 1rem;
    font-weight: 400;
    color: var(--text-muted);
    margin-left: 2px;
}

.plan-tagline {
    position: relative;
    z-index: 1;
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 400;
    margin-bottom: 1.5rem;
    letter-spacing: 0.2px;
}

.plan-features-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.6rem 1rem;
    text-align: left;
}

.plan-feat {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.82rem;
    color: var(--text-secondary);
}

.plan-feat svg,
.plan-feat i {
    color: var(--success) !important;
    font-size: 0.8rem;
    flex-shrink: 0;
    width: 1em !important;
    height: 1em !important;
}

/* Duration selector */
.duration-selector {
    margin-top: 1.25rem;
    text-align: center;
}

.duration-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 0.65rem;
}

.duration-options {
    display: flex;
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: 4px;
}

.duration-option {
    flex: 1;
    padding: 0.65rem 0.75rem;
    text-align: center;
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--text-muted);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
    border: none;
    background: none;
    font-family: 'Outfit', sans-serif;
}

.duration-option:hover {
    color: var(--text-secondary);
}

.duration-option.active {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 2px 8px var(--accent-glow);
}

/* Cost summary */
.cost-summary {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    margin-top: 1rem;
}

.cost-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.4rem 0;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.cost-row.total {
    border-top: 1px solid var(--glass-border);
    margin-top: 0.3rem;
    padding-top: 0.65rem;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
}

.cost-value {
    font-weight: 600;
    color: var(--text-primary);
}

.cost-row.total .cost-value {
    color: var(--accent-light);
    font-size: 1.3rem;
}

/* ─── Step 4: Checkout Summary ─────────────────────────────── */
.checkout-summary {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.checkout-item {
    display: flex;
    justify-content: space-between;
    padding: 0.6rem 0;
    font-size: 0.9rem;
    color: var(--text-secondary);
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.checkout-item:last-child {
    border-bottom: none;
}

.checkout-item .label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.checkout-item .label i {
    color: var(--accent-light);
    font-size: 0.85rem;
    width: 20px;
}

.checkout-item .value {
    font-weight: 600;
    color: var(--text-primary);
}

.checkout-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    margin-top: 0.5rem;
    background: rgba(59, 125, 221, 0.08);
    border: 1px solid rgba(59, 125, 221, 0.2);
    border-radius: var(--radius-md);
}

.checkout-total .label {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.checkout-total .value {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--accent-light);
}

.security-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
    padding: 0.75rem;
    background: rgba(16, 185, 129, 0.06);
    border: 1px solid rgba(16, 185, 129, 0.15);
    border-radius: var(--radius-md);
    font-size: 0.8rem;
    color: var(--success);
}

.security-badge i {
    font-size: 1rem;
}

.payment-methods {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.payment-method-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 0.85rem;
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    color: var(--text-muted);
    gap: 0.35rem;
}

.payment-method-icon i {
    font-size: 1rem;
}

/* ─── Step 5: Success ──────────────────────────────────────── */
.success-container {
    text-align: center;
    padding: 2rem 0;
}

.success-checkmark {
    width: 100px;
    height: 100px;
    margin: 0 auto 1.5rem;
    position: relative;
}

.checkmark-circle {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--success), #059669);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: successPop 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    box-shadow: 0 0 40px var(--success-glow), 0 0 80px rgba(16, 185, 129, 0.15);
}

.checkmark-circle i {
    font-size: 2.5rem;
    color: #fff;
    animation: checkDraw 0.4s ease 0.3s both;
}

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

@keyframes checkDraw {
    from { opacity: 0; transform: scale(0.5); }
    to { opacity: 1; transform: scale(1); }
}

.success-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.success-subtitle {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-weight: 300;
}

.success-details {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    margin-bottom: 1.5rem;
    text-align: left;
}

.success-detail-row {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    font-size: 0.85rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

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

.success-detail-row .detail-label {
    color: var(--text-muted);
}

.success-detail-row .detail-value {
    color: var(--text-primary);
    font-weight: 600;
}

.success-redirect {
    margin-top: 1.5rem;
}

.redirect-text {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}

.redirect-progress {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.redirect-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent), var(--success));
    border-radius: 2px;
    width: 0%;
    animation: fillProgress 5s linear forwards;
}

@keyframes fillProgress {
    to { width: 100%; }
}

.btn-go-dashboard {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 2rem;
    background: linear-gradient(135deg, var(--accent), #1e40af);
    color: #fff;
    border: none;
    border-radius: var(--radius-md);
    font-family: 'Outfit', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    box-shadow: 0 4px 16px var(--accent-glow);
}

.btn-go-dashboard:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px var(--accent-glow);
    color: #fff;
    text-decoration: none;
}

/* ─── Footer ───────────────────────────────────────────────── */
.wizard-footer {
    text-align: center;
    margin-top: 1.5rem;
    padding: 1rem 0;
}

.wizard-footer p {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.wizard-footer a {
    color: var(--accent-light);
    text-decoration: none;
    transition: var(--transition);
}

.wizard-footer a:hover {
    color: #fff;
    text-decoration: underline;
}

.login-link {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.login-link a {
    color: var(--accent-light);
    font-weight: 600;
}

/* ─── WhatsApp FAB ─────────────────────────────────────────── */
.fab-whatsapp {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    width: 56px;
    height: 56px;
    background: #25d366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.5rem;
    text-decoration: none;
    z-index: 100;
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
    transition: var(--transition);
    animation: fabPulse 2s infinite;
}

.fab-whatsapp:hover {
    transform: scale(1.1);
    animation: none;
    box-shadow: 0 6px 24px rgba(37, 211, 102, 0.5);
    color: #fff;
}

@keyframes fabPulse {
    0%, 100% { box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4); }
    50% { box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4), 0 0 0 10px rgba(37, 211, 102, 0.1); }
}

/* ─── Confetti Canvas ──────────────────────────────────────── */
#confetti-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1000;
}

/* ─── Utility ──────────────────────────────────────────────── */
.d-none { display: none !important; }
.text-center { text-align: center; }

/* Override OneUI/global form styles bleeding in */
body.wizard-body #main-container {
    padding: 0 !important;
    margin: 0 !important;
}

body.wizard-body #page-footer {
    display: none !important;
}

/* Hide Yros Chat Widget */
#yros-floating-btn,
#yros-chat-window,
#yros-welcome-popup {
    display: none !important;
}

/* ─── Responsive ───────────────────────────────────────────── */
@media (max-width: 768px) {
    .wizard-container {
        margin: 1rem auto;
        width: 100%;
        padding: 0 0.75rem;
        min-height: auto;
    }

    .wizard-card {
        padding: 1.75rem 1.25rem;
        border-radius: var(--radius-lg);
    }

    .pricing-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .pricing-card {
        display: grid;
        grid-template-columns: 1fr auto;
        grid-template-rows: auto auto;
        text-align: left;
        padding: 1.25rem;
        gap: 0 1rem;
    }

    .pricing-card .pricing-badge {
        grid-column: 1 / -1;
        justify-self: start;
    }

    .pricing-card .pricing-name {
        align-self: end;
    }

    .pricing-card .pricing-price {
        text-align: right;
        align-self: center;
    }

    .pricing-card .pricing-inscription {
        grid-column: 1 / -1;
    }

    .pricing-card .pricing-features {
        grid-column: 1 / -1;
    }

    .pricing-card.selected::after {
        top: 50%;
        transform: translateY(-50%);
    }

    .wizard-row {
        grid-template-columns: 1fr;
    }

    .step-label {
        font-size: 0.6rem;
    }

    .step-circle {
        width: 36px;
        height: 36px;
        font-size: 0.75rem;
    }

    .wizard-nav {
        flex-direction: column-reverse;
    }

    .btn-next,
    .btn-submit-wizard {
        max-width: 100%;
        width: 100%;
    }

    .btn-prev {
        width: 100%;
        justify-content: center;
    }

    .duration-selector {
        flex-wrap: wrap;
    }

    .duration-option {
        flex: 1 1 45%;
    }
}

@media (max-width: 380px) {
    .wizard-card {
        padding: 1.25rem 1rem;
    }

    .step-header h2 {
        font-size: 1.25rem;
    }

    .pricing-price {
        font-size: 1.5rem;
    }
}

/* ─── NATIVE PAYMENT UI STYLES ────────────────────────────────── */
.payment-tabs-container {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 0.5rem;
    margin-bottom: 1.5rem;
}

.payment-tabs {
    display: flex;
    gap: 0.5rem;
}

.payment-tab {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    padding: 0.75rem 1rem;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.payment-tab:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
}

.payment-tab.active {
    background: var(--accent);
    color: var(--text-primary);
    box-shadow: 0 0 10px var(--accent-glow);
}

.payment-alert {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
    border: 1px solid rgba(239, 68, 68, 0.3);
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.875rem;
}

.payment-alert.success {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
    border-color: rgba(16, 185, 129, 0.3);
}

.nequi-polling {
    background: var(--glass-bg);
    border: 1px dashed var(--accent);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    margin-top: 1rem;
    margin-bottom: 1rem;
}

.payment-polling-ui {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 2rem 1rem;
    text-align: center;
    margin-top: 1rem;
    margin-bottom: 1rem;
}

.polling-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--glass-bg-hover);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

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