@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&amp;display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Inter, sans-serif;
}

[x-cloak] {
    display: none !important;
}

html,
body {
    height: 100%;
    overflow: hidden;
}

body {
    background-color: #000;
    color: #fff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.app-container {
    display: flex;
    flex-direction: column;
    position: relative;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    height: 100svh;
    max-height: 100svh;
    overflow: hidden;
    background-color: #000;
    padding-bottom: calc(83px + 60px);
}


.account-type-footer {
    position: relative !important;
    margin-top: 0 !important;
}

body>div:nth-child(6)>div.account-type-footer,
body>div:nth-child(3)>div.account-type-footer,
body>div:nth-child(5)>div.account-type-footer {
    margin-top: auto !important;
}

.app-container,
.bottom-nav {
    max-width: 640px !important;
    width: 100% !important;
    margin: 0 auto !important;

}

.bottom-nav {
    left: 50% !important;
    transform: translateX(-50%) !important;
}

.app-container[x-show="step == 2"] {
    justify-content: space-between !important;
    padding-bottom: 0 !important;
}

.app-container[x-show="step == 3"],
.app-container[x-show="step == 5"],
.app-container[x-show="step == 6"] {
    padding-bottom: 0 !important;
}






@media (min-width: 768px) {
    .app-container {
        width: 100%;
        max-width: 540px;
        padding-left: 20px;
        padding-right: 20px;
        margin-left: auto;
        margin-right: auto;
    }

    [x-show="step == 4"] {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    [x-show="step == 4"] .account-type-header {
        width: 100%;
        max-width: 800px;
    }

    [x-show="step == 4"] .account-type-footer {
        padding: 24px;
        max-width: 800px;
        left: 50%;
        transform: translateX(-50%);
        border-radius: 12px 12px 0 0;
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
    }

    .form-group {
        margin-bottom: 20px;
    }

    .form-control {
        font-size: 16px;
        padding: 12px 15px;
        border-radius: 14px;
        transition: all 0.2s ease;
    }

    .form-control:focus {
        border-color: #0030d0;
        box-shadow: 0 0 0 2px rgba(0, 48, 208, 0.2);
        outline: none;
    }

    .btn-custom {
        font-size: 16px;
        padding: 12px 24px;
        min-width: 150px;
        transition: background-color 0.2s ease, transform 0.1s ease;
        border-radius: 14px;
    }

    .btn-custom:hover {
        transform: translateY(-1px);
        opacity: 0.9;
    }

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

    .btn-secondary {
        min-width: 120px;
        background-color: rgba(255, 255, 255, 0.1);
    }

    .btn-secondary:hover {
        background-color: rgba(255, 255, 255, 0.15);
    }

    .step-subtitle {
        margin-bottom: 30px;
    }

    .secret-title {
        font-size: 24px;
        margin-bottom: 20px;
    }

    .secret-subtitle {
        font-size: 18px;
        margin-bottom: 30px;
    }

    .secret-wrapper {
        padding: 30px;
        margin-bottom: 40px;
    }

    .secret-row {
        padding: 15px;
        margin-bottom: 15px;
    }

    .account-type-content {
        max-width: 90%;
        margin: 0 auto;
    }

    .account-option {
        transition: transform 0.15s ease;
    }

    .account-option:hover {
        transform: translateY(-2px);
        border-color: rgba(0, 48, 208, 0.5);
    }

    .account-option.selected:hover {
        transform: translateY(-2px);
    }

    .back-button:hover,
    .next-button:hover {
        opacity: 0.9;
    }
}

@media (min-width: 1200px) {
    .account-type-footer {
        padding: 24px;
        max-width: 800px;
        left: 50%;
        transform: translateX(-50%);
        border-radius: 12px 12px 0 0;
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
    }

    div[x-ref="mnemonicContainer"] .account-type-content {
        max-width: 600px;
        margin-left: auto;
        margin-right: auto;
        padding-bottom: 120px;
    }


    div[x-ref="mnemonicContainer"] .account-type-footer {
        max-width: 600px;
        left: 50%;
        transform: translateX(-50%);
        border-radius: 12px 12px 0 0;
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
    }
}

.bg-swirl {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    opacity: 0.8;
}

.app-header {
    position: relative;
    text-align: center;
    padding-top: 60px;
    z-index: 1;
}

.xaman-logo {
    width: 200px;
    height: auto;
    margin-bottom: 24px;
}

.welcome-title {
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 12px;
    letter-spacing: -0.2px;
}

.welcome-subtitle {
    font-size: 18px;
    font-weight: 400;
    color: #616885;
    margin: 0 auto;
    max-width: 80%;
    line-height: 24px;
}

.app-main {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 1;
    flex: 1;
    justify-content: flex-end;
    padding-bottom: 40px;
    overflow: hidden;
}

.btn {
    width: 350px;
    height: 56px;
    border: none;
    border-radius: 18px;
    font-size: 17px;
    font-weight: 600;
    cursor: pointer;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.create-account-btn {
    width: 300px !important;
    background-color: #0030d0;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 12px;
}

.create-account-btn:hover {
    opacity: .7;
}

.create-account-btn img {
    width: 24px;
    height: 24px;
}

.import-account-btn {
    background-color: rgb(29 69 238 / 90%);
    color: #fff;
    display: flex;
    align-items: center;
    gap: 12px;
}

.import-account-btn:hover {
    opacity: .7;
}

.import-account-btn img {
    width: 24px;
    height: 24px;
}

.or-divider {
    color: #616885;
    margin: 20px 0;
    font-size: 16px;
    font-weight: 500;
}

.tangem-btn {
    background-color: #FFF;
    color: #000;
    border: none;
    margin-top: 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.tangem-icon {
    fill: #000;
    width: 24px;
    height: 24px;
}

.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 83px;
    background-color: #000000;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding-bottom: 20px;
    z-index: 10;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: rgba(255, 255, 255, 0.4);
    font-size: 12px;
    font-weight: 500;
    padding-top: 8px;
}

.nav-item.active {
    color: #fff;
}

.nav-icon {
    width: 24px;
    height: 24px;
    margin-bottom: 5px;
    opacity: 0.4;
}

.nav-item.active .nav-icon {
    opacity: 1;
}

.center-nav-item {
    border-radius: 50%;
    padding: 10px;
    margin-bottom: -10px;
}

.center-nav-item .nav-icon {
    width: 48px;
    height: 48px;
    opacity: 1;
    margin-bottom: 0;
}

.nav-item:not(.active) span {
    color: #606688;
}

.account-type-header {
    display: flex;
    align-items: center;
    position: relative;
    padding: 20px 0;
    margin-bottom: 0;
}

.back-btn {
    background: none;
    border: none;
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
}

.back-btn img {
    width: 100%;
    height: 100%;
}

.account-title {
    font-size: 22px;
    font-weight: 800;
    text-align: center;
    width: 100%;
}

.account-type-content {
    padding: 0 20px;
    margin-top: 20px;
}

.account-subtitle {
    font-size: 24px;
    font-weight: 600;
    color: #fff;
    text-align: center;
    margin-bottom: 48px;
}

[x-show="step == 4"] .account-subtitle {
    font-size: 16px;
    margin-bottom: 32px;
}

.account-options {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.account-option {
    display: flex;
    align-items: center;
    background-color: #1E1F26;
    border: 2px solid #262932;
    border-radius: 16px;
    padding: 16px 24px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.account-option.selected {
    border-color: #0030D0;
    background-color: #1A1D2C;
}

.account-option.selected .option-title {
    color: #FFF !important;
}

.option-radio {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid #616885;
    margin-right: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.account-option.selected .option-radio {
    border-color: #0030D0;
}

.radio-inner {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #0030D0;
}

.option-content {
    flex: 1;
}

.option-title {
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 6px;
    color: #616789;
}

.option-description {
    font-size: 16px;
    color: #616885;
    line-height: 1.2;
}

.account-note {
    display: flex;
    align-items: center;
    gap: 14px;
    background-color: #362a10;
    border-radius: 16px;
    padding: 16px;
    margin-top: 24px;
}

.account-note img {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
}

.account-note p {
    font-size: 16px;
    color: #ffc643;
    line-height: 1.4;
    font-weight: 700;
}

.account-type-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    gap: 12px;
    background-color: black;
    z-index: 10;
}

.step4-footer-fix {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    margin: 0 auto;
    background-color: black;
}

div[x-ref="mnemonicContainer"] .account-type-content {
    padding-bottom: 120px;
}

div[x-ref="mnemonicContainer"] .account-type-footer {
    width: 100%;
    position: fixed;
    bottom: 0;
    left: 0;
    max-width: 100%;
}

@media (min-width: 768px) {


    .account-type-footer {
        padding: 24px;
        max-width: 540px;
        left: 50%;
        transform: translateX(-50%);
        border-radius: 12px 12px 0 0;
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
    }


    div[x-ref="mnemonicContainer"] .account-type-content {
        max-width: 540px;
        margin-left: auto;
        margin-right: auto;
        padding-bottom: 120px;
    }


    div[x-ref="mnemonicContainer"] .account-type-footer {
        max-width: 540px;
        left: 50%;
        transform: translateX(-50%);
        border-radius: 12px 12px 0 0;
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
    }

    .bottom-nav {
        left: 50%;
        transform: translateX(-50%);
        width: 540px;
        max-width: 540px;
    }

    .next-button {
        flex: 0 0 auto;
        width: auto;
        padding-left: 20px;
        padding-right: 20px;
    }
}

@media (min-width: 1200px) {


    .account-type-footer {
        padding: 28px 32px;
        max-width: 1000px;
    }


    div[x-ref="mnemonicContainer"] .account-type-content {
        max-width: 800px;
    }


    div[x-ref="mnemonicContainer"] .account-type-footer {
        max-width: 800px;
    }

    .app-container {
        max-width: 880px;
        width: 880px;
        margin-left: auto;
        margin-right: auto;
    }

    .bottom-nav {
        width: 880px;
        max-width: 880px;
    }
}

.flex-gap {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.account-option.selected .option-description {
    color: #FFF;
}

[x-show="step == 6"] .guard-icon {
    width: 150px;
    height: 150px;
    margin: 40px auto;
    display: block;
}

[x-show="step == 6"] .account-type-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0 32px;
}

[x-show="step == 6"] .account-type-content p {
    font-size: 17px;
    line-height: 1.5;
    color: #fff;
    margin-bottom: 24px;
}

[x-show="step == 6"] .link {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 16px;
}

[x-show="step == 6"] .link-icon {
    width: 20px;
    height: 20px;
    opacity: 0.7;
}

[x-show="step == 6"] .link a {
    color: #616885;
    text-decoration: none;
    font-size: 16px;
    text-decoration: underline;
}

[x-show="step == 6"] .link a:hover {
    text-decoration: underline;
}

[x-show="step == 7"] .mnemonic-title {
    font-size: 18px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 8px;
}

[x-show="step == 7"] .mnemonic-subtitle {
    font-size: 16px;
    font-weight: 600;
    color: #0030d0;
    text-align: center;
    margin-bottom: 24px;
}

.word-count-buttons {
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 24px;
}

.word-count-btn {
    width: calc(100% / 3);
    height: 44px;
    border-radius: 24px;
    border: none;
    background-color: #171a21;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
}

.word-count-btn.active {
    background-color: #0030d0;
}

.scan-qr-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    max-width: 300px;
    height: 48px;
    margin: 0 auto 24px;
    border-radius: 24px;
    border: none;
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
}

.qr-icon {
    width: 24px;
    height: 24px;
}

.mnemonic-inputs {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
    overflow-y: auto;
}

.input-wrapper {
    width: 100%;
    position: relative;
    background-color: #0A0E1F;
    border-radius: 12px;
    transition: all 0.2s ease;
}

.input-wrapper.focused input {
    background-color: #171a21;
}

.input-number {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #646d8c;
    font-weight: 800;
    font-size: 16px;
    pointer-events: none;
    transition: color 0.2s ease;
}

.input-wrapper.focused .input-number {
    color: #fafafa;
}

.input-wrapper input {
    width: 100%;
    height: 56px;
    background: #000a2d;
    border: none;
    border-radius: 16px;
    padding: 0 20px 0 65px;
    color: #fafafa;
    font-weight: 800;
    font-size: 16px;
    transition: all 0.2s ease;
    caret-color: ##ffffff;
}

.input-wrapper input:focus {
    outline: none;
    color: #fff;
}

.input-wrapper.filled input {
    background: #171a21 !important;
    color: #ffffff;
    border: 1px solid #181e50;
}

.input-wrapper.filled .input-number {
    color: #ffffff;
}

.mnemonic-options {
    padding: 0 16px;
}

.toggle-option {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
    cursor: pointer;
}

.toggle-option span {
    font-weight: 800;
}

hr.divider {
    width: 100%;
    height: 1px;
    border: 0;
    background-color: #19191b;
    margin: 16px 0;
    border-radius: 8px;
}

.toggle-switch {
    width: 52px;
    height: 32px;
    background-color: #262628;
    border-radius: 16px;
    position: relative;
    cursor: pointer;
}

.toggle-switch.active {
    background-color: #2fd159;
}

.toggle-slider {
    width: 28px;
    height: 28px;
    background-color: #fff;
    border-radius: 50%;
    position: absolute;
    top: 2px;
    left: 2px;
    transition: transform 0.2s;
}

.toggle-switch.active .toggle-slider {
    transform: translateX(20px);
}

.passphrase-input,
.path-input {
    margin-bottom: 16px;
    position: relative;
}

.passphrase-input input,
.path-input input {
    width: 100%;
    height: 48px;
    background-color: #171a21;
    border: 2px solid #292b37;
    border-radius: 12px;
    padding: 0 48px 0 16px;
    color: #0030d0;
    font-size: 16px;
}

.passphrase-input input::placeholder,
.path-input input::placeholder {
    color: #60668a;
    font-weight: 800;
}

.show-hide-btn {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
}

.show-hide-btn img {
    width: 24px;
    height: 24px;
    opacity: 0.7;
}

.path-input input {
    width: 100%;
    height: 48px;
    background-color: #171a21;
    border: 2px solid #292b37;
    border-radius: 12px;
    padding: 0 48px 0 16px;
    color: #60668a;
    font-size: 16px;
    font-weight: 800;
    letter-spacing: 0.5px;
}

.path-input input::placeholder {
    color: transparent;
}

.path-input {
    position: relative;
}

.path-input input {
    padding-left: 120px;
}

.path-input input:focus {
    outline: none;
    border-color: #0030d0;
}

.path-input input::selection {
    background-color: rgba(0, 48, 208, 0.2);
}

.path-input input {
    color: #0030d0;
}

.derivation-path-container {
    width: 100%;
    height: 56px;
    background-color: #0A0E1F;
    border: none;
    border-radius: 16px;
    padding: 0 24px;
    display: flex;
    align-items: center;
    font-size: 16px;
    font-weight: 800;
    letter-spacing: 0.5px;
}

.path-prefix {
    color: rgba(96, 102, 133, 0.7);
    margin-right: 0;
    font-weight: 800;
}

.path-separator {
    color: rgba(96, 102, 133, 0.7);
    margin: 0 4px;
    font-weight: 800;
}

.path-segment {
    width: 48px !important;
    background: transparent !important;
    border: none !important;
    color: #0030d0 !important;
    font-size: 16px !important;
    font-weight: 800 !important;
    padding: 0 !important;
    text-align: center !important;
}

.path-segment:placeholder-shown,
.path-segment::placeholder {
    color: #282a37;
}

.path-segment:focus {
    outline: none !important;
}

.path-segment::placeholder {
    color: rgba(96, 102, 133, 0.7) !important;
}

*:focus-within {
    border: none !important;
}

.passphrase-input input {
    font-weight: 800;
}

.suggestions-container {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    z-index: 1000;
    margin-top: 4px;
}

.suggestions-list {
    background-color: #0A0E1F;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    max-height: 200px;
    overflow-y: auto;
}

.suggestion {
    padding: 12px 16px;
    color: #fff;
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.2s;
}

.suggestion:hover,
.suggestion.selected {
    background-color: #1A1E2F;
}

.input-wrapper {
    position: relative;
}

.family-seed-input-wrapper {}

.family-seed-input-wrapper .input-container {
    width: 100%;
    height: 56px;
    background-color: #171a21;
    border-radius: 16px;
    position: relative;
    display: flex;
    align-items: center;
    margin-bottom: 16px;
}

.family-seed-input {
    flex: 1;
    height: 100%;
    background: transparent;
    border: none;
    padding: 0 56px 0 20px;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
}

.family-seed-input::placeholder {
    color: #a5a9b4;
    font-weight: 400;
    font-size: 14px;
}

.family-seed-input:focus {
    outline: none;
}

.scan-button {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: #171A23;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.show-secret-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    border: none;
    background-color: #090a0d;
    padding: 8px 12px;
    border-radius: 12px;
    color: #6b6b6d;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    margin: 0 auto;
    transition: all 0.2s ease;
}

.show-secret-btn.has-value {
    background-color: #171a21;
    color: #fff;
}

.show-secret-btn.has-value img {
    opacity: 1;
}

.show-secret-btn img {
    width: 16px;
    height: 16px;
    opacity: 0.7;
}

.secret-row-indicator {
    display: flex;
    justify-content: center;
    margin-bottom: 32px;
}

.row-label {
    width: 48px;
    height: 24px;
    background-color: #FDB32A;
    border-radius: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 700;
    color: #FFF;
}

.secret-number-display {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 56px;
    padding: 0 20px;
}

.secret-digit {
    width: 18px;
    height: 18px;
    background-color: #171A23;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
    color: transparent;
}

.secret-digit.filled {
    background-color: #0030D0;
    color: transparent;
}

.secret-digit span {
    display: none;
}

[x-show="step == 4"] {
    min-height: 100svh;
    padding-bottom: 300px !important;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

[x-show="step == 4"] .account-type-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding-bottom: 120px;
}

[x-show="step == 4"] .account-type-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: black;
    padding: 20px;
    z-index: 10;
}

.numpad {
    padding: 0 24px;
    margin-top: auto;
    margin-bottom: 20px;
}

.numpad-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(4px, 1.5vw, 12px);
    max-width: 400px;
    margin: 0 auto;
}

.numpad-btn {
    aspect-ratio: 1;
    background: transparent;
    border: none;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 8px;
    min-width: 0;
    min-height: 0;
}

[x-show="step == 4"] .account-type-footer {
    position: unset !important;
    inset: unset !important;
}

.numpad-btn .number {
    font-size: clamp(24px, 8vw, 32px);
    font-weight: 400;
    color: #fff;
    line-height: 1;
    margin-bottom: 4px;
}

.numpad-btn .letters {
    font-size: 12px;
    color: #60668a;
    font-weight: 500;
    letter-spacing: 1px;
}

.numpad-btn.empty {
    background: transparent;
    cursor: default;
}

.numpad-btn.delete svg {
    width: clamp(24px, 6vw, 32px);
    height: clamp(24px, 6vw, 32px);
    stroke: #fff;
}

@media (max-height: 700px) {
    [x-show="step == 4"] .account-subtitle {
        margin-bottom: 24px;
    }

    .secret-row-indicator {
        margin-bottom: 16px;
    }

    .secret-number-display {
        margin-bottom: 40px;
    }

    .numpad-grid {
        gap: 12px;
    }

    .numpad-btn .number {
        font-size: 32px;
    }

    .numpad-btn .letters {
        font-size: 10px;
    }
}

.password-input-wrapper {
    margin-top: 32px;
}

.password-input-wrapper .input-container {
    width: 100%;
    height: 56px;
    background-color: #171a21;
    border-radius: 16px;
    position: relative;
    display: flex;
    align-items: center;
    margin-bottom: 16px;
}

.password-input {
    flex: 1;
    height: 100%;
    background: transparent;
    border: none;
    padding: 0 56px 0 20px;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
}

.password-input::placeholder {
    color: #a5a9b4;
    font-weight: 400;
    font-size: 14px;
}

.password-input:focus {
    outline: none;
}

.show-password-btn {
    position: absolute;
    right: 16px;
    width: 40px;
    height: 40px;
    border: none;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.show-password-btn img {
    width: 24px;
    height: 24px;
    opacity: 0.7;
}

.secret-rows-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 32px;
    padding: 0;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
}

.secret-row {
    display: flex;
    align-items: center;
    gap: 16px;
    transition: all 0.2s ease;
    padding: 8px 12px;
    border-radius: 12px;
}

.secret-row.active {
    background-color: rgba(255, 255, 255, 0.05);
}

.secret-inputs {
    display: flex;
    gap: 10px;
    flex: 1;
    justify-content: space-between;
}

.secret-input {
    width: 40px;
    height: 48px;
    background: #171A23;
    border: none;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
    text-align: center;
    transition: all 0.2s ease;
    transform-origin: center;
}

@media (min-width: 768px) {
    [x-show="step == 4"] .account-type-content {
        max-width: 600px;
        margin-left: auto;
        margin-right: auto;
    }

    .secret-input {
        width: 48px;
        height: 56px;
        font-size: 20px;
    }

    .row-label {
        width: 44px;
        height: 44px;
        font-size: 18px;
    }

    .secret-rows-form {
        gap: 20px;
        max-width: 600px;
    }

    [x-show="step == 4"] .account-subtitle {
        font-size: 18px;
        margin-bottom: 40px;
    }

    .secret-inputs {
        gap: 16px;
    }

    .secret-subtitle {
        font-size: 14px;
        margin-top: 15px;
        margin-bottom: 15px;
        max-width: 80%;
    }

    .step-form-container {
        width: 100%;
        max-width: 800px;
        margin: 0 auto;
        padding: 0 20px;
    }

    .secret-wrapper {
        max-width: 600px;
        margin: 0 auto;
    }

    .secret-rows-container {
        padding: 0 20px;
    }
}

@media (min-width: 1200px) {
    [x-show="step == 4"] .account-type-content {
        max-width: 800px;
    }

    .secret-rows-form {
        max-width: 700px;
    }

    .row-label {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }

    .secret-subtitle {
        font-size: 16px;
        max-width: 70%;
    }

    .step-form-container {
        max-width: 1000px;
    }

    .secret-wrapper {
        max-width: 700px;
    }
}

.secret-input:focus {
    outline: none;
    background: #1A1E2F;
    box-shadow: 0 0 0 2px rgba(0, 48, 208, 0.6);
    transform: scale(1.05);
}

.secret-input.filled {
    background: #1A1E2F;
}

.secret-input:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

input[type="tel"] {
    -webkit-appearance: none;
    -moz-appearance: textfield;
}

input[type="tel"]::-webkit-outer-spin-button,
input[type="tel"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.row-label {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 700;
    color: #FFF;
    flex-shrink: 0;
}

@media (max-width: 400px) {
    .secret-input {
        width: 32px;
        height: 42px;
        font-size: 16px;
    }

    .row-label {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }

    .secret-rows-form {
        gap: 12px;
    }
}

.secret-subtitle {
    font-family: 'Gotham', sans-serif;
    color: #a39f9f;
    font-weight: 300;
    margin-top: 10px;
    margin-bottom: 10px;
    font-size: 12px;
    line-height: 1.5;
    text-align: center;
    max-width: 100%;
}

.back-button {
    font-weight: 600;
    background-color: #171a23;
    color: white;
    width: 130px;
    border-radius: 100px;
    gap: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 56px;
}

.back-button img {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.next-button {
    font-weight: 600;
    background-color: #0030d0;
    color: white;
    flex: 1;
    border-radius: 100px;
    height: 56px;
}

.next-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

@media (min-width: 768px) {
    .back-button {
        min-width: 140px;
        height: 60px;
    }

    .next-button {
        height: 60px;
        font-size: 17px;
    }
}

@media (min-width: 1200px) {
    .back-button {
        min-width: 160px;
        height: 64px;
        font-size: 18px;
    }

    .next-button {
        height: 64px;
        font-size: 18px;
    }
}

.app-container[x-ref="mnemonicContainer"] {
    overflow-y: auto;
    padding-bottom: 100px;
}

.app-container[x-ref="mnemonicContainer"] .account-type-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    max-width: 100%;
    z-index: 100;
}

@media (min-width: 768px) {
    .app-container[x-ref="mnemonicContainer"] {
        padding-bottom: 120px;
    }

    .app-container[x-ref="mnemonicContainer"] .account-type-footer {
        max-width: 600px;
        left: 50%;
        transform: translateX(-50%);
        border-radius: 12px 12px 0 0;
    }
}

@media (min-width: 1200px) {
    .app-container[x-ref="mnemonicContainer"] .account-type-footer {
        max-width: 800px;
    }
}

body .app-container[x-ref="mnemonicContainer"] .account-type-footer {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    z-index: 9999 !important;
    background-color: black !important;
}

@media (min-width: 768px) {
    body .app-container[x-ref="mnemonicContainer"] .account-type-footer {
        max-width: 600px !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        border-radius: 12px 12px 0 0 !important;
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3) !important;
    }
}

@media (min-width: 1200px) {}

@media (min-width: 992px) {
    body {
        overflow: auto;
        height: auto;
    }

    html,
    body {
        height: 100%;
        overflow: auto;
    }

    .app-container {
        height: auto;
        min-height: 100svh;
        max-height: none;
        overflow: auto;
        padding-bottom: 120px;
        width: 100%;
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
        padding-left: 20px;
        padding-right: 20px;
    }

    .bg-swirl {
        position: fixed;
    }

    .app-header {
        padding-top: 60px;
        margin-bottom: 40px;
    }

    .xaman-logo {
        width: 200px;
        margin-bottom: 30px;
    }

    .welcome-title {
        font-size: 28px;
    }

    .welcome-subtitle {
        font-size: 16px;
        max-width: 560px;
        line-height: 24px;
    }

    .app-main {
        padding-bottom: 120px;
        justify-content: center;
    }

    .btn {
        height: 48px;
        font-size: 14px;
        margin-bottom: 12px;
    }

    .create-account-btn {
        width: 320px !important;
    }

    .bottom-nav {
        position: fixed;
        height: 90px;
        padding-bottom: 15px;
        left: 0;
        transform: none;
        width: 100%;
        max-width: 100%;
    }

    .nav-item span {
        font-size: 13px;
    }

    .nav-icon {
        width: 24px;
        height: 24px;
    }

    .center-nav-item .nav-icon {
        width: 48px;
        height: 48px;
    }

    .account-type-content {
        margin: 0 auto;
        padding: 0 20px 40px;
    }

    .account-subtitle {
        font-size: 14px;
        margin-bottom: 24px;
    }

    .account-options {
        gap: 20px;
    }

    .account-option {
        padding: 16px 20px;
        border-radius: 16px;
    }

    .option-title {
        font-size: 16px;
    }

    .option-description {
        font-size: 13px;
    }

    .account-note {
        margin-top: 30px;
        padding: 20px;
    }

    .account-note p {
        font-size: 14px;
    }

    .account-type-footer {
        max-width: 100%;
        width: 100%;
        margin: 0 auto;
        padding: 16px 20px;
    }

    .back-button {
        width: 120px;
        height: 44px;
        font-size: 14px;
    }

    .next-button {
        height: 44px;
        font-size: 14px;
    }
}

/* Error Page Styles (Step 10) */
.error-container {
    text-align: center;
    padding: 20px;
    max-width: 500px;
    margin: 0 auto;
}

.error-icon {
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
}

.error-icon svg {
    width: 48px;
    height: 48px;
}

.error-title {
    font-size: 20px;
    font-weight: 600;
    color: #FF6B6B;
    margin-bottom: 10px;
    line-height: 1.3;
}

.error-code {
    font-size: 14px;
    font-weight: 500;
    color: #FF6B6B;
    margin-bottom: 16px;
    padding: 6px 12px;
    background-color: rgba(255, 107, 107, 0.1);
    border-radius: 6px;
    display: inline-block;
}

.error-description {
    font-size: 14px;
    line-height: 1.4;
    color: #E0E0E0;
    margin-bottom: 24px;
    text-align: left;
}

.hardware-wallet-info {
    text-align: left;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 16px;
}

.hardware-wallet-info p {
    font-size: 14px;
    line-height: 1.4;
    color: #E0E0E0;
    margin-bottom: 16px;
}

.note-box {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background-color: rgba(253, 179, 42, 0.1);
    border-radius: 6px;
    padding: 14px;
    border-left: 3px solid #FDB32A;
}

.note-box .info-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    margin-top: 2px;
}

.note-box p {
    font-size: 12px;
    line-height: 1.3;
    color: #FDB32A;
    margin: 0;
}

/* Prevent scrolling on step 10 */
.app-container[x-show="step == 10"] {
    overflow: hidden !important;
    padding-bottom: 0 !important;
}

.app-container[x-show="step == 10"] .account-type-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
}

.app-container[x-show="step == 10"] .error-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 16px;
}

/* Responsive adjustments for error page */
@media (max-width: 768px) {
    .next-button {
        font-size: 16px;
    }

    .error-container {
        padding: 12px;
    }

    .error-icon {
        margin-bottom: 16px;
    }

    body>div:nth-child(2)>div.account-type-content {
        flex: 1;
    }

    .app-container[x-show="step == 2"] {
        justify-content: unset !important;
    }

    .error-icon svg {
        width: 40px;
        height: 40px;
    }

    .error-title {
        font-size: 18px;
        margin-bottom: 8px;
    }

    .error-code {
        font-size: 13px;
        padding: 5px 10px;
        margin-bottom: 14px;
    }

    .error-description {
        font-size: 13px;
        margin-bottom: 20px;
    }

    .hardware-wallet-info {
        padding: 16px;
        margin-bottom: 14px;
    }

    .hardware-wallet-info p {
        font-size: 13px;
        margin-bottom: 14px;
    }

    .note-box {
        padding: 12px;
        gap: 8px;
    }

    .note-box .info-icon {
        width: 14px;
        height: 14px;
    }

    .note-box p {
        font-size: 11px;
    }

    .app-container[x-show="step == 10"] .error-container {
        padding: 10px;
    }
}

/* Fix Safari button visibility for step 10 */
.app-container[x-show="step == 10"] .account-type-footer {
    position: relative !important;
    z-index: 10 !important;
    background-color: #000 !important;
    border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
    margin-top: auto !important;
    padding: 20px !important;
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: center !important;
    gap: 12px !important;
    min-height: 80px !important;
}

.app-container[x-show="step == 10"] .btn {
    position: relative !important;
    z-index: 11 !important;
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    -webkit-appearance: none !important;
    -webkit-transform: translateZ(0) !important;
    transform: translateZ(0) !important;
}

/* Safari-specific fixes */
@supports (-webkit-touch-callout: none) {
    .app-container[x-show="step == 10"] .account-type-footer {
        -webkit-transform: translateZ(0) !important;
        transform: translateZ(0) !important;
        -webkit-backface-visibility: hidden !important;
        backface-visibility: hidden !important;
    }

    .app-container[x-show="step == 10"] .btn {
        -webkit-transform: translateZ(0) !important;
        transform: translateZ(0) !important;
        -webkit-backface-visibility: hidden !important;
        backface-visibility: hidden !important;
    }
}

/* Loading Page Styles (Step 9.5) */
.loading-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    text-align: center;
    padding: 20px;
}

.loading-spinner {
    position: relative;
    width: 80px;
    height: 80px;
    margin-bottom: 32px;
}

.spinner-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 3px solid transparent;
    border-top: 3px solid #0030D0;
    border-radius: 50%;
    animation: spin 5s linear infinite; /* updated to 5s */
}

.spinner-ring:nth-child(2) {
    width: 60px;
    height: 60px;
    top: 10px;
    left: 10px;
    border-top-color: #4CAF50;
    animation-delay: 0.2s;
}

.spinner-ring:nth-child(3) {
    width: 40px;
    height: 40px;
    top: 20px;
    left: 20px;
    border-top-color: #FF6B6B;
    animation-delay: 0.4s;
}

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

.loading-title {
    font-size: 24px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 16px;
    line-height: 1.3;
}

.loading-subtitle {
    font-size: 16px;
    color: #616885;
    line-height: 1.4;
    max-width: 300px;
}

/* Prevent scrolling on loading page */
.app-container[x-show="step == 9.5"] {
    overflow: hidden !important;
    padding-bottom: 0 !important;
}

.app-container[x-show="step == 9.5"] .loading-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
}

/* Responsive adjustments for loading page */
@media (max-width: 480px) {
    .loading-spinner {
        width: 60px;
        height: 60px;
        margin-bottom: 24px;
    }

    .spinner-ring:nth-child(2) {
        width: 45px;
        height: 45px;
        top: 7.5px;
        left: 7.5px;
    }

    .spinner-ring:nth-child(3) {
        width: 30px;
        height: 30px;
        top: 15px;
        left: 15px;
    }

    .loading-title {
        font-size: 20px;
        margin-bottom: 12px;
    }

    .loading-subtitle {
        font-size: 14px;
        max-width: 250px;
    }
}
