/* Manage Account Page Specific Styles */

/* Search Section */
.search-section {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.input-group {
    margin-bottom: 1.5rem;
}

.input-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #333;
    font-size: 1rem;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-wrapper i {
    position: absolute;
    left: 16px;
    color: #667eea;
    font-size: 1.1rem;
    z-index: 1;
}

.vote-input {
    width: 100%;
    padding: 16px 16px 16px 48px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 1rem;
    font-family: 'Courier New', monospace;
    transition: all 0.2s ease;
    background: white;
}

.vote-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

.vote-input::placeholder {
    color: #a0aec0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.use-wallet-btn {
    position: absolute;
    right: 8px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 8px 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.9rem;
}

.use-wallet-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.search-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 16px 32px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.search-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

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

/* Results Section */
.results-section {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Results Header with Refresh Button */
.results-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.results-section h3 {
    color: #333;
    font-size: 1.5rem;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Refresh Button */
.refresh-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.25);
}

.refresh-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.35);
}

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

.refresh-btn i {
    font-size: 12px;
    transition: transform 0.3s ease;
}

.refresh-btn.refreshing i {
    animation: spin 1s linear infinite;
}

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

/* Tab Navigation */
.tab-navigation {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 2rem;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 1rem;
}

.tab-btn {
    background: transparent;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    padding: 12px 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #555;
    white-space: nowrap;
}

.tab-btn:hover {
    border-color: #667eea;
    color: #667eea;
    background: rgba(102, 126, 234, 0.05);
}

.tab-btn.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: transparent;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.stake-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

/* Tab Content */
.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

/* Info Grid */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

/* Info Cards */
.info-card {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid #e2e8f0;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.info-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border-color: #667eea;
}

.info-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 1rem;
}

.info-header i {
    color: #667eea;
    font-size: 1.2rem;
}

.info-header h3 {
    color: #333;
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
}

.info-content {
    color: #555;
    font-size: 0.95rem;
    line-height: 1.5;
}

.info-content .address {
    font-family: 'Courier New', monospace;
    background: rgba(102, 126, 234, 0.1);
    padding: 8px 12px;
    border-radius: 6px;
    word-break: break-all;
    font-size: 0.85rem;
    color: #667eea;
    font-weight: 500;
}

.info-content .number {
    font-family: 'Courier New', monospace;
    font-size: 1.1rem;
    font-weight: 600;
    color: #2e7d32;
}

.info-content .balance {
    font-family: 'Courier New', monospace;
    font-size: 1.1rem;
    font-weight: 600;
    color: #2e7d32;
}

/* Special layout for balance card - horizontal layout */
.balance-card .info-content {
    flex-direction: row !important;
    justify-content: flex-start;
    align-items: center;
    gap: 12px;
    width: 100%;
    display: flex;
    flex-wrap: wrap;
}

/* Ensure balance text takes flexible width in balance card */
.balance-card .balance {
    flex: 1;
    margin-right: 0;
    text-align: left;
    min-width: 0; /* Allow shrinking */
}

/* Commission card with authority - vertical layout */
.commission-card.authority-match .info-content {
    display: flex;
    flex-direction: column;
    gap: 0;
    width: 100%;
}

/* Container for commission value and update button */
.commission-value-container {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 12px;
}

/* Commission value takes available space */
.commission-value-container .number {
    flex: 1;
    margin-right: 0;
    text-align: left;
    min-width: 0;
}

/* Update button stays on the right */
.commission-value-container .update-commission-btn {
    flex: 0 0 auto;
    margin-left: auto;
}

/* Commission authority indicator - appears below value and button */
.commission-card .commission-authority-indicator {
    width: 100%;
    margin-top: 12px;
}

/* Fixed width for withdraw button */
.balance-card .withdraw-btn {
    flex: 0 0 auto;
    width: 100px; /* Fixed width */
    margin-left: 0;
    white-space: nowrap;
    text-align: center;
}

/* Fixed width for delegate button in balance card */
.balance-card .delegate-stake-btn {
    flex: 0 0 auto;
    width: 100px; /* Fixed width */
    margin-left: 0;
    white-space: nowrap;
    text-align: center;
}

/* Withdraw Button */
.withdraw-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 6px;
    padding: 8px 16px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    box-shadow: 0 2px 4px rgba(102, 126, 234, 0.2);
}

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

.withdraw-btn:disabled {
    background: #e2e8f0;
    color: #a0aec0;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Withdraw Stake Button */
.withdraw-stake-btn {
    flex: 0 0 auto;
    width: 100px;
    height: 32px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    box-shadow: 0 2px 4px rgba(102, 126, 234, 0.2);
}

.withdraw-stake-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(102, 126, 234, 0.3);
}

.withdraw-stake-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(102, 126, 234, 0.2);
}

.withdraw-stake-btn:disabled {
    background: #e2e8f0;
    color: #a0aec0;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Delegate Stake Button */
.delegate-stake-btn {
    flex: 0 0 auto;
    width: 100px;
    height: 32px;
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    box-shadow: 0 2px 4px rgba(76, 175, 80, 0.2);
}

.delegate-stake-btn:hover {
    background: linear-gradient(135deg, #45a049 0%, #388e3c 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(76, 175, 80, 0.3);
}

.delegate-stake-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(76, 175, 80, 0.2);
}

.delegate-stake-btn:disabled {
    background: #e2e8f0;
    color: #a0aec0;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Deactivate Stake Button */
.deactivate-stake-btn {
    flex: 0 0 auto;
    width: 100px;
    height: 32px;
    background: linear-gradient(135deg, #f44336 0%, #d32f2f 100%);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    box-shadow: 0 2px 4px rgba(244, 67, 54, 0.2);
}

.deactivate-stake-btn:hover {
    background: linear-gradient(135deg, #d32f2f 0%, #c62828 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(244, 67, 54, 0.3);
}

.deactivate-stake-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(244, 67, 54, 0.2);
}

.deactivate-stake-btn:disabled {
    background: #e2e8f0;
    color: #a0aec0;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Update Authority Buttons */
.update-authority-btn, .update-stake-authority-btn, .update-stake-withdraw-authority-btn, .update-commission-btn {
    flex: 0 0 auto;
    width: 100px;
    height: 32px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    box-shadow: 0 2px 4px rgba(102, 126, 234, 0.2);
}

.update-authority-btn:hover, .update-stake-authority-btn:hover, .update-stake-withdraw-authority-btn:hover, .update-commission-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(102, 126, 234, 0.3);
}

.update-authority-btn:active, .update-stake-authority-btn:active, .update-stake-withdraw-authority-btn:active, .update-commission-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(102, 126, 234, 0.2);
}

/* Authority Match Indicators */
.authority-match-indicator, .commission-authority-indicator {
    margin-top: 12px;
}

.match-status {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 500;
}

.match-success {
    background: rgba(76, 175, 80, 0.1);
    color: #2e7d32;
    border: 1px solid rgba(76, 175, 80, 0.3);
}

.match-warning {
    background: rgba(255, 152, 0, 0.1);
    color: #ef6c00;
    border: 1px solid rgba(255, 152, 0, 0.3);
}

/* Address Container */
.address-container {
    display: flex;
    align-items: center;
    gap: 12px;
    justify-content: space-between;
}

/* Stake Summary Card */
.stake-summary-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.stake-summary-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 1.2rem;
    font-weight: 600;
}

.stake-rank-badge {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 12px;
    font-weight: 500;
    padding: 4px 8px;
    border-radius: 12px;
}

.user-authority-badge {
    background: rgba(76, 175, 80, 0.9);
    color: white;
    font-size: 11px;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Stake Tab Enhancements */
.tab-btn .stake-rank {
    background: rgba(102, 126, 234, 0.2);
    color: #667eea;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 10px;
    margin-right: 4px;
}

.tab-btn .stake-amount {
    font-weight: 600;
    color: #2e7d32;
}

.tab-btn.active .stake-rank {
    background: rgba(255, 255, 255, 0.3);
    color: white;
}

.tab-btn.active .stake-amount {
    color: rgba(255, 255, 255, 0.9);
}

/* Authority Indicators */
.authority-indicator {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: 8px;
}

.authority-indicator i {
    font-size: 12px;
    color: #2e7d32;
}

.tab-btn.active .authority-indicator i {
    color: rgba(255, 255, 255, 0.8);
}

/* Status Indicators */
.status-indicator {
    margin-left: 8px;
    padding: 2px 6px;
    border-radius: 8px;
    font-size: 10px;
    display: flex;
    align-items: center;
    gap: 2px;
}

.status-indicator.deactivating {
    background: rgba(255, 152, 0, 0.2);
    color: #ef6c00;
}

.status-indicator.inactive {
    background: rgba(158, 158, 158, 0.2);
    color: #757575;
}

.tab-btn.active .status-indicator.deactivating {
    background: rgba(255, 152, 0, 0.3);
    color: #fff3e0;
}

.tab-btn.active .status-indicator.inactive {
    background: rgba(158, 158, 158, 0.3);
    color: #f5f5f5;
}

/* Status Description */
.status-description {
    margin-top: 12px;
    padding: 8px 12px;
    background: rgba(102, 126, 234, 0.05);
    border-radius: 6px;
    font-size: 0.85rem;
    color: #555;
    border-left: 3px solid #667eea;
}

/* Stake Cards with Status Colors */
.active-stake-card .info-header i {
    color: #4caf50;
}

.deactivating-stake-card .info-header i {
    color: #ff9800;
}

.inactive-stake-card .info-header i {
    color: #9e9e9e;
}

/* Account List for Modals */
.account-list {
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #f8fafc;
}

.account-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-bottom: 1px solid #e2e8f0;
    transition: background-color 0.2s ease;
}

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

.account-item:hover {
    background: rgba(102, 126, 234, 0.05);
}

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

.account-name {
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.account-address {
    font-family: 'Courier New', monospace;
    color: #666;
    font-size: 0.85rem;
    word-break: break-all;
}

.active-badge {
    background: rgba(76, 175, 80, 0.2);
    color: #2e7d32;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 10px;
    font-weight: 600;
    text-transform: uppercase;
}

.select-account-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 6px;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.select-account-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.current-indicator {
    color: #2e7d32;
    font-size: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Max Button for Withdraw Modal */
.max-btn {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: #667eea;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 4px 8px;
    font-size: 11px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.max-btn:hover {
    background: #5a67d8;
}

/* Authority tab highlighting */
.tab-btn.authority-tab {
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.1) 0%, rgba(76, 175, 80, 0.05) 100%);
    border: 2px solid rgba(76, 175, 80, 0.3);
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.2);
}

.tab-btn.authority-tab:hover {
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.15) 0%, rgba(76, 175, 80, 0.1) 100%);
    border-color: rgba(76, 175, 80, 0.4);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.25);
    transform: translateY(-1px);
}

.tab-btn.authority-tab.active {
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.9) 0%, rgba(69, 160, 73, 0.9) 100%);
    border-color: #4CAF50;
    color: white;
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.4);
}

.tab-btn.authority-tab.active .authority-indicator i {
    color: rgba(255, 255, 255, 0.9);
}

/* ========================================
   Merge Stake Section Styles
   ======================================== */

/* Container */
.merge-stake-container {
    padding: 1rem 0;
    max-width: 700px;
    margin: 0 auto;
}

/* Wallet Notice */
.wallet-notice {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 24px;
    background: linear-gradient(135deg, rgba(255, 152, 0, 0.1) 0%, rgba(255, 152, 0, 0.05) 100%);
    border: 1px solid rgba(255, 152, 0, 0.3);
    border-radius: 12px;
}

.wallet-notice .notice-icon {
    flex: 0 0 auto;
    width: 48px;
    height: 48px;
    background: rgba(255, 152, 0, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wallet-notice .notice-icon i {
    font-size: 20px;
    color: #ef6c00;
}

.wallet-notice .notice-content h4 {
    margin: 0 0 8px 0;
    color: #ef6c00;
    font-size: 1rem;
    font-weight: 600;
}

.wallet-notice .notice-content p {
    margin: 0;
    color: #666;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Merge Stake Content */
.merge-stake-content {
    animation: fadeIn 0.3s ease;
}

/* Info Card */
.merge-info-card {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    background: rgba(102, 126, 234, 0.08);
    border: 1px solid rgba(102, 126, 234, 0.2);
    border-radius: 10px;
    margin-bottom: 24px;
}

.merge-info-card .info-icon {
    flex: 0 0 auto;
    color: #667eea;
    font-size: 18px;
}

.merge-info-card .info-text p {
    margin: 0;
    color: #555;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* No Accounts Notice */
.no-accounts-notice {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 24px;
    background: linear-gradient(135deg, rgba(158, 158, 158, 0.1) 0%, rgba(158, 158, 158, 0.05) 100%);
    border: 1px solid rgba(158, 158, 158, 0.3);
    border-radius: 12px;
    margin-top: 16px;
}

.no-accounts-notice .notice-icon {
    flex: 0 0 auto;
    width: 48px;
    height: 48px;
    background: rgba(158, 158, 158, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.no-accounts-notice .notice-icon i {
    font-size: 20px;
    color: #757575;
}

.no-accounts-notice .notice-content h4 {
    margin: 0 0 8px 0;
    color: #555;
    font-size: 1rem;
    font-weight: 600;
}

.no-accounts-notice .notice-content p {
    margin: 0;
    color: #777;
    font-size: 0.85rem;
    line-height: 1.5;
}

/* Merge Selection Area */
.merge-selection-area {
    margin-top: 8px;
}

/* Merge Dropdowns Container */
.merge-dropdowns {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 24px;
}

/* Dropdown Container */
.merge-dropdown-container {
    flex: 1;
    min-width: 0;
}

.merge-dropdown-container .dropdown-label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    font-weight: 600;
    color: #333;
    font-size: 0.95rem;
}

.merge-dropdown-container .dropdown-label i {
    font-size: 14px;
}

.merge-dropdown-container.source .dropdown-label i {
    color: #f44336;
}

.merge-dropdown-container.destination .dropdown-label i {
    color: #4caf50;
}

.merge-dropdown-container .label-hint {
    font-weight: 400;
    font-size: 0.8rem;
    color: #888;
}

/* Custom Dropdown Wrapper */
.merge-dropdown-wrapper {
    position: relative;
    width: 100%;
}

/* Selected Display (like RPC selector) */
.merge-select-display {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 14px;
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    min-height: 48px;
    font-size: 0.9rem;
}

.merge-select-display:hover {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.merge-select-display.open {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

.merge-select-display .select-icon {
    color: #667eea;
    font-size: 14px;
    flex-shrink: 0;
}

.merge-select-display .select-text {
    flex: 1;
    font-family: 'Courier New', monospace;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.merge-select-display .select-text.placeholder {
    color: #a0aec0;
    font-family: inherit;
}

.merge-select-display .chevron {
    color: #667eea;
    font-size: 12px;
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

.merge-select-display.open .chevron {
    transform: rotate(180deg);
}

/* Dropdown Options Container */
.merge-select-options {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 2px solid #667eea;
    border-top: none;
    border-radius: 0 0 10px 10px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    z-index: 1000;
    max-height: 250px;
    overflow-y: auto;
    display: none;
}

.merge-select-options.open {
    display: block;
    animation: dropdownFadeIn 0.15s ease;
}

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

/* Individual Option */
.merge-select-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    cursor: pointer;
    transition: background-color 0.15s ease;
    border-bottom: 1px solid #f1f5f9;
}

.merge-select-option:last-child {
    border-bottom: none;
}

.merge-select-option:hover {
    background-color: rgba(102, 126, 234, 0.08);
}

.merge-select-option.selected {
    background-color: rgba(102, 126, 234, 0.12);
}

.merge-select-option.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background-color: #f8fafc;
}

.merge-select-option.disabled:hover {
    background-color: #f8fafc;
}

.merge-select-option .option-icon {
    color: #667eea;
    font-size: 14px;
    flex-shrink: 0;
}

.merge-select-option .option-content {
    flex: 1;
    min-width: 0;
}

.merge-select-option .option-address {
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    color: #333;
    margin-bottom: 2px;
}

.merge-select-option .option-details {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.75rem;
}

.merge-select-option .option-balance {
    color: #2e7d32;
    font-weight: 600;
}

.merge-select-option .option-status {
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 500;
}

.merge-select-option .option-status.active {
    background: rgba(76, 175, 80, 0.15);
    color: #2e7d32;
}

.merge-select-option .option-status.inactive {
    background: rgba(158, 158, 158, 0.15);
    color: #757575;
}

.merge-select-option .option-status.activating {
    background: rgba(33, 150, 243, 0.15);
    color: #1976d2;
}

.merge-select-option .option-status.deactivating {
    background: rgba(255, 152, 0, 0.15);
    color: #ef6c00;
}

/* Scrollbar for options */
.merge-select-options::-webkit-scrollbar {
    width: 6px;
}

.merge-select-options::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 3px;
}

.merge-select-options::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

.merge-select-options::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Hidden native select for form compatibility */
.merge-select {
    display: none;
}

/* Arrow between dropdowns */
.merge-arrow {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    margin-top: 38px;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.merge-arrow i {
    color: white;
    font-size: 16px;
}

/* Account Preview */
.account-preview {
    margin-top: 12px;
    padding: 12px;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.account-preview .preview-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.account-preview .preview-row:last-child {
    margin-bottom: 0;
}

.account-preview .preview-label {
    color: #666;
    font-size: 0.85rem;
}

.account-preview .preview-value {
    font-family: 'Courier New', monospace;
    font-weight: 600;
    font-size: 0.9rem;
    color: #333;
}

/* Merge Preview */
.merge-preview {
    padding: 20px;
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.08) 0%, rgba(76, 175, 80, 0.04) 100%);
    border: 1px solid rgba(76, 175, 80, 0.3);
    border-radius: 12px;
    margin-bottom: 20px;
}

.merge-preview h4 {
    margin: 0 0 16px 0;
    color: #2e7d32;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.merge-preview h4 i {
    font-size: 16px;
}

.preview-details {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.preview-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px dashed rgba(0, 0, 0, 0.1);
}

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

.preview-item .preview-label {
    color: #555;
    font-size: 0.9rem;
}

.preview-item .preview-value {
    font-family: 'Courier New', monospace;
    font-weight: 600;
    font-size: 0.95rem;
    color: #333;
}

.preview-item.total {
    margin-top: 8px;
    padding-top: 12px;
    border-top: 2px solid rgba(76, 175, 80, 0.3);
    border-bottom: none;
}

.preview-item.total .preview-label {
    font-weight: 600;
    color: #2e7d32;
}

.preview-item.total .preview-value {
    font-size: 1.1rem;
    color: #2e7d32;
}

.preview-item .preview-value.address {
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    color: #667eea;
}

/* Merge Info Notice */
.merge-info-notice {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    background: rgba(102, 126, 234, 0.08);
    border: 1px solid rgba(102, 126, 234, 0.3);
    border-radius: 10px;
    margin-bottom: 20px;
}

.merge-info-notice i {
    color: #667eea;
    font-size: 18px;
    flex: 0 0 auto;
    margin-top: 2px;
}

.merge-info-notice div {
    color: #555;
    font-size: 0.9rem;
    line-height: 1.5;
}

.merge-info-notice strong {
    color: #667eea;
}

/* Merge Action */
.merge-action {
    display: flex;
    justify-content: center;
    padding-top: 8px;
}

.merge-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 16px 32px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.merge-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.merge-btn:active:not(:disabled) {
    transform: translateY(0);
}

.merge-btn:disabled {
    background: #e2e8f0;
    color: #a0aec0;
    cursor: not-allowed;
    box-shadow: none;
}

/* Responsive Design for Manage Account */
@media (max-width: 768px) {
    .info-grid {
        grid-template-columns: 1fr;
    }
    
    .tab-navigation {
        flex-direction: column;
    }
    
    .stake-tabs {
        flex-direction: column;
        width: 100%;
    }
    
    .tab-btn {
        justify-content: center;
        width: 100%;
    }
    
    .balance-card .info-content {
        flex-direction: column;
        gap: 8px;
        align-items: stretch;
    }
    
    .balance-card .balance {
        text-align: center;
    }
    
    .balance-card .withdraw-btn,
    .balance-card .delegate-stake-btn {
        width: 100%;
    }
    
    .address-container {
        flex-direction: column;
        gap: 8px;
        align-items: stretch;
    }
    
    .update-authority-btn,
    .update-stake-authority-btn,
    .update-stake-withdraw-authority-btn,
    .update-commission-btn {
        width: 100%;
    }
    
    /* Merge Stake Responsive */
    .merge-dropdowns {
        flex-direction: column;
        gap: 16px;
    }
    
    .merge-arrow {
        margin: 0 auto;
        transform: rotate(90deg);
    }
    
    .merge-dropdown-container {
        width: 100%;
    }
}
