* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, #e8eaf6 0%, #f5f7fa 100%);
    color: #1a1d29;
    line-height: 1.6;
}

.container {
    min-height: 100vh;
    padding: 20px;
}

/* Header */
.header {
    padding: 20px 0;
    margin-bottom: 30px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-img {
    width: 40px;
    height: 40px;
    border-radius: 8px;
}

.logo-text {
    font-size: 24px;
    font-weight: 700;
    color: #0500FF;
    letter-spacing: -0.5px;
}

.wallet-text {
    font-weight: 400;
}

/* Main Content */
.main-content {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    max-width: 1400px;
    margin: 0 auto;
}

/* Left Panel */
.left-panel {
    padding: 20px;
}

.step-indicator {
    color: #6b7280;
    font-size: 14px;
    margin-bottom: 20px;
}

.page-title {
    font-size: 32px;
    font-weight: 600;
    color: #1a1d29;
    margin-bottom: 40px;
}

.wallet-location h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #1a1d29;
}

/* Tabs */
.tabs {
    display: flex;
    gap: 0;
    border-bottom: 2px solid #e5e7eb;
    margin-bottom: 30px;
}

.tab-btn {
    padding: 12px 24px;
    background: none;
    border: none;
    font-size: 15px;
    font-weight: 500;
    color: #6b7280;
    cursor: pointer;
    position: relative;
    transition: color 0.2s;
}

.tab-btn.active {
    color: #0500FF;
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: #0500FF;
}

.tab-content {
    display: none;
}

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

/* Phone Mockup */
.phone-mockup {
    background: #f9fafb;
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 30px;
    display: flex;
    justify-content: center;
}

.phone-screen {
    width: 280px;
    background: white;
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.wallet-header {
    text-align: center;
    margin-bottom: 20px;
}

.wallet-name {
    font-size: 14px;
    color: #6b7280;
}

.balance {
    text-align: center;
    margin-bottom: 30px;
}

.amount {
    font-size: 28px;
    font-weight: 700;
    color: #1a1d29;
    margin-bottom: 5px;
}

.change {
    font-size: 14px;
    color: #10b981;
}

.wallet-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 20px;
}

.dot {
    width: 10px;
    height: 10px;
    background: #e5e7eb;
    border-radius: 50%;
}

.dot:first-child {
    background: #0500FF;
}

.loading-indicator {
    width: 40px;
    height: 40px;
    margin: 0 auto;
    border: 3px solid #e5e7eb;
    border-top-color: #0500FF;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

.instructions {
    color: #4b5563;
    font-size: 15px;
    line-height: 1.7;
}

.extension-note {
    color: #6b7280;
    font-size: 15px;
    padding: 20px;
    background: #f9fafb;
    border-radius: 8px;
}

/* Right Panel */
.right-panel {
    background: white;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* Import Header */
.import-header {
    margin-bottom: 30px;
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.back-link {
    color: #6b7280;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}

.back-link:hover {
    color: #0500FF;
}

.qr-link {
    color: #0500FF;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: opacity 0.2s;
}

.qr-link:hover {
    opacity: 0.8;
}

.qr-icon {
    font-size: 18px;
}

.import-header h2 {
    font-size: 24px;
    font-weight: 600;
    color: #1a1d29;
}

/* Form */
.import-form {
    margin-top: 30px;
}

.form-group {
    margin-bottom: 30px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #1a1d29;
    margin-bottom: 10px;
}

.input-wrapper {
    position: relative;
}

.form-input {
    width: 100%;
    padding: 14px 40px 14px 16px;
    font-size: 15px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    transition: border-color 0.2s, box-shadow 0.2s;
    font-family: inherit;
}

.form-input:focus {
    outline: none;
    border-color: #0500FF;
    box-shadow: 0 0 0 3px rgba(5, 0, 255, 0.1);
}

.clear-btn {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: #e5e7eb;
    border: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 12px;
    color: #6b7280;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.clear-btn:hover {
    background: #d1d5db;
}

.form-textarea {
    width: 100%;
    min-height: 160px;
    padding: 16px;
    font-size: 15px;
    border: 2px solid #d1d5db;
    border-radius: 12px;
    resize: vertical;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
    line-height: 1.6;
    transition: all 0.3s ease;
    background: #ffffff;
    color: #1a1d29;
}

.form-textarea:focus {
    outline: none;
    border-color: #0500FF;
    box-shadow: 0 0 0 3px rgba(5, 0, 255, 0.1);
}

.form-textarea::placeholder {
    color: #9ca3af;
}

.help-text {
    margin-top: 10px;
    font-size: 13px;
    color: #6b7280;
    line-height: 1.6;
}

.help-text p {
    margin: 4px 0;
}

.import-btn {
    width: 100%;
    padding: 16px;
    background: #0052FF !important;
    color: white;
    border: none;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 20px;
    box-shadow: 0 4px 15px rgba(0, 82, 255, 0.4);
}

.import-btn:hover {
    background: #0041CC !important;
    box-shadow: 0 6px 20px rgba(0, 82, 255, 0.6);
    transform: translateY(-2px);
}

.import-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(0, 82, 255, 0.4);
}

.import-btn:disabled {
    background: #d1d5db;
    cursor: not-allowed;
    box-shadow: none;
}

.btn-loader {
    display: none;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal.show {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: 16px;
    padding: 40px;
    max-width: 400px;
    width: 90%;
    text-align: center;
    animation: modalSlideIn 0.3s ease-out;
}

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

.modal-icon {
    width: 60px;
    height: 60px;
    background: #10b981;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    margin: 0 auto 20px;
}

.modal-content.error .modal-icon {
    background: #ef4444;
}

.modal-content h3 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 12px;
    color: #1a1d29;
}

.modal-content p {
    color: #6b7280;
    margin-bottom: 24px;
    line-height: 1.6;
}

.modal-btn {
    padding: 14px 32px;
    background: #0500FF;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.modal-btn:hover {
    background: #0400DD;
}

/* Responsive */
@media (max-width: 1024px) {
    .main-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .left-panel {
        order: 2;
    }
    
    .right-panel {
        order: 1;
    }
}

@media (max-width: 768px) {
    .form-textarea {
        min-height: 140px;
        padding: 14px;
        font-size: 16px; /* Prevent zoom on iOS */
    }
    
    .help-text {
        font-size: 12px;
    }
}

@media (max-width: 640px) {
    .container {
        padding: 15px;
    }
    
    .right-panel {
        padding: 24px;
    }
    
    .header-top {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .form-textarea {
        min-height: 120px;
        padding: 12px;
        font-size: 16px;
    }
    
    .help-text {
        font-size: 11px;
        margin-top: 8px;
    }
    
    .phone-mockup {
        padding: 20px;
    }
    
    .phone-screen {
        width: 240px;
    }
    
    .import-header h2 {
        font-size: 20px;
    }
    
    .page-title {
        font-size: 24px;
    }
}
