/* ==================== FLOATING SAFE BUTTON ==================== */
.floating-safe-btn {
    position: fixed;
    right: -55px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 9998;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: none;
}

.floating-safe-btn.active {
    display: block;
}

.floating-safe-btn:hover {
    right: -15px;
}

.floating-safe-btn.pulse .safe-icon-wrapper {
    animation: safePulse 2s ease-in-out infinite;
}

@keyframes safePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.safe-icon-wrapper {
    width: 75px;
    height: 85px;
    background: linear-gradient(145deg, #3d4a5c, #2d3744);
    border-radius: 12px 0 0 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: -5px 0 20px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.1);
    position: relative;
    border: 2px solid #4a5568;
    border-right: none;
}

.safe-icon-wrapper::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 8px;
    right: 3px;
    bottom: 8px;
    background: linear-gradient(145deg, #2d3744, #252f3a);
    border-radius: 8px 0 0 8px;
    border: 1px solid rgba(255,255,255,0.05);
}

.safe-dial-icon {
    width: 38px;
    height: 38px;
    background: linear-gradient(145deg, #e8dcc8, #c9bca8);
    border-radius: 50%;
    position: relative;
    z-index: 1;
    box-shadow: 0 3px 10px rgba(0,0,0,0.3);
}

.safe-dial-icon::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 26px;
    height: 26px;
    border: 3px solid #3d4a5c;
    border-radius: 50%;
}

.safe-dial-icon::after {
    content: '';
    position: absolute;
    top: 4px;
    left: 50%;
    transform: translateX(-50%);
    width: 3px;
    height: 8px;
    background: #3d4a5c;
    border-radius: 2px;
}

.safe-gift-indicator {
    position: absolute;
    top: -6px;
    left: -6px;
    width: 24px;
    height: 24px;
    background: #e74c3c;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    animation: giftBounce 1s ease-in-out infinite;
    box-shadow: 0 3px 10px rgba(231, 76, 60, 0.4);
    z-index: 10;
}

@keyframes giftBounce {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

.floating-safe-label {
    position: absolute;
    left: -90px;
    top: 50%;
    transform: translateY(-50%);
    background: linear-gradient(135deg, #b8860b, #daa520);
    color: #000;
    padding: 8px 14px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
    opacity: 0;
    transition: all 0.3s;
    box-shadow: 0 5px 15px rgba(184, 134, 11, 0.3);
}

.floating-safe-btn:hover .floating-safe-label {
    opacity: 1;
    left: -105px;
}

/* ==================== SAFE OVERLAY ==================== */
.safe-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0);
    backdrop-filter: blur(0px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.safe-overlay.active {
    opacity: 1;
    visibility: visible;
    background: rgba(5, 5, 10, 0.98);
    backdrop-filter: blur(30px);
}

.safe-container {
    text-align: center;
    max-width: 420px;
    width: 95%;
    transform: scale(0.7) translateY(80px);
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.safe-overlay.active .safe-container {
    transform: scale(1) translateY(0);
    opacity: 1;
}

.safe-close {
    position: absolute;
    top: 25px;
    right: 25px;
    width: 55px;
    height: 55px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    color: rgba(255, 255, 255, 0.4);
    font-size: 26px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.safe-close:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    transform: rotate(90deg);
}

.safe-header {
    margin-bottom: 30px;
}

.safe-title {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 6px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.3);
    margin-bottom: 10px;
}

.safe-subtitle {
    font-size: 28px;
    font-weight: 800;
    color: #fff;
}

.safe-subtitle span {
    background: linear-gradient(135deg, #b8860b, #daa520, #f4e4ba, #daa520);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: goldShimmer 3s ease infinite;
}

@keyframes goldShimmer {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* Code Display */
.safe-code-display {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 30px;
}

.safe-code-digit {
    width: 58px;
    height: 70px;
    background: linear-gradient(165deg, #151520 0%, #0a0a12 100%);
    border: 2px solid rgba(255, 255, 255, 0.06);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    font-weight: 800;
    color: #daa520;
    text-shadow: 0 0 30px rgba(218, 165, 32, 0.6);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.safe-code-digit::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(218, 165, 32, 0.1), transparent);
    transition: left 0.5s;
}

.safe-code-digit.active {
    border-color: rgba(218, 165, 32, 0.5);
    box-shadow: 0 0 30px rgba(218, 165, 32, 0.2), inset 0 0 20px rgba(218, 165, 32, 0.05);
    transform: scale(1.05);
}

.safe-code-digit.active::before {
    left: 100%;
}

.safe-code-digit.filled {
    animation: digitPop 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes digitPop {
    0% { transform: scale(1); }
    50% { transform: scale(1.15); }
    100% { transform: scale(1); }
}

.safe-code-digit.correct {
    border-color: #27ae60;
    color: #27ae60;
    text-shadow: 0 0 30px rgba(39, 174, 96, 0.8);
    animation: correctPulse 0.5s ease-out;
}

@keyframes correctPulse {
    0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(39, 174, 96, 0.4); }
    50% { transform: scale(1.1); box-shadow: 0 0 40px 10px rgba(39, 174, 96, 0.2); }
}

.safe-code-digit.wrong {
    border-color: #e74c3c;
    color: #e74c3c;
    animation: wrongShake 0.6s ease-out;
}

@keyframes wrongShake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-8px); }
    20%, 40%, 60%, 80% { transform: translateX(8px); }
}

/* ==================== SAFE VAULT ==================== */
.safe-vault-wrapper {
    perspective: 2000px;
    margin: 0 auto 30px;
    position: relative;
}

.safe-vault {
    width: 240px;
    height: 280px;
    margin: 0 auto;
    position: relative;
    transform-style: preserve-3d;
}

.safe-body {
    width: 100%;
    height: 100%;
    background: linear-gradient(160deg, #4a5568 0%, #2d3748 30%, #1a202c 100%);
    border-radius: 20px;
    position: relative;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.05), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    border: 3px solid #4a5568;
}

.safe-bolt {
    position: absolute;
    width: 12px;
    height: 12px;
    background: linear-gradient(145deg, #5a6578, #3d4654);
    border-radius: 50%;
    box-shadow: inset 0 2px 3px rgba(0,0,0,0.4);
}

.safe-bolt::after {
    content: '+';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 10px;
    color: rgba(0,0,0,0.5);
    font-weight: bold;
}

.safe-bolt.tl { top: 12px; left: 12px; }
.safe-bolt.tr { top: 12px; right: 12px; }
.safe-bolt.bl { bottom: 12px; left: 12px; }
.safe-bolt.br { bottom: 12px; right: 12px; }

.safe-hinges {
    position: absolute;
    left: -6px;
    top: 30px;
    bottom: 30px;
    width: 12px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    z-index: 5;
}

.safe-hinge {
    width: 12px;
    height: 35px;
    background: linear-gradient(90deg, #3d4654, #5a6578, #3d4654);
    border-radius: 3px;
    box-shadow: -2px 0 5px rgba(0,0,0,0.3);
}

.safe-door {
    position: absolute;
    top: 12px;
    left: 12px;
    right: 12px;
    bottom: 12px;
    background: linear-gradient(160deg, #3d4654 0%, #2d3748 50%, #1a202c 100%);
    border-radius: 14px;
    transform-origin: left center;
    transition: transform 1.2s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 3;
    box-shadow: inset 0 0 50px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.03);
}

.safe-door.open {
    transform: perspective(1500px) rotateY(-115deg);
    box-shadow: -20px 0 40px rgba(0, 0, 0, 0.5), inset 0 0 50px rgba(0, 0, 0, 0.5);
}

.safe-dial-outer {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 110px;
    height: 110px;
    background: linear-gradient(145deg, #e8dcc8, #c9bca8);
    border-radius: 50%;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5), 0 0 0 4px rgba(74, 85, 104, 0.5), inset 0 2px 5px rgba(255, 255, 255, 0.5);
}

.safe-dial-inner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    border: 5px solid #3d4654;
    border-radius: 50%;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.safe-dial-inner.spinning {
    animation: dialFullSpin 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes dialFullSpin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

.safe-dial-marks {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70px;
    height: 70px;
}

.safe-dial-mark {
    position: absolute;
    width: 3px;
    height: 10px;
    background: #3d4654;
    border-radius: 2px;
    top: 0;
    left: 50%;
    transform-origin: 50% 35px;
}

.safe-dial-mark:nth-child(1) { transform: translateX(-50%) rotate(0deg); }
.safe-dial-mark:nth-child(2) { transform: translateX(-50%) rotate(90deg); }
.safe-dial-mark:nth-child(3) { transform: translateX(-50%) rotate(180deg); }
.safe-dial-mark:nth-child(4) { transform: translateX(-50%) rotate(270deg); }

.safe-dial-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    background: linear-gradient(145deg, #3d4654, #2d3748);
    border-radius: 50%;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

.safe-handle {
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 55px;
    background: linear-gradient(90deg, #4a5568, #5a6578, #4a5568);
    border-radius: 9px;
    box-shadow: 2px 0 8px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.1);
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.safe-door.open .safe-handle {
    transform: translateY(-50%) rotate(-90deg);
}

.safe-inside {
    position: absolute;
    top: 12px;
    left: 12px;
    right: 12px;
    bottom: 12px;
    background: linear-gradient(160deg, #12151a 0%, #1a1f28 50%, #0d0f12 100%);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.5s 0.6s;
    z-index: 1;
    overflow: hidden;
}

.safe-door.open ~ .safe-inside {
    opacity: 1;
}

.safe-inside::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(218, 165, 32, 0.15) 0%, transparent 60%);
    opacity: 0;
    animation: goldPulse 2s ease-in-out infinite;
}

.safe-door.open ~ .safe-inside::before {
    opacity: 1;
}

@keyframes goldPulse {
    0%, 100% { transform: translate(-50%, -50%) scale(0.8); opacity: 0.5; }
    50% { transform: translate(-50%, -50%) scale(1.2); opacity: 1; }
}

.safe-prize-content {
    text-align: center;
    position: relative;
    z-index: 2;
}

.safe-prize-emoji {
    font-size: 55px;
    animation: prizeFloat 2.5s ease-in-out infinite;
    filter: drop-shadow(0 0 20px rgba(218, 165, 32, 0.5));
}

@keyframes prizeFloat {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-12px) scale(1.05); }
}

.safe-prize-name {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    margin-top: 10px;
    max-width: 150px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

/* ==================== KEYPAD ==================== */
.safe-keypad {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    max-width: 240px;
    margin: 0 auto;
}

.safe-key {
    height: 58px;
    background: linear-gradient(165deg, #1a1a24 0%, #0f0f16 100%);
    border: 2px solid rgba(255, 255, 255, 0.05);
    border-radius: 14px;
    color: #fff;
    font-size: 22px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.safe-key::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(218, 165, 32, 0.3), rgba(218, 165, 32, 0.1));
    opacity: 0;
    transition: opacity 0.15s;
}

.safe-key:hover {
    border-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.safe-key:active, .safe-key.pressed {
    transform: scale(0.92);
    border-color: #daa520;
    box-shadow: 0 0 30px rgba(218, 165, 32, 0.4), inset 0 0 20px rgba(218, 165, 32, 0.1);
    color: #daa520;
    text-shadow: 0 0 15px rgba(218, 165, 32, 0.8);
}

.safe-key:active::before, .safe-key.pressed::before {
    opacity: 1;
}

.safe-key.action {
    background: linear-gradient(135deg, #b8860b, #daa520);
    color: #000;
    font-weight: 800;
    border: none;
    box-shadow: 0 5px 20px rgba(218, 165, 32, 0.3);
}

.safe-key.action:hover {
    box-shadow: 0 8px 30px rgba(218, 165, 32, 0.5);
}

.safe-key.action:active {
    transform: scale(0.95);
    box-shadow: 0 2px 10px rgba(218, 165, 32, 0.5);
}

.safe-key.clear {
    background: rgba(255, 255, 255, 0.03);
    color: rgba(255, 255, 255, 0.4);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
}

.safe-error-msg {
    color: #e74c3c;
    font-size: 13px;
    font-weight: 500;
    margin-top: 15px;
    opacity: 0;
    transition: all 0.3s;
}

.safe-error-msg.show {
    opacity: 1;
}

.safe-attempts-info {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.35);
    margin-top: 18px;
}

.safe-attempts-info span {
    color: #daa520;
    font-weight: 700;
}

/* ==================== GOLD FLASH EFFECT ==================== */
.gold-flash {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(255, 215, 0, 0.9) 0%, rgba(218, 165, 32, 0.7) 20%, rgba(184, 134, 11, 0.4) 40%, transparent 70%);
    opacity: 0;
    pointer-events: none;
    z-index: 100001;
}

.gold-flash.active {
    animation: goldFlash 1.5s ease-out forwards;
}

@keyframes goldFlash {
    0% { opacity: 0; transform: scale(0.5); }
    15% { opacity: 1; transform: scale(1.5); }
    100% { opacity: 0; transform: scale(3); }
}

.light-rays {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100vmax;
    height: 100vmax;
    pointer-events: none;
    z-index: 100000;
    opacity: 0;
}

.light-rays.active {
    opacity: 1;
    animation: raysRotate 3s linear infinite;
}

@keyframes raysRotate {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

.light-ray {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 4px;
    height: 50%;
    background: linear-gradient(to top, rgba(255, 215, 0, 0.8), transparent);
    transform-origin: bottom center;
    opacity: 0;
}

.light-rays.active .light-ray {
    animation: rayAppear 0.5s ease-out forwards;
}

@keyframes rayAppear {
    0% { opacity: 0; height: 0; }
    100% { opacity: 0.6; height: 50%; }
}

/* ==================== SUCCESS MODAL ==================== */
.safe-success-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at center, rgba(20,20,30,0.98) 0%, rgba(0,0,0,0.99) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100005;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s;
    overflow: hidden;
}

.safe-success-modal.active {
    opacity: 1;
    visibility: visible;
}

/* Золотой пульсирующий фон */
.safe-success-modal.active::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255,215,0,0.15) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    animation: successGlow 2s ease-in-out infinite;
}

@keyframes successGlow {
    0%, 100% { transform: translate(-50%, -50%) scale(0.8); opacity: 0.5; }
    50% { transform: translate(-50%, -50%) scale(1.2); opacity: 1; }
}

/* Летающие эмодзи фон */
.safe-success-modal.active::after {
    content: '💰💎✨🎉💵🪙';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    font-size: 30px;
    letter-spacing: 60px;
    word-spacing: 80px;
    line-height: 120px;
    opacity: 0.15;
    animation: floatingEmojis 20s linear infinite;
    pointer-events: none;
}

@keyframes floatingEmojis {
    0% { transform: translateY(0) rotate(0deg); }
    100% { transform: translateY(-500px) rotate(5deg); }
}

.safe-success-content {
    text-align: center;
    transform: scale(0.5) translateY(50px);
    opacity: 0;
    transition: all 0.6s 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
    max-width: 360px;
    width: 90%;
    position: relative;
    z-index: 2;
}

.safe-success-modal.active .safe-success-content {
    transform: scale(1) translateY(0);
    opacity: 1;
}

.safe-success-emoji {
    font-size: 100px;
    margin-bottom: 20px;
    animation: successEmojiDance 1.5s ease-in-out infinite;
    filter: drop-shadow(0 0 50px rgba(255,215,0,0.8));
    display: inline-block;
}

@keyframes successEmojiDance {
    0%, 100% { 
        transform: scale(1) rotate(0deg) translateY(0); 
        filter: drop-shadow(0 0 30px rgba(255,215,0,0.6));
    }
    25% { 
        transform: scale(1.1) rotate(-10deg) translateY(-10px); 
        filter: drop-shadow(0 0 50px rgba(255,215,0,1));
    }
    50% { 
        transform: scale(1.15) rotate(0deg) translateY(-15px); 
        filter: drop-shadow(0 0 60px rgba(255,215,0,1));
    }
    75% { 
        transform: scale(1.1) rotate(10deg) translateY(-10px); 
        filter: drop-shadow(0 0 50px rgba(255,215,0,1));
    }
}

.safe-success-label {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 8px;
    text-transform: uppercase;
    background: linear-gradient(90deg, #ffd700, #fff, #ffd700, #fff, #ffd700);
    background-size: 400% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 15px;
    animation: shineText 3s linear infinite;
}

@keyframes shineText {
    0% { background-position: 0% center; }
    100% { background-position: 400% center; }
}

.safe-success-prize {
    font-size: 36px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 15px;
    text-shadow: 0 0 30px rgba(255,215,0,0.5);
    animation: prizePulse 1s ease-in-out infinite;
}

@keyframes prizePulse {
    0%, 100% { transform: scale(1); text-shadow: 0 0 20px rgba(255,215,0,0.5); }
    50% { transform: scale(1.05); text-shadow: 0 0 40px rgba(255,215,0,0.8); }
}

.safe-success-desc {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 25px;
}

/* Бейдж бонусов */
.safe-bonus-badge {
    animation: bonusBadgePop 0.5s ease-out, bonusBadgeGlow 2s ease-in-out infinite 0.5s;
}

@keyframes bonusBadgePop {
    0% { transform: scale(0); opacity: 0; }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); opacity: 1; }
}

@keyframes bonusBadgeGlow {
    0%, 100% { box-shadow: 0 0 20px rgba(76,175,80,0.3); }
    50% { box-shadow: 0 0 40px rgba(76,175,80,0.6); }
}

.safe-success-btn {
    padding: 18px 60px;
    background: linear-gradient(135deg, #27ae60, #2ecc71, #27ae60);
    background-size: 200% auto;
    border: none;
    border-radius: 16px;
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 10px 40px rgba(46, 204, 113, 0.4);
    animation: btnShine 2s linear infinite;
    position: relative;
    overflow: hidden;
}

.safe-success-btn::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -100%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255,255,255,0.3),
        transparent
    );
    animation: btnSweep 2s linear infinite;
}

@keyframes btnSweep {
    0% { left: -100%; }
    100% { left: 100%; }
}

@keyframes btnShine {
    0% { background-position: 0% center; }
    100% { background-position: 200% center; }
}

.safe-success-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 15px 50px rgba(46, 204, 113, 0.5);
}

.safe-success-btn:active {
    transform: translateY(0) scale(0.98);
}

/* ==================== PARTICLES ==================== */
.safe-particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 100004;
    overflow: hidden;
}

.safe-particle {
    position: absolute;
    border-radius: 50%;
    animation: particleFall linear forwards;
}

.safe-particle.gold {
    background: linear-gradient(135deg, #ffd700, #daa520);
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.8);
}

.safe-particle.spark {
    background: #fff;
    box-shadow: 0 0 15px #fff;
}

.safe-particle.emoji {
    background: none;
    border-radius: 0;
    animation: emojiFloat linear forwards;
    filter: drop-shadow(0 0 10px rgba(255,215,0,0.5));
}

@keyframes particleFall {
    0% { transform: translateY(-20px) rotate(0deg) scale(1); opacity: 1; }
    100% { transform: translateY(100vh) rotate(720deg) scale(0.3); opacity: 0; }
}

@keyframes emojiFloat {
    0% { 
        transform: translateY(-50px) rotate(0deg) scale(0); 
        opacity: 0; 
    }
    10% {
        transform: translateY(0) rotate(20deg) scale(1.2); 
        opacity: 1;
    }
    30% {
        transform: translateY(15vh) rotate(-15deg) scale(1); 
        opacity: 1;
    }
    100% { 
        transform: translateY(100vh) rotate(360deg) scale(0.5); 
        opacity: 0; 
    }
}

/* Mobile */
@media (max-width: 400px) {
    .safe-container { width: 98%; }
    .safe-code-digit { width: 50px; height: 60px; font-size: 26px; }
    .safe-vault { width: 200px; height: 240px; }
    .safe-dial-outer { width: 90px; height: 90px; }
    .safe-dial-inner { width: 65px; height: 65px; }
    .safe-keypad { max-width: 200px; gap: 8px; }
    .safe-key { height: 50px; font-size: 18px; }
    .floating-safe-btn { top: auto; bottom: 100px; }
}
