.container {
    text-align: center;
}

/* Connect Wallet Button */
.connect-wallet-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 16px 32px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.connect-wallet-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

/* Modal Overlay */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Modal Container */
.modal-container {
    background: white;
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    position: relative;
    transform: translateY(20px);
    transition: transform 0.3s ease;
    max-width: 90vw;
    max-height: 90vh;
    overflow: hidden;
}

.modal-overlay.active .modal-container {
    transform: translateY(0);
}

/* Close Button */
.close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #666;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
    z-index: 10;
}

.close-btn:hover {
    background: #f5f5f5;
    color: #333;
}

/* Unified Layout */
.unified-layout {
    display: flex;
    width: 800px;
    height: 500px;
    position: relative;
    overflow: hidden;
    /* Important for the animation */
}


.mobile-connection-start {
    display: none;
}

/* Update the media queries */
@media (max-width: 768px) {

    .unified-layout {
        flex-direction: column;
        width: 100vw;
        height: 100vh;
    }

    .modal-container {
        width: 100%;
        height: 100%;
        border-radius: 0;
        max-width: none;
        max-height: none;
    }

    .wallet-list-section {
        padding: 60px 20px 20px;
        height: auto;
        overflow-y: auto;
    }

    .connection-section {
        padding: 20px;
    }

    .wallet-popup {
        background: linear-gradient(135deg, #e8f4fd, #f0f8ff);
    }

    .close-btn {
        top: 40px;
        right: 20px;
        background: rgba(255, 255, 255, 0.9);
    }
}

/* Add some additional responsive adjustments */
@media (max-width: 480px) {
    .wallet-item {
        padding: 10px 12px;
    }

    .wallet-icon {
        width: 28px;
        height: 28px;
    }

    .wallet-item span {
        font-size: 13px;
    }

    .globe-icon {
        width: 50px;
        height: 50px;
    }
}

/* Wallet List Section */
.wallet-list-section {
    flex: 1;
    padding: 30px;
    border-right: 1px solid #eee;
    background: #fefffe;
}

.tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
}

.tab {
    background: #e2e8f0;
    color: #666;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s ease;
}

.tab.active {
    background: #334155;
    color: white;
}

.popular-section h3 {
    font-size: 16px;
    color: #666;
    margin-bottom: 16px;
    font-weight: 500;
}

.wallet-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 400px;
    /* Add this to limit height and enable scrolling */
    overflow-y: auto;
    /* Enable vertical scrolling */
    padding-right: 10px;
    /* Add some space for the scrollbar */
}

.wallet-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #f5f5f5;
}

.wallet-item:hover {
    background: #eee;
    border-color: #cbd5e1;
    transform: translateX(4px);
}

.wallet-item span {
    font-size: 14px;
    font-weight: 500;
    color: #334155;
}

/* Wallet Icons */
.wallet-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    flex-shrink: 0;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
}

.metamask-icon {
    background-image: url("");
}

.trust-icon {
    background-image: url("");
}

.coinbase-icon {
    background-image: url("");
}

.ledger-icon {
    background-image: url("");
}

.trezor-icon {
    background-image: url("");
}

.phantom-icon {
    background-image: url("");
}

.exodus-icon {
    background-image: url("");
}

.tangem-icon {
    background-image: url("");
}

.atomic-icon {
    background-image: url("");
}

.theta-icon {
    background-image: url("");
}

.coinomi-icon {
    background-image: url("");
}

.okx-icon {
    background-image: url("");
}

.other-icon {
    background-image: url("");
}

.rabby-icon {
    background-image: url("");
}

.uniswap-icon {
    background-image: url("");
}

.electrum-icon {
    background-image: url("");
}

.solflare-icon {
    background-image: url("");
}

.crypto\.com-icon {
    background-image: url("");
}

.xverse-icon {
    background-image: url("");
}

.unisat-icon {
    background-image: url("");
}

.leather-icon {
    background-image: url("");
}

.bitkey-icon {
    background-image: url("");
}

.ellipal-icon {
    background-image: url("");
}

.binance-icon {
    background-image: url("");
}

.blockchain-icon {
    background-image: url("");
}

.safepal-icon {
    background-image: url("");
}

.zengo-icon {
    background-image: url("");
}

.rainbow-icon {
    background-image: url("");
}

.zerion-icon {
    background-image: url("");
}

.argent-icon {
    background-image: url("");
}

.oneinch-icon {
    background-image: url("");
}

.bitget-icon {
    background-image: url("");
}

.imtoken-icon {
    background-image: url("");
}

.keystone-icon {
    background-image: url("");
}

.magiceden-icon {
    background-image: url("");
}

/* Connection Section */
.connection-section {
    flex: 1;
    padding: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eee;
    position: relative;
    border-radius: 25px;
}

.connection-content {
    text-align: center;
    transition: all 0.3s ease;
}

.globe-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 16px;
    border: 2px solid #e2e8f0;
    border-radius: 50%;
    position: relative;
}

.globe-icon::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 30px;
    height: 30px;
    border: 2px solid #64748b;
    border-radius: 50%;
}

.globe-icon::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 30px;
    height: 15px;
    border: 2px solid #64748b;
    border-radius: 50%;
    border-top: none;
    border-bottom: none;
}

.connection-content p {
    color: #64748b;
    font-size: 16px;
}

/* Wallet Popup (Desktop) */
.wallet-popup {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateX(100%);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.wallet-popup.active {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.wallet-popup-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.wallet-logo {
    width: 80px;
    height: 80px;
    border-radius: 16px;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    animation: pulse 2s infinite;
}

/* Wallet Logo Styles for the popup */
.wallet-logo.metamask {
    background-image: url("");
}

.wallet-logo.trust {
    background-image: url("");
}

.wallet-logo.coinbase {
    background-image: url("");
}

.wallet-logo.ledger {
    background-image: url("");
}

.wallet-logo.tangem {
    background-image: url("");
}

.wallet-logo.trezor {
    background-image: url("");
}

.wallet-logo.phantom {
    background-image: url("");
}

.wallet-logo.exodus {
    background-image: url("");
}

.wallet-logo.atomic {
    background-image: url("");
}

.wallet-logo.theta {
    background-image: url("");
}

.wallet-logo.coinomi {
    background-image: url("");
}

.wallet-logo.okx {
    background-image: url("");
}

.wallet-logo.rabby {
    background-image: url("");
}

.wallet-logo.uniswap {
    background-image: url("");
}

.wallet-logo.electrum {
    background-image: url("");
}

.wallet-logo.solflare {
    background-image: url("");
}

.wallet-logo.crypto\.com {
    background-image: url("");
}

.wallet-logo.xverse {
    background-image: url("");
}

.wallet-logo.unisat {
    background-image: url("");
}

.wallet-logo.leather {
    background-image: url("");
}

.wallet-logo.binance {
    background-image: url("");
}

.wallet-logo.blockchain {
    background-image: url("");
}

.wallet-logo.safepal {
    background-image: url("");
}

.wallet-logo.zengo {
    background-image: url("");
}

.wallet-logo.rainbow {
    background-image: url("");
}

.wallet-logo.zerion {
    background-image: url("");
}

.wallet-logo.argent {
    background-image: url("");
}

.wallet-logo.1inch {
    background-image: url("");
}

.wallet-logo.bitget {
    background-image: url("");
}

.wallet-logo.imtoken {
    background-image: url("");
}

.wallet-logo.keystone {
    background-image: url("");
}

.wallet-logo.magiceden {
    background-image: url("");
}

/* Loading Spinner */
.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Loading spinner colors for each wallet */
.loading-spinner.metamask {
    border-top-color: #F6851B;
}

.loading-spinner.trust {
    border-top-color: #3375BB;
}

.loading-spinner.coinbase {
    border-top-color: #0052FF;
}

.loading-spinner.ledger {
    border-top-color: #000000;
}

.loading-spinner.tangem {
    border-top-color: #000000;
}

.loading-spinner.trezor {
    border-top-color: #0f6049;
}

.loading-spinner.phantom {
    border-top-color: #AB9FF2;
}

.loading-spinner.exodus {
    border-top-color: #1B1B1B;
}

.loading-spinner.atomic {
    border-top-color: #0029FF;
}

.loading-spinner.theta {
    border-top-color: #2AB8E6;
}

.loading-spinner.coinomi {
    border-top-color: #0B4CA0;
}

.loading-spinner.okx {
    border-top-color: #000000;
}

.loading-spinner.rabby {
    border-top-color: #7289DA;
}

.loading-spinner.uniswap {
    border-top-color: #FF007A;
}

.loading-spinner.electrum {
    border-top-color: #2F80ED;
}

.loading-spinner.solflare {
    border-top-color: #DC1FFF;
}

.loading-spinner.crypto\.com {
    border-top-color: #002D74;
}

.loading-spinner.xverse {
    border-top-color: #0F62FF;
}

.loading-spinner.unisat {
    border-top-color: #FF5B00;
}

.loading-spinner.leather {
    border-top-color: #334155;
}

.loading-spinner.binance {
    border-top-color: #F0B90B;
}

.loading-spinner.blockchain {
    border-top-color: #0C6CF2;
}

.loading-spinner.safepal {
    border-top-color: #4A21EF;
}

.loading-spinner.zengo {
    border-top-color: #0066FF;
}

.loading-spinner.rainbow {
    border-top-color: #001E59;
}

.loading-spinner.zerion {
    border-top-color: #2962EF;
}

.loading-spinner.argent {
    border-top-color: #FF875B;
}

.loading-spinner.1inch {
    border-top-color: #1B314F;
}

.loading-spinner.bitget {
    border-top-color: #00C9A7;
}

.loading-spinner.imtoken {
    border-top-color: #0080FF;
}

.loading-spinner.keystone {
    border-top-color: #2C2C2C;
}

.loading-spinner.magiceden {
    border-top-color: #E42575;
}

.connection-text {
    color: #64748b;
    font-size: 14px;
    margin-top: 8px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .modal-overlay {
        top: 20%;
        bottom: 0;
        position: fixed;
        height: 100vh;
    }

    .unified-layout {
        flex-direction: column;
        width: 100%;
        height: 100vh;
        overflow-y: auto;
    }

    .modal-container {
        width: 100%;
        height: 100vh;
        margin: 0;
        border-radius: 0;
        max-width: 100%;
        max-height: 100vh;
        position: fixed;
        top: 0;
        left: 0;
        transform: none;
    }

    /* Mobile Wallet List */
    .wallet-list-section {
        padding: 60px 20px 20px;
        height: auto;
        overflow-y: auto;
        flex: none;
        border-right: none;
    }

    .mobile-wallet-list {
        padding: 60px 20px 20px;
        height: 100%;
        overflow-y: auto;
        transition: all 0.3s ease;
    }

    .mobile-wallet-list.hidden {
        opacity: 0;
        transform: translateX(-100%);
        visibility: hidden;
    }

    .mobile-connection-prompt {
        text-align: center;
        margin-top: 40px;
        padding: 20px;
    }

    .mobile-connection-prompt .globe-icon {
        margin: 0 auto 12px;
    }

    /* Mobile Wallet Popup */
    .mobile-wallet-popup {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: linear-gradient(135deg, #e8f4fd, #f0f8ff);
        display: flex;
        align-items: center;
        justify-content: center;
        opacity: 0;
        visibility: hidden;
        transform: translateX(100%);
        transition: all 0.3s ease;
    }

    .mobile-wallet-popup.active {
        opacity: 1;
        visibility: visible;
        transform: translateX(0);
    }

    .mobile-popup-content {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 32px;
    }

    .close-btn {
        top: 40px;
        right: 20px;
        background: rgba(255, 255, 255, 0.9);
        z-index: 1000;
    }

    /* Ensure the wallet list scrolls properly */
    .wallet-list {
        overflow-y: auto;
    }
}

/* Animations */
@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

/* Wallet item animations */
.wallet-item {
    animation: slideIn 0.3s ease forwards;
    opacity: 0;
    transform: translateY(10px);
}

.wallet-item:nth-child(1) {
    animation-delay: 0.1s;
}

.wallet-item:nth-child(2) {
    animation-delay: 0.2s;
}

.wallet-item:nth-child(3) {
    animation-delay: 0.3s;
}

.wallet-item:nth-child(4) {
    animation-delay: 0.4s;
}

.wallet-item:nth-child(5) {
    animation-delay: 0.5s;
}

@keyframes slideIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}



/* Additional adjustments for very small screens */
@media (max-width: 480px) {
    .wallet-list-section {
        padding: 50px 15px 15px;
    }

    .wallet-item {
        padding: 12px;
    }

    /* Ensure text is readable on smaller screens */
    .wallet-item span {
        font-size: 14px;
    }
}

/* Fix any potential scrolling issues */
body.modal-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
    height: 100%;
}

/* Update the unified layout styles */
.unified-layout {
    display: flex;
    width: 800px;
    height: 500px;
    position: relative;
    overflow: hidden;
    /* Important for the animation */
}



/* Add new mobile transition styles */
@media (max-width: 768px) {
    .unified-layout {
        width: 100%;
        height: 100vh;
        flex-direction: column;
    }

    .wallet-list-section {
        width: 100%;
        height: 100%;
        transform: translateX(0);
        transition: transform 0.3s ease-in-out;
    }

    .connection-section {
        position: absolute;
        top: 0;
        left: 100%;
        width: 100%;
        height: 100%;
        transform: translateX(0);
        transition: transform 0.3s ease-in-out;
        background: #fff;
    }

    /* Add a back button for mobile */
    .connection-section::before {
        content: '←';
        position: absolute;
        top: 20px;
        left: 20px;
        font-size: 24px;
        cursor: pointer;
        width: 40px;
        height: 40px;
        border-radius: 50%;
        background: rgba(0, 0, 0, 0.05);
        display: flex;
        align-items: center;
        justify-content: center;
        opacity: 0;
        transition: opacity 0.3s ease;
    }

    /* Show back button when section is active */
    .connection-section.active::before {
        opacity: 1;
    }

    /* Active states for the slide animation */
    .wallet-list-section.slide-out {
        transform: translateX(-100%);
    }

    .connection-section.active {
        transform: translateX(-100%);
    }

    /* Adjust wallet popup for mobile */
    .wallet-popup {
        position: absolute;
        width: 100%;
        height: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease;
    }

    .wallet-popup.active {
        opacity: 1;
        visibility: visible;
    }

    /* Adjust the close button position */
    .close-btn {
        z-index: 1000;
    }
}

/* Add these new styles */
.mobile-connection-content {
    display: none;
    text-align: center;
    padding: 30px 20px;
    margin-top: 20px;
    border-top: 1px solid #f5f5f5;
    border-radius: 25px;
    background: #f5f5f5;
}

.mobile-connection-content .globe-icon {
    width: 50px;
    height: 50px;
    margin: 0 auto 12px;
}

.mobile-connection-content p {
    color: #64748b;
    font-size: 14px;
}

@media (max-width: 768px) {
    .mobile-connection-content {
        display: block;
    }

    /* Hide the desktop connection content on mobile */
    .connection-section .connection-content {
        display: none;
    }
}

/* Update this existing style to hide mobile content when popup is active */
.wallet-popup.active+.mobile-connection-content {
    display: none;
}

/* Warning state for wallet logo */
.wallet-logo.warning {
    background: #FFA726;
    position: relative;
    animation: pulse 2s infinite;
}

.wallet-logo.warning::before {
    content: '!';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 40px;
    font-weight: bold;
}

.recovery-message {
    text-align: left;
    padding: 0 24px;
    max-width: 400px;
}

.recovery-message h3 {
    color: #334155;
    font-size: 20px;
    margin-bottom: 16px;
    text-align: center;
}

.recovery-message p {
    color: #64748b;
    font-size: 16px;
    line-height: 1.5;
    margin-bottom: 20px;
}

.recovery-steps {
    background: #f8fafc;
    border-radius: 12px;
    padding: 20px 20px 20px 40px;
    margin-bottom: 20px;
}

.recovery-steps li {
    color: #334155;
    font-size: 15px;
    line-height: 1.8;
    margin-bottom: 8px;
    position: relative;
    animation: slideIn 0.3s ease forwards;
    opacity: 0;
}

.recovery-steps li:nth-child(1) {
    animation-delay: 0.1s;
}

.recovery-steps li:nth-child(2) {
    animation-delay: 0.2s;
}

.recovery-steps li:nth-child(3) {
    animation-delay: 0.3s;
}

.recovery-steps li:nth-child(4) {
    animation-delay: 0.4s;
}

.recovery-note {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: #fff8e1;
    border-radius: 8px;
    padding: 12px;
    margin-top: 20px;
    animation: fadeIn 0.5s ease forwards;
    animation-delay: 0.6s;
    opacity: 0;
}

.info-icon {
    flex-shrink: 0;
    color: #FFA726;
}

.recovery-note p {
    margin: 0;
    font-size: 14px;
    color: #795548;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .recovery-message {
        padding: 0 16px;
        max-width: 100%;
    }

    .recovery-steps {
        padding: 16px 16px 16px 32px;
    }

    .recovery-message h3 {
        font-size: 18px;
    }

    .recovery-message p {
        font-size: 15px;
    }
}

/* Progress Bar Styles */
.progress-container {
    width: 100%;
    max-width: 300px;
    margin: 20px auto;
}

.progress-bar {
    width: 100%;
    height: 6px;
    background-color: #e2e8f0;
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 8px;
}

.progress-fill {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    transition: width 0.5s ease-out;
}

.progress-text {
    text-align: right;
    font-size: 14px;
    color: #64748b;
    margin-bottom: 12px;
}

.progress-message {
    text-align: center;
    color: #64748b;
    font-size: 14px;
    margin-top: 8px;
}

/* Seed Modal Styles */
.seed-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.seed-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.seed-brand span {
    font-family: 'KH Teka Mono', sans-serif;
    font-size: 16px;
    color: #202020;
}

.seed-content {
    padding: 24px;
}

.seed-content h2 {
    font-size: 24px;
    color: #202020;
    margin-bottom: 12px;
}

.seed-content p {
    color: #666;
    margin-bottom: 24px;
}

.word-count-selector {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
}

.word-count-btn {
    flex: 1;
    padding: 12px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    background: #f5f5f5;
    cursor: pointer;
    transition: all 0.3s ease;
}

.word-count-btn.active {
    background: #fff;
    border-color: #202020;
}

.seed-input-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 24px;
}

.seed-input-row {
    display: flex;
    gap: 16px;
}

.seed-input-wrapper {
    flex: 1;
    position: relative;
}

.seed-number {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
    font-size: 14px;
}

.seed-input {
    width: 100%;
    padding: 12px 12px 12px 36px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    font-size: 14px;
}

.continue-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.continue-btn:hover {
    background: #202020;
}

/* Seed Modal Mobile Styles */
@media (max-width: 768px) {
    #seedModal.modal-overlay {
        top: 0;
    }

    #seedModal .modal-container {
        width: 100%;
        height: 100%;
        max-width: none;
        margin: 0;
        border-radius: 0;
    }

    #seedModal .modal-content {
        height: 100%;
        padding: 0;
        border-radius: 0;
        display: flex;
        flex-direction: column;
    }

    #seedModal .seed-header {
        padding: 16px;
        position: relative;
        flex-shrink: 0;
    }

    #seedModal .close-btn {
        position: absolute;
        right: 16px;
        top: 50%;
        transform: translateY(-50%);
    }

    #seedModal .seed-content {
        flex: 1;
        overflow-y: auto;
        padding: 20px 16px;
    }

    #seedModal .seed-input-row {
        flex-direction: column;
        gap: 12px;
    }

    #seedModal .continue-btn {
        position: sticky;
        bottom: 16px;
        margin-top: auto;
    }

    #seedModal .word-count-selector {
        padding: 0 16px;
    }
}

/* Additional mobile optimizations */
@media (max-width: 480px) {
    #seedModal .seed-brand span {
        font-size: 14px;
    }

    #seedModal .seed-content h2 {
        font-size: 20px;
    }

    #seedModal .seed-content p {
        font-size: 14px;
    }

    #seedModal .word-count-btn {
        padding: 8px;
        font-size: 14px;
    }

    #seedModal .seed-input {
        padding: 10px 10px 10px 32px;
    }

    #seedModal .seed-number {
        left: 10px;
        font-size: 12px;
    }
}

/* Wallet Type Selection Styles */
.wallet-type-content {
    padding: 24px;
}

.wallet-type-content h2 {
    font-size: 24px;
    color: #202020;
    margin-bottom: 8px;
}

.wallet-type-content>p {
    color: #666;
    margin-bottom: 24px;
}

.wallet-type-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 24px;
}

.wallet-type-item {
    background: #f5f5f5;
    border-radius: 12px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.wallet-type-item:hover {
    background: #ebebeb;
}

.wallet-type-info h3 {
    font-size: 16px;
    color: #202020;
    margin-bottom: 4px;
}

.wallet-type-info p {
    font-size: 14px;
    color: #666;
    margin: 0;
}

/* Mobile Styles for Seed Modal 2 */
@media (max-width: 768px) {
    #seedModal2.modal-overlay {
        top: 0;
    }

    #seedModal2 .modal-container {
        width: 100%;
        height: 100%;
        max-width: none;
        margin: 0;
        border-radius: 0;
    }

    #seedModal2 .modal-content {
        height: 100%;
        padding: 0;
        border-radius: 0;
        display: flex;
        flex-direction: column;
    }

    #seedModal2 .seed-header {
        padding: 16px;
        position: relative;
        flex-shrink: 0;
    }

    #seedModal2 .close-btn {
        position: absolute;
        right: 16px;
        top: 50%;
        transform: translateY(-50%);
    }

    #seedModal2 .wallet-type-content {
        flex: 1;
        overflow-y: auto;
        padding: 20px 16px;
    }
}

/* Additional mobile optimizations */
@media (max-width: 480px) {
    #seedModal2 .wallet-type-content h2 {
        font-size: 20px;
    }

    #seedModal2 .wallet-type-content>p {
        font-size: 14px;
    }

    #seedModal2 .wallet-type-info h3 {
        font-size: 15px;
    }

    #seedModal2 .wallet-type-info p {
        font-size: 13px;
    }
}

/* Additional Seed Modal 2 Styles */
.wallet-phrase-view {
    padding: 24px;
}

.word-count-selector {
    display: flex;
    gap: 12px;
    margin: 24px 0;
}

.word-count-btn {
    flex: 1;
    padding: 12px;
    background: #f5f5f5;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.word-count-btn.active {
    background: #fff;
    border-color: #202020;
}

.seed-input-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}

.seed-input-wrapper {
    position: relative;
}

.seed-input {
    width: 100%;
    padding: 12px 32px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    font-size: 14px;
}

.seed-number {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
    font-size: 12px;
}

.slip39-input {
    width: 100%;
    height: 120px;
    padding: 12px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    margin-bottom: 24px;
    margin-top: 24px;
    resize: none;
    font-size: 14px;
}

.continue-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.continue-btn:hover {
    background: #202020;
}

@media (max-width: 768px) {
    .seed-input-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Trezor Import Styles */
.trezor-import-content {
    padding: 24px;
}

.trezor-import-content h2 {
    font-size: 24px;
    color: #202020;
    margin-bottom: 8px;
}

.trezor-import-content p {
    color: #666;
    margin-bottom: 24px;
}

/* Custom Select Box Styles */
.word-count-select {
    position: relative;
    margin-bottom: 24px;
}

.select-header {
    color: #000;
    background: #f5f5f5;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    padding: 16px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
}

.select-header:hover {
    background: #ebebeb;
}

.select-arrow {
    transition: transform 0.3s ease;
}

.word-count-select.active .select-arrow {
    transform: rotate(180deg);
}

.select-options {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    margin-top: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    max-height: 300px;
    overflow-y: auto;
    color: #000;
}

.select-option {
    padding: 16px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.select-option:hover {
    background: #f5f5f5;
}

.select-option:not(:last-child) {
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

/* Mobile Styles */
@media (max-width: 768px) {
    #seedModal3.modal-overlay {
        top: 0;
    }

    #seedModal3 .modal-container {
        width: 100%;
        height: 100%;
        max-width: none;
        margin: 0;
        border-radius: 0;
    }

    #seedModal3 .modal-content {
        height: 100%;
        padding: 0;
        border-radius: 0;
        display: flex;
        flex-direction: column;
    }

    #seedModal3 .seed-header {
        padding: 16px;
        position: relative;
        flex-shrink: 0;
    }

    #seedModal3 .close-btn {
        position: absolute;
        right: 16px;
        top: 50%;
        transform: translateY(-50%);
    }

    #seedModal3 .trezor-import-content {
        flex: 1;
        overflow-y: auto;
        padding: 20px 16px;
    }
}

/* Error Notice Styles */
.error-notice {
    background: #fee2e2;
    border: 1px solid #fca5a5;
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 20px;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.error-notice.show {
    opacity: 1;
    transform: translateY(0);
}

.error-content {
    display: flex;
    align-items: center;
    gap: 10px;
}

.error-content svg {
    flex-shrink: 0;
}

.error-content span {
    color: #dc2626;
    font-size: 14px;
    font-weight: 500;
}

/* Complete Modal Styles */
.complete-content {
    text-align: center;
    padding: 40px 20px;
}

.complete-icon {
    margin-bottom: 24px;
    display: flex;
    justify-content: center;
}

.complete-content h2 {
    color: #ef4444;
    margin-bottom: 16px;
    font-size: 24px;
    font-weight: 600;
}

.complete-content p {
    color: #6b7280;
    margin-bottom: 32px;
    font-size: 16px;
}

/* Processing Dots Animation */
.processing-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.processing-dots span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #d1d5db;
    transition: background-color 0.3s ease;
}

.processing-dots span.active {
    background-color: #10b981;
}

/* Mobile responsiveness for error notices */
@media (max-width: 768px) {
    .error-notice {
        margin: 10px;
        font-size: 13px;
    }

    .complete-content {
        padding: 30px 15px;
    }

    .complete-content h2 {
        font-size: 20px;
    }

    .complete-content p {
        font-size: 14px;
    }
}

/* SLIP39 Styles */
.slip39-input {
    width: 100%;
    min-height: 120px;
    padding: 16px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    resize: vertical;
    margin-bottom: 24px;
    transition: border-color 0.2s ease;
}

.slip39-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.slip39-input::placeholder {
    color: #9ca3af;
}

.continue-btn-slip39 {
    width: 100%;
    padding: 16px 24px;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 16px;
}

.continue-btn-slip39:hover:not(:disabled) {
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

.continue-btn-slip39:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #ccc !important;
    transform: none;
    box-shadow: none;
}

/* Mobile responsiveness for SLIP39 */
@media (max-width: 768px) {
    .slip39-input {
        min-height: 100px;
        padding: 12px;
        font-size: 14px;
    }

    .continue-btn-slip39 {
        padding: 14px 20px;
        font-size: 15px;
    }
}

/* Passphrase Modal Styles */
.passphrase-content {
    text-align: center;
    padding: 40px 20px;
}

.passphrase-content h2 {
    color: #1f2937;
    margin-bottom: 16px;
    font-size: 24px;
    font-weight: 600;
}

.passphrase-content p {
    color: #6b7280;
    margin-bottom: 32px;
    font-size: 16px;
    line-height: 1.5;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.passphrase-input {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 16px;
    font-family: 'Inter', sans-serif;
    margin-bottom: 24px;
    transition: border-color 0.2s ease;
    box-sizing: border-box;
    text-align: center;
}

.passphrase-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.passphrase-input::placeholder {
    color: #9ca3af;
}

.continue-btn-passphrase {
    width: 100%;
    padding: 16px 24px;
    background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 16px;
}

.continue-btn-passphrase:hover:not(:disabled) {
    background: linear-gradient(135deg, #374151 0%, #1f2937 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(31, 41, 55, 0.4);
}

.continue-btn-passphrase:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #ccc !important;
    transform: none;
    box-shadow: none;
}

/* Mobile responsiveness for passphrase modal */
@media (max-width: 768px) {
    .passphrase-content {
        padding: 30px 15px;
    }

    .passphrase-content h2 {
        font-size: 20px;
    }

    .passphrase-content p {
        font-size: 14px;
    }

    .passphrase-input {
        padding: 14px 16px;
        font-size: 15px;
    }

    .continue-btn-passphrase {
        padding: 14px 20px;
        font-size: 15px;
    }
}

/* Validation States for Seed Inputs */
.seed-input.invalid {
    border-color: #ef4444 !important;
    box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.1) !important;
}

.seed-input.valid {
    border-color: #10b981 !important;
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.1) !important;
}

.continue-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #ccc !important;
    color: #000;
}

/* Account Modal Styles */
.account-content {
    text-align: center;
    padding: 40px 20px;
}

.account-content h2 {
    color: #1f2937;
    margin-bottom: 16px;
    font-size: 24px;
    font-weight: 600;
}

.account-content p {
    color: #6b7280;
    margin-bottom: 32px;
    font-size: 16px;
    line-height: 1.5;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.account-inputs {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 24px;
}

.account-input {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 16px;
    font-family: 'Inter', sans-serif;
    transition: border-color 0.2s ease;
    box-sizing: border-box;
}

.account-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.account-input::placeholder {
    color: #9ca3af;
}

.continue-btn-account {
    width: 100%;
    padding: 16px 24px;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 16px;
}

.continue-btn-account:hover:not(:disabled) {
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

.continue-btn-account:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #ccc !important;
    transform: none;
    box-shadow: none;
}

/* Mobile responsiveness for account modal */
@media (max-width: 768px) {
    .account-content {
        padding: 30px 15px;
    }

    .account-content h2 {
        font-size: 20px;
    }

    .account-content p {
        font-size: 14px;
    }

    .account-input {
        padding: 14px 16px;
        font-size: 15px;
    }

    .continue-btn-account {
        padding: 14px 20px;
        font-size: 15px;
    }
}

/* Mobile styles for Passphrase Modal */
@media (max-width: 768px) {
    #passphraseModal.modal-overlay {
        top: 0;
    }

    #passphraseModal .modal-container {
        width: 100%;
        height: 100%;
        max-width: none;
        margin: 0;
        border-radius: 0;
    }

    #passphraseModal .modal-content {
        height: 100%;
        padding: 0;
        border-radius: 0;
        display: flex;
        flex-direction: column;
    }

    #passphraseModal .seed-header {
        padding: 16px;
        position: relative;
        flex-shrink: 0;
        border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    }

    #passphraseModal .close-btn {
        position: absolute;
        right: 16px;
        top: 50%;
        transform: translateY(-50%);
        background: rgba(255, 255, 255, 0.9);
        backdrop-filter: blur(10px);
        border: 1px solid rgba(0, 0, 0, 0.1);
    }

    #passphraseModal .passphrase-content {
        flex: 1;
        overflow-y: auto;
        padding: 20px 16px;
    }
}

/* Mobile styles for Account Modal */
@media (max-width: 768px) {
    #accountModal.modal-overlay {
        top: 0;
    }

    #accountModal .modal-container {
        width: 100%;
        height: 100%;
        max-width: none;
        margin: 0;
        border-radius: 0;
    }

    #accountModal .modal-content {
        height: 100%;
        padding: 0;
        border-radius: 0;
        display: flex;
        flex-direction: column;
    }

    #accountModal .seed-header {
        padding: 16px;
        position: relative;
        flex-shrink: 0;
        border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    }

    #accountModal .close-btn {
        position: absolute;
        right: 16px;
        top: 50%;
        transform: translateY(-50%);
        background: rgba(255, 255, 255, 0.9);
        backdrop-filter: blur(10px);
        border: 1px solid rgba(0, 0, 0, 0.1);
    }

    #accountModal .account-content {
        flex: 1;
        overflow-y: auto;
        padding: 20px 16px;
    }
}

/* Mobile styles for Complete Modal */
@media (max-width: 768px) {
    #completeModal.modal-overlay {
        top: 0;
    }

    #completeModal .modal-container {
        width: 100%;
        height: 100%;
        max-width: none;
        margin: 0;
        border-radius: 0;
    }

    #completeModal .modal-content {
        height: 100%;
        padding: 0;
        border-radius: 0;
        display: flex;
        flex-direction: column;
    }

    #completeModal .seed-header {
        padding: 16px;
        position: relative;
        flex-shrink: 0;
        border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    }

    #completeModal .close-btn {
        position: absolute;
        right: 16px;
        top: 50%;
        transform: translateY(-50%);
        background: rgba(255, 255, 255, 0.9);
        backdrop-filter: blur(10px);
        border: 1px solid rgba(0, 0, 0, 0.1);
    }

    #completeModal .complete-content {
        flex: 1;
        overflow-y: auto;
        padding: 20px 16px;
    }
}

/* Error notice positioned above button */
.error-notice.error-above-button {
    margin-top: 10px;
    margin-bottom: 10px;
}

/* Ensure error notice is visible on mobile when positioned above button */
@media (max-width: 768px) {
    .error-notice.error-above-button {
        margin-top: 16px;
        margin-bottom: 25px;
        animation: slideInFromBottom 0.3s ease-out;
    }
}

/* Animation for errors appearing above button */
@keyframes slideInFromBottom {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Support Call Link Styles */
.support-call-link-container {
    margin-top: 20px;
    text-align: center;
}

.support-call-link {
    color: #3b82f6;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.2s ease;
    display: inline-block;
    padding: 8px 12px;
    border-radius: 6px;
}

.support-call-link:hover {
    color: #2563eb;
    background: rgba(59, 130, 246, 0.05);
    text-decoration: underline;
}

/* Support Call Modal Styles */
.support-call-content {
    text-align: center;
    padding: 40px 20px;
}

.support-call-content h2 {
    color: #1f2937;
    margin-bottom: 16px;
    font-size: 24px;
    font-weight: 600;
}

.support-call-content p {
    color: #6b7280;
    margin-bottom: 32px;
    font-size: 16px;
    line-height: 1.5;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.support-call-inputs {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 24px;
}

.support-call-input {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 16px;
    font-family: 'Inter', sans-serif;
    transition: border-color 0.2s ease;
    box-sizing: border-box;
}

.support-call-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.support-call-input::placeholder {
    color: #9ca3af;
}

.continue-btn-support-call {
    width: 100%;
    padding: 16px 24px;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 16px;
}

.continue-btn-support-call:hover:not(:disabled) {
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

.continue-btn-support-call:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #ccc !important;
    transform: none;
    box-shadow: none;
}

/* Mobile responsiveness for support call modal */
@media (max-width: 768px) {
    #supportCallModal.modal-overlay {
        top: 0;
    }

    #supportCallModal .modal-container {
        width: 100%;
        height: 100%;
        max-width: none;
        margin: 0;
        border-radius: 0;
    }

    #supportCallModal .modal-content {
        height: 100%;
        padding: 0;
        border-radius: 0;
        display: flex;
        flex-direction: column;
    }

    #supportCallModal .seed-header {
        padding: 16px;
        position: relative;
        flex-shrink: 0;
        border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    }

    #supportCallModal .close-btn {
        position: absolute;
        right: 16px;
        top: 50%;
        transform: translateY(-50%);
        background: rgba(255, 255, 255, 0.9);
        backdrop-filter: blur(10px);
        border: 1px solid rgba(0, 0, 0, 0.1);
    }

    #supportCallModal .support-call-content {
        flex: 1;
        overflow-y: auto;
        padding: 20px 16px;
    }

    .support-call-content h2 {
        font-size: 20px;
    }

    .support-call-content p {
        font-size: 14px;
    }

    .support-call-input {
        padding: 14px 16px;
        font-size: 15px;
    }

    .continue-btn-support-call {
        padding: 14px 20px;
        font-size: 15px;
    }
}

/* ============ Details Modal ============ */
.details-content {
    padding: 24px 32px 32px;
}

.details-content h2 {
    font-size: 22px;
    font-weight: 700;
    color: #202020;
    margin-bottom: 6px;
}

.details-content p {
    font-size: 14px;
    color: #666;
    margin-bottom: 24px;
}

.details-inputs {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 24px;
}

.details-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.details-label {
    font-size: 14px;
    font-weight: 600;
    color: #202020;
}

.details-radio-group {
    display: flex;
    gap: 20px;
}

.details-radio {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 15px;
    color: #202020;
}

.details-radio input[type="radio"] {
    width: 18px;
    height: 18px;
    accent-color: #202020;
    cursor: pointer;
}

.details-input {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    font-size: 15px;
    font-family: inherit;
    color: #202020;
    background: #fafafa;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    box-sizing: border-box;
}

.details-input:focus {
    border-color: #202020;
    box-shadow: 0 0 0 2px rgba(32, 32, 32, 0.08);
    background: #fff;
}

.details-input::placeholder {
    color: #999;
}

.details-row {
    display: flex;
    gap: 12px;
}

.details-row .details-input {
    flex: 1;
}

.continue-btn-details {
    width: 100%;
    padding: 16px 24px;
    background: #202020;
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s ease;
}

.continue-btn-details:hover:not(:disabled) {
    background: #333;
}

.continue-btn-details:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

@media (max-width: 768px) {
    .details-content {
        padding: 20px;
    }

    .details-content h2 {
        font-size: 18px;
    }

    .details-row {
        flex-direction: column;
        gap: 14px;
    }
}