::-webkit-scrollbar {
    background-color: transparent;
    width: 4px;
    height: 4px;
}

::-webkit-scrollbar-thumb {
    background-color: var(--rb-neutral-line, #e0e5ec);
    border-radius: 1000px;
}

:root {
    --rabby-light-blue-default: rgba(76, 101, 255, 1);
    --rabby-light-blue-light-1: rgba(237, 240, 255, 1);
    --rabby-light-blue-light-2: rgba(219, 224, 255, 1);
    --rabby-light-neutral-title1: rgba(25, 41, 69, 1);
    --rabby-light-neutral-body: rgba(62, 73, 94, 1);
    --rabby-light-neutral-foot: rgba(106, 117, 135, 1);
    --rabby-light-neutral-line: rgba(224, 229, 236, 1);
    --rabby-light-neutral-card-1: rgba(255, 255, 255, 1);

    --r-blue-default: var(--rabby-light-blue-default);
    --r-blue-light-1: var(--rabby-light-blue-light-1);
    --r-blue-light-2: var(--rabby-light-blue-light-2);
    --r-neutral-title1: var(--rabby-light-neutral-title1);
    --r-neutral-body: var(--rabby-light-neutral-body);
    --r-neutral-foot: var(--rabby-light-neutral-foot);
    --r-neutral-card-1: var(--rabby-light-neutral-card-1);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    height: 100%;
    margin: 0;
}

body {
    font-family: Lato, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial,
        sans-serif;
    -webkit-font-smoothing: antialiased;
}

.h-full {
    height: 100%;
}

.overflow-hidden {
    overflow: hidden;
}

.overflow-x-hidden {
    overflow-x: hidden;
}

.overflow-y-auto {
    overflow-y: auto;
}

.relative {
    position: relative;
}

.absolute {
    position: absolute;
}

.fixed {
    position: fixed;
}

.top-\[40px\] {
    top: 40px;
}

.right-\[40px\] {
    right: 40px;
}

.inset-0 {
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
}

.flex {
    display: flex;
}

.inline-flex {
    display: inline-flex;
}

.flex-col {
    flex-direction: column;
}

.items-center {
    align-items: center;
}

.justify-center {
    justify-content: center;
}

.justify-between {
    justify-content: space-between;
}

.gap-\[8px\] {
    gap: 8px;
}

.z-10 {
    z-index: 10;
}

.w-full {
    width: 100%;
}

.w-\[100px\] {
    width: 100px;
}

.h-\[100px\] {
    height: 100px;
}

.w-\[380px\] {
    width: 380px;
}

.h-\[56px\] {
    height: 56px;
}

.min-w-\[140px\] {
    min-width: 140px;
}

.object-cover {
    object-fit: cover;
}

.text-center {
    text-align: center;
}

.my-12 {
    margin-top: 12px;
    margin-bottom: 12px;
}

.mt-\[40px\] {
    margin-top: 40px;
}

.mb-16 {
    margin-bottom: 16px;
}

.px-\[16px\] {
    padding-left: 16px;
    padding-right: 16px;
}

.py-\[13px\] {
    padding-top: 13px;
    padding-bottom: 13px;
}

.rounded-\[8px\] {
    border-radius: 8px;
}

.text-24 {
    font-size: 24px;
    line-height: 28px;
}

.text-14 {
    font-size: 14px;
    line-height: 20px;
}

.text-\[15px\] {
    font-size: 15px;
}

.text-\[21px\] {
    font-size: 21px;
}

.leading-\[18px\] {
    line-height: 18px;
}

.font-medium {
    font-weight: 500;
}

.font-bold {
    font-weight: 700;
}

.font-extrabold {
    font-weight: 800;
}

.font-normal {
    font-weight: 400;
}

.text-r-neutral-title1 {
    color: var(--r-neutral-title1, #192945);
}

.text-r-neutral-foot {
    color: var(--r-neutral-foot, #6a7587);
}

.text-r-neutral-body {
    color: var(--r-neutral-body, #3e495e);
}

.bg-r-neutral-card-1 {
    background-color: var(--r-neutral-card-1, #fff);
}

.bg-r-blue-default {
    background-color: var(--r-blue-default, #4c65ff);
}

.cursor-pointer {
    cursor: pointer;
}

.shadow-none {
    box-shadow: none;
}

.welcome-bg {
    background: linear-gradient(180deg, #c8d4ff 0%, #e8ecff 35%, #f4f2ff 70%, #fafbff 100%);
}

.welcome-buttons {
    width: 380px;
    max-width: calc(100vw - 40px);
}

.welcome-buttons .ant-btn-block {
    width: 100%;
}

.lang-selector:hover {
    background-color: var(--r-blue-light-1, #edf0ff);
}

.ant-btn {
    line-height: 1.5715;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    text-align: center;
    background-image: none;
    border: 1px solid transparent;
    box-shadow: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
    user-select: none;
    touch-action: manipulation;
    padding: 4px 15px;
    font-size: 14px;
    border-radius: 8px;
}

.ant-btn-block {
    display: block;
    width: 100%;
}

/* Fixed width must win over .ant-btn-block { width: 100% } */
.ant-btn.ant-btn-block.w-\[380px\],
.ant-btn.w-\[380px\] {
    width: 380px;
    max-width: calc(100vw - 40px);
}

.ant-btn-primary {
    color: #fff;
    border-color: #4c65ff;
    background: #4c65ff;
    text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.12);
}

.ant-btn-primary:hover {
    border-color: #7084ff;
    background: #7084ff;
}

.ant-btn-primary.ant-btn-background-ghost {
    color: var(--r-blue-default, #4c65ff);
    border-color: var(--r-blue-default, #4c65ff);
    background: #fff;
    text-shadow: none;
}

.ant-btn-primary.ant-btn-background-ghost:hover {
    background: var(--r-blue-light-2, #eef1ff);
    color: var(--r-blue-default, #4c65ff);
    border-color: var(--r-blue-default, #4c65ff);
}

.lang-chevron {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

.hidden {
    display: none !important;
}

/* Import screen */
.import-view {
    background: var(--r-blue-default, #4c65ff);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100%;
    padding: 24px 16px;
    box-sizing: border-box;
}

.import-card {
    background: #fff;
    width: 100%;
    max-width: 400px;
    min-height: 520px;
    max-height: calc(100vh - 48px);
    height: auto;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    padding: 14px 20px 24px;
    border-radius: 16px;
    box-shadow: 0 8px 40px rgba(25, 41, 69, 0.12);
    overflow: hidden;
    position: relative;
}

.import-card.is-phrase-menu-open {
    overflow: visible;
    z-index: 5;
}

.import-card.is-phrase-menu-open .import-card-body {
    overflow: visible;
}

.wallet-type-card {
    min-height: 520px;
}

.wallet-type-list {
    margin-top: 16px;
}

.wallet-type-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 16px;
    border: none;
    border-radius: 8px;
    background: var(--rabby-light-neutral-bg-2, #f2f4f7);
    cursor: pointer;
    text-align: left;
    font-family: inherit;
    transition: background 0.2s;
}

.wallet-type-item:hover {
    background: var(--r-blue-light-1, #edf0ff);
}

.wallet-type-item-body {
    flex: 1;
    min-width: 0;
}

.wallet-type-item-title {
    font-size: 15px;
    font-weight: 600;
    line-height: 20px;
    color: var(--r-neutral-title1, #192945);
    margin-bottom: 10px;
}

.wallet-type-icons {
    display: flex;
    align-items: center;
    gap: 6px;
}

.wallet-type-icons img {
    display: block;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
}

.wallet-type-chevron {
    flex-shrink: 0;
    margin-left: 12px;
    color: var(--r-neutral-foot, #6a7587);
}

.import-card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
    padding-top: 12px;
    overflow-y: auto;
}

.import-card-footer {
    margin-top: auto;
    flex-shrink: 0;
}

.import-header {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    margin-bottom: 0;
    flex-shrink: 0;
}

.import-back {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border: none;
    background: transparent;
    color: var(--r-neutral-title1, #192945);
    cursor: pointer;
    border-radius: 8px;
}

.import-back:hover {
    background: var(--r-blue-light-1, #edf0ff);
}

.import-title {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    line-height: 24px;
    color: var(--r-neutral-title1, #192945);
    text-align: center;
    padding: 0 40px;
}

.import-tabs {
    display: flex;
    gap: 0;
    height: 36px;
    padding: 2px;
    background: var(--r-neutral-line, #e0e5ec);
    border-radius: 8px;
    margin-top: 16px;
    margin-bottom: 0;
    flex-shrink: 0;
}

.import-tab {
    flex: 1;
    padding: 7px 12px;
    border: none;
    border-radius: 6px;
    background: transparent;
    font-family: inherit;
    font-size: 15px;
    font-weight: 500;
    line-height: 18px;
    color: var(--r-neutral-body, #3e495e);
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.import-tab.is-active {
    background: var(--rabby-light-neutral-bg-1, #fff);
    color: var(--r-neutral-title1, #192945);
    box-shadow: none;
}

.import-panel {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
}

.phrase-toolbar {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
    min-height: 18px;
}

.phrase-length-wrap {
    position: relative;
    flex: 1;
    min-width: 0;
}

.phrase-length {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    margin: 0;
    padding: 0;
    border: none;
    background: transparent;
    font-family: inherit;
    font-size: 14px;
    line-height: 18px;
    color: var(--r-neutral-body, #3e495e);
    cursor: pointer;
    text-align: left;
    max-width: 100%;
}

.phrase-length strong {
    color: var(--r-blue-default, #4c65ff);
    font-weight: 600;
}

.phrase-length-chevron {
    color: var(--r-neutral-body, #3e495e);
    flex-shrink: 0;
    margin-left: 2px;
}

.phrase-length-menu {
    position: absolute;
    z-index: 30;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    margin: 0;
    padding: 8px 0;
    list-style: none;
    background: #fff;
    border: 1px solid var(--r-neutral-line, #e0e5ec);
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(25, 41, 69, 0.14);
}

.phrase-length-menu li {
    padding: 10px 16px;
    font-size: 14px;
    line-height: 20px;
    color: var(--r-neutral-body, #3e495e);
    cursor: pointer;
}

.phrase-length-menu li strong {
    color: var(--r-blue-default, #4c65ff);
    font-weight: 600;
}

.phrase-length-menu li:hover,
.phrase-length-menu li.is-selected {
    background: var(--r-blue-light-1, #edf0ff);
}

.seed-clear-btn {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    border: none;
    background: transparent;
    color: var(--r-neutral-foot, #6a7587);
    cursor: pointer;
    border-radius: 6px;
}

.seed-clear-btn:hover {
    color: var(--r-neutral-body, #3e495e);
    background: var(--r-blue-light-1, #edf0ff);
}

.seed-clear-icon {
    display: block;
    width: 14px;
    height: 14px;
    color: var(--r-neutral-body, #3e495e);
}

.paste-toast {
    position: fixed;
    top: 16px;
    left: 50%;
    transform: translateX(-50%) translateY(-12px);
    z-index: 100;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: rgba(45, 55, 72, 0.92);
    color: #fff;
    font-size: 14px;
    line-height: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.paste-toast.is-visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.paste-toast-icon {
    display: flex;
    color: #2abb7f;
}

.paste-toast-icon svg circle {
    fill: #2abb7f;
}

.paste-toast-icon--error {
    display: none;
    color: #ec5151;
}

.paste-toast-icon--error svg circle {
    fill: #ec5151;
}

.paste-toast--error .paste-toast-icon--success {
    display: none;
}

.paste-toast--error .paste-toast-icon--error {
    display: flex;
}

#panel-seed {
    position: relative;
}

#seed-fields {
    flex: 1;
    min-height: 0;
}

.slip39-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.slip39-shares-input {
    width: 100%;
    height: 48px;
    min-height: 48px;
    padding: 13px 14px;
    border: 1px solid var(--r-neutral-line, #e0e5ec);
    border-radius: 8px;
    font-family: inherit;
    font-size: 14px;
    line-height: 20px;
    color: var(--r-neutral-title1, #192945);
    resize: none;
    outline: none;
    overflow: hidden;
    box-sizing: border-box;
}

.slip39-shares-input::placeholder {
    color: var(--r-neutral-foot, #6a7587);
}

.slip39-shares-input:focus {
    border-color: var(--r-blue-default, #4c65ff);
    box-shadow: 0 0 0 1px var(--r-blue-default, #4c65ff);
}

.slip39-passphrase-input {
    width: 100%;
    height: 48px;
    padding: 0 14px;
    border: 1px solid var(--r-neutral-line, #e0e5ec);
    border-radius: 8px;
    font-family: inherit;
    font-size: 14px;
    line-height: 20px;
    color: var(--r-neutral-title1, #192945);
    outline: none;
}

.slip39-passphrase-input::placeholder {
    color: var(--r-neutral-foot, #6a7587);
}

.slip39-passphrase-input:focus {
    border-color: var(--r-blue-default, #4c65ff);
    box-shadow: 0 0 0 1px var(--r-blue-default, #4c65ff);
}

.seed-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 16px;
}

.seed-cell {
    position: relative;
    border: 1px solid var(--r-neutral-line, #e0e5ec);
    border-radius: 8px;
    background: #fff;
    min-height: 44px;
    padding: 6px 8px 6px 28px;
}

.seed-cell-num {
    position: absolute;
    left: 8px;
    top: 8px;
    font-size: 12px;
    line-height: 16px;
    color: var(--r-neutral-foot, #6a7587);
    pointer-events: none;
}

.seed-cell-input {
    width: 100%;
    border: none;
    outline: none;
    background: transparent;
    font-family: inherit;
    font-size: 14px;
    line-height: 20px;
    color: var(--r-neutral-title1, #192945);
    padding: 0;
    letter-spacing: 0.05em;
}

.seed-cell:focus-within {
    border-color: var(--r-blue-default, #4c65ff);
    box-shadow: 0 0 0 1px var(--r-blue-default, #4c65ff);
}

.seed-cell--error {
    border-color: #ec5151;
    box-shadow: 0 0 0 1px #ec5151;
}

.seed-cell--error:focus-within {
    border-color: #ec5151;
    box-shadow: 0 0 0 1px #ec5151;
}

.private-key-input {
    width: 100%;
    height: 48px;
    min-height: 48px;
    padding: 13px 14px;
    border: 1px solid var(--r-blue-default, #4c65ff);
    border-radius: 8px;
    font-family: inherit;
    font-size: 14px;
    line-height: 20px;
    color: var(--r-neutral-title1, #192945);
    resize: none;
    outline: none;
    margin-bottom: 16px;
    overflow: hidden;
    box-sizing: border-box;
}

.private-key-input::placeholder {
    color: var(--r-neutral-foot, #6a7587);
}

.private-key-input:focus {
    box-shadow: 0 0 0 1px var(--r-blue-default, #4c65ff);
}

.import-footer-text {
    margin: 0 0 16px;
    font-size: 13px;
    line-height: 16px;
    text-align: center;
    color: var(--r-neutral-foot, #6a7587);
}

.import-link {
    padding: 0;
    border: none;
    background: none;
    font-family: inherit;
    font-size: inherit;
    font-weight: 500;
    color: var(--r-blue-default, #4c65ff);
    cursor: pointer;
}

.import-link:hover {
    text-decoration: underline;
}

.import-next-btn {
    width: 100%;
    height: 52px;
    border: none;
    border-radius: 8px;
    background: var(--rabby-light-blue-disable, #a5b2ff);
    color: #fff;
    font-family: inherit;
    font-size: 15px;
    font-weight: 500;
    line-height: 18px;
    cursor: pointer;
    transition: background 0.2s;
}

.import-next-btn:hover:not(:disabled) {
    background: #7084ff;
}

.import-next-btn.is-enabled,
.import-next-btn:not(:disabled) {
    background: var(--r-blue-default, #4c65ff);
    cursor: pointer;
}

.import-next-btn:disabled {
    cursor: not-allowed;
}

@media (max-width: 500px) {
    .welcome-buttons,
    .ant-btn.ant-btn-block.w-\[380px\],
    .ant-btn.w-\[380px\] {
        width: calc(100vw - 40px);
    }

    .fixed.top-\[40px\].right-\[40px\] {
        top: 20px;
        right: 20px;
    }

    .seed-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
