/* Rogal Player Lock Screen & Dev Log Styling */

.lock-screen-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(8, 4, 15, 0.95);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100000;
    transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: 'Poppins', sans-serif;
    color: #ffffff;
    overflow: hidden;
}

#matrixCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.8s ease;
    pointer-events: none;
}

.lock-card {
    background: rgba(20, 12, 35, 0.45);
    border: 1px solid rgba(229, 169, 79, 0.25);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 20px;
    padding: 40px;
    width: 90%;
    max-width: 460px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5), 0 0 30px rgba(229, 169, 79, 0.15);
    text-align: center;
    position: relative;
    z-index: 1;
    transform: scale(1);
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, opacity 0.5s ease;
}

.lock-card:hover {
    border-color: rgba(229, 169, 79, 0.5);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6), 0 0 40px rgba(229, 169, 79, 0.25);
}

.lock-logo {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px auto;
    filter: drop-shadow(0 0 15px rgba(229, 169, 79, 0.6));
    animation: pulseLogo 3s infinite ease-in-out;
}

@keyframes pulseLogo {
    0%, 100% { transform: scale(1); filter: drop-shadow(0 0 10px rgba(229, 169, 79, 0.4)); }
    50% { transform: scale(1.05); filter: drop-shadow(0 0 25px rgba(229, 169, 79, 0.7)); }
}

.lock-title {
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 5px;
    background: linear-gradient(135deg, var(--accent-hover, #F0BB68), #EBBC6B);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 0.5px;
}

.lock-badge {
    background: rgba(240, 187, 104, 0.1);
    border: 1px solid rgba(240, 187, 104, 0.3);
    color: var(--accent-hover, #F0BB68);
    padding: 3px 10px;
    border-radius: 30px;
    font-size: 11px;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 20px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.lock-disclaimer {
    font-size: 13px;
    line-height: 1.6;
    color: #cbd5e1;
    margin-bottom: 25px;
    text-align: justify;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 10px;
    padding: 15px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.lock-input-group {
    position: relative;
    margin-bottom: 20px;
}

.lock-input {
    width: 100%;
    background: rgba(10, 5, 20, 0.6);
    border: 1px solid rgba(229, 169, 79, 0.3);
    color: #ffffff;
    padding: 12px 20px;
    border-radius: 12px;
    font-size: 15px;
    text-align: center;
    letter-spacing: 2px;
    transition: all 0.3s ease;
    outline: none;
}

.lock-input:focus {
    border-color: var(--accent, #E5A94F);
    box-shadow: 0 0 15px rgba(229, 169, 79, 0.4);
    background: rgba(10, 5, 20, 0.85);
}

.lock-error-text {
    color: #ef4444;
    font-size: 12px;
    margin-top: 5px;
    min-height: 18px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lock-btn {
    width: 100%;
    padding: 12px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    outline: none;
}

.btn-unlock {
    background: linear-gradient(135deg, var(--accent, #E5A94F), #5BB89C);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(229, 169, 79, 0.4);
    margin-bottom: 10px;
}

.btn-unlock:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(229, 169, 79, 0.6);
}

.btn-unlock:active {
    transform: translateY(1px);
}

.btn-devlog {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #e2e8f0;
}

.btn-devlog:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

/* Card Shake Animation */
.shake {
    animation: shakeCard 0.4s ease;
    border-color: #ef4444 !important;
    box-shadow: 0 0 25px rgba(239, 68, 68, 0.4) !important;
}

@keyframes shakeCard {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-10px); }
    40%, 80% { transform: translateX(10px); }
}

/* Dev Log Drawer */
.devlog-drawer {
    position: fixed;
    top: 0;
    right: -420px;
    width: 100%;
    max-width: 420px;
    height: 100vh;
    background: rgba(14, 8, 22, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-left: 1px solid rgba(229, 169, 79, 0.3);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
    z-index: 100001;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    color: #e2e8f0;
    padding: 30px;
    overflow-y: auto;
}

.devlog-drawer.open {
    right: 0;
}

.drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 25px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 15px;
}

.drawer-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--accent-hover, #F0BB68);
    letter-spacing: 0.5px;
}

.drawer-close {
    background: none;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    font-size: 24px;
    line-height: 1;
    transition: color 0.2s;
    outline: none;
}

.drawer-close:hover {
    color: #ffffff;
}

.devlog-content h3 {
    font-size: 15px;
    font-weight: 700;
    color: #EBBC6B;
    margin-top: 20px;
    margin-bottom: 8px;
    border-bottom: 1px solid rgba(192, 132, 252, 0.2);
    padding-bottom: 4px;
}

.devlog-content p {
    font-size: 13px;
    margin-bottom: 10px;
    color: #94a3b8;
    line-height: 1.5;
}

.devlog-content ul {
    margin-left: 18px;
    margin-bottom: 15px;
    list-style-type: square;
}

.devlog-content li {
    font-size: 12.5px;
    color: #cbd5e1;
    margin-bottom: 6px;
    line-height: 1.5;
}

/* Rainbow border effect keyframe */
@keyframes rainbowGlow {
    0% { border-color: #ff007f; box-shadow: 0 0 10px rgba(255, 0, 127, 0.3); }
    33% { border-color: #7f00ff; box-shadow: 0 0 10px rgba(127, 0, 255, 0.3); }
    66% { border-color: #00f0ff; box-shadow: 0 0 10px rgba(0, 240, 255, 0.3); }
    100% { border-color: #ff007f; box-shadow: 0 0 10px rgba(255, 0, 127, 0.3); }
}

.rainbow-active-border {
    animation: rainbowGlow 5s linear infinite !important;
}

/* Dev Mode label */
.dev-mode-label {
    background: rgba(168, 85, 247, 0.2);
    border: 1px solid rgba(168, 85, 247, 0.5);
    color: #EBBC6B;
    font-size: 10px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 4px;
    margin-left: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-block;
}

/* Launcher / Splash Screen */
.launcher-screen {
    text-align: center;
    max-width: 400px;
    width: 90%;
    z-index: 2;
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.launcher-logo {
    width: 96px;
    height: 96px;
    margin: 0 auto 25px auto;
    filter: drop-shadow(0 0 20px rgba(229, 169, 79, 0.7));
    animation: rotateLogo 8s infinite linear, pulseLogo 3s infinite ease-in-out;
    display: block;
}

@keyframes rotateLogo {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.launcher-title {
    font-size: 32px;
    font-weight: 800;
    letter-spacing: 4px;
    color: #ffffff;
    text-shadow: 0 0 15px rgba(229, 169, 79, 0.6), 0 0 30px rgba(99, 102, 241, 0.4);
    margin-bottom: 5px;
}

.launcher-subtitle {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 3px;
    color: var(--accent-hover, #F0BB68);
    margin-bottom: 35px;
    text-transform: uppercase;
    opacity: 0.8;
}

.progress-container {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 15px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.5);
}

.progress-bar {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, var(--accent, #E5A94F), #5BB89C, #EBBC6B);
    box-shadow: 0 0 10px rgba(229, 169, 79, 0.8);
    transition: width 0.1s linear;
    border-radius: 10px;
}

.progress-status {
    font-size: 12px;
    color: #94a3b8;
    min-height: 20px;
    font-family: monospace;
    letter-spacing: 0.5px;
}

@media (max-width: 768px) {
    .lock-screen-overlay {
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        background: rgba(8, 4, 15, 0.98) !important;
    }
    
    .lock-card {
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        background: rgba(20, 12, 35, 0.95) !important;
        padding: 25px 20px !important;
        width: 95% !important;
    }
    
    .devlog-drawer {
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        background: rgba(14, 8, 22, 0.98) !important;
        width: 100% !important;
        max-width: 100% !important;
        right: -100% !important;
    }

    .devlog-drawer.open {
        right: 0 !important;
    }
}

/* Mullvad-style tab layout styles */
.lock-tabs button {
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}

.lock-tabs button.active {
    color: var(--accent, #E5A94F) !important;
    border-bottom: 2px solid var(--accent, #E5A94F) !important;
}

.lock-tab-content {
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

.package-selector label {
    transition: all 0.2s ease;
    border: 1px solid rgba(229, 169, 79, 0.2) !important;
}

.package-selector label:has(input:checked) {
    border-color: var(--accent, #E5A94F) !important;
    background: rgba(229, 169, 79, 0.15) !important;
    box-shadow: 0 0 10px rgba(229, 169, 79, 0.2);
}

.pay-methods-subtabs button {
    transition: all 0.2s ease;
    border-radius: 4px;
}

.pay-methods-subtabs button.active {
    background: var(--accent, #E5A94F) !important;
    color: #111 !important;
    font-weight: bold;
}
