@import url('https://fonts.googleapis.com/css2?family=Inter:opsz,wght@14..32,300;14..32,400;14..32,500;14..32,600;14..32,700;14..32,800&display=swap');
@import url("https://cdn.jsdelivr.net/npm/bootstrap-icons@1.13.1/font/bootstrap-icons.min.css");

body {
    background: #F8FAFC;
    font-family: 'Inter', sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 5px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #ED1B24;
    border-radius: 10px;
}

/* Form styles */
.form-input:focus {
    border-color: #ED1B24;
    box-shadow: 0 0 0 3px rgba(237, 27, 36, 0.1);
    outline: none;
}

.form-input.error {
    border-color: #ED1B24;
    background: #FFF5F5;
}

.form-input.success {
    border-color: #22C55E;
    background: #F0FDF4;
}

.form-input.validating {
    border-color: #F59E0B;
    background: #FFFBEB;
}

.form-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
    margin-bottom: 0.375rem;
    display: block;
}

.form-label .required {
    color: #ED1B24;
    margin-left: 2px;
}

.form-label .suggestion {
    font-size: 0.7rem;
    color: #6B7280;
    font-weight: 400;
    margin-left: 0.5rem;
}

.form-hint {
    font-size: 0.75rem;
    color: #9CA3AF;
    margin-top: 0.25rem;
}

.btn-primary {
    background: #ED1B24;
    transition: all 0.2s ease;
}

.btn-primary:hover {
    background: #C9171F;
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(237, 27, 36, 0.3);
}

.btn-primary:active {
    transform: scale(0.96);
}

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

.btn-secondary {
    background: white;
    border: 1px solid #e5e7eb;
    transition: all 0.2s ease;
}

.btn-secondary:hover {
    background: #f9fafb;
    border-color: #d1d5db;
}

/* Hero banner */
.hero-gradient {
    background:
        radial-gradient(ellipse at 30% 40%, rgba(237, 27, 36, 0.04) 0%, transparent 60%),
        radial-gradient(ellipse at 70% 60%, rgba(237, 27, 36, 0.03) 0%, transparent 50%),
        #FDFDFC;
}

/* Avatar upload */
.avatar-upload {
    position: relative;
    cursor: pointer;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #e5e7eb;
    transition: border-color 0.3s ease;
    background: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
}

.avatar-upload:hover {
    border-color: #ED1B24;
}

.avatar-upload .overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 50%;
}

.avatar-upload:hover .overlay {
    opacity: 1;
}

.avatar-upload img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-upload .placeholder {
    font-size: 48px;
    color: #9CA3AF;
}

/* Toast notification */
.toast-container {
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Info cards for vendor type */
.info-card {
    transition: all 0.3s ease;
    border: 1px solid #e5e7eb;
    background: white;
    border-radius: 12px;
    padding: 16px;
    margin-top: 8px;
}

.info-card.visible {
    animation: slideDown 0.3s ease-out;
}

.info-card .info-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: #FEE2E3;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ED1B24;
    flex-shrink: 0;
}

.info-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-tag.recommended {
    background: #DCFCE7;
    color: #16A34A;
}

.info-tag.popular {
    background: #FEF3C7;
    color: #D97706;
}

.info-tag.premium {
    background: #FEE2E3;
    color: #ED1B24;
}

/* Password toggle */
.password-toggle {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #9CA3AF;
    cursor: pointer;
    transition: color 0.2s ease;
    background: none;
    border: none;
    padding: 4px;
}

.password-toggle:hover {
    color: #4B5563;
}

/* ===== MOBILE NAVIGATION ===== */
.mobile-nav-toggle {
    background: none;
    border: none;
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.mobile-nav-toggle:hover {
    background: #F1F5F9;
}

.mobile-nav-toggle .bar {
    display: block;
    width: 24px;
    height: 2.5px;
    background: #4B5563;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.mobile-nav-toggle.active .bar:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-nav-toggle.active .bar:nth-child(2) {
    opacity: 0;
}

.mobile-nav-toggle.active .bar:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

.mobile-nav-dropdown {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, opacity 0.3s ease, padding 0.3s ease;
    opacity: 0;
    padding: 0 16px;
    background: white;
    border-bottom: 1px solid transparent;
}

.mobile-nav-dropdown.open {
    max-height: 300px;
    opacity: 1;
    padding: 12px 16px;
}

.mobile-nav-dropdown a {
    display: block;
    padding: 10px 12px;
    border-radius: 8px;
    color: #4B5563;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    text-decoration: none;
}

.mobile-nav-dropdown a:hover {
    background: #F1F5F9;
    color: #ED1B24;
}

.mobile-nav-dropdown a:active {
    transform: scale(0.98);
}

/* ===== MULTI-STEP WIZARD ===== */
.step-indicators {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 20px 0 32px;
}

.step-dot {
    display: flex;
    align-items: center;
    gap: 8px;
}

.step-dot .circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 13px;
    border: 2px solid #E2E8F0;
    color: #94A3B8;
    transition: all 0.3s ease;
    background: white;
}

.step-dot .circle.active {
    border-color: #ED1B24;
    background: #ED1B24;
    color: white;
}

.step-dot .circle.completed {
    border-color: #22C55E;
    background: #22C55E;
    color: white;
}

.step-dot .label {
    font-size: 12px;
    font-weight: 500;
    color: #94A3B8;
    transition: color 0.3s ease;
    white-space: nowrap;
}

.step-dot .label.active {
    color: #0F172A;
}

.step-dot .label.completed {
    color: #22C55E;
}

.step-line {
    width: 60px;
    height: 2px;
    background: #E2E8F0;
    align-self: center;
    transition: background 0.3s ease;
}

.step-line.completed {
    background: #22C55E;
}

.step-content {
    display: none;
    animation: fadeIn 0.3s ease-out;
}

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

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Username availability indicator */
.username-status {
    font-size: 12px;
    margin-top: 4px;
}

.username-status.available {
    color: #22C55E;
}

.username-status.unavailable {
    color: #ED1B24;
}

.username-status.checking {
    color: #F59E0B;
}

/* Responsive */
@media (max-width: 768px) {
    .step-dot .label {
        display: none;
    }

    .step-line {
        width: 30px;
    }

    .step-dot .circle {
        width: 32px;
        height: 32px;
        font-size: 12px;
    }

    .mobile-nav-dropdown.open {
        max-height: 350px;
    }
}

@media (max-width: 640px) {
    .avatar-upload {
        width: 96px;
        height: 96px;
    }

    .avatar-upload .placeholder {
        font-size: 36px;
    }

    .step-line {
        width: 20px;
    }

    .mobile-nav-dropdown a {
        font-size: 13px;
        padding: 8px 12px;
    }
}

/* Agreement checkbox */
.agreement-item {
    padding: 16px 20px;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    transition: all 0.2s ease;
    cursor: pointer;
}

.agreement-item:hover {
    border-color: #94A3B8;
    background: #F8FAFC;
}

.agreement-item.checked {
    border-color: #22C55E;
    background: #F0FDF4;
}

.agreement-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #ED1B24;
    cursor: pointer;
    flex-shrink: 0;
}

.fa-spin-fast {
    animation-duration: 0.6s !important;
}

.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(16px) saturate(1.2);
    -webkit-backdrop-filter: blur(16px) saturate(1.2);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.modal-backdrop.active {
    display: flex;
    opacity: 1;
}

/* Modal card */
.modal-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 28px;
    padding: 48px 40px 40px;
    max-width: 480px;
    width: 100%;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.2), 0 8px 32px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.4);
    position: relative;
    transform: scale(0.92) translateY(16px);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease;
    opacity: 0;
}

.modal-backdrop.active .modal-card {
    transform: scale(1) translateY(0);
    opacity: 1;
}

.modal-checkmark {
    width: 80px;
    height: 80px;
    background: rgba(34, 197, 94, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    position: relative;
}

.modal-checkmark::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 2px solid rgba(34, 197, 94, 0.15);
    animation: ringPulse 2s ease-in-out infinite;
}

@keyframes ringPulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.6;
    }

    50% {
        transform: scale(1.15);
        opacity: 0.1;
    }
}

.modal-checkmark i {
    font-size: 36px;
    color: #16A34A;
}

.modal-title {
    font-size: 24px;
    font-weight: 700;
    color: #0F172A;
    text-align: center;
    margin-bottom: 8px;
}

.modal-message {
    color: #64748B;
    text-align: center;
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 28px;
}

.modal-ref {
    background: rgba(255, 255, 255, 0.5);
    border-radius: 14px;
    padding: 16px 20px;
    border: 1px solid rgba(0, 0, 0, 0.04);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 28px;
}

.modal-ref .ref-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #94A3B8;
}

.modal-ref .ref-number {
    font-size: 17px;
    font-weight: 700;
    color: #0F172A;
    font-family: 'SF Mono', 'Courier New', monospace;
    letter-spacing: 0.02em;
}

.modal-ref .ref-copy {
    background: none;
    border: none;
    color: #94A3B8;
    cursor: pointer;
    padding: 4px 10px;
    border-radius: 8px;
    transition: all 0.2s ease;
    font-size: 16px;
    flex-shrink: 0;
}

.modal-ref .ref-copy:hover {
    background: rgba(0, 0, 0, 0.04);
    color: #0F172A;
}

.modal-ref .ref-copy.copied {
    color: #16A34A;
}

.modal-actions .btn-primary {
    background: #ED1B24;
    color: white;
    padding: 16px;
    border-radius: 14px;
    font-weight: 600;
    font-size: 15px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
}

.modal-actions .btn-primary:hover {
    background: #C9171F;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(237, 27, 36, 0.25);
}

.modal-actions .btn-secondary {
    background: rgba(255, 255, 255, 0.6);
    color: #0F172A;
    padding: 16px;
    border-radius: 14px;
    font-weight: 600;
    font-size: 15px;
    border: 1.5px solid rgba(0, 0, 0, 0.06);
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
}

.modal-actions .btn-secondary:hover {
    border-color: #ED1B24;
    color: #ED1B24;
    background: rgba(255, 245, 245, 0.6);
    transform: translateY(-2px);
}