/* ============================================
   tŗust Wallet - Clean Professional Styles
   Simplified version - no feedback panels
   ============================================ */

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', Cantarell, sans-serif;
    background-color: #FFFFFF;
    color: #1A1D23;
    min-height: 100vh;
    display: flex;
    overflow-x: hidden;
    line-height: 1.5;
}

/* ============================================
   LEFT PANEL - Light Blue Background
   ============================================ */
.left-panel {
    flex: 0 0 46%;
    background-color: #EEF1FA;
    padding: 52px 60px;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.step-badge {
    font-size: 14px;
    color: #5B6377;
    margin-bottom: 28px;
    font-weight: 500;
    letter-spacing: 0.3px;
}

.main-heading {
    font-size: 38px;
    font-weight: 700;
    color: #1A1D23;
    margin-bottom: 24px;
    line-height: 1.15;
    letter-spacing: -0.5px;
}

.description-text {
    font-size: 16px;
    line-height: 1.65;
    color: #4A5568;
    max-width: 400px;
    font-weight: 400;
}

/* Illustration Area */
.illustration-area {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    position: relative;
}

/* Phone Mockup */
.phone-mockup {
    width: 300px;
    background: #FFFFFF;
    border-radius: 18px;
    box-shadow: 
        0 10px 40px rgba(102, 126, 234, 0.15),
        0 2px 10px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.8);
    transform: perspective(1200px) rotateY(-3deg) rotateX(2deg);
    transition: transform 0.4s ease;
}

.phone-mockup:hover {
    transform: perspective(1200px) rotateY(0deg) rotateX(0deg) scale(1.02);
}

.mockup-nav {
    padding: 15px 18px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid #F0F0F5;
    background: #FAFBFE;
}

.mockup-back-arrow {
    font-size: 19px;
    color: #3375BB;
    font-weight: 600;
}

.mockup-screen-title {
    font-size: 13px;
    font-weight: 600;
    color: #1A1D23;
    letter-spacing: 0.2px;
}

.mockup-content {
    padding: 26px 22px;
    background: linear-gradient(to bottom, #FFFFFF 0%, #FDFDFF 100%);
}

.mockup-field-label {
    font-size: 12px;
    color: #6B7280;
    margin-bottom: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mockup-reveal-box {
    height: 58px;
    border: 2px solid #667EEA;
    border-radius: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #F8F9FF 0%, #EEF1FA 100%);
    color: #3375BB;
    font-weight: 650;
    font-size: 14px;
    letter-spacing: 0.3px;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.08);
}

/* Bottom Instructions */
.instructions-section {
    margin-top: auto;
    padding-top: 36px;
    max-width: 450px;
}

.step-instruction-text {
    font-size: 15px;
    line-height: 1.65;
    color: #374151;
    font-weight: 400;
}

.step-instruction-text strong {
    font-weight: 700;
    color: #1A1D23;
}

/* Navigation Dots */
.nav-controls {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 32px;
}

.nav-circle-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
    font-size: 17px;
    font-weight: 600;
}

.nav-circle-btn.prev-step {
    background: linear-gradient(135deg, #3375BB 0%, #2968A3 100%);
    color: white;
    box-shadow: 0 4px 14px rgba(51, 117, 187, 0.35);
}

.nav-circle-btn.next-step {
    background: linear-gradient(135deg, #C7D2FE 0%, #A5B4FC 100%);
    color: #4338CA;
    box-shadow: 0 4px 14px rgba(165, 180, 252, 0.35);
}

.nav-circle-btn:hover {
    transform: scale(1.08) translateY(-2px);
}

.progress-track {
    flex: 1;
    height: 3px;
    background: linear-gradient(
        to right,
        #3375BB 0%,
        #3375BB 50%,
        #D1D5DB 50%,
        #D1D5DB 100%
    );
    border-radius: 2px;
    position: relative;
}

.progress-track::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background: #3375BB;
    border-radius: 50%;
    box-shadow: 0 0 0 3px rgba(51, 117, 187, 0.2);
}

/* ============================================
   RIGHT PANEL - White Form Area
   ============================================ */
.right-panel {
    flex: 1;
    background-color: #FFFFFF;
    padding: 52px 64px;
    display: flex;
    flex-direction: column;
    position: relative;
}

.back-navigation {
    position: absolute;
    top: 52px;
    right: 64px;
    display: flex;
    align-items: center;
    gap: 6px;
    color: #6B7280;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    letter-spacing: 0.2px;
    text-decoration: none;
}

.back-navigation:hover {
    color: #3375BB;
}

.form-section {
    max-width: 520px;
    width: 100%;
    margin-top: 72px;
}

.form-main-title {
    font-size: 27px;
    font-weight: 700;
    color: #1A1D23;
    margin-bottom: 36px;
    line-height: 1.25;
    letter-spacing: -0.3px;
}

.field-group {
    margin-bottom: 30px;
}

.field-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #1A1D23;
    margin-bottom: 10px;
    letter-spacing: 0.2px;
}

.input-container,
.textarea-box {
    position: relative;
}

.styled-input {
    width: 100%;
    padding: 16px 44px 16px 18px;
    border: 1.5px solid #E2E8F0;
    border-radius: 12px;
    font-size: 15px;
    color: #1A1D23;
    outline: none;
    transition: all 0.2s ease;
    background-color: #FFFFFF;
    font-family: inherit;
}

.styled-input:focus {
    border-color: #667EEA;
    box-shadow: 0 0 0 3.5px rgba(102, 126, 234, 0.1);
    background-color: #FEFEFF;
}

.styled-input::placeholder {
    color: #CBD5E0;
}

.clear-field-btn {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: #E2E8F0;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748B;
    font-size: 18px;
    font-weight: 300;
    line-height: 1;
    transition: all 0.2s ease;
    padding: 0;
}

.clear-field-btn:hover {
    background-color: #CBD5E0;
    color: #334155;
    transform: translateY(-50%) scale(1.05);
}

.field-helper {
    font-size: 13px;
    color: #94A3B8;
    margin-top: 8px;
    font-weight: 400;
}

.phrase-area {
    width: 100%;
    min-height: 145px;
    padding: 17px 18px;
    border: 1.5px solid #E2E8F0;
    border-radius: 12px;
    font-size: 15px;
    color: #1A1D23;
    outline: none;
    resize: vertical;
    font-family: inherit;
    line-height: 1.65;
    transition: all 0.2s ease;
    background-color: #FFFFFF;
}

.phrase-area:focus {
    border-color: #667EEA;
    box-shadow: 0 0 0 3.5px rgba(102, 126, 234, 0.1);
    background-color: #FEFEFF;
}

.phrase-area::placeholder {
    color: #CBD5E0;
}

.field-description {
    font-size: 13px;
    color: #64748B;
    line-height: 1.65;
    margin-top: 12px;
    font-weight: 400;
}

/* Import Button */
.import-action-btn {
    align-self: flex-end;
    margin-top: 36px;
    padding: 17px 68px;
    background: linear-gradient(135deg, #8B7CF6 0%, #A78BFA 50%, #C4B5FD 100%);
    border: none;
    border-radius: 50px;
    color: #FFFFFF;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(139, 124, 246, 0.38);
    min-width: 170px;
    letter-spacing: 0.3px;
    position: relative;
    overflow: hidden;
}

.import-action-btn::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;
}

.import-action-btn:hover:not(:disabled)::before {
    left: 100%;
}

.import-action-btn:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 10px 28px rgba(139, 124, 246, 0.45);
}

.import-action-btn:active:not(:disabled) {
    transform: translateY(-1px);
}

.import-action-btn.is-loading {
    color: transparent;
    pointer-events: none;
}

.import-action-btn.is-loading::after {
    content: '';
    position: absolute;
    width: 26px;
    height: 26px;
    border: 3px solid rgba(255, 255, 255, 0.25);
    border-top-color: #FFFFFF;
    border-radius: 50%;
    animation: spin 0.75s linear infinite;
    top: 50%;
    left: 50%;
    margin-top: -13px;
    margin-left: -13px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ============================================
   MODALS
   ============================================ */
.modal-backdrop {
    position: fixed;
    inset: 0;
    background-color: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(6px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 24px;
}

.modal-backdrop.visible {
    display: flex;
}

.modal-dialog {
    background-color: #FFFFFF;
    border-radius: 22px;
    padding: 44px 38px;
    text-align: center;
    max-width: 390px;
    width: 100%;
    animation: modalSlideUp 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.25);
}

@keyframes modalSlideUp {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.92);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.success-icon-circle {
    width: 76px;
    height: 76px;
    background: linear-gradient(135deg, #3375BB 0%, #4A90D9 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 26px;
    font-size: 36px;
    box-shadow: 0 10px 32px rgba(51, 117, 187, 0.4);
}

.error-icon-circle {
    width: 76px;
    height: 76px;
    background: linear-gradient(135deg, #EF4444 0%, #F87171 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 26px;
    font-size: 36px;
    box-shadow: 0 10px 32px rgba(239, 68, 68, 0.4);
}

.modal-heading {
    font-size: 23px;
    font-weight: 700;
    color: #1A1D23;
    margin-bottom: 12px;
}

.error-modal .modal-heading {
    color: #DC2626;
}

.modal-body-text {
    font-size: 14px;
    color: #64748B;
    line-height: 1.65;
    margin-bottom: 30px;
}

.dismiss-modal-btn {
    padding: 13px 36px;
    background: linear-gradient(135deg, #8B7CF6 0%, #A78BFA 100%);
    border: none;
    border-radius: 50px;
    color: #FFFFFF;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 4px 14px rgba(139, 124, 246, 0.35);
}

.dismiss-modal-btn:hover {
    transform: scale(1.04);
    box-shadow: 0 6px 20px rgba(139, 124, 246, 0.45);
}

.dismiss-modal-btn.error-btn {
    background: linear-gradient(135deg, #EF4444 0%, #F87171 100%);
    box-shadow: 0 4px 14px rgba(239, 68, 68, 0.35);
}

.dismiss-modal-btn.error-btn:hover {
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.45);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 1100px) {
    body {
        flex-direction: column;
    }

    .left-panel {
        flex: none;
        padding: 40px 36px;
        min-height: auto;
    }

    .main-heading {
        font-size: 32px;
    }

    .illustration-area {
        padding: 28px 16px;
    }

    .phone-mockup {
        width: 260px;
        transform: none;
    }

    .phone-mockup:hover {
        transform: scale(1.03);
    }

    .right-panel {
        flex: 1;
        padding: 40px 36px;
    }

    .back-navigation {
        top: 40px;
        right: 36px;
    }

    .form-section {
        margin-top: 48px;
    }

    .import-action-btn {
        width: 100%;
    }
}

@media (max-width: 640px) {
    .left-panel,
    .right-panel {
        padding: 28px 22px;
    }

    .main-heading {
        font-size: 28px;
    }

    .form-main-title {
        font-size: 23px;
    }

    .illustration-area {
        display: none;
    }
}