/* ========================================
   🔐 PREMIUM 3D PIN SECURITY UI
   ======================================== */

.pin-overlay {
    background: linear-gradient(135deg, #0a0a1f 0%, #1a0a2e 50%, #0f0520 100%) !important;
    backdrop-filter: blur(30px) !important;
    animation: overlayFadeIn 0.5s ease-out !important;
}

@keyframes overlayFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.pin-card {
    width: 420px !important;
    padding: 50px 40px !important;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.05) 100%) !important;
    border: 2px solid rgba(255, 120, 0, 0.3) !important;
    border-radius: 30px !important;
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.8), inset 0 1px 1px rgba(255, 255, 255, 0.15), 0 0 100px rgba(255, 120, 0, 0.2) !important;
    backdrop-filter: blur(20px) saturate(180%) !important;
    transform-style: preserve-3d !important;
    perspective: 1000px !important;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
}

/* Success State Transformation */
.pin-card.premium-success-state {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.15) 0%, rgba(20, 150, 70, 0.1) 100%) !important;
    border-color: #22c55e !important;
    box-shadow: 0 0 100px rgba(34, 197, 94, 0.5), inset 0 0 30px rgba(34, 197, 94, 0.2) !important;
    transform: scale(1.05) rotateX(10deg) !important;
}

.success-content-3d {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    height: 100%;
    width: 100%;
    animation: contentFloatUp 0.6s ease-out forwards;
}

@keyframes contentFloatUp {
    from {
        opacity: 0;
        transform: translateY(20px) translateZ(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0) translateZ(50px);
    }
}

.unlock-icon-wrapper {
    width: 90px;
    height: 90px;
    margin: 0 auto 24px;
    background: linear-gradient(135deg, #10b981, #059669);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 15px 40px rgba(16, 185, 129, 0.4), inset 0 2px 10px rgba(255, 255, 255, 0.2);
    animation: unlockPop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.unlock-icon-wrapper.gold-glow {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    box-shadow: 0 15px 40px rgba(245, 158, 11, 0.4), inset 0 2px 10px rgba(255, 255, 255, 0.2);
}

@keyframes unlockPop {
    0% {
        transform: scale(0) rotate(-180deg);
    }

    100% {
        transform: scale(1) rotate(0deg);
    }
}

.unlock-icon-3d {
    width: 44px;
    height: 44px;
    color: white;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.success-title-3d {
    font-size: 26px;
    font-weight: 900;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin: 0 0 24px;
    text-shadow: 0 0 30px rgba(16, 185, 129, 0.6);
}

.loader-line-3d {
    height: 6px;
    width: 180px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    margin: 0 auto 20px;
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.3);
}

.loader-progress-3d {
    height: 100%;
    background: #10b981;
    width: 0%;
    box-shadow: 0 0 15px #10b981;
    border-radius: 20px;
    animation: progressFill 1s ease-in-out forwards 0.3s;
}

@keyframes progressFill {
    to {
        width: 100%;
    }
}

.redirect-text-3d {
    color: rgba(255, 255, 255, 0.8);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Keypad Styles (Existing) */
.lock-icon {
    width: 70px !important;
    height: 70px !important;
    background: linear-gradient(135deg, #ff7800, #ff5500) !important;
    padding: 18px !important;
    border-radius: 20px !important;
    margin: 0 auto 24px !important;
    box-shadow: 0 15px 35px rgba(255, 120, 0, 0.5), inset 0 -5px 15px rgba(0, 0, 0, 0.3), 0 0 40px rgba(255, 120, 0, 0.4) !important;
    transform: translateZ(30px) !important;
    animation: iconFloat 3s ease-in-out infinite !important;
}

@keyframes iconFloat {

    0%,
    100% {
        transform: translateZ(30px) translateY(0px);
    }

    50% {
        transform: translateZ(30px) translateY(-10px);
    }
}

.pin-header h2 {
    font-size: 26px !important;
    font-weight: 900 !important;
    background: linear-gradient(135deg, #fff, #ffaa66) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    letter-spacing: 1px !important;
    text-shadow: 0 0 30px rgba(255, 170, 102, 0.5) !important;
}

.pin-header p {
    color: rgba(255, 255, 255, 0.7) !important;
    font-size: 15px !important;
    margin-bottom: 40px !important;
}

.pin-display {
    gap: 20px !important;
    margin-bottom: 50px !important;
    display: flex;
    justify-content: center;
}

.pin-dot {
    width: 24px !important;
    height: 24px !important;
    border-radius: 12px !important;
    border: 3px solid rgba(255, 120, 0, 0.3) !important;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02)) !important;
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.5), 0 4px 15px rgba(0, 0, 0, 0.3) !important;
}

.pin-dot.filled {
    border-color: #ff7800 !important;
    background: linear-gradient(135deg, #ff7800, #ff5500) !important;
    box-shadow: 0 0 25px rgba(255, 120, 0, 0.8), inset 0 2px 8px rgba(255, 255, 255, 0.3), 0 8px 20px rgba(255, 120, 0, 0.5) !important;
    transform: scale(1.15) !important;
}

.pin-keyboard {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 16px !important;
    margin-bottom: 35px !important;
}

.key {
    height: 65px !important;
    border-radius: 16px !important;
    font-size: 24px !important;
    font-weight: 800 !important;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%) !important;
    border: 2px solid rgba(255, 120, 0, 0.2) !important;
    color: #fff !important;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4), inset 0 1px 1px rgba(255, 255, 255, 0.1) !important;
}

.key:hover {
    border-color: #ff7800 !important;
    transform: translateY(-5px) translateZ(10px) !important;
    box-shadow: 0 15px 40px rgba(255, 120, 0, 0.5), inset 0 1px 1px rgba(255, 255, 255, 0.2), 0 0 50px rgba(255, 120, 0, 0.3) !important;
}

.key:active {
    transform: translateY(-2px) scale(0.95) !important;
}

.key.fn {
    background: linear-gradient(135deg, rgba(100, 100, 100, 0.15), rgba(80, 80, 80, 0.1)) !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
    color: rgba(255, 255, 255, 0.6) !important;
}

.key.fn:hover {
    border-color: rgba(255, 255, 255, 0.3) !important;
    color: rgba(255, 255, 255, 0.9) !important;
}

.pin-footer {
    text-align: center;
}

.pin-footer p {
    color: rgba(255, 255, 255, 0.5) !important;
    font-weight: 600 !important;
}

.pin-footer b {
    background: linear-gradient(135deg, #ff7800, #ffaa66) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
}