/* Registration Wizard Styles */

/* Smooth scrolling for all elements */
html {
    scroll-behavior: smooth;
}

.wizard-container {
    width: 100%;
    scroll-behavior: smooth;
}

/* Mobile adjustments for wizard container */
@media (max-width: 480px) {
    .wizard-container {
        width: 100%;
        margin-left: 0;
        margin-right: 0;
    }
}

/* Progress Bar */
.wizard-progress {
    margin-bottom: 24px;
    padding: 0;
}

/* Desktop specific */
@media (min-width: 768px) {
    .wizard-container {
        width: 100%;
        margin-left: 0;
        margin-right: 0;
    }
}

.progress-bar {
    height: 4px;
    background: var(--bg-hover);
    border-radius: 2px;
    position: relative;
    margin-bottom: 24px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--primary-gradient);
    border-radius: 2px;
    width: 25%;
    transition: width 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.progress-steps {
    display: flex;
    justify-content: space-between;
    position: relative;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    opacity: 0.5;
    transition: all 0.3s ease;
    cursor: pointer;
}

.step.active {
    opacity: 1;
}

.step.completed {
    opacity: 0.8;
}

.step-number {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--bg-hover);
    border: 2px solid var(--border-default);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
    color: var(--text-tertiary);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.step.active .step-number {
    background: var(--primary-gradient);
    border-color: transparent;
    color: white;
    transform: scale(1.1);
}

.step.completed .step-number {
    background: var(--success);
    border-color: transparent;
    color: white;
    position: relative;
}

.step.completed .step-number svg {
    width: 16px;
    height: 16px;
    display: block;
    animation: checkmarkScale 0.3s ease-out;
}

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

.step-label {
    font-size: 12px;
    color: var(--text-tertiary);
    font-weight: 500;
    text-align: center;
    display: none;
}

@media (min-width: 480px) {
    .step-label {
        display: block;
    }
}

/* Ensure steps don't overflow on mobile */
@media (max-width: 480px) {
    .step {
        min-width: 0;
        flex: 1;
    }
    
    .step-number {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }
}

/* Wizard Form */
.wizard-form {
    position: relative;
    min-height: 400px;
    overflow-x: hidden;
    padding: 0;
    scroll-behavior: smooth;
}

/* Mobile - No internal scrolling */
@media (max-width: 767px) {
    .wizard-form {
        min-height: auto;
        max-height: none;
        overflow-y: visible;
        overflow-x: hidden;
        padding: 0;
    }
}

/* Custom scrollbar for wizard form */
.wizard-form::-webkit-scrollbar {
    width: 6px;
}

.wizard-form::-webkit-scrollbar-track {
    background: var(--bg-hover);
    border-radius: 3px;
}

.wizard-form::-webkit-scrollbar-thumb {
    background: var(--border-hover);
    border-radius: 3px;
}

.wizard-form::-webkit-scrollbar-thumb:hover {
    background: var(--primary-2);
}

.wizard-step {
    display: none;
    animation: slideIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

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

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

.wizard-step.slide-out {
    animation: slideOut 0.3s ease-out;
}

@keyframes slideOut {
    to {
        opacity: 0;
        transform: translateX(-20px);
    }
}

.step-content {
    padding: 16px 0;
}

.step-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.step-description {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 20px;
}


/* Input Helper */
.input-helper {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-top: 8px;
    padding: 10px 12px;
    background: var(--bg-hover);
    border-radius: 8px;
    font-size: 13px;
    line-height: 1.4;
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.helper-icon {
    font-size: 16px;
    flex-shrink: 0;
    margin-top: 2px;
}

.helper-text {
    flex: 1;
}

/* Hover effect for helper */
.input-group:hover .input-helper {
    background: var(--bg-active);
    color: var(--text-primary);
}

/* Light theme adjustment */
[data-theme="light"] .input-helper {
    background: rgba(0, 0, 0, 0.03);
}

[data-theme="light"] .input-group:hover .input-helper {
    background: rgba(0, 0, 0, 0.05);
}

/* Name Suggestions */
.name-suggestions {
    margin-top: 24px;
    transition: opacity 0.3s ease;
}

.suggestions-label {
    font-size: 13px;
    color: var(--text-tertiary);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.suggestions-label::before {
    content: '✨';
    font-size: 16px;
    animation: sparkle 2s ease-in-out infinite;
}

@keyframes sparkle {
    0%, 100% {
        opacity: 0.6;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.2);
    }
}

.suggestion-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.chip {
    padding: 8px 16px;
    background: var(--bg-hover);
    border: 1px solid var(--border-default);
    border-radius: 20px;
    color: var(--text-secondary);
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.chip:hover {
    background: var(--bg-active);
    border-color: var(--primary-2);
    color: var(--primary-2);
    transform: translateY(-2px);
}

/* No suggestions state */
.no-suggestions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px;
    background: var(--success-bg);
    border: 1px solid var(--success);
    border-radius: 12px;
    color: var(--success);
    font-size: 14px;
    font-weight: 500;
    animation: fadeIn 0.3s ease-out;
}

.no-suggestions-icon {
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: var(--success);
    color: white;
    border-radius: 50%;
    flex-shrink: 0;
}

.no-suggestions-text {
    color: var(--text-primary);
}

/* Username Availability */
.username-availability {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
    font-size: 13px;
    height: 20px;
}

.availability-icon {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: none;
}

.availability-text {
    color: var(--text-tertiary);
}

.username-availability.checking .availability-icon {
    display: block;
    background: var(--warning);
    animation: pulse 1s ease-in-out infinite;
}

.username-availability.available .availability-icon {
    display: block;
    background: var(--success);
}

.username-availability.available .availability-text {
    color: var(--success);
}

.username-availability.taken .availability-icon {
    display: block;
    background: var(--error);
}

.username-availability.taken .availability-text {
    color: var(--error);
}

/* URL Preview */
.url-preview {
    margin-top: 12px;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.url-preview.visible {
    opacity: 1;
    transform: translateY(0);
}

.url-preview-content {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: var(--bg-hover);
    border: 1px solid var(--border-default);
    border-radius: 8px;
    font-size: 14px;
    position: relative;
    overflow: hidden;
}

.url-preview-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent 0%, var(--primary-gradient) 50%, transparent 100%);
    opacity: 0.1;
    transform: translateX(-100%);
    transition: transform 0.8s ease;
}

.url-preview.visible .url-preview-content::before {
    animation: shimmer 2s ease-out;
}

@keyframes shimmer {
    to {
        transform: translateX(100%);
    }
}

.url-icon {
    font-size: 16px;
    flex-shrink: 0;
}

.url-text {
    flex: 1;
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Fira Code', monospace;
    color: var(--text-secondary);
    display: flex;
    align-items: baseline;
    overflow: hidden;
}

.url-base {
    color: var(--text-tertiary);
    flex-shrink: 0;
}

.url-username {
    color: var(--primary-2);
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.url-copy-btn {
    background: none;
    border: none;
    color: var(--text-tertiary);
    cursor: pointer;
    padding: 6px;
    border-radius: 6px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.url-copy-btn:hover {
    background: var(--bg-active);
    color: var(--primary-2);
}

.url-copy-btn:active {
    transform: scale(0.95);
}

.url-copy-btn.copied {
    color: var(--success);
}

.url-copy-btn.copied svg {
    animation: copySuccess 0.3s ease;
}

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

/* Password Strength */
.password-strength {
    margin-top: 12px;
}

.strength-meter {
    height: 4px;
    background: var(--bg-hover);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 8px;
}

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

.strength-fill[data-strength="0"] {
    width: 0;
}

.strength-fill[data-strength="1"] {
    width: 25%;
    background: var(--error);
}

.strength-fill[data-strength="2"] {
    width: 50%;
    background: var(--warning);
}

.strength-fill[data-strength="3"] {
    width: 75%;
    background: var(--info);
}

.strength-fill[data-strength="4"] {
    width: 100%;
    background: var(--success);
}

.strength-text {
    font-size: 12px;
    color: var(--text-tertiary);
}

/* Password Requirements */
.password-requirements {
    margin-top: 16px;
    padding: 16px;
    background: var(--bg-hover);
    border-radius: 8px;
}

.requirements-label {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 8px;
    font-weight: 500;
}

.requirements-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.requirements-list li {
    font-size: 13px;
    color: var(--text-tertiary);
    padding: 4px 0;
    padding-left: 24px;
    position: relative;
}

.requirements-list li::before {
    content: '○';
    position: absolute;
    left: 0;
    color: var(--text-muted);
}

.requirements-list li.met {
    color: var(--success);
}

.requirements-list li.met::before {
    content: '✓';
    color: var(--success);
}

/* Review Section */
.review-sections {
    margin-bottom: 32px;
}

.review-section {
    position: relative;
    margin-bottom: 24px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.review-section.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.review-section-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    position: relative;
}

.review-section-header h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    flex: 1;
}

/* Review section icon container */
.review-section-icon {
    position: relative;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.review-section-icon svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transition: all 0.3s ease;
}

.review-section-icon .icon-default {
    opacity: 1;
    transform: scale(1);
}

.review-section-icon .icon-success {
    opacity: 0;
    transform: scale(0);
}

.review-section.animate-in .review-section-icon .icon-default {
    opacity: 0;
    transform: scale(0.8);
    transition-delay: 0.5s;
}

.review-section.animate-in .review-section-icon .icon-success {
    opacity: 1;
    transform: scale(1);
    animation: iconCheckmarkBounce 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55) 0.5s;
}

.review-section-icon .icon-success path {
    stroke-dasharray: 20;
    stroke-dashoffset: 20;
}

.review-section.animate-in .review-section-icon .icon-success path {
    animation: iconCheckmarkDraw 0.4s ease-out 0.8s forwards;
}

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

@keyframes iconCheckmarkDraw {
    to {
        stroke-dashoffset: 0;
    }
}

/* Edit button for review sections - Icon only */
.review-edit-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    background: var(--bg-hover);
    border: 1px solid var(--border-default);
    border-radius: 8px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
    margin-left: auto;
    opacity: 0;
    transform: translateX(10px);
    position: relative;
}

/* Tooltip on hover */
.review-edit-btn::before {
    content: 'Edit this section';
    position: absolute;
    bottom: calc(100% + 8px);
    right: 0;
    background: var(--bg-tertiary);
    color: var(--text-primary);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transform: translateY(4px);
    transition: all 0.2s ease;
    box-shadow: var(--shadow-md);
    z-index: 10;
}

.review-edit-btn::after {
    content: '';
    position: absolute;
    bottom: calc(100% + 4px);
    right: 12px;
    width: 8px;
    height: 8px;
    background: var(--bg-tertiary);
    transform: rotate(45deg);
    opacity: 0;
    transition: all 0.2s ease;
}

.review-edit-btn:hover::before,
.review-edit-btn:hover::after {
    opacity: 1;
    transform: translateY(0);
}

.review-section.animate-in .review-edit-btn {
    opacity: 1;
    transform: translateX(0);
    transition-delay: 0.4s;
    animation: editButtonPulse 2s ease-in-out 0.8s;
}

@keyframes editButtonPulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(102, 126, 234, 0);
    }
    50% {
        box-shadow: 0 0 0 8px rgba(102, 126, 234, 0.1);
    }
}

.review-edit-btn:hover {
    background: var(--bg-active);
    border-color: var(--border-hover);
    color: var(--text-primary);
    transform: translateY(-1px);
}

.review-edit-btn:active {
    transform: translateY(0) scale(0.98);
}

.review-edit-btn svg {
    width: 16px;
    height: 16px;
}

/* Light theme adjustments */
[data-theme="light"] .review-edit-btn {
    background: white;
    border-color: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .review-edit-btn:hover {
    background: rgba(0, 0, 0, 0.02);
    border-color: rgba(0, 0, 0, 0.12);
}


/* Stagger animations for multiple sections */
.review-section:nth-child(1) {
    transition-delay: 0s;
}

.review-section:nth-child(2) {
    transition-delay: 0.1s;
}

.review-section:nth-child(3) {
    transition-delay: 0.2s;
}

/* Glow effect on completion */
.review-section.animate-in::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, transparent, var(--success), transparent);
    border-radius: 14px;
    opacity: 0;
    z-index: -1;
    animation: glowPulse 1.5s ease-out 0.8s;
}

@keyframes glowPulse {
    0% {
        opacity: 0;
        transform: scale(0.98);
    }
    50% {
        opacity: 0.3;
        transform: scale(1.02);
    }
    100% {
        opacity: 0;
        transform: scale(0.98);
    }
}

.review-info {
    background: var(--bg-hover);
    border-radius: 12px;
    padding: 24px;
    position: relative;
    overflow: hidden;
}

/* Shimmer effect after animation */
.review-section.animate-in .review-info::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    animation: shimmer 1.5s ease-out 0.6s;
}

@keyframes shimmer {
    to {
        left: 100%;
    }
}

.review-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-default);
}

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

.review-label {
    font-size: 14px;
    color: var(--text-tertiary);
}

.review-value {
    font-size: 14px;
    color: var(--text-primary);
    font-weight: 500;
}

.review-value.review-url {
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Fira Code', monospace;
    color: var(--text-secondary);
}

.review-value.review-url #review-url-username {
    color: var(--primary-2);
    font-weight: 600;
}

.review-value.password-dots {
    letter-spacing: 2px;
    font-size: 16px;
}

/* Terms Section */
.terms-section {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.terms-link {
    color: var(--primary-2);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s ease;
}

.terms-link:hover {
    border-bottom-color: var(--primary-2);
}

/* Navigation */
.wizard-navigation {
    display: flex;
    gap: 16px;
    justify-content: space-between;
    align-items: center;
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid var(--border-default);
}

/* Icon-only Back Button */
.back-btn-icon {
    width: 44px;
    height: 44px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-hover);
    border: 1px solid var(--border-default);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    color: var(--text-secondary);
    flex-shrink: 0;
}

.back-btn-icon:hover {
    background: var(--bg-active);
    border-color: var(--border-hover);
    color: var(--text-primary);
    transform: translateX(-2px);
}

.back-btn-icon:active {
    transform: scale(0.95);
}

.back-btn-icon svg {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

.back-btn-icon:hover svg {
    transform: translateX(-2px);
}

/* Ensure proper alignment when only Continue button is visible */
.wizard-navigation:has(.back-btn-icon[style*="display: none"]) {
    justify-content: flex-end;
}

/* Alternative for browsers without :has support */
.wizard-navigation {
    position: relative;
}

.wizard-navigation .nav-btn.btn-primary:first-child,
.wizard-navigation .submit-btn.btn-primary:first-child {
    margin-left: auto;
}

/* Light theme adjustments for back button */
[data-theme="light"] .back-btn-icon {
    background: rgba(0, 0, 0, 0.02);
    border-color: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .back-btn-icon:hover {
    background: rgba(0, 0, 0, 0.04);
    border-color: rgba(0, 0, 0, 0.12);
}

/* Pulse animation on hover */
@keyframes backPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(102, 126, 234, 0.4);
    }
    70% {
        box-shadow: 0 0 0 8px rgba(102, 126, 234, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(102, 126, 234, 0);
    }
}

.back-btn-icon:hover {
    animation: backPulse 1s ease-in-out;
}

/* Mobile Floating Footer */
@media (max-width: 767px) {
    .wizard-navigation {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: var(--bg-secondary);
        border-top: 1px solid var(--border-default);
        border-radius: 24px 24px 0 0;
        padding: 20px;
        margin: 0;
        z-index: 100;
        box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.1);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        animation: slideUpFooter 0.3s ease-out;
        gap: 12px;
    }
    
    @keyframes slideUpFooter {
        from {
            transform: translateY(100%);
        }
        to {
            transform: translateY(0);
        }
    }
    
    [data-theme="light"] .wizard-navigation {
        box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.05);
    }
    
    /* Add padding to form to account for fixed footer */
    .wizard-form {
        padding-bottom: 100px;
    }
}

.nav-btn {
    padding: 14px 32px;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 140px;
    position: relative;
    text-align: center;
    white-space: nowrap;
}

.nav-btn.btn-secondary {
    background: var(--bg-hover);
    color: var(--text-secondary);
    border: 1px solid var(--border-default);
    transition: all 0.3s ease;
}

.nav-btn.btn-secondary:hover {
    background: var(--bg-active);
    border-color: var(--border-hover);
    transform: translateY(-1px);
}

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

.nav-btn.btn-primary,
.submit-btn.btn-primary {
    background: var(--primary-gradient);
    color: white;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-align: center;
    min-width: 160px;
    letter-spacing: 0.3px;
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.2);
}

/* Button content wrapper */
.btn-content {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    position: relative;
}

/* Button text - ensure proper centering */
.btn-text {
    display: inline-block;
    line-height: 1;
    position: relative;
    z-index: 2;
}

/* Button icon styling */
.btn-icon {
    width: 0;
    height: 20px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    margin-left: -8px;
}

/* Show icon on hover with smooth animation */
.nav-btn.btn-primary:not(:disabled):hover .btn-icon,
.submit-btn.btn-primary:not(:disabled):hover .btn-icon {
    width: 20px;
    opacity: 1;
    margin-left: 0;
}

/* Continue button specific hover animation */
.nav-btn.btn-primary:not(:disabled):hover .btn-icon svg {
    transform: translateX(2px);
}

/* Submit button checkmark rotation */
.submit-btn.btn-primary:not(:disabled):hover .btn-icon svg {
    transform: rotate(360deg);
    transition: transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.nav-btn.btn-primary::before,
.submit-btn.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.nav-btn.btn-primary:not(:disabled):hover,
.submit-btn.btn-primary:not(:disabled):hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.35);
}

.nav-btn.btn-primary:not(:disabled):hover::before,
.submit-btn.btn-primary:not(:disabled):hover::before {
    left: 100%;
}

/* Active state */
.nav-btn.btn-primary:not(:disabled):active,
.submit-btn.btn-primary:not(:disabled):active {
    transform: translateY(0) scale(0.98);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.25);
}

/* Disabled state - Premium glassmorphism design */
.nav-btn:disabled,
#wizard-submit:disabled {
    cursor: not-allowed;
    transform: none;
    position: relative;
    overflow: hidden;
}

.nav-btn.btn-primary:disabled,
#wizard-submit:disabled {
    background: linear-gradient(135deg, 
        rgba(102, 126, 234, 0.1) 0%, 
        rgba(240, 147, 251, 0.1) 100%);
    color: var(--text-tertiary);
    border: 1px solid rgba(102, 126, 234, 0.2);
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

/* Shimmer effect for disabled state */
.nav-btn.btn-primary:disabled::before,
#wizard-submit:disabled::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(
        45deg,
        transparent 30%,
        rgba(255, 255, 255, 0.1) 50%,
        transparent 70%
    );
    background-size: 200% 200%;
    animation: shimmerDisabled 3s ease-in-out infinite;
    pointer-events: none;
}

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

/* Waiting indicator dots */
.nav-btn.btn-primary:disabled .btn-text::after,
#wizard-submit:disabled .btn-text::after {
    content: ' •••';
    display: inline-block;
    width: 30px;
    animation: dotPulse 1.5s ease-in-out infinite;
}

@keyframes dotPulse {
    0% {
        opacity: 0.3;
        transform: scale(1);
    }
    50% {
        opacity: 0.6;
        transform: scale(1.1);
    }
    100% {
        opacity: 0.3;
        transform: scale(1);
    }
}

/* Subtle lock icon */
.nav-btn.btn-primary:disabled .btn-text::before,
#wizard-submit:disabled .btn-text::before {
    content: '';
    display: inline-block;
    width: 14px;
    height: 14px;
    margin-right: 8px;
    background-image: url("data:image/svg+xml,%3Csvg width='14' height='14' viewBox='0 0 14 14' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M10 6V4C10 2.89543 9.10457 2 8 2H6C4.89543 2 4 2.89543 4 4V6M5 12H9C9.55228 12 10 11.5523 10 11V7C10 6.44772 9.55228 6 9 6H5C4.44772 6 4 6.44772 4 7V11C4 11.5523 4.44772 12 5 12Z' stroke='%23999' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
    background-size: contain;
    opacity: 0.5;
    vertical-align: middle;
}

/* Light theme adjustments */
[data-theme="light"] .nav-btn.btn-primary:disabled,
[data-theme="light"] #wizard-submit:disabled {
    background: linear-gradient(135deg, 
        rgba(102, 126, 234, 0.08) 0%, 
        rgba(240, 147, 251, 0.08) 100%);
    border: 1px solid rgba(102, 126, 234, 0.15);
}

/* Just enabled animation - Enhanced */
.nav-btn.btn-primary.just-enabled,
#wizard-submit.just-enabled {
    animation: enabledPulse 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes enabledPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(102, 126, 234, 0.5);
        transform: scale(1);
    }
    25% {
        transform: scale(1.05);
    }
    50% {
        box-shadow: 0 0 0 15px rgba(102, 126, 234, 0);
        transform: scale(1.02);
    }
    100% {
        box-shadow: 0 4px 20px rgba(102, 126, 234, 0.25);
        transform: scale(1);
    }
}

#wizard-submit {
    flex: 1;
    max-width: 220px;
    min-width: 180px;
}

/* Smooth button state transitions */
.nav-btn,
.submit-btn {
    transform-origin: center;
}

/* Pulse animation on button enable */
@keyframes buttonPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(102, 126, 234, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(102, 126, 234, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(102, 126, 234, 0);
    }
}

/* Apply pulse when button becomes enabled */
.nav-btn.btn-primary.just-enabled:not(:hover),
#wizard-submit.just-enabled:not(:hover) {
    animation: buttonPulse 0.8s ease-out;
}

/* Mobile Adjustments */
@media (max-width: 480px) {
    .step-title {
        font-size: 20px;
    }
    
    .wizard-navigation {
        flex-direction: row;
        gap: 12px;
        justify-content: space-between;
    }
    
    .back-btn-icon {
        width: 40px;
        height: 40px;
        border-radius: 10px;
    }
    
    .back-btn-icon svg {
        width: 18px;
        height: 18px;
    }
    
    .nav-btn {
        flex: 1;
    }
    
    #wizard-submit {
        flex: 2;
        width: auto;
        max-width: none;
    }
    
    /* Primary button more prominent on mobile */
    .nav-btn.btn-primary:not(:disabled),
    #wizard-submit:not(:disabled) {
        padding: 16px 28px;
        font-size: 16px;
        font-weight: 600;
        box-shadow: 0 4px 20px rgba(102, 126, 234, 0.25);
        min-width: 140px;
    }
    
    /* Ensure text stays centered on mobile */
    .nav-btn .btn-content,
    .submit-btn .btn-content {
        width: 100%;
        justify-content: center;
    }
    
    /* Disabled buttons on mobile */
    .nav-btn:disabled,
    #wizard-submit:disabled {
        padding: 16px 24px;
        font-size: 16px;
        font-weight: 500;
        box-shadow: none;
    }
    
    .suggestion-chips {
        justify-content: center;
    }
    
    .step-content {
        padding: 16px 0;
    }
    
    /* Ensure proper spacing for mobile */
    .input-group {
        margin-bottom: 20px;
    }
    
    .wizard-progress {
        margin-bottom: 24px;
    }
    
    /* URL Preview mobile adjustments */
    .url-preview-content {
        font-size: 13px;
        padding: 10px 12px;
    }
    
    .url-text {
        font-size: 12px;
    }
}

/* Desktop Adjustments */
@media (min-width: 768px) {
    .wizard-form {
        max-height: calc(100vh - 400px);
        min-height: 450px;
        overflow-y: auto;
    }
    
    .wizard-progress {
        margin-bottom: 48px;
    }
    
    .step-content {
        padding: 32px 8px 32px 0;
    }
    
    .wizard-navigation {
        margin-top: 48px;
        padding-top: 32px;
    }
}