.wallet-screen {
    background: #1593A7;
    min-height: 100vh;
    padding: 12px;
    font-family: 'Avenir Next', system-ui, sans-serif;
    color: #fff;
    display: flex;
    flex-direction: column;
}

.wallet-screen-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
    padding: 0 12px;
    background: #1593A7;
    box-sizing: border-box;
}

.wallet-screen-back-btn {
    background: none;
    border: none;
    padding: 0;
    display: flex;
    align-items: center;
    color: #fff;
    cursor: pointer;
    border-radius: 100px;
    transition: background 0.14s;
}

.wallet-screen-back-btn:hover {
    background: rgba(0, 0, 0, 0.06);
}

.wallet-screen-title {
    font-size: 1.26rem;
    font-weight: 700;
    flex: 1;
    text-align: left;
    margin-left: 15px;
    color: #fff;
    letter-spacing: 0.1px;
}

.wallet-asset-icon {
    width: 20px;
    height: 20px;
}

.wallet-screen-subtitle-row {
    display: flex;
    align-items: center;
    font-size: 14px;
    color: #B8CBD9;
    font-weight: 500;
    padding: 0 12px;
}

.wallet-list {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0;
    margin: 0;
    padding: 0 0 0 0;
}

.wallet-item {
    display: flex;
    align-items: center;
    padding: 15px 12px;
    background: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    cursor: pointer;
    gap: 10px;
}

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

.wallet-item-avatar {
    width: 30px;
    height: 30px;
    min-width: 30px;
    border-radius: 100px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: 0 2px 12px 0 rgba(31, 140, 187, 0.07);
}

.wallet-item-info {
    flex: 1;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    min-width: 0;
}

.wallet-item-address {
    font-size: 16px;
    font-weight: 500;
    color: #fff;
    letter-spacing: 0.05em;
}

.wallet-item-badge {
    display: inline-block;
    background: #2EC661;
    color: #fff;
    font-size: 10px;
    font-weight: 600;
    border-radius: 2px;
    padding: 2px 9px 2px 9px;
    margin-left: 10px;
    margin-top: 2px;
    letter-spacing: 0.03em;
    vertical-align: middle;
}

.wallet-item-menu {
    margin-left: 10px;
    background: none;
    border: none;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    border-radius: 100px;
    padding: 0 2px;
    opacity: 0.7;
    transition: background .15s;
}

.wallet-screen-add-btn {
    width: calc(100% - 32px);
    max-width: 500px;
    margin: 24px auto 26px auto;
    padding: 16px 0;
    background: #147C90;
    color: #fff;
    font-size: 1.11rem;
    font-weight: 600;
    border: none;
    border-radius: 14px;
    box-shadow: 0 2px 6px 0 rgba(0, 0, 0, 0.05);
    cursor: pointer;
    transition: background .15s;
    display: block;
    letter-spacing: 0.01em;
}

.wallet-screen-add-btn:hover,
.wallet-screen-add-btn:active {
    background: #0e6377;
}

/* Wallet Config*/

.wallet-action-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 16, 32, 0.6);
    z-index: 7;
}

.wallet-action-panel {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 8;
    background: #fff;
    border-radius: 10px 10px 0 0;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.10);
    padding: 18px 0 18px 0;
    animation: wallet-slide-in .36s cubic-bezier(.5, 1, .5, 1) both;
    transform: translateY(100%);
    opacity: 1;
}

.wallet-action-panel.slide-in {
    animation: wallet-slide-in .36s cubic-bezier(.5, 1, .5, 1) both;
}

.wallet-action-panel.slide-out {
    animation: wallet-slide-out .28s cubic-bezier(.5, 1, .5, 1) both;
}

@keyframes wallet-slide-in {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

@keyframes wallet-slide-out {
    from {
        transform: translateY(0);
    }
    to {
        transform: translateY(100%);
    }
}

.wallet-action-item {
    width: 100%;
    background: none;
    border: none;
    padding: 35px 15px;
    height: 48px;
    font-size: 18px;
    color: #294866;
    display: flex;
    align-items: center;
    font-family: inherit;
    cursor: pointer;
}

.wallet-action-item:first-child {
    padding: 20px 15px 35px 15px;
}

.wallet-action-item:not(:last-child) {
    border-bottom: 1px solid #F3F5F7;
}

.wallet-action-item:active {
    background: #EFF3F8;
}

.wallet-action-icon {
    margin-right: 32px;
    display: flex;
    align-items: center;
    min-width: 30px;
    justify-content: center;
}

.hidden {
    display: none !important;
}

/*Reveal Secret first step*/
.reveal-secret-key-screen {
    position: fixed;
    inset: 0;
    background: #1692a7;
    color: #fff;
    z-index: 9;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.reveal-secret-key-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 54px;
    padding-left: 4px;
    margin-left: 10px;
}

.reveal-secret-back-btn {
    background: none;
    border: none;
    outline: none;
    margin: 0;
    padding: 0;
    cursor: pointer;
    color: #fff;
}

.reveal-secret-key-content {
    padding: 22px 25px 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1 1 auto;
    align-items: center;
}

.reveal-secret-title {
    font-size: 36px;
    font-weight: 100;
    margin-top: 70px;
    margin-bottom: 24px;
    text-align: left;
    align-self: flex-start;
    font-family: inherit;
}

.reveal-secret-description {
    color: rgba(227, 239, 248, 0.7);
    font-size: 16px;
    font-weight: 100;
    line-height: 1.7;
    max-width: 500px;
    margin-bottom: 36px;
    margin-top: 0;
    text-align: left;
}

.reveal-secret-description b {
    color: #fff;
    font-weight: 400;
}

.reveal-secret-key-btn {
    font-family: "Avenir Next", sans-serif;
    margin-top: auto;
    margin-bottom: 32px;
    padding: 0 0;
    width: 100%;
    height: 56px;
    background: #10819c;
    color: #e1f5fa;
    font-size: 16px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    letter-spacing: 0;
    box-shadow: 0 4px 24px 0 rgba(0, 0, 0, 0.07);
    transition: background .15s;
}

.reveal-secret-key-btn:active {
    background: #12697b;
}

/* Reveal Secret Second step*/
.confirm-password-screen {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100dvh;
    background: #1692a7;
    color: #fff;
    z-index: 10;
    display: flex;
    flex-direction: column;
    font-family: 'Avenir Next', sans-serif;
}

.confirm-password-header {
    height: 56px;
    display: flex;
    align-items: center;
    padding-left: 8px;
    flex-shrink: 0;
}

.confirm-password-back-btn {
    background: none;
    border: none;
    color: #fff;
}

.confirm-password-content {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0 24px;
}

.confirm-password-title {
    font-size: 2.3rem;
    font-weight: 100;
    margin-bottom: 18px;
}

.confirm-password-desc {
    color: rgba(215, 234, 241, 0.54);
    font-size: 16px;
    font-weight: 100;
    line-height: 1.55;
}

.confirm-password-desc b {
    color: #fff;
    font-weight: 200;
}

.wallet-list-icon {
    height: 25px;
    width: 25px;
}

.confirm-password-input-row {
    width: 100%;
    background: #10819c;
    border-radius: 13px;
    display: flex;
    align-items: center;
    margin-bottom: 18px;
    height: 54px;
    padding-right: 6px;
    box-sizing: border-box;
}

.confirm-password-input {
    flex: 1 1 auto;
    background: none;
    border: none;
    outline: none;
    color: #fff;
    font-size: 1.14rem;
    padding: 0 16px;
    height: 54px;
    border-radius: 13px;
    font-family: "Avenir Next", sans-serif;

}

.confirm-password-input::placeholder {
    color: #c2e4ef;
    font-size: 1.1rem;
    opacity: .92;
}

.confirm-password-eye-btn {
    background: none;
    border: none;
    cursor: pointer;
    outline: none;
    display: flex;
    align-items: center;
    height: 54px;
    padding: 0 10px 0 2px;
}

.confirm-password-button-wrap {
    width: 100vw;
    max-width: 100%;
    padding: 0 16px 30px 16px;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    flex-shrink: 0;
}

.confirm-password-btn {
    width: 100%;
    height: 50px;
    border-radius: 8px;
    background: #1acc7b;
    color: #fff;
    font-weight: 700;
    font-size: 16px;
    border: none;
    box-shadow: 0 4px 24px 0 rgba(0, 0, 0, 0.07);
    margin: 0 12px 5px;
    font-family: "Avenir Next", sans-serif;
}

/* Reveal secret last step */
/* Backdrop */
.secret-key-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(19, 53, 59, 0.57);
    z-index: 12;
    transition: opacity 0.15s;
}

.secret-key-backdrop.hidden {
    display: none;
}

/* Modal panel */
.secret-key-modal {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 13;
    background: #fff;
    border-radius: 10px 10px 0 0;
    box-shadow: 0 -4px 36px rgba(19, 53, 59, 0.08);
    padding: 0 0 24px 0;
    animation: slide-in-up 0.33s cubic-bezier(.54, 1.57, .64, 1) forwards;
    width: 100vw;
    max-width: 540px;
    margin: 0 auto;
}

.secret-key-modal.hidden {
    display: none;
}

@keyframes slide-in-up {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

.secret-key-body {
    padding: 24px 20px 0 20px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

.secret-key-title {
    font-size: 18px;
    font-weight: 700;
    color: #31688e;
    margin-bottom: 8px;
}

.secret-key-desc {
    color: rgba(114, 136, 153, 0.55);
    font-size: 14px;
    font-weight: 400;
    margin-top: 10px;
    margin-bottom: 18px;
    line-height: 1.3;
}

.secret-key-warning {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #e4f5ff;
    border-radius: 4px;
    padding: 8px 20px 8px 18px;
    margin-bottom: 22px;
    min-height: 78px;
}

.secret-key-warning-text {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.secret-key-warning-title {
    font-weight: 600;
    color: #31688e;
    font-size: 14px;
    margin-bottom: 7px;
    line-height: 1.22;
}

.secret-key-warning-desc {
    color: rgba(114, 136, 153, 0.56);
    font-weight: 400;
    font-size: 13px;
    line-height: 1.24;
    letter-spacing: .5px;
}

.secret-key-warning-icon {
    align-self: center;
    min-width: 45px;
    min-height: 45px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}


/* Secret key box + copy button */
.secret-key-value-row {
    display: flex;
    align-items: center;
    background: #f9fcfd;
    border-radius: 13px;
    margin-bottom: 24px;
    padding: 0 0 0 0;
    border: 1.2px solid #ecf4f7;
    justify-content: space-between;
}

.secret-key-value {
    text-align: center;
    font-family: "Avenir Next", sans-serif;
    font-size: 18px;
    color: #31688e;
    font-weight: 500;
    padding: 12px;
    word-break: break-all;
    line-height: 1.3;
    flex: 1 1 auto;
}

.secret-key-copy-btn {
    background: none;
    border: none;
    outline: none;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    color: #31688e;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    margin-top: -20px;
    margin-bottom: 20px;

    height: 100%;
}

/* Close button */
.secret-key-close-btn {
    margin-top: 0;
    width: 100%;
    background: #f2f7fa;
    border: none;
    border-radius: 15px;
    padding: 18px 0 15px 0;
    color: #173143;
    font-size: 1.18rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    margin-bottom: 0;
    transition: background 0.15s;
    cursor: pointer;
    box-shadow: none;
    font-family: inherit;
}

.wallet-import-backdrop {
    position: fixed;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.36);
    z-index: 120;
}

.wallet-import-panel {
    position: fixed;
    inset: 0;
    background: #fff;
    z-index: 1200;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 0;
    max-width: 100vw;
    max-height: 100vh;
    padding: 0;
    animation: fadeIn .16s;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.wallet-import-input {
    width: 95%;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 12px;
    border: 1px solid #e1e7ed;
}

.wallet-import-body {
    flex: 1;
    padding: 42px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.wallet-import-title {
    font-size: 40px;
    font-weight: 500;
    margin-bottom: 18px;
    color: #1A3557;
    align-items: flex-start;
}

.wallet-import-desc {
    color: #9EA9B5;
    font-size: 1.07rem;
    margin-bottom: 24px;
}

.wallet-import-input {
    background: #f4f8fb;
    border: none;
    outline: none;
    border-radius: 12px;
    padding: 17px 16px;
    margin-bottom: 14px;
    font-size: 1.15rem;
    color: #263249;
    transition: border .13s;
    box-shadow: 0 2px 12px #eaf4f8;
    width: 100%;
}

.wallet-import-input:focus {
    border: 1.6px solid #14b4b0;
    background: #eef6fa;
}

.wallet-import-btn-row {
    position: fixed;
    bottom: 0;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding-bottom: 40px;
    flex: 1;
    width: 100%;
}

.wallet-import-cancel-btn {
    background: none;
    color: #8CA2B3;
    border: none;
    font-size: 1.04rem;
    font-weight: 600;
    padding: 0 18px;
    border-radius: 8px;
    height: 44px;
    flex: 1;
    margin-left: 20px;
}

.wallet-import-confirm-btn {
    background: #14b4b0;
    color: #fff;
    border: none;
    font-size: 1.13rem;
    font-weight: 600;
    border-radius: 6px;
    min-width: 150px;
    height: 44px;
    box-shadow: 0 2px 12px #22c66e23;
    transition: background .15s;
    opacity: 0.95;
    flex: 1;
    margin-right: 20px;

}

.wallet-import-cancel-btn {
    background: #eee;
    color: #567;
}


.wallet-import-error {
    min-height: 18px;
    font-size: 1rem;
    text-align: left;
    margin-bottom: 0;
}

.confirm-pin-input-row {
    display: flex;
    gap: 14px;
    justify-content: center;
    margin: 20px 0 24px 0;
}

.pin-dot {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid #4d90fe;
    background: white;
}

.pin-dot.filled {
    background: #0c0c16;
}

.confirm-password-button {
    width: 100%;
    padding: 20px 13px;
    border-radius: 5px;
    background: rgba(37, 121, 140, 0.73);
    color: #fff;
    font-weight: bold;
    border: none;
    font-size: 17px;
    margin-top: 12px;
    cursor: pointer;
    transition: background 0.18s;
}

.confirm-password-error {
    color: #ff4b55;
    min-height: 18px;
    text-align: center;
    font-size: 15px;
    margin-top: 10px;
}
