        /* PIN экран */
        .pin-screen {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(255, 255, 255, 0.85);
            backdrop-filter: blur(30px);
            -webkit-backdrop-filter: blur(30px);
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: flex-start;
            height: 100dvh;
            padding: max(16px, var(--safe-top)) 24px calc(clamp(28px, 6dvh, 56px) + var(--safe-bottom));
            overflow-y: auto;
            overflow-x: hidden;
            z-index: 1000;
            transition: opacity 0.5s, visibility 0.5s;
            opacity: 1;
            visibility: visible;
            pointer-events: auto;
        }

        .pin-screen.hidden {
            opacity: 0;
            visibility: hidden;
            pointer-events: none;
        }

        .pin-content {
            width: min(280px, 100%);
            flex-shrink: 0;
            margin-top: auto;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            animation: pinFadeIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
        }

        @keyframes pinFadeIn {
            from { opacity: 0; transform: translateY(20px) scale(0.98); }
            to { opacity: 1; transform: translateY(0) scale(1); }
        }

        .pin-title {
            font-size: 28px;
            font-weight: 700;
            text-align: center;
            letter-spacing: -1px;
            margin-bottom: 8px;
            background: none;
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }

        .pin-subtitle {
            font-size: 16px;
            color: var(--text-secondary);
            text-align: center;
            margin-bottom: 32px;
        }

        .pin-error-message {
            font-size: 14px;
            color: var(--red);
            text-align: center;
            margin-bottom: 16px;
            min-height: 20px;
            font-weight: 500;
        }

        .pin-dots {
            display: flex;
            gap: 20px;
            margin-bottom: 40px;
        }

        .pin-dot {
            width: 16px;
            height: 16px;
            border-radius: 50%;
            background: rgba(0,0,0,0.1);
            transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
        }

        .pin-dot.filled {
            background: var(--accent);
            transform: scale(1.2);
            box-shadow: 0 4px 12px rgba(10, 132, 255, 0.4);
        }

        .pin-dot.error {
            background: var(--red);
            animation: shake 0.5s ease;
        }

        @keyframes shake {
            0%, 100% { transform: translateX(0); }
            25% { transform: translateX(-8px); }
            75% { transform: translateX(8px); }
        }

        .pin-keypad {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 20px;
            max-width: 300px;
            width: 100%;
        }

        .pin-key {
            width: 100%;
            aspect-ratio: 1;
            border-radius: 50%;
            background: rgba(255,255,255,0.7);
            border: 1px solid rgba(255,255,255,0.8);
            font-size: 32px;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.12s;
            font-family: var(--font);
            color: var(--text-primary);
            display: flex;
            align-items: center;
            justify-content: center;
            box-shadow: 0 4px 12px rgba(0,0,0,0.08);
            min-height: 72px;
            touch-action: pan-y;
        }

        .pin-key:active {
            transform: scale(0.82);
            background: rgba(255,255,255,0.9);
            box-shadow: 0 2px 6px rgba(0,0,0,0.12);
        }

        .pin-delete-svg {
            width: 28px;
            height: 28px;
            stroke: var(--text-primary);
            fill: none;
            stroke-width: 1.5;
        }


@media (max-height: 700px) {.pin-content {width:min(240px,100%)}.pin-keypad {gap:14px}.pin-key {min-height:64px}.pin-subtitle{margin-bottom:20px}.pin-dots{margin-bottom:24px}}
@media(max-width:400px){.pin-key{font-size:28px;min-height:64px}.pin-title{font-size:24px}}
