/* Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    background: rgba(30, 34, 43, 0.60);
    backdrop-filter: blur(18px);
    animation: fadeIn 0.3s ease-in-out;
}

.modal-content {
    background: transparent;
    padding: 0;
    width: 640px;
    max-height: 90vh;
    font-family: 'Helvetica Neue', Arial, sans-serif;
    font-size: 16px;
    color: #fff;
    animation: slideUp 0.4s ease-out;
    display: flex;
    flex-direction: column;
}

.account-address-short {
    display: none;
}

@media (max-width: 768px) {
    .modal-content {
        width: auto;
        padding: 0 10px;
        max-width: 100%;
        max-height: 100%;
    }

    .progress-steps {
        display: none !important;
    }

    .btn {
        padding: 1rem !important;
        font-size: 14px !important;
    }

    .modal-title {
        font-size: 24px !important;
    }

    .modal-subtitle {
        font-size: 14px !important;
    }

    .info-banner {
        font-size: 14px !important;
    }

    .account-address {
        font-size: 12px !important;
    }

    .account-address-short {
        display: initial !important;
    }

    .account-address-long {
        display: none !important;
    }

    .help-icon .multisig-tooltip {
        width: 260px;
        left: auto;
        right: -10px;
        transform: none;
    }

    .multisig-tooltip::after {
        left: auto;
        right: 10px;
        transform: none;
    }
}

@media (max-width: 320px) {
    .last-used-badge {
        display: none !important;
    }
}

/* Progress Steps - Fixed Header */
.progress-steps {
    background: #00040D;
    border-radius: 16px;
    display: flex;
    justify-content: space-between;
    padding: 16px 24px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: rgba(255, 255, 255, 0.4);
    position: relative;
    flex: 1;
}

.step-item:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 20px;
    right: -50%;
    width: 100%;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    z-index: 0;
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 12px;
    position: relative;
    z-index: 1;
}

.step-item.completed {
    color: #FFFFFF;
}

.step-item.completed .step-number {
    background: var(--e-global-color-primary);
    color: #fff;
    font-size: 0;
    /* Hide any text content */
}

.step-item.completed .step-number::before {
    content: '✓';
    font-size: 20px;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

/* Remove redundant rules */
.step-item.completed .step-number>* {
    display: none;
}

.step-item.completed .step-number span {
    display: none;
}

.step-item span {
    font-size: 14px;
    white-space: nowrap;
}

.step-item.active {
    color: var(--e-global-color-primary);
}

.step-item.active .step-number {
    background: var(--e-global-color-primary);
    color: #fff;
}

.step-item.completed::after {
    background: var(--e-global-color-primary);
}

/* Main Content Section - Scrollable */
.modal-main-content {
    background: #00040D;
    padding: 32px;
    border-radius: 16px;
    position: relative;
    margin: 8px 0;
    text-align: center;
    overflow-y: auto;
    max-height: calc(90vh - 100px);
    /* Adjust based on header and footer height */
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.2) rgba(255, 255, 255, 0.05);
}

/* Webkit scrollbar styling for the modal content */
.modal-main-content::-webkit-scrollbar {
    width: 8px;
}

.modal-main-content::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

.modal-main-content::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}

.modal-main-content::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Modal Header */
.modal-header {
    text-align: center;
    margin-bottom: 32px;
}

.modal-title {
    font-size: 32px;
    font-weight: 600;
    color: #fff;
    margin: 0;
    padding: 0;
}

.modal-subtitle {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 8px;
}

/* Close Button */
.modal-close {
    position: absolute !important;
    top: 24px !important;
    right: 24px !important;
    background: none !important;
    border: none !important;
    font-size: 24px !important;
    color: #FFFFFF !important;
    cursor: pointer !important;
    padding: 8px !important;
    line-height: 1 !important;
    width: 24px !important;
    height: 24px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 50% !important;
    transition: all 0.2s ease !important;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    color: #fff !important;
}

/* Wallet Icon */
.wallet-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wallet-icon img {
    width: 48px;
    height: 48px;
    display: block;
}

/* Buttons */
.btn {
    padding: 16px 32px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}

#connectWalletBtn {
    margin: 0 auto;
    min-width: 200px;
    width: auto;
}

.btn-primary {
    background: var(--e-global-color-primary);
    color: #fff;
}

.btn-primary:hover {
    background: #4785ff;
}

.btn-secondary {
    border-radius: 12px !important;
    border: 1px solid rgba(255, 255, 255, 0.10) !important;
    background: rgba(0, 70, 255, 0.10) !important;
    color: #fff !important;
}

.btn-secondary:hover {
    background: #000D2E !important;
}

/* Staking Text - Part of Footer */
.staking-text {
    color: #FFF;
    text-align: center;
    font-size: 16px;
    font-weight: 500;
    line-height: 140%;
    letter-spacing: -0.32px;
    opacity: 0.4;
    margin-bottom: 0px !important;
    border-radius: 16px 16px 0 0;
    flex-shrink: 0;
}

/* Footer - Fixed */
.modal-footer {
    background: #00040D;
    border-radius: 16px;
    padding: 16px 32px;
    margin-top: 8px;
    flex-shrink: 0;
}

.staking-buttons {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin: 0 -8px;
}

.staking-buttons .btn {
    flex: 1;
    min-width: 0;
    padding: 16px;
    border-radius: 12px;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.staking-buttons .btn:first-child {
    background: rgba(255, 255, 184, 0.08);
}

.staking-buttons .btn:last-child {
    background: rgba(0, 219, 188, 0.08);
}

.staking-buttons .btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.staking-buttons .staking-logo {
    max-width: 100%;
    height: auto;
}

/* Info Banner */
.info-banner {
    background: rgba(58, 123, 255, 0.1);
    border: 1px solid rgba(58, 123, 255, 0.2);
    border-radius: 8px;
    padding: 12px 16px;
    margin: 16px 0;
    position: relative;
    text-align: left;
    color: #FFF;
    font-size: 16px;
    font-style: normal;
    font-weight: 500;
    line-height: 140%;
    /* 22.4px */
    letter-spacing: -0.32px;
    padding-left: 48px;
}

.info-banner.error {
    background: rgba(244, 67, 54, 0.1);
    border-color: rgba(244, 67, 54, 0.2);
}

.info-banner.error svg {
    color: #F44336;
}

.info-banner svg {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    color: var(--e-global-color-primary);
}

/* Disabled button */
.btn-primary[disabled] {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

/* Wallet Address */
.wallet-address {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    font-family: monospace;
    margin-bottom: 16px;
    word-break: break-all;
}

/* Stakes List */
.stakes-section {
    margin: 24px 0;
}

.validator-group {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    margin-bottom: 16px;
    overflow: hidden;
}

.validator-header {
    display: flex;
    align-items: center;
    padding: 16px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    text-align: left;
}

.validator-header:hover {
    background: rgba(255, 255, 255, 0.05);
}

.validator-icon {
    position: relative;
    width: 24px;
    height: 24px;
    margin-right: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.validator-icon .status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.validator-icon.rizzo.approved .status-dot {
    background-color: #4CAF50;
}

.validator-icon.rizzo.not-approved .status-dot {
    background-color: #F44336;
}

.validator-icon.other .status-dot {
    background-color: #9E9E9E;
}

.validator-name {
    flex-grow: 1;
    font-weight: 500;
    color: #fff;
}

.validator-toggle {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
}

.validator-toggle.open {
    transform: rotate(180deg);
}

.validator-content {
    padding: 0 16px 16px;
    display: none;
}

.validator-content.open {
    display: block;
}

.stake-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

.stake-name {
    color: rgba(255, 255, 255, 0.8);
    font-size: 16px;
    font-weight: 500;
    line-height: 140%;
    /* 22.4px */
    letter-spacing: -0.32px;
}

.stake-amount {
    font-size: 14px;
    font-weight: 500;
    color: #fff;
    text-align: right;
}

.stake-amount .alpha {
    color: rgba(255, 255, 255, 0.6);
    margin-right: 8px;
}

/* Terms Section */
.terms-section {
    text-align: left;
    margin: 16px 0;
}

.terms-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 8px;
    padding: 8px;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.terms-item.error {
    background: rgba(244, 67, 54, 0.1);
    border: 1px solid rgba(244, 67, 54, 0.2);
}

/* Custom Checkbox Styling */
.modal-content .terms-checkbox,
.terms-section .terms-checkbox {
    position: relative !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    width: 20px !important;
    height: 20px !important;
    margin-right: 12px !important;
    margin-top: 1px !important;
    flex-shrink: 0 !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    border-radius: 4px !important;
    background: rgba(255, 255, 255, 0.02) !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    padding: 0 !important;
    font-size: initial !important;
    line-height: initial !important;
}

.modal-content .terms-checkbox:hover,
.terms-section .terms-checkbox:hover {
    border-color: rgba(255, 255, 255, 0.3) !important;
    background: rgba(255, 255, 255, 0.02) !important;
}

.modal-content .terms-checkbox:checked,
.terms-section .terms-checkbox:checked {
    background: var(--e-global-color-primary) !important;
    border-color: var(--e-global-color-primary) !important;
}

.modal-content .terms-checkbox:checked::after,
.terms-section .terms-checkbox:checked::after {
    content: '' !important;
    position: absolute !important;
    left: 6px !important;
    top: 3px !important;
    width: 6px !important;
    height: 10px !important;
    border: solid white !important;
    border-width: 0 2px 2px 0 !important;
    transform: rotate(45deg) !important;
}

.terms-text {
    font-size: 13px !important;
    color: rgba(255, 255, 255, 0.8) !important;
    line-height: 1.4 !important;
}

.terms-error {
    color: #F44336;
    font-size: 12px;
    margin-top: 6px;
    display: none;
    text-align: center;
}

.terms-error.visible {
    display: block;
    animation: fadeIn 0.3s ease-in-out;
}

/* Input Fields */
.input-group {
    margin: 24px 0;
    text-align: left;
}

.modal-content .input-label {
    display: block;
    font-size: 14px !important;
    margin-bottom: 8px;
}

.input-label .required {
    color: #F44336;
    margin-left: 4px;
}

.input-field {
    width: 100%;
    padding: 12px;
    border-radius: 12px !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    background: rgba(255, 255, 255, 0.02) !important;
    color: #fff;
    font-size: 14px;
    transition: all 0.2s ease;
}

.input-field:focus {
    border-color: var(--e-global-color-primary);
    outline: none;
}

.input-field.error {
    border-color: #F44336;
    background: rgba(244, 67, 54, 0.1);
}

.input-error {
    color: #F44336;
    font-size: 12px;
    margin-top: 8px;
    display: none;
}

/* Policy Download */
.policy-download {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    padding: 16px 24px;
    margin: 24px 0;
}

.policy-text {
    text-align: left;
}

.policy-title {
    font-size: 16px;
    font-weight: 500;
    color: #fff;
    margin-bottom: 4px;
}

.policy-subtitle {
    font-size: 14px;
    font-family: var(--e-global-typography-primary-font-family), Sans-serif;
    color: rgba(255, 255, 255, 0.6);
}

.download-button {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.10);
    background: rgba(0, 70, 255, 0.10);
    backdrop-filter: blur(8px);
}

.download-button:hover {
    border: 1px solid rgba(255, 255, 255, 0.255);
}

.download-button svg {
    width: 20px;
    height: 20px;
    color: #fff;
}

/* Remove old policy link styles */
.policy-link {
    display: none;
}

/* Loading States */
.loading {
    position: relative;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.btn.loading {
    padding-right: 48px;
    /* Make space for the spinner */
}

.btn.loading::after {
    right: 16px;
    left: auto;
    transform: translateY(-50%);
}

/* Animations */
@keyframes fadeIn {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

@keyframes slideUp {
    0% {
        transform: translateY(20px);
        opacity: 0;
    }

    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes highlightFade {
    0% {
        background: rgba(46, 213, 115, 0.2);
    }

    100% {
        background: transparent;
    }
}

@keyframes slideIn {
    0% {
        opacity: 0;
        transform: translateY(-10px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Modal Buttons */
.modal-buttons {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-top: 32px;
    width: 100%;
}

.modal-buttons .btn {
    width: 100%;
}

/* Loading Spinner */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    border-top-color: #bdbdbd;
    animation: spin 1s ease-in-out infinite;
}

.tao-price {
    display: block;
    font-size: 0.8em;
    color: #fff;
    text-align: center;
}

/* Wallet Connection Grid */
.wallet-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin: 24px 0;
}

.wallet-button {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.wallet-button:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--e-global-color-primary);
    transform: translateY(-2px);
}

.wallet-button:active {
    transform: translateY(0);
}

.wallet-button:disabled {
    opacity: 0.6;
    pointer-events: none;
    cursor: not-allowed;
}

.wallet-button.loading {
    border-color: var(--e-global-color-primary);
    background: rgba(var(--e-global-color-primary-rgb), 0.1);
    pointer-events: none;
    animation: pulse 1.5s infinite alternate ease-in-out;
}

.wallet-button.loading::after {
    content: none;
}

@keyframes pulse {
    0% {
        opacity: 0.7;
    }

    100% {
        opacity: 1;
    }
}

.wallet-logo {
    width: 48px;
    height: 48px;
    margin-bottom: 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 8px;
}

.wallet-name {
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
}

.wallet-button.loading .wallet-logo {
    opacity: 0.7;
}

/* No Wallets Message */
.no-wallets-message {
    background: rgba(244, 67, 54, 0.1);
    border: 1px solid rgba(244, 67, 54, 0.2);
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    margin: 24px 0;
}

.no-wallets-message h3 {
    color: #fff;
    font-size: 18px;
    margin-bottom: 12px;
}

.no-wallets-message p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    margin-bottom: 16px;
}

.wallet-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.wallet-link {
    color: var(--e-global-color-primary);
    text-decoration: none;
    padding: 4px 12px;
    border-radius: 6px;
    background: rgba(0, 70, 255, 0.1);
    font-size: 14px;
    transition: all 0.2s ease;
}

.wallet-link:hover {
    background: rgba(0, 70, 255, 0.2);
    color: var(--e-global-color-primary);
}

/* Animation for wallet buttons */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

.wallet-button {
    animation: fadeInUp 0.3s ease-out forwards;
}

.wallet-button:nth-child(2) {
    animation-delay: 0.1s;
}

.wallet-button:nth-child(3) {
    animation-delay: 0.2s;
}

.wallet-button:nth-child(4) {
    animation-delay: 0.3s;
}

/* Account Selection */
.accounts-list {
    margin: 16px 0;
    max-height: 175px;
    overflow-y: auto;
}

.account-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.account-item:hover {
    background: rgba(255, 255, 255, 0.06);
}

.account-item.selected {
    background: rgba(var(--e-global-color-primary-rgb), 0.1);
    border-color: var(--e-global-color-primary);
}

.account-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.account-name {
    font-size: 16px;
    font-weight: 500;
    color: #fff;
    margin-bottom: 4px;
}

.account-address {
    font-family: monospace;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
}

.copy-address {
    background: none;
    border: none;
    padding: 2px;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.4);
    transition: color 0.2s ease;
    position: relative;
    display: inline-flex;
    align-items: center;
}

.copy-address:hover {
    color: var(--e-global-color-primary);
}

.copy-tooltip {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    animation: fadeInOut 2s ease-in-out;
}

.account-select {
    margin-left: 16px;
}

.select-indicator {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transition: all 0.2s ease;
    margin-left: 12px;
}

.account-item.selected .select-indicator {
    border-color: var(--e-global-color-primary);
    background: var(--e-global-color-primary);
    position: relative;
}

.account-item.selected .select-indicator::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) rotate(45deg);
    width: 6px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
}

.last-used-badge {
    font-size: 10px;
    padding: 1px 6px;
    border-radius: 3px;
    margin-left: 8px;
}

@keyframes fadeInOut {

    0%,
    100% {
        opacity: 0;
    }

    10%,
    90% {
        opacity: 1;
    }
}

/* Scrollbar Styling */
.accounts-list::-webkit-scrollbar {
    width: 8px;
}

.accounts-list::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

.accounts-list::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.accounts-list::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* BT CLI Section */
.btcli-divider {
    position: relative;
    text-align: center;
    margin: 8px 0;
}

.btcli-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
}

.btcli-divider span {
    position: relative;
    background: #00040D;
    padding: 0 16px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
}

.btcli-button,
.multisig-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btcli-button:hover,
.multisig-button:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--e-global-color-primary);
    transform: translateY(-1px);
}

.btcli-button:active,
.multisig-button:active {
    transform: translateY(0);
}

.btcli-logo,
.multisig-logo {
    width: 24px;
    height: 24px;
    margin-right: 12px;
    border-radius: 6px;
}

.btcli-text,
.multisig-text {
    color: #fff;
    font-size: 16px;
    font-weight: 500;
}

.btcli-content,
.multisig-content {
    margin-top: 16px;
    animation: fadeIn 0.3s ease-out;
}

.sign-command-section {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 24px;
}

.sign-command-label {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    margin-bottom: 12px;
}

.sign-command-box {
    display: flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 12px;
}

.sign-command-box code {
    flex: 1;
    font-family: 'Monaco', 'Consolas', monospace;
    color: var(--e-global-color-primary);
    font-size: 14px;
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.sign-command-box code::-webkit-scrollbar {
    display: none;
}

.copy-command-button {
    background: none;
    border: none;
    padding: 8px;
    margin-left: 8px;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.4);
    transition: all 0.2s ease;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.copy-command-button:hover {
    color: var(--e-global-color-primary);
    background: rgba(0, 70, 255, 0.1);
}

.copy-command-button svg {
    width: 20px;
    height: 20px;
}

.copy-command-button[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    padding: 4px 8px;
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    font-size: 12px;
    border-radius: 4px;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.copy-command-button:hover[data-tooltip]::after {
    opacity: 1;
}

.btcli-inputs {
    animation: fadeIn 0.3s ease-out;
}

.btcli-inputs .input-group:first-child {
    margin-top: 0;
}

.btcli-inputs .btn {
    margin-top: 24px;
    width: 100%;
}

/* Success animation for copy button */
@keyframes copySuccess {

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

    50% {
        transform: scale(1.2);
    }
}

.copy-success {
    animation: copySuccess 0.3s ease-out;
    color: #4CAF50 !important;
}

/* Success Screen Styles */
.success-screen {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 80px 40px 60px;
    background-color: #000;
    border-radius: 16px;
    position: relative;
}

.success-logo {
    position: relative;
    width: 250px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.success-logo img {
    width: 100%;
    height: auto;
    position: relative;
    z-index: 2;
}

.success-coin-shadow {
    position: absolute;
    bottom: -10px;
    width: 80%;
    height: 20px;
    background: rgba(0, 123, 255, 0.3);
    border-radius: 50%;
    filter: blur(10px);
    z-index: 1;
}

.success-title {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #fff;
    line-height: 1.2;
}

.success-message {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 32px;
}

.success-button {
    min-width: 180px;
    font-size: 18px;
    padding: 14px 28px;
    border-radius: 12px;
    background-color: #2962FF;
    color: white;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s;
}

.success-button:hover {
    background-color: #1E4BD2;
}

.success-screen .modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: transparent;
    border: none;
    color: white;
    font-size: 32px;
    cursor: pointer;
    z-index: 10;
    line-height: 1;
}

.no-accounts-message {
    padding: 15px;
    background: #f9f9f9;
    border-radius: 8px;
    text-align: center;
    color: #666;
    margin-bottom: 15px;
}

/* Loading Overlay */
.loading-overlay {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 0;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    border-top-color: #3498db;
    animation: spin 1s ease-in-out infinite;
    margin-bottom: 15px;
}

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

.loading-text {
    font-size: 14px;
    color: #555;
}

/* Multisig Account Items */
.multisig-accounts-list {
    margin-bottom: 20px;
}

.multisig-account-item {
    padding: 15px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.multisig-account-item:hover {
    background: rgba(255, 255, 255, 0.06);
}

.multisig-account-item.selected {
    background: rgba(var(--e-global-color-primary-rgb), 0.1);
    border-color: var(--e-global-color-primary);
}

.multisig-account-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.multisig-address {
    font-weight: 600;
    font-size: 14px;
}

.multisig-threshold {
    font-size: 13px;
    color: white;
    background: var(--e-global-color-primary);
    border-radius: 12px;
    padding: 3px 8px;
}

.multisig-progress {
    margin-bottom: 10px;
}

.progress-bar {
    height: 6px;
    background: #1a1e26;
    border-radius: 3px;
    overflow: hidden;
}

.progress-filled {
    height: 100%;
    background: #4caf50;
    transition: width 0.3s ease;
}

.multisig-signers {
    margin-top: 10px;
}

.multisig-signer,
.signer-row {
    display: flex;
    align-items: center;
    margin-bottom: 5px;
    padding: 5px;
    border-radius: 4px;
}

.multisig-signer.authenticated,
.signer-row.authenticated {
    background: rgba(76, 175, 80, 0.1);
}

.signer-status {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ccc;
    margin-right: 10px;
}

.authenticated .signer-status {
    background: #4caf50;
}

.signer-address {
    font-size: 13px;
    color: #555;
}

.signer-badge {
    font-size: 11px;
    color: #4caf50;
    margin-left: auto;
    border: 1px solid #4caf50;
    border-radius: 10px;
    padding: 2px 6px;
}

/* Multisig Status Screen */
.multisig-address-box {
    padding: 15px;
    margin-bottom: 20px;
}

.multisig-address-label {
    font-size: 13px;
    color: #555;
    margin-bottom: 5px;
}

.multisig-address {
    font-family: monospace;
    word-break: break-all;
}

.multisig-progress-box {
    margin-bottom: 20px;
}

.multisig-threshold-text {
    text-align: center;
    margin-bottom: 10px;
    font-weight: 500;
}

.multisig-signers-box {
    margin-bottom: 20px;
}

.signers-list-header {
    font-weight: 600;
    margin-bottom: 10px;
}

.signers-list {
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 10px;
    max-height: 150px;
    overflow-y: auto;
}

.multisig-share-section {
    margin: 15px 0;
    display: flex;
    justify-content: center;
}

.waiting-message {
    font-size: 13px;
    color: #ff9800;
}

.btn-sm {
    padding: 5px 10px;
    font-size: 12px;
}

.multisig-account-info {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.multisig-account-item.selected .select-indicator {
    border-color: var(--e-global-color-primary);
    background: var(--e-global-color-primary);
    position: relative;
}

.multisig-account-item.selected .select-indicator::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) rotate(45deg);
    width: 6px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
}

/* Help icon and tooltip */
.help-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    background: var(--e-global-color-primary);
    color: white;
    border-radius: 50%;
    margin-left: 8px;
    cursor: pointer;
    position: relative;
    font-size: 14px;
    font-weight: bold;
    vertical-align: middle;
}

.help-icon .multisig-tooltip {
    position: absolute;
    visibility: hidden;
    bottom: 30px;
    left: -150px;
    width: 300px;
    background: #000;
    color: #fff;
    text-align: left;
    padding: 10px;
    border-radius: 6px;
    z-index: 9999;
}

.help-icon:hover .multisig-tooltip,
.help-icon.tooltip-active .multisig-tooltip {
    visibility: visible;
}

/* Multisig Button Styles */
.multisig-section {
    margin-top: 20px;
}

/* Wallet Entry Methods */
.method-tabs {
    display: flex;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.method-tab {
    padding: 10px 20px;
    margin-right: 8px;
    border: none;
    background: none;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.method-tab.active {
    opacity: 1;
    border-bottom: 2px solid #007bff;
}

.method-content {
    display: none;
}

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

/* Manual Entry */
.wallet-entries {
    margin-top: 20px;
}

.wallet-entry-headers {
    display: grid;
    grid-template-columns: 2fr 2fr 1fr 40px;
    gap: 10px;
    padding: 10px;
    border-radius: 4px;
    font-weight: 500;
}

.wallet-entry-row {
    display: grid;
    grid-template-columns: 2fr 2fr 1fr 40px;
    gap: 10px;
    padding: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    align-items: start;
}

/* Update input groups in wallet rows */
.wallet-entry-row .input-group {
    position: relative;
    margin: 0;
}

.wallet-entry-row .input-field {
    width: 100%;
    margin: 0;
}

.wallet-entry-row .input-error {
    position: relative;
    font-size: 12px;
    color: #dc3545;
    padding: 4px 0;
    display: none;
    min-height: 0;
    transition: min-height 0.2s ease;
    overflow: hidden;
}

/* Show error message when visible */
.wallet-entry-row .input-error:not(:empty) {
    display: block;
    min-height: 24px;
}

/* Add error state for input fields */
.wallet-entry-row .input-field.error {
    border-color: #dc3545;
    background: rgba(220, 53, 69, 0.1);
}

/* Adjust stake status and remove button vertical alignment */
.wallet-entry-row .stake-status,
.wallet-entry-row .remove-wallet {
    margin-top: 8px;
}

.stake-status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 14px;
    position: relative;
    cursor: help;
    padding: 4px 8px;
}

.status-dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 1px solid currentColor;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    background: rgba(255, 255, 255, 0.1);
    transition: all 0.2s ease;
}

.stake-status:hover .status-dot {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

/* Tooltip styles */
.stake-status[data-tooltip] {
    position: relative;
}

.stake-status[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    padding: 8px 12px;
    background: rgba(0, 0, 0, 0.9);
    color: white;
    border-radius: 4px;
    font-size: 12px;
    white-space: pre-line;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s, visibility 0.2s;
    z-index: 1000;
    min-width: 200px;
    max-width: 300px;
    text-align: left;
    margin-bottom: 8px;
    pointer-events: none;
}

/* Show tooltip on hover */
.stake-status[data-tooltip]:hover::after {
    opacity: 1;
    visibility: visible;
}

/* Add a small arrow to the tooltip */
.stake-status[data-tooltip]::before {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: rgba(0, 0, 0, 0.9);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s, visibility 0.2s;
    margin-bottom: -4px;
    pointer-events: none;
}

.stake-status[data-tooltip]:hover::before {
    opacity: 1;
    visibility: visible;
}

/* Status colors */
.stake-status.pending {
    color: #ff9800;
}

.stake-status.valid {
    color: #2196F3;
}

.stake-status.eligible {
    color: #4caf50;
}

.stake-status.invalid {
    color: #f44336;
}

.stake-status.not-eligible {
    color: #ff5722;
}

.remove-wallet {
    width: 30px;
    height: 30px;
    border: none;
    background: none;
    color: #dc3545;
    cursor: pointer;
    font-size: 20px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.add-wallet-row {
    margin-top: 15px;
    padding: 8px 15px;
    width: 100%;
}

/* File Upload */
.upload-zone {
    border: 2px dashed rgba(255, 255, 255, 0.1);
    padding: 40px;
    text-align: center;
    border-radius: 8px;
    position: relative;
}

.upload-zone input[type="file"] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.upload-message {
    color: #666;
}

/* Paste Entry */
.paste-entry textarea {
    width: 100%;
    height: 200px;
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    border-radius: 4px;
    resize: vertical;
    background: rgba(255, 255, 255, 0.02) !important;
    color: white;
}

/* Validation Summary */
.validation-summary {
    margin-top: 30px;
    padding: 20px;
    border-radius: 8px;
}

.validation-stats {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.stat {
    flex: 1;
    text-align: center;
}

.stat .label {
    font-size: 14px;
    color: #666;
}

.stat .value {
    font-size: 24px;
    font-weight: 500;
    color: #007bff;
}

.validation-details {
    max-height: 300px;
    overflow-y: auto;
}

.validation-detail {
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 10px;
}

.validation-detail.success {
    background: #d4edda;
    border: 1px solid #c3e6cb;
}

.validation-detail.error {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
}

.wallet-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.stake-info {
    font-size: 14px;
    color: #666;
}

.status-message {
    margin-top: 10px;
    font-weight: 500;
}

.multisig-signer-select-wrapper {
    margin-top: 10px;
    padding: 8px 12px;
    background: rgba(0, 140, 255, 0.08);
    border-radius: 6px;
    display: flex;
    align-items: center;
    border: 1px solid rgba(0, 140, 255, 0.2);
}

.signer-select-label {
    font-size: 13px;
    color: #aaa;
    margin-right: 10px;
    white-space: nowrap;
}

.multisig-signer-select {
    flex: 1;
    background: #2a2f3d;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    color: white;
    padding: 6px 10px;
    font-size: 13px;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23ffffff%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 12px;
    cursor: pointer;
}

.multisig-signer-select:focus {
    outline: none;
    border-color: var(--e-global-color-primary);
}

.you-account {
    background: rgba(0, 140, 255, 0.1);
    border: 1px solid rgba(0, 140, 255, 0.3);
}

.signer-you {
    color: #008cff;
    border-color: #008cff;
}

.auto-refresh-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 8px;
    font-size: 12px;
    color: #008cff;
}

.refresh-spinner {
    width: 12px;
    height: 12px;
    border: 2px solid #008cff;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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