/* New Account Page Styles */
.new-account-container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Validator Management Section */
.validator-section {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.validator-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 2px solid #e2e8f0;
}

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

.validator-info h3 {
    color: #667eea;
    font-size: 1.4rem;
    font-weight: 600;
    margin: 0;
}

.validator-status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #666;
}

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

/* Account Types Grid */
.account-types-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.account-type-card {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s ease;
    position: relative;
}

.account-type-card:hover {
    border-color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.15);
}

.account-type-card.disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.account-type-card.disabled:hover {
    transform: none;
    border-color: #e2e8f0;
    box-shadow: none;
}

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

.card-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
}

.account-limit {
    font-size: 12px;
    color: #666;
    background: rgba(102, 126, 234, 0.1);
    padding: 4px 8px;
    border-radius: 4px;
}

.card-description {
    color: #666;
    font-size: 14px;
    margin-bottom: 16px;
    line-height: 1.4;
}

.account-status {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.existing-accounts {
    font-size: 13px;
    color: #4caf50;
    font-weight: 500;
}

.existing-accounts.none {
    color: #666;
}

.generate-btn {
    width: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.generate-btn:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.generate-btn:disabled {
    background: #e0e0e0;
    color: #999;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Generated Accounts List */
.generated-accounts {
    margin-top: 20px;
}

.accounts-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 12px;
}

.account-item {
    background: rgba(34, 197, 94, 0.05);
    border: 1px solid rgba(34, 197, 94, 0.2);
    border-radius: 8px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: all 0.2s ease;
}

.account-item:hover {
    background: rgba(34, 197, 94, 0.1);
    border-color: rgba(34, 197, 94, 0.3);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(34, 197, 94, 0.15);
}

.account-info {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
}

.account-type-icon {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: white;
    flex-shrink: 0;
}

.identity-icon {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.vote-icon {
    background: linear-gradient(135deg, #4ade80 0%, #22c55e 100%);
}

.stake-icon {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.account-details {
    flex: 1;
    min-width: 0;
}

.account-address {
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 13px;
    color: #333;
    font-weight: 500;
    word-break: break-all;
    line-height: 1.4;
    margin-bottom: 4px;
}

.account-meta {
    font-size: 11px;
    color: #666;
    margin-top: 2px;
}

.account-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding-top: 8px;
    border-top: 1px solid rgba(34, 197, 94, 0.1);
}

.action-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 12px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 80px;
    justify-content: center;
}

.copy-btn {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
    border: 1px solid rgba(102, 126, 234, 0.2);
}

.copy-btn:hover {
    background: rgba(102, 126, 234, 0.2);
    border-color: rgba(102, 126, 234, 0.3);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.2);
}

.download-btn {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.download-btn:hover {
    background: rgba(16, 185, 129, 0.2);
    border-color: rgba(16, 185, 129, 0.3);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.2);
}

/* Generation Modal */
.generation-modal .modal-content {
    max-width: 600px;
}

.generation-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-section {
    background: #f8fafc;
    border-radius: 8px;
    padding: 16px;
}

.form-section h4 {
    color: #333;
    font-size: 1rem;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.derivation-path-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.derivation-input {
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 13px;
}

.use-default-btn {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
    border: 1px solid rgba(102, 126, 234, 0.2);
    border-radius: 4px;
    padding: 6px 12px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.use-default-btn:hover {
    background: rgba(102, 126, 234, 0.2);
}

.authority-info {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 8px;
    padding: 16px;
    margin: 16px 0;
}

.authority-info h5 {
    color: #1d4ed8;
    font-size: 14px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.authority-address {
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 12px;
    color: #1e40af;
    background: rgba(59, 130, 246, 0.1);
    padding: 8px;
    border-radius: 4px;
    word-break: break-all;
}

.generation-progress {
    display: none;
    text-align: center;
    padding: 20px;
}

.progress-steps {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin: 20px 0;
}

.progress-step {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 13px;
    transition: all 0.3s ease;
}

.progress-step.active {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
}

.progress-step.completed {
    background: rgba(34, 197, 94, 0.1);
    color: #22c55e;
}

.progress-step i {
    font-size: 12px;
}

/* Recovery Information */
.recovery-section {
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.2);
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
}

.recovery-section h4 {
    color: #d97706;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.seed-phrase {
    background: white;
    border: 2px solid rgba(245, 158, 11, 0.2);
    border-radius: 8px;
    padding: 16px;
    margin: 12px 0;
}

/* 修改主要的种子词布局 - 大约在第425行 */
.seed-words {
    display: grid;
    grid-template-columns: repeat(3, 1fr);  /* 固定为3列 */
    gap: 12px;  /* 稍微增加间距以适应3列布局 */
    margin-bottom: 16px;
}

/* 调整种子词的最小宽度以适应3列布局 */
.seed-word {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    padding: 10px 8px;  /* 稍微调整内边距 */
    text-align: center;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 13px;
    font-weight: 500;
    color: #374151;
    min-width: 100px;  /* 确保最小宽度 */
}

.seed-actions {
    display: flex;
    gap: 8px;
    justify-content: center;
}

.seed-actions .action-btn {
    padding: 8px 16px;
    font-size: 13px;
}

.warning-note {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: 6px;
    padding: 12px;
    margin: 16px 0;
    font-size: 13px;
    color: #dc2626;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.warning-note i {
    margin-top: 2px;
    flex-shrink: 0;
}

/* Public Key Display Section */
.public-key-section {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 8px;
    padding: 16px;
    margin: 16px 0;
}

.public-key-section h5 {
    color: #1d4ed8;
    font-size: 14px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.public-key-display {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.public-key-address {
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 12px;
    color: #1e40af;
    background: rgba(59, 130, 246, 0.1);
    padding: 8px 12px;
    border-radius: 6px;
    word-break: break-all;
    flex: 1;
    min-width: 200px;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

/* 公钥复制按钮 - 更紧凑的样式 */
.public-key-display .copy-btn {
    padding: 8px 10px;
    min-width: auto;
    width: auto;
    flex-shrink: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .account-types-grid {
        grid-template-columns: 1fr;
    }
    
    .validator-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .account-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .account-actions {
        width: 100%;
        justify-content: flex-end;
    }
    
    .derivation-path-group {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .seed-words {
        grid-template-columns: repeat(2, 1fr);  /* 小屏幕上改为2列 */
        gap: 8px;
    }
    
    .seed-word {
        padding: 8px 6px;
        font-size: 12px;
        min-width: 80px;
    }
}

/* 更小屏幕的适配 */
@media (max-width: 480px) {
    .seed-words {
        grid-template-columns: 1fr;  /* 非常小的屏幕上改为1列 */
        gap: 6px;
    }
    
    .seed-word {
        padding: 10px 8px;
        font-size: 13px;
        min-width: auto;
    }
}

/* Animation for new account items */
@keyframes slideInFromBottom {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.account-item.new {
    animation: slideInFromBottom 0.3s ease;
}

/* Loading states */
.generate-btn.loading {
    position: relative;
    color: transparent;
}

.generate-btn.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 16px;
    height: 16px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    color: white;
}

/* Success states */
.generate-btn.success {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
}

.generate-btn.success::before {
    content: '✓';
    margin-right: 4px;
}

/* Single account display optimization */
.account-type-card[data-type="identity"] .generated-accounts,
.account-type-card[data-type="vote"] .generated-accounts {
    margin-top: 16px;
}

.account-type-card[data-type="identity"] .generated-accounts h4,
.account-type-card[data-type="vote"] .generated-accounts h4 {
    font-size: 14px;
    color: #666;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.account-type-card[data-type="identity"] .generated-accounts h4::before,
.account-type-card[data-type="vote"] .generated-accounts h4::before {
    content: "✅";
    font-size: 12px;
}

/* Hide generated accounts section when empty for single account types */
.account-type-card[data-type="identity"] .generated-accounts:empty,
.account-type-card[data-type="vote"] .generated-accounts:empty {
    display: none;
}

/* Show generated accounts section when account exists */
.account-type-card[data-type="identity"].has-account .generated-accounts,
.account-type-card[data-type="vote"].has-account .generated-accounts {
    display: block;
}

/* Seed Verification Modal */
.seed-verification-modal .modal-content {
    max-width: 700px;
}

.verification-instructions {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 20px;
}

.verification-instructions h4 {
    color: #1d4ed8;
    font-size: 16px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.verification-progress-section {
    background: #f8fafc;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 20px;
    text-align: center;
}

.verification-status {
    font-size: 14px;
    margin-bottom: 8px;
    padding: 8px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.verification-status.success {
    background: rgba(34, 197, 94, 0.1);
    color: #16a34a;
    border: 1px solid rgba(34, 197, 94, 0.2);
}

.verification-status.error {
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.verification-progress {
    font-size: 13px;
    color: #666;
    font-weight: 500;
}

.selected-words-section,
.shuffled-words-section {
    margin-bottom: 20px;
}

.selected-words-section h5,
.shuffled-words-section h5 {
    color: #374151;
    font-size: 14px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.selected-words {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 8px;
    margin-bottom: 16px;
    min-height: 120px;
    padding: 12px;
    background: white;
    border: 2px dashed #e2e8f0;
    border-radius: 8px;
}

.selected-word-placeholder {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    padding: 8px;
    text-align: center;
    font-size: 13px;
    color: #9ca3af;
    transition: all 0.3s ease;
    min-height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.selected-word-placeholder.filled {
    background: rgba(34, 197, 94, 0.1);
    border-color: rgba(34, 197, 94, 0.3);
    color: #16a34a;
    font-weight: 500;
}

.shuffled-words {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 8px;
}

.seed-word-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 6px;
    padding: 10px 12px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.seed-word-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.seed-word-btn:disabled {
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.seed-word-btn.correct {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
}

.seed-word-btn.incorrect {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

.verification-actions {
    text-align: center;
    margin: 20px 0;
}

.btn-reset {
    background: rgba(107, 114, 128, 0.1);
    color: #6b7280;
    border: 1px solid rgba(107, 114, 128, 0.2);
    border-radius: 6px;
    padding: 8px 16px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0 auto;
}

.btn-reset:hover {
    background: rgba(107, 114, 128, 0.2);
}

/* 动画效果 */
@keyframes correctSelection {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); background: #22c55e; }
    100% { transform: scale(1); }
}

@keyframes incorrectSelection {
    0% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    50% { transform: translateX(5px); }
    75% { transform: translateX(-5px); }
    100% { transform: translateX(0); }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .selected-words {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: 6px;
    }
    
    .shuffled-words {
        grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
        gap: 6px;
    }
    
    .seed-word-btn {
        padding: 8px 10px;
        font-size: 12px;
        min-height: 36px;
    }
}

/* Download Reminder Section */
.download-reminder {
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.2);
    border-radius: 8px;
    padding: 16px;
    margin: 20px 0;
    text-align: center;
}

.reminder-header h5 {
    color: #d97706;
    font-size: 14px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.reminder-header p {
    color: #92400e;
    font-size: 13px;
    margin-bottom: 12px;
}

.download-keypair-btn {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    border: none;
    border-radius: 6px;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 0 auto;
    min-width: 180px;
}

.download-keypair-btn:hover:not(.disabled) {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.download-keypair-btn.disabled {
    background: #e5e7eb;
    color: #9ca3af;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* 验证完成后的按钮状态 */
#completeVerificationBtn.success {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
}

#completeVerificationBtn.success:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.3);
}

/* 改进验证状态显示 */
.verification-status.success {
    background: rgba(34, 197, 94, 0.1);
    color: #16a34a;
    border: 1px solid rgba(34, 197, 94, 0.2);
    font-weight: 600;
}

/* 添加下载成功状态 */
.download-keypair-btn.downloaded {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
}

.download-keypair-btn.downloaded:before {
    content: '✓ ';
    margin-right: 4px;
}

/* 响应式设计优化 */
@media (max-width: 768px) {
    .download-reminder {
        padding: 12px;
        margin: 16px 0;
    }
    
    .download-keypair-btn {
        padding: 12px 16px;
        font-size: 13px;
        min-width: 160px;
    }
    
    .reminder-header h5 {
        font-size: 13px;
    }
    
    .reminder-header p {
        font-size: 12px;
    }
}

/* Create Vote Account Modal styles */
.readonly-input {
    background-color: #f8f9fa !important;
    cursor: not-allowed;
    color: #6c757d;
}

.info-section {
    margin: 20px 0;
}

.info-section .info-card {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 8px;
    padding: 16px;
}

.info-section .info-card h4 {
    color: #1d4ed8;
    font-size: 14px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.info-section .info-card ul {
    margin: 8px 0;
    padding-left: 20px;
}

.info-section .info-card li {
    margin: 4px 0;
    font-size: 13px;
    color: #4b5563;
}

/* Create Vote Account Button - Different color scheme */
.create-vote-btn {
    width: 100%;
    background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 2px 4px rgba(22, 163, 74, 0.2);
}

.create-vote-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #15803d 0%, #166534 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(22, 163, 74, 0.3);
}

.create-vote-btn:disabled {
    background: #e0e0e0;
    color: #999;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.create-vote-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(22, 163, 74, 0.2);
}

/* Icon styling for create vote button */
.create-vote-btn .fas {
    font-size: 13px;
}

/* Account Buttons Container */
.account-buttons {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Import Button Styles */
.import-btn {
    width: 100%;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.import-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
}

.import-btn:disabled {
    background: #e0e0e0;
    color: #999;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Import Modal Styles */
.import-modal .modal-content {
    max-width: 650px;
}

.import-method-selection {
    background: #f8fafc;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.import-method-selection h4 {
    color: #374151;
    font-size: 16px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.method-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.method-option {
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    padding: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.method-option:hover {
    border-color: #667eea;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.1);
}

.method-option.active {
    border-color: #667eea;
    background: rgba(102, 126, 234, 0.05);
}

.method-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
    font-weight: 600;
    color: #374151;
}

.method-header input[type="radio"] {
    width: 16px;
    height: 16px;
    accent-color: #667eea;
}

.method-option p {
    color: #6b7280;
    font-size: 13px;
    margin: 0;
    margin-left: 28px;
}

.import-section {
    background: #f8fafc;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.import-section h4 {
    color: #374151;
    font-size: 16px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.seed-input-area,
.file-input-area,
.keypair-text-input {
    margin-bottom: 20px;
}

.seed-input-area label,
.file-input-area label,
.keypair-text-input label {
    display: block;
    color: #374151;
    font-weight: 500;
    margin-bottom: 8px;
    font-size: 14px;
}

.seed-textarea,
.keypair-textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #e2e8f0;
    border-radius: 6px;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 13px;
    resize: vertical;
    transition: border-color 0.2s ease;
}

.seed-textarea:focus,
.keypair-textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.file-input {
    width: 100%;
    padding: 8px;
    border: 2px dashed #e2e8f0;
    border-radius: 6px;
    background: white;
    cursor: pointer;
    transition: border-color 0.2s ease;
}

.file-input:hover {
    border-color: #667eea;
}

.file-preview {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.2);
    border-radius: 6px;
    padding: 8px 12px;
    margin-top: 8px;
}

.file-preview i {
    color: #22c55e;
}

.file-preview span {
    color: #16a34a;
    font-weight: 500;
    flex: 1;
}

.remove-file-btn {
    background: none;
    border: none;
    color: #ef4444;
    cursor: pointer;
    padding: 2px;
    border-radius: 2px;
    transition: background-color 0.2s ease;
}

.remove-file-btn:hover {
    background: rgba(239, 68, 68, 0.1);
}

.derivation-path-section {
    margin-top: 16px;
}

.derivation-path-section label {
    display: block;
    color: #374151;
    font-weight: 500;
    margin-bottom: 8px;
    font-size: 14px;
}

/* 隐藏状态 */
.import-section.hidden {
    display: none;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .account-buttons {
        gap: 6px;
    }
    
    .import-btn,
    .generate-btn {
        padding: 10px 14px;
        font-size: 13px;
    }
    
    .method-options {
        gap: 8px;
    }
    
    .method-option {
        padding: 12px;
    }
    
    .import-section {
        padding: 16px;
    }
}

/* Delegate button styles - Same style as create buttons but brown color */
.delegate-btn {
    width: 100%;
    background: linear-gradient(135deg, #8b4513 0%, #6b3410 100%);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 2px 4px rgba(139, 69, 19, 0.2);
}

.delegate-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #6b3410 0%, #5a2c0d 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(139, 69, 19, 0.3);
}

.delegate-btn:disabled {
    background: #e0e0e0;
    color: #999;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.delegate-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(139, 69, 19, 0.2);
}

/* Icon styling for delegate button */
.delegate-btn .fas {
    font-size: 13px;
}

/* Validation message styles */
.validation-message {
    margin-top: 8px;
    padding: 8px;
    border-radius: 4px;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.validation-message.validating {
    background: rgba(59, 130, 246, 0.1);
    color: #1d4ed8;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.validation-message.valid {
    background: rgba(34, 197, 94, 0.1);
    color: #16a34a;
    border: 1px solid rgba(34, 197, 94, 0.2);
}

.validation-message.invalid {
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

/* Adjust action buttons layout for stake accounts */
.account-actions {
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .account-actions {
        flex-direction: column;
        gap: 6px;
    }
    
    .action-btn {
        min-width: auto;
        flex: none;
    }
}

/* Create Stake Account Button - Same style as delegate button but green color */
.create-stake-btn {
    width: 100%;
    background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 2px 4px rgba(22, 163, 74, 0.2);
}

.create-stake-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #15803d 0%, #166534 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(22, 163, 74, 0.3);
}

.create-stake-btn:disabled {
    background: #e0e0e0;
    color: #999;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.create-stake-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(22, 163, 74, 0.2);
}

/* Icon styling for create stake button */
.create-stake-btn .fas {
    font-size: 13px;
}

/* Balance display in delegate modal */
.balance-display {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.2);
    border-radius: 6px;
    padding: 12px;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 16px;
    font-weight: 600;
    color: #16a34a;
    text-align: center;
}

.balance-display.loading {
    color: #6b7280;
    background: rgba(107, 114, 128, 0.1);
    border-color: rgba(107, 114, 128, 0.2);
}

.balance-display.error {
    color: #dc2626;
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.2);
}

/* Delegated status display */
.action-status {
    width: 100%;
    background: rgba(34, 197, 94, 0.1);
    color: #16a34a;
    border: 1px solid rgba(34, 197, 94, 0.2);
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-align: center;
}

.delegated-status {
    background: rgba(34, 197, 94, 0.1);
    color: #16a34a;
    border-color: rgba(34, 197, 94, 0.2);
}

.delegated-status i {
    font-size: 13px;
}

/* Initialized status display for vote accounts */
.initialized-status {
    background: rgba(59, 130, 246, 0.1);
    color: #1d4ed8;
    border-color: rgba(59, 130, 246, 0.2);
}

.initialized-status i {
    font-size: 13px;
}

/* Modal Error Message */
.modal-error-message {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 20px;
    color: #dc2626;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.modal-error-message i {
    font-size: 16px;
    flex-shrink: 0;
}

.modal-error-message.hidden {
    display: none;
}

/* Import Derivation Method Selection Styles */
.import-derivation-method {
    background: #f8fafc;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.import-derivation-method > label {
    color: #374151;
    font-size: 16px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
}

.derivation-method-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.derivation-method-options .method-option {
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    padding: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.derivation-method-options .method-option:hover {
    border-color: #667eea;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.1);
}

.derivation-method-options .method-option input[type="radio"]:checked + label {
    background: rgba(102, 126, 234, 0.05);
}

.derivation-method-options .method-option:has(input[type="radio"]:checked) {
    border-color: #667eea;
    background: rgba(102, 126, 234, 0.05);
}

.derivation-method-options .method-option input[type="radio"] {
    width: 16px;
    height: 16px;
    accent-color: #667eea;
    position: absolute;
    opacity: 0;
}

.derivation-method-options .method-option label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    margin: 0;
    font-weight: normal;
}

.derivation-method-options .method-option label i {
    color: #667eea;
    font-size: 16px;
    margin-top: 2px;
    width: 16px;
    flex-shrink: 0;
}

.derivation-method-options .method-option label span {
    font-weight: 600;
    color: #374151;
    margin-bottom: 4px;
    display: block;
}

.derivation-method-options .method-option label small {
    color: #6b7280;
    font-size: 13px;
    margin: 0;
    font-weight: normal;
    display: block;
}

/* Hide derivation path section when CLI method is selected */
.derivation-path-section.hidden {
    display: none !important;
}

/* Responsive design for smaller screens */
@media (max-width: 768px) {
    .derivation-method-options {
        gap: 8px;
    }
    
    .derivation-method-options .method-option {
        padding: 12px;
    }
}
