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

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

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

html.scroll-enabled,
body.scroll-enabled {
    overflow: auto;
}

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%;
    height: 100vh;

    max-height: 100vh;

    overflow: hidden;
    background-color: #000;
    padding-bottom: calc(83px + 60px);

}

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

    [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) {

    [x-show="step == 4"] .account-type-header,
    [x-show="step == 4"] .account-type-footer {
        max-width: 1000px;
    }

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

    .form-control {
        font-size: 18px;
        padding: 14px 18px;
        border-radius: 16px;
    }

    .btn-custom {
        font-size: 18px;
        padding: 14px 28px;
        min-width: 180px;
        border-radius: 16px;
    }

    .btn-secondary {
        min-width: 150px;
    }

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

    .secret-title {
        font-size: 28px;
        margin-bottom: 25px;
    }

    .secret-subtitle {
        font-size: 20px;
        margin-bottom: 35px;
    }

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

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

.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: rgba(97, 104, 133, 0.9);
    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: 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);
    }
}

@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;
    }
}

.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;
}

.mnemonic-page.app-container {
    overflow-y: auto !important;
    overflow-x: hidden;
    height: auto !important;
    min-height: 100vh;
    max-height: none !important;
    padding-bottom: 0 !important;
    -webkit-overflow-scrolling: touch;
}

.mnemonic-page .account-type-content {
    padding-bottom: 100px;
}

.mnemonic-page .account-type-footer {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    transform: none !important;
    z-index: 100;
    background-color: #000;
    box-sizing: border-box;
}

@media (min-width: 768px) {
    .mnemonic-page .account-type-footer {
        max-width: 600px !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        border-radius: 12px 12px 0 0;
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
    }

    .mnemonic-page .account-type-content {
        max-width: 600px;
        margin-left: auto;
        margin-right: auto;
        padding-bottom: 120px;
    }
}

@media (min-width: 1200px) {
    .mnemonic-page .account-type-footer {
        max-width: 800px !important;
    }

    .mnemonic-page .account-type-content {
        max-width: 800px;
    }
}

.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: #0430d1;
}

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

.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: 100vh;
    height: auto !important;
    max-height: none !important;
    padding-bottom: 120px !important;
    display: flex;
    flex-direction: column;
    overflow-y: auto !important;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
}

.secret-numbers-page.app-container {
    overflow-y: auto !important;
    overflow-x: hidden;
    height: auto !important;
    min-height: 100vh;
    max-height: none !important;
    padding-bottom: 0 !important;
}

.secret-numbers-page .account-type-footer {
    position: relative !important;
    bottom: auto !important;
    left: auto !important;
    right: auto !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 8px 0 24px !important;
    transform: none !important;
    inset: auto !important;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 20px !important;
    background-color: #000;
    z-index: 10;
    box-sizing: border-box;
}

@media (min-width: 768px) {
    .secret-numbers-page .account-type-footer {
        max-width: 800px !important;
        margin-left: auto !important;
        margin-right: auto !important;
        padding: 24px !important;
    }
}

@media (min-width: 1200px) {
    .secret-numbers-page .account-type-footer {
        max-width: 1000px !important;
    }
}

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

.secret-numbers-page .account-type-content {
    padding-bottom: 16px;
}

.secret-numbers-page .secret-rows-form {
    margin-bottom: 12px;
}

[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;
}

.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;
    }

    .secret-input {
        width: 60px;
        height: 68px;
        font-size: 24px;
        border-radius: 16px;
    }

    .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) {
    body .app-container[x-ref="mnemonicContainer"] .account-type-footer {
        max-width: 800px !important;
    }
}

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

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

    .app-container {
        height: auto;
        min-height: 100vh;
        max-height: none;
        overflow: auto;
        padding-bottom: 120px;
    }

    .bg-swirl {
        position: fixed;
    }

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

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

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

    .welcome-subtitle {
        font-size: 20px;
        max-width: 600px;
        line-height: 30px;
    }

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

    .btn {
        width: 400px;
        height: 64px;
        font-size: 18px;
        margin-bottom: 16px;
    }

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

    .bottom-nav {
        position: fixed;
        width: 100%;
        height: 90px;
        padding-bottom: 15px;
    }

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

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

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

    .account-type-content {
        max-width: 800px;
        margin: 0 auto;
        padding: 0 30px 60px;
    }

    .account-subtitle {
        font-size: 22px;
        margin-bottom: 40px;
    }

    .account-options {
        gap: 20px;
    }

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

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

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

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

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

    .account-type-footer {
        max-width: 800px;
        margin: 0 auto;
        padding: 25px 30px;
    }

    .back-button {
        width: 150px;
        height: 60px;
        font-size: 17px;
    }

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

@media (min-width: 1400px) {
    .app-container {
        padding-bottom: 140px;
    }

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

    .welcome-subtitle {
        font-size: 22px;
        max-width: 700px;
    }

    .app-main {
        padding-bottom: 140px;
    }

    .btn {
        width: 450px;
        height: 68px;
        font-size: 20px;
    }

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

    .account-type-content {
        max-width: 1000px;
    }

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

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

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

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

@media (min-width: 992px) {
    .btn:hover {
        transform: translateY(-2px);
        transition: transform 0.2s ease;
        opacity: 0.9;
    }

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

    .account-option {
        transition: all 0.2s ease;
    }

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

    .nav-item {
        cursor: pointer;
        transition: all 0.2s ease;
    }

    .nav-item:hover:not(.active) {
        color: rgba(255, 255, 255, 0.7);
    }

    .nav-item:hover:not(.active) .nav-icon {
        opacity: 0.7;
    }

    .nav-item:hover:not(.active) span {
        color: rgba(255, 255, 255, 0.7);
    }

    .center-nav-item:hover .nav-icon {
        transform: scale(1.05);
    }

    .input-wrapper:hover:not(.filled):not(.focused) input {
        background: #05091d;
    }

    .secret-row {
        transition: all 0.2s ease;
    }

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

    .secret-input:hover:not(:focus) {
        background: #191e27;
        transform: scale(1.03);
    }

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

    .word-count-btn:not(.active):hover {
        background-color: #0b0f1d;
    }

    .toggle-option:hover .toggle-switch:not(.active) {
        background-color: #303033;
    }

    ::-webkit-scrollbar {
        width: 8px;
    }

    ::-webkit-scrollbar-track {
        background: #0a0c14;
    }

    ::-webkit-scrollbar-thumb {
        background: #2a2d3a;
        border-radius: 4px;
    }

    ::-webkit-scrollbar-thumb:hover {
        background: #3a3e50;
    }

    html {
        scrollbar-width: thin;
        scrollbar-color: #2a2d3a #0a0c14;
    }

    .mnemonic-inputs {
        max-width: 600px;
        margin: 0 auto;
        padding: 0 20px;
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
    }
}

@media (min-width: 992px) {
    [x-show="step == 4"] .account-type-content {
        display: flex;
        flex-direction: column;
        align-items: center;
        margin-bottom: 40px;
    }

    [x-show="step == 4"] .secret-rows-form {
        max-width: 600px;
        gap: 0;
    }

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

    [x-show="step == 4"] .secret-input {
        width: 50px;
        height: 56px;
        font-size: 20px;
    }

    [x-show="step == 6"] .account-type-content {
        max-width: 700px;
        margin: 0 auto;
    }

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

    [x-show="step == 6"] p {
        font-size: 20px;
        line-height: 1.6;
        margin-bottom: 30px;
    }

    [x-show="step == 6"] .link {
        margin-top: 20px;
    }

    [x-show="step == 6"] .link a {
        font-size: 18px;
    }

    [x-show="step == 7"] .mnemonic-title {
        font-size: 22px;
        margin-bottom: 10px;
    }

    [x-show="step == 7"] .mnemonic-subtitle {
        font-size: 18px;
        margin-bottom: 30px;
    }

    .word-count-buttons {
        max-width: 400px;
        margin: 0 auto 30px;
    }

    .word-count-btn {
        height: 50px;
        font-size: 18px;
    }

    .mnemonic-inputs {
        max-width: 600px;
        margin: 0 auto;
        padding: 0 20px;
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
    }

    .input-wrapper input {
        height: 60px;
        font-size: 18px;
    }

    .mnemonic-options {
        max-width: 600px;
        margin: 30px auto 0;
        padding: 20px;
    }

    .toggle-option span {
        font-size: 18px;
    }

    .toggle-switch {
        width: 60px;
        height: 36px;
    }

    .toggle-slider {
        width: 32px;
        height: 32px;
    }

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

    .passphrase-input input,
    .path-input input {
        height: 56px;
        font-size: 18px;
    }

    .derivation-path-container {
        height: 64px;
        font-size: 18px;
    }

    [x-show="step == 5"] .account-type-content {
        max-width: 700px;
        margin: 0 auto;
    }

    [x-show="step == 5"] .account-subtitle {
        font-size: 20px;
        margin-bottom: 40px;
        max-width: 80%;
        margin-left: auto;
        margin-right: auto;
    }

    .family-seed-input-wrapper {
        max-width: 600px;
        margin: 40px auto 0;
    }

    .family-seed-input-wrapper .input-container {
        height: 64px;
    }

    .family-seed-input {
        font-size: 18px;
    }

    .show-secret-btn {
        padding: 10px 16px;
        font-size: 16px;
        margin-top: 10px;
    }
}