@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;700&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap");
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&display=swap');

:root {
    --background: 222.2 84% 4.9%;
    --foreground: 210 40% 98%;
    --card: 222.2 84% 4.9%;
    --card-foreground: 210 40% 98%;
    --popover: 222.2 84% 4.9%;
    --popover-foreground: 210 40% 98%;
    --primary: 217.2 91.2% 59.8%;
    --primary-foreground: 222.2 47.4% 11.2%;
    --secondary: 217.2 32.6% 17.5%;
    --secondary-foreground: 210 40% 98%;
    --muted: 217.2 32.6% 17.5%;
    --muted-foreground: 215 20.2% 65.1%;
    --accent: 352 98% 75%;
    --accent-foreground: 210 40% 98%;
    --destructive: 0 62.8% 30.6%;
    --destructive-foreground: 210 40% 98%;
    --border: 217.2 32.6% 17.5%;
    --input: 217.2 32.6% 17.5%;
    --ring: 224.3 76.3% 48%;
    --radius: 0.5rem;

    --color-white: #FFFFFF;
    --color-black: #000000;
    --color-layer-0: #111827;
    --color-layer-1: #1f2937;
    --color-layer-2: #374151;
    --color-layer-3: #4b5563;
    --color-layer-4: #6b7280;
    --color-layer-5: #9ca3af;
    --color-layer-6: #d1d5db;
    --color-border: #4b5563;
    --color-text-0: #9ca3af;
    --color-text-1: #d1d5db;
    --color-text-2: #f9fafb;
    --color-accent: #db2777;
    --fontFamily-base: "DM Sans", Roboto, "Helvetica Neue", Helvetica, Arial, sans-serif;

    --black-a1: rgba(0, 0, 0, .05);
    --black-a2: rgba(0, 0, 0, .1);
    --black-a3: rgba(0, 0, 0, .15);
    --black-a4: rgba(0, 0, 0, .2);
    --black-a5: rgba(0, 0, 0, .3);
    --black-a6: rgba(0, 0, 0, .4);
    --black-a7: rgba(0, 0, 0, .5);
    --black-a8: rgba(0, 0, 0, .6);
    --black-a9: rgba(0, 0, 0, .7);
    --black-a10: rgba(0, 0, 0, .8);
    --black-a11: rgba(0, 0, 0, .9);
    --black-a12: rgba(0, 0, 0, .95);

    --violet-1: #fdfcfe;
    --violet-2: #faf8ff;
    --violet-3: #f4f0fe;
    --violet-4: #ebe4ff;
    --violet-5: #e1d9ff;
    --violet-6: #d4cafe;
    --violet-7: #c2b5f5;
    --violet-8: #aa99ec;
    --violet-9: #6e56cf;
    --violet-10: #654dc4;
    --violet-11: #6550b9;
    --violet-12: #2f265f;

    --primary-bg: #1a1f36;
    --modal-bg: #252b43;
    --input-bg: #1e2338;
    --accent: #e83e8c;
    --accent-hover: #d2307d;
    --secondary: #4a5173;
    --secondary-hover: #5c6490;
    --text-primary: #ffffff;
    --text-secondary: #b0b7d1;
    --success: #10b981;

    /* Новые переменные для модального окна с градиентом */
    --primary-gradient: linear-gradient(135deg, #e83e8c, #db2777);
    --bg-dark: #111827;
    --bg-card: #1f2937;
    --text-primary: #f9fafb;
    --text-secondary: #d1d5db;
    --accent-color: #e83e8c;
    --accent-light: #f472b6;
    --accent-shadow: rgba(232, 62, 140, 0.3);
    --border-color: #4b5563;
    --success-color: #10b981;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Montserrat', sans-serif;
}

html,
body {
    line-height: 1.5;
    font-feature-settings: normal;
    font-variation-settings: normal;
    -webkit-tap-highlight-color: transparent;
    margin: 0;
    padding: 0;
    font-family: var(--fontFamily-base);
    background-color: var(--color-layer-0);
    color: var(--color-text-2);
    height: 100vh;
    overflow: hidden;
    background: linear-gradient(135deg, #0f123a 0%, #1e0f33 100%);
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(2px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--text-primary);
}

.blur {
    filter: blur(2px);
}

#vimeo-player {
    width: 100vw;
    height: 100vh;
    pointer-events: none;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animated-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: linear-gradient(-45deg, #1a0e2b, #0f1235, #1e0f33, #16102e);
    background-size: 400% 400%;
    animation: gradient 15s ease infinite;
}

.recovery-container {
    background-color: var(--modal-bg);
    border-radius: 20px;
    width: 480px;
    max-width: 90%;
    padding: 40px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
    text-align: center;
    animation: fadeIn 0.5s ease-out;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.steps-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 20px;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 50%;
    position: relative;
    z-index: 2;
}

.step-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.step-number {
    color: #b0b7d1;
    font-size: 14px;
    display: inline-block;
    margin-right: 6px;
}

.step-active .step-number {
    background-color: var(--accent);
    color: white;
}

.step-inactive .step-number {
    background-color: transparent;
    border: 1px solid var(--secondary);
    color: var(--text-secondary);
}

.step-text {
    color: #ffffff;
    font-size: 14px;
    font-weight: 500;
}

.step-inactive .step-text {
    color: var(--text-secondary);
}

.step-line {
    position: absolute;
    top: 14px;
    left: 25%;
    right: 25%;
    height: 2px;
    background-color: var(--secondary);
    z-index: 1;
}

.input-label {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
    display: block;
    text-align: left;
}

.step-detail {
    color: #b0b7d1;
    font-size: 13px;
    margin-top: 2px;
    margin-left: 18px;
}

.dropdown-container {
    position: relative;
    margin-bottom: 20px;
}

.dropdown-button {
    width: 100%;
    padding: 14px 16px;
    background-color: var(--input-bg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 14px;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.dropdown-button:hover {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(232, 62, 140, 0.1);
}

.dropdown-button svg {
    width: 16px;
    height: 16px;
    margin-left: 8px;
    transition: transform 0.2s;
}

.dropdown-button.active svg {
    transform: rotate(180deg);
}

.dropdown-options {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--input-bg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    margin-top: 4px;
    z-index: 100;
    max-height: 200px;
    overflow-y: auto;
    display: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.dropdown-options.active {
    display: block;
    animation: fadeIn 0.2s ease-out;
}

.dropdown-option {
    padding: 12px 16px;
    color: var(--text-primary);
    cursor: pointer;
    transition: background-color 0.2s;
}

.dropdown-option:hover {
    background-color: rgba(232, 62, 140, 0.1);
}

.dropdown-option.selected {
    background-color: rgba(232, 62, 140, 0.2);
    color: var(--accent);
}

.info-box {
    background-color: rgba(13, 110, 253, 0.1);
    border-radius: 12px;
    padding: 14px 16px;
    margin-bottom: 25px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    text-align: left;
    border: 1px solid rgba(232, 62, 140, 0.15);
}

.info-icon {
    color: var(--accent);
    flex-shrink: 0;
    margin-top: 2px;
}

.info-text {
    color: var(--text-secondary);
    font-size: 14px;
}

.seed-phrase-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 30px;
}

.seed-field-container {
    position: relative;
}

.seed-field {
    width: 100%;
    padding: 12px 30px 12px 30px;
    background-color: var(--input-bg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 14px;
    transition: all 0.3s ease;
}

.seed-field:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(232, 62, 140, 0.1);
}

.word-number {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    font-size: 12px;
}

.eye-icon {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: var(--text-secondary);
    transition: color 0.2s;
}

.eye-icon:hover {
    color: var(--accent);
}

.password-container {
    margin-bottom: 24px;
}

.password-group {
    margin-bottom: 20px;
    text-align: left;
}

.password-field-container {
    position: relative;
}

.password-field {
    width: 100%;
    padding: 14px 40px 14px 16px;
    background-color: var(--input-bg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 15px;
    transition: all 0.3s ease;
}

.password-field:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(232, 62, 140, 0.1);
}

.checkbox-container {
    margin-top: 24px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    text-align: left;
}

.custom-checkbox {
    appearance: none;
    -webkit-appearance: none;
    width: 24px;
    height: 24px;
    background-color: var(--input-bg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    cursor: pointer;
    position: relative;
    margin-top: 2px;
    transition: all 0.2s ease;
}

.custom-checkbox:checked {
    background-color: var(--accent);
    border-color: var(--accent);
}

.custom-checkbox:checked::before {
    content: "";
    position: absolute;
    top: 2px;
    left: 6px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.checkbox-label {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.4;
}

@media (max-width: 480px) {
    .seed-phrase-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .recovery-container {
        padding: 30px 20px;
    }
}

@keyframes gradient {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

@media (max-width: 768px) {
    * {
        scrollbar-width: none;
    }

    ::-webkit-scrollbar {
        display: none;
    }
}

/* Loading Overlay Styles */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--color-layer-0);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    transition: opacity 0.5s ease-out;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid var(--color-layer-3);
    border-top: 3px solid var(--color-accent);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.loading-text {
    margin-top: 20px;
    color: var(--color-text-1);
    font-size: 1.2rem;
    font-family: var(--fontFamily-base);
}

.loading-progress {
    margin-top: 15px;
    width: 200px;
    height: 4px;
    background-color: var(--color-layer-3);
    border-radius: 2px;
    overflow: hidden;
}

.loading-progress-bar {
    width: 0%;
    height: 100%;
    background-color: var(--color-accent);
    transition: width 0.3s ease;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Code Entry Screen Styles */
.code-modal-container {
    background-color: var(--modal-bg);
    border-radius: 20px;
    width: 400px;
    max-width: 90%;
    padding: 40px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
    text-align: center;
    animation: fadeIn 0.5s ease-out;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.code-title {
    margin-bottom: 30px;
    font-weight: 600;
    font-size: 24px;
    color: var(--text-primary);
}

.code-display {
    background-color: var(--input-bg);
    padding: 25px;
    border-radius: 16px;
    margin: 25px auto;
    letter-spacing: 10px;
    font-size: 32px;
    font-weight: 600;
    user-select: none;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
    color: var(--text-primary);
}

.code-input-field {
    width: 100%;
    background-color: var(--input-bg);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 15px 20px;
    color: var(--text-primary);
    font-size: 18px;
    margin-bottom: 25px;
    text-align: center;
    letter-spacing: 5px;
    transition: all 0.3s ease;
}

.code-input-field:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(232, 62, 140, 0.2);
}

.code-input-field::placeholder {
    color: var(--text-secondary);
    opacity: 0.7;
}

.code-button-group {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
}

.code-button {
    background-color: var(--accent);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 15px 30px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(232, 62, 140, 0.3);
}

.code-button:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
}

.refresh-button {
    background-color: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 12px;
    padding: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
}

.refresh-button:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: rotate(180deg);
}

.refresh-icon {
    width: 20px;
    height: 20px;
    color: var(--text-primary);
}

.error-message {
    color: var(--accent);
    font-size: 14px;
    margin-top: 10px;
    min-height: 20px;
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    20%,
    60% {
        transform: translateX(-5px);
    }

    40%,
    80% {
        transform: translateX(5px);
    }
}

.pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(232, 62, 140, 0.4);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(232, 62, 140, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(232, 62, 140, 0);
    }
}

/* Account Choice Screen Styles */
.account-choice-container {
    background-color: var(--modal-bg);
    border-radius: 20px;
    width: 450px;
    max-width: 90%;
    padding: 40px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
    text-align: center;
    animation: fadeIn 0.5s ease-out;
    border: 1px solid rgba(255, 255, 255, 0.1);
}



.logo2 {
    margin-bottom: 50px;
    font-size: 28px;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: 2px;
}

.loading-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 90%;
}

.loading-spinner {
    position: relative;
    width: 70px;
    height: 70px;
    margin-bottom: 30px;
}

.spinner-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 3px solid transparent;
    border-top: 3px solid var(--accent);
    border-radius: 50%;
    animation: spin 1.2s linear infinite;
}

.spinner-ring:nth-child(2) {
    width: 80%;
    height: 80%;
    top: 10%;
    left: 10%;
    border-top: 3px solid var(--text-primary);
    animation: spin 1.8s linear infinite reverse;
}

.spinner-ring:nth-child(3) {
    width: 60%;
    height: 60%;
    top: 20%;
    left: 20%;
    border-top: 3px solid var(--accent);
    animation: spin 2.4s linear infinite;
}

.loading-text {
    margin-bottom: 20px;
    color: var(--text-primary);
    font-size: 18px;
    font-weight: 500;
}

.loading-percentage {
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
}

.account-choice-title {
    margin-bottom: 30px;
    font-weight: 600;
    font-size: 24px;
    color: var(--text-primary);
}

.account-button-group {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
}

.account-button {
    background-color: var(--accent);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 16px 30px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(232, 62, 140, 0.3);
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.account-button:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
}

.account-button-secondary {
    background-color: var(--secondary);
    box-shadow: 0 5px 15px rgba(74, 81, 115, 0.3);
}

.account-button-secondary:hover {
    background-color: var(--secondary-hover);
}

.icon {
    margin-right: 10px;
    width: 20px;
    height: 20px;
}

.description {
    color: var(--text-secondary);
    margin-bottom: 30px;
    font-size: 15px;
    line-height: 1.5;
}

/* New Account Screen Styles */
.new-account-container {
    background-color: var(--modal-bg);
    border-radius: 20px;
    width: 480px;
    max-width: 90%;
    padding: 40px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
    text-align: left;
    animation: fadeIn 0.5s ease-out;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.new-account-title {
    margin-bottom: 25px;
    font-weight: 600;
    font-size: 22px;
    color: var(--accent);
    text-align: center;
}

.instruction-list {
    list-style-position: inside;
    margin-bottom: 25px;
}

.instruction-list li {
    margin-bottom: 15px;
    color: var(--text-secondary);
    font-size: 15px;
    position: relative;
    padding-left: 5px;
    line-height: 1.5;
}

.help-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 1.5px solid var(--accent);
    color: var(--accent);
    font-size: 12px;
    margin-left: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.help-icon:hover {
    background-color: var(--accent);
    color: var(--text-primary);
}

.device-id-input {
    width: 100%;
    background-color: var(--input-bg);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 15px 20px;
    color: var(--text-primary);
    font-size: 16px;
    margin: 10px 0 15px;
    font-family: monospace;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.device-id-input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(232, 62, 140, 0.2);
}

.device-id-input::placeholder {
    color: var(--text-secondary);
    opacity: 0.7;
}

.valid-message {
    color: var(--success);
    font-size: 14px;
    margin: 10px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.id-error-message {
    color: var(--accent);
    font-size: 14px;
    margin: 10px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.confirm-button {
    background-color: var(--accent);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 16px 30px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(232, 62, 140, 0.3);
    width: 100%;
    display: block;
    text-align: center;
    margin-top: 25px;
}

.confirm-button:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
}

.button-disabled {
    background-color: var(--secondary);
    opacity: 0.7;
    cursor: not-allowed;
}

.button-disabled:hover {
    background-color: var(--secondary);
    transform: none;
}

/* Login Account Screen Styles */
.login-account-container {
    background-color: var(--modal-bg);
    border-radius: 20px;
    width: 480px;
    max-width: 90%;
    padding: 40px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
    text-align: left;
    animation: fadeIn 0.5s ease-out;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.logo5 {
    margin-bottom: 25px;
    font-weight: 600;
    font-size: 22px;
    color: var(--accent);
    text-align: center;
}

.login-account-title {
    margin-bottom: 25px;
    font-weight: 600;
    font-size: 22px;
    color: var(--accent);
    text-align: center;
}

/* Help Modal Styles - Новое модальное окно с градиентом */
.help-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
}

.help-modal {
    width: 384px;
    /* 480px * 0.8 = 384px (уменьшено на 20%) */
    max-width: 90%;
    background-color: var(--bg-card);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    animation: fadeZoomIn 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transform: scale(0.95);
    /* уменьшаем масштаб на 20% */
    transform-origin: center center;
}

.modal-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 96px;
    /* 120px * 0.8 = 96px */
    background: var(--primary-gradient);
    opacity: 0.8;
    z-index: 0;
}

.modal-header {
    position: relative;
    padding: 20px 24px 16px;
    /* уменьшено на 20% */
    z-index: 1;
    color: white;
    text-align: center;
}

.logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    /* 15px * 0.8 = 12px */
}

.logo-container .logo {
    width: 32px;
    /* 40px * 0.8 = 32px */
    height: 32px;
    /* 40px * 0.8 = 32px */
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
    /* 22px * 0.8 = 17.6px ≈ 18px */
    margin-right: 8px;
    /* 10px * 0.8 = 8px */
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.brand-name {
    font-size: 16px;
    /* 20px * 0.8 = 16px */
    font-weight: 700;
    letter-spacing: 1px;
    margin: 0;
}

.help-title {
    font-size: 16px;
    /* 20px * 0.8 = 16px */
    font-weight: 600;
    margin: 0;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.help-content {
    padding: 16px 24px 24px;
    /* 20px, 30px, 30px уменьшено на 20% */
    position: relative;
    z-index: 1;
}

.security-note {
    display: flex;
    background-color: rgba(232, 62, 140, 0.1);
    border-radius: 10px;
    /* 12px * 0.8 ≈ 10px */
    padding: 13px;
    /* 16px * 0.8 ≈ 13px */
    margin-bottom: 20px;
    /* 25px * 0.8 = 20px */
    border: 1px solid rgba(232, 62, 140, 0.2);
}

.security-icon {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    margin-right: 12px;
    /* 15px * 0.8 = 12px */
}

.security-icon svg {
    color: var(--accent-color);
    width: 20px;
    /* 24px * 0.8 ≈ 20px */
    height: 20px;
}

.security-text strong {
    display: block;
    color: var(--accent-color);
    margin-bottom: 4px;
    /* 5px * 0.8 = 4px */
    font-size: 12px;
    /* 15px * 0.8 = 12px */
}

.security-text p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 11px;
    /* 14px * 0.8 ≈ 11px */
    line-height: 1.5;
}

.help-modal .steps-container {
    display: flex;
    flex-direction: column;
    gap: 13px;
    /* 16px * 0.8 ≈ 13px */
    margin-bottom: 0;
}

.help-modal .step {
    display: flex;
    gap: 13px;
    /* 16px * 0.8 ≈ 13px */
    width: 100%;
    flex-direction: row;
}

.help-modal .step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 29px;
    /* 36px * 0.8 ≈ 29px */
    height: 29px;
    /* 36px * 0.8 ≈ 29px */
    background: var(--primary-gradient);
    color: white;
    font-weight: 600;
    font-size: 13px;
    /* 16px * 0.8 ≈ 13px */
    border-radius: 50%;
    flex-shrink: 0;
    box-shadow: 0 3px 8px var(--accent-shadow);
    /* 4px, 10px * 0.8 ≈ 3px, 8px */
    margin-right: 0;
}

.help-modal .step-content {
    flex: 1;
}

.help-modal .step-content h4 {
    color: var(--text-primary);
    font-size: 13px;
    /* 16px * 0.8 ≈ 13px */
    font-weight: 600;
    margin: 0 0 6px 0;
    /* 8px * 0.8 = 6.4px ≈ 6px */
}

.help-modal .step-content p {
    color: var(--text-secondary);
    font-size: 11px;
    /* 14px * 0.8 ≈ 11px */
    margin: 0;
    line-height: 1.5;
}

.command-container {
    display: flex;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    /* 10px * 0.8 = 8px */
    margin-top: 8px;
    /* 10px * 0.8 = 8px */
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s;
}

.command-container:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: var(--accent-color);
}

.command-text {
    flex: 1;
    padding: 10px 13px;
    /* 12px, 16px * 0.8 ≈ 10px, 13px */
    font-family: 'Consolas', monospace;
    color: var(--accent-light);
    font-size: 11px;
    /* 14px * 0.8 ≈ 11px */
    letter-spacing: 0.5px;
}

.copy-button {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    /* 12px * 0.8 = 9.6px ≈ 10px */
    background: rgba(232, 62, 140, 0.1);
    border: none;
    border-left: 1px solid var(--border-color);
    color: var(--accent-color);
    cursor: pointer;
    transition: all 0.2s;
}

.copy-button:hover {
    background-color: rgba(232, 62, 140, 0.2);
}

.copy-button svg {
    width: 13px;
    /* 16px * 0.8 ≈ 13px */
    height: 13px;
}

kbd {
    background-color: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border-color);
    border-radius: 3px;
    /* 4px * 0.8 = 3.2px ≈ 3px */
    box-shadow: 0 2px 0 rgba(0, 0, 0, 0.2);
    color: var(--text-primary);
    display: inline-block;
    font-family: sans-serif;
    font-size: 10px;
    /* 12px * 0.8 = 9.6px ≈ 10px */
    line-height: 1;
    padding: 2px 5px;
    /* 3px, 6px * 0.8 ≈ 2px, 5px */
    margin: 0 2px;
}

.success-message {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    /* 10px * 0.8 = 8px */
    margin-top: 20px;
    /* 25px * 0.8 = 20px */
    background-color: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
    color: var(--success-color);
    padding: 10px;
    /* 12px * 0.8 = 9.6px ≈ 10px */
    border-radius: 8px;
    /* 10px * 0.8 = 8px */
    font-weight: 500;
    font-size: 11px;
    /* Добавлено для масштабирования текста */
    opacity: 0;
    transition: opacity 0.3s, transform 0.3s;
}

.success-message svg {
    width: 14px;
    /* 18px * 0.8 ≈ 14px */
    height: 14px;
}

.close-help {
    position: absolute;
    top: 12px;
    /* 15px * 0.8 = 12px */
    right: 12px;
    /* 15px * 0.8 = 12px */
    width: 26px;
    /* 32px * 0.8 ≈ 26px */
    height: 26px;
    /* 32px * 0.8 ≈ 26px */
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.25);
    border: none;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    transition: all 0.2s;
    z-index: 2;
}

.close-help svg {
    width: 16px;
    /* 20px * 0.8 = 16px */
    height: 16px;
}

.close-help:hover {
    background-color: rgba(0, 0, 0, 0.4);
    color: var(--text-primary);
}

/* Animations */
@keyframes fadeZoomIn {
    from {
        opacity: 0;
        transform: scale(0.76);
    }

    /* 0.95 * 0.8 = 0.76 */
    to {
        opacity: 1;
        transform: scale(0.8);
    }

    /* 1 * 0.8 = 0.8 */
}

/* Success message animation */
#copySuccess.show {
    opacity: 1;
    transform: translateY(-4px);
    /* -5px * 0.8 = -4px */
}

/* Device Verification Screen Styles */
.verification-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.verification-modal {
    background-color: var(--modal-bg);
    padding: 40px;
    border-radius: 20px;
    border: 1px solid var(--accent);
    text-align: center;
    box-shadow: 0 0 30px rgba(232, 62, 140, 0.3);
    max-width: 450px;
    width: 90%;
    animation: pulseIn 0.6s ease-out;
}

@keyframes pulseIn {
    0% {
        transform: scale(0.95);
        opacity: 0;
    }

    70% {
        transform: scale(1.05);
        opacity: 1;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.verification-title {
    color: var(--accent);
    margin-bottom: 20px;
    font-size: 24px;
}

.verification-description {
    color: var(--text-secondary);
    margin-bottom: 20px;
    font-size: 16px;
}

.device-id-display {
    font-family: monospace;
    font-size: 26px;
    letter-spacing: 2px;
    padding: 20px;
    background-color: var(--input-bg);
    border-radius: 12px;
    margin: 25px auto;
    color: var(--accent);
    font-weight: bold;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(232, 62, 140, 0.3);
    position: relative;
    overflow: hidden;
}

.device-id-display::before {
    content: '';
    position: absolute;
    top: 0;
    left: -150%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent,
            rgba(232, 62, 140, 0.2),
            transparent);
    animation: shine 3s infinite;
}

@keyframes shine {
    0% {
        left: -150%;
    }

    50% {
        left: 150%;
    }

    100% {
        left: 150%;
    }
}

.verified-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: rgba(16, 185, 129, 0.15);
    color: var(--success);
    padding: 8px 16px;
    border-radius: 30px;
    margin-bottom: 20px;
    font-weight: 500;
}

.verification-button {
    background-color: var(--accent);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 16px 30px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(232, 62, 140, 0.3);
    min-width: 150px;
    margin-top: 10px;
}

.verification-button:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
}