body {
    margin: 0;
    background: #3b0a63;
    font-family: 'Poppins', sans-serif;
}

.screen {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-sizing: border-box;
    padding-top: 90px;
}

.top {
    text-align: center;
    margin-bottom: 55px;
}

/* 🔥 ЛОГО */
.logo {
    color: #e5c9ff;
    font-size: 48px;
    font-weight: 700;
    line-height: 0.88;        /* ← МЕНЬШЕ расстояние между строками */
    letter-spacing: 1.4px;    /* ← ЧУТЬ ШИРЕ */
    transform: scaleX(1.12);  /* ← ШИРЕ как MetaMask */
    margin-bottom: 12px;
}

/* 🔥 Wallet чуть ниже */
.logo span:first-child {
    display: block;
    margin-bottom: -2px;      /* ← СДВИГ БЛИЖЕ к Core */
    transform: translateY(2px); /* ← Wallet немного ниже */
}

/* 🔥 Subtitle */
.subtitle {
    color: #cfa9ff;   /* ← ТЕМНЕЕ */
    font-size: 20px;
    font-weight: 600;
}

/* Кнопки */
.buttons {
    width: 100%;
    max-width: 360px;
}

.btn {
    width: 100%;
    height: 56px;
    border-radius: 16px;
    border: none;
    font-size: 15px;
    cursor: pointer;
    margin-bottom: 16px;
    font-weight: 500;
    transition: 0.25s ease;
}

.btn-white {
    background: white;
    color: black;
}

.btn-black {
    background: black;
    color: white;
}

.btn:hover {
    transform: scale(1.03);
}

.btn:active {
    transform: scale(0.97);
}

/* 🦊 Лиса */
.fox {
    position: fixed;
    bottom: -10px;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    z-index: 1;
}

.fox img {
    width: 100%;
    max-width: 300px;
}

@media (max-width: 480px) {
    .screen {
        padding-top: 70px;
    }

    .logo {
        font-size: 44px;
    }

    .btn {
        height: 54px;
    }
}
/* 🌑 Dark screen */
.dark {
    background: #111;
    color: white;
}

/* Layout */
.password-screen {
    min-height: 100vh;
    padding: 40px 20px;
    font-family: 'Poppins', sans-serif;
    max-width: 420px;
    margin: auto;
}

.password-top {
    margin-bottom: 35px;
}

.title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 6px;
}

.subtitle-text {
    font-size: 14px;
    opacity: 0.6;
}

/* Inputs */
.input-group {
    margin-bottom: 18px;
}

label {
    font-size: 14px;
    opacity: 0.8;
    display: block;
    margin-bottom: 6px;
}

.input-wrapper {
    position: relative;
}

input {
    width: 100%;
    height: 52px;
    border-radius: 14px;
    border: 1px solid #333;
    background: #1a1a1a;
    color: white;
    padding: 0 45px 0 14px;
    font-size: 15px;
    box-sizing: border-box;
}

.eye {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    opacity: 0.6;
}

/* Rules */
.rules {
    margin-bottom: 20px;
    font-size: 13px;
    line-height: 1.7;
}

.invalid {
    color: #ff4d4d;
}

.valid {
    color: #4dff88;
}

/* Button */
.create-btn {
    width: 100%;
    height: 54px;
    border-radius: 18px;
    border: none;
    background: #ccc;
    color: black;
    font-size: 15px;
    font-weight: 600;
    margin-top: 20px;
    cursor: pointer;
}
/* 🌑 Dark UI */
.dark {
    background: #111;
    color: white;
}

.password-screen {
    min-height: 100vh;
    padding: 40px 20px;
    max-width: 420px;
    margin: auto;
}

.password-top {
    margin-bottom: 35px;
}

.title {
    font-size: 28px;
    font-weight: 700;
}

.subtitle-text {
    font-size: 14px;
    opacity: 0.6;
}

.input-group {
    margin-bottom: 18px;
}

.input-wrapper {
    position: relative;
}

input {
    width: 100%;
    height: 52px;
    border-radius: 14px;
    border: 1px solid #333;
    background: #1a1a1a;
    color: white;
    padding: 0 45px 0 14px;
    font-size: 15px;
    box-sizing: border-box;
}

.eye {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    opacity: 0.6;
}

.rules {
    margin-bottom: 20px;
    font-size: 13px;
    line-height: 1.7;
}

.invalid { color: #ff4d4d; }
.valid { color: #4dff88; }

/* Warning */
.warning {
    background: #1c1c1c;
    border-radius: 16px;
    padding: 14px;
    font-size: 13px;
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.warning input {
    width: 18px;
    height: 18px;
}

/* 🔥 Button */
.create-btn {
    width: 100%;
    height: 54px;
    border-radius: 18px;
    border: none;
    background: #777;
    color: #222;
    font-size: 15px;
    font-weight: 600;
    margin-top: 25px;
    cursor: pointer;
    transition: 0.25s ease;
}

/* Активное состояние */
.create-btn.active {
    background: #ccc;
    color: black;
}

/* Hover */
.create-btn.active:hover {
    transform: scale(1.03);
}

/* Click */
.create-btn.active:active {
    transform: scale(0.97);
}
.phrase-box {
    width: 100%;
    height: 140px;
    border-radius: 16px;
    border: 1px solid #333;
    background: #1a1a1a;
    color: white;
    padding: 14px;
    font-size: 14px;
    resize: none;
    box-sizing: border-box;
    margin-top: 15px;
}
/* 🔥 Logo */
.top-logo {
    width: 140px;
    display: block;
    margin: 0 auto 10px;
}

/* 🔥 Back button */
.back-btn {
    font-size: 14px;
    opacity: 0.6;
    cursor: pointer;
    margin-bottom: 20px;
}

.back-btn:hover {
    opacity: 1;
}

/* Phrase */
.phrase-box {
    width: 100%;
    height: 140px;
    border-radius: 16px;
    border: 1px solid #333;
    background: #1a1a1a;
    color: white;
    padding: 14px;
    font-size: 14px;
    resize: none;
    box-sizing: border-box;
    margin-top: 10px;
}

/* Кнопка по умолчанию */
.create-btn {
    width: 100%;
    height: 54px;
    border-radius: 18px;
    border: none;
    background: #555;
    color: #222;
    font-size: 15px;
    font-weight: 600;
    margin-top: 20px;
    cursor: default;
    transition: 0.25s ease;
}

/* Активная */
.create-btn.active {
    background: white;
    color: black;
    cursor: pointer;
}

/* Живость */
.create-btn.active:hover {
    transform: scale(1.03);
}

.create-btn.active:active {
    transform: scale(0.97);
}
/* 🔥 Плавное появление экрана */
.screen,
.password-screen {
    animation: fadeIn 0.35s ease;
}

/* 🔥 Анимация */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}