/* --- Google Fonts & Global Styles --- */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

body {
    background-color: #0d1117; font-family: 'Poppins', sans-serif;
    display: flex; justify-content: center; align-items: center;
    min-height: 100vh; margin: 0; color: #c9d1d9;
}
.main-container {
    width: 100%; max-width: 800px; background-color: #161b22;
    border: 1px solid #30363d; border-radius: 12px;
    overflow: hidden; box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5); margin: 1rem;
}
.hidden { display: none !important; }

/* --- Top Bar --- */
.top-bar {
    background: #0d1117; padding: 12px 20px; text-align: center;
    font-size: 22px; font-weight: 600; border-bottom: 1px solid #30363d;
}
.top-bar .red-dot {
    display: inline-block; width: 12px; height: 12px; background-color: #f85149;
    border-radius: 50%; vertical-align: middle; margin: 0 4px; animation: pulse 2s infinite;
}

/* --- Video Player Styles --- */
.video-player-container { background-color: #000; }
.video-wrapper { position: relative; line-height: 0; }
.video-player { width: 100%; height: auto; display: block; }
.video-overlay { 
    position: absolute; top: 0; left: 0; width: 100%; height: 100%; 
    display: flex; justify-content: center; align-items: center; 
    background: rgba(0, 0, 0, 0.3); 
    transition: background 0.3s ease, opacity 0.3s ease;
    cursor: pointer; opacity: 1;
}
.video-overlay.hidden-overlay { opacity: 0; pointer-events: none; }
.play-button-large { 
    color: white; background: rgba(30, 144, 255, 0.8); border-radius: 50%; 
    display: flex; justify-content: center; align-items: center; 
    transition: transform 0.3s ease, background 0.3s ease;
    width: 80px; height: 80px;
}
.play-button-large svg { width: 40px; height: 40px; }
.video-wrapper:hover .play-button-large { transform: scale(1.1); background: rgba(30, 144, 255, 1); }

/* --- Fake Controls Bar --- */
.controls-bar {
    background-color: #0d1117; padding: 10px 15px; display: flex;
    align-items: center; gap: 15px; border-top: 1px solid #30363d;
}
.left-controls, .right-controls { display: flex; align-items: center; gap: 15px; }
.timeline { flex-grow: 1; display: flex; align-items: center; gap: 10px; }
.timeline span { font-size: 14px; font-weight: 600; color: #8b949e; }
.progress-bar { flex-grow: 1; height: 5px; background-color: #484f58; border-radius: 5px; position: relative; }
.progress-indicator { position: absolute; left: 10%; top: -4px; width: 5px; height: 13px; background-color: #f85149; border-radius: 2px; }
.live-text { display: flex; align-items: center; font-size: 14px; font-weight: 600; color: #f85149; gap: 6px; }
.live-dot { width: 10px; height: 10px; background-color: #f85149; border-radius: 50%; animation: pulse 2s infinite; }
.icon { width: 24px; height: 24px; color: #8b949e; }

/* --- Video Info & Action --- */
.video-title-container { background-color: #0d1117; padding: 25px; text-align: center; }
.video-title { font-size: 24px; font-weight: 600; color: #e6edf3; margin: 0 0 20px 0; }
.action-buttons { margin-bottom: 20px; }
.social-proof { display: flex; justify-content: center; align-items: center; gap: 8px; color: #8b949e; font-size: 14px; }
.social-proof .social-icon { width: 20px; height: 20px; color: #2ea043; }
.quality-info {
    display: flex; justify-content: space-between; align-items: center;
    flex-wrap: wrap; gap: 20px; margin-top: 25px; padding-top: 20px;
    border-top: 1px solid #30363d;
}
.quality-items, .device-icons { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; justify-content: center; flex-grow: 1; }
.quality-item { text-align: center; }
.quality-item .main-text { font-size: 16px; font-weight: 600; color: #c9d1d9; }
.quality-item .sub-text { font-size: 10px; text-transform: uppercase; letter-spacing: 0.5px; color: #8b949e; }

/* --- Popup Styles --- */
.popup-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.85); display: flex; justify-content: center; align-items: center;
    z-index: 1000; backdrop-filter: blur(5px); animation: fadeIn 0.3s ease;
}
.popup-content {
    background-color: #161b22; padding: 30px 40px; border-radius: 12px;
    border: 1px solid #30363d; text-align: center; max-width: 90%; width: 450px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5); transform: scale(0.9); animation: popIn 0.3s ease forwards;
}
.popup-content h2 { font-size: 26px; color: #e6edf3; margin-bottom: 10px; }
.popup-content p { color: #c9d1d9; margin-bottom: 25px; line-height: 1.6; }
.popup-buttons { display: flex; flex-direction: column; gap: 15px; }

/* --- General Button Styles --- */
.btn { 
    padding: 14px 28px; border: none; border-radius: 8px; color: white; 
    font-size: 16px; font-weight: 600; text-transform: uppercase; cursor: pointer; 
    transition: all 0.3s ease; box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2); 
    text-decoration: none; display: block; 
}
.btn:hover { transform: translateY(-3px); box-shadow: 0 7px 20px rgba(0,0,0,0.3); }
.btn-signup { background: linear-gradient(45deg, #2ea043, #34c759); }
.btn-signup:hover { box-shadow: 0 7px 20px rgba(46, 160, 67, 0.3); }

/* >>>>>>>>>>>> এইখানে পরিবর্তন করা হয়েছে <<<<<<<<<<<< */
.btn-download {
    background: linear-gradient(45deg, #e63946, #f15156);
}
.btn-download:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 10px 20px rgba(230, 57, 70, 0.3);
}

.btn.go-live {
    background: linear-gradient(45deg, #e63946, #f15156);
    font-size: 18px;
    padding: 16px 30px;
    animation: pulse-button 2s infinite;
}
.btn.go-live:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 10px 20px rgba(230, 57, 70, 0.3);
}

/* --- Process & Download Page Styles (COMPLETE) --- */
.analysis-container, .lock-container { padding: 40px 25px; text-align: center; }
.analysis-container h1, .lock-container h1 { font-size: 28px; color: #e6edf3; margin-bottom: 15px; }
.analysis-container p, .lock-container p { font-size: 16px; color: #c9d1d9; line-height: 1.6; margin-bottom: 25px; }
.progress-bar-container { width: 90%; margin: 30px auto; height: 20px; background-color: #0d1117; border: 1px solid #30363d; border-radius: 20px; overflow: hidden; }
#status-text { font-weight: 600; font-size: 14px; height: 20px; }
.progress-bar-fill {
    width: 0%; height: 100%; border-radius: 20px;
    background: linear-gradient(-45deg, #3f87a6, #2e7d32, #007bff, #23d5ab);
    background-size: 400% 400%;
    animation: animated-gradient 3s ease infinite;
    transition: width 0.5s ease-in-out;
}
.lock-page-body { background-color: #0d1117; }
.lock-container { background-color: #161b22; border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,0.4); max-width: 450px; width: 90%; border: 1px solid #30363d;}
.lock-container .app-icon {
    width: 80px; height: 80px; border-radius: 18px; margin-bottom: 20px;
    object-fit: cover; background-color: #30363d; border: 2px solid #484f58;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3), 0 0 0 4px #161b22;
    animation: iconPopIn 0.6s ease-out forwards;
}
.offer-list { display: flex; flex-direction: column; gap: 15px; margin-bottom: 20px; }
.offer-button {
    display: block; background-color: #2ea043; color: white; padding: 15px;
    border-radius: 8px; text-decoration: none; font-weight: 600;
    font-size: 16px; transition: all 0.2s ease-in-out;
}
.offer-button:hover { transform: translateY(-3px) scale(1.02); box-shadow: 0 5px 15px rgba(46, 160, 67, 0.4); }
.timer-display { font-size: 14px; font-weight: 500; padding: 10px; border-radius: 6px; background-color: rgba(255, 193, 7, 0.1); }
#final-download-view .verify-button {
    display: inline-block; background-color: #e63946; color: white; padding: 15px 30px;
    border-radius: 8px; text-decoration: none; font-weight: 700; font-size: 18px;
    transition: background-color 0.3s ease, transform 0.2s ease;
}
#final-download-view .verify-button:hover { background-color: #f15156; transform: scale(1.05); }
.security-seal { display: flex; justify-content: center; align-items: center; gap: 10px; margin-top: 25px; padding: 10px; background-color: rgba(46, 160, 67, 0.1); border: 1px solid #2ea043; border-radius: 8px; color: #8b949e; font-size: 13px; }
.security-seal .shield-icon { width: 24px; height: 24px; color: #2ea043; }

/* --- Animations --- */
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(248, 81, 73, 0.7); } 70% { box-shadow: 0 0 0 8px rgba(248, 81, 73, 0); } 100% { box-shadow: 0 0 0 0 rgba(248, 81, 73, 0); } }
@keyframes popIn { from { opacity: 0; transform: scale(0.9); } to { opacity: 1; transform: scale(1); } }
@keyframes iconPopIn { 0% { transform: scale(0.5); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes animated-gradient { 0% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } 100% { background-position: 0% 50%; } }
@keyframes pulse-button { 0% { transform: scale(1); } 50% { transform: scale(1.03); } 100% { transform: scale(1); } }

/* --- Responsive Design --- */
@media (max-width: 600px) {
    .main-container, .lock-container { margin: 0; border-radius: 0; border: none; width: 100%; max-width: 100%; }
    .top-bar { font-size: 18px; }
    .video-title { font-size: 20px; }
    .play-button-large { width: 60px; height: 60px; }
    .play-button-large svg { width: 30px; height: 30px; }
    .timeline span { display: none; }
    .popup-content { padding: 25px; }
    .popup-content h2 { font-size: 22px; }
    .analysis-container h1, .lock-container h1 { font-size: 22px; }
    .quality-info { flex-direction: column; }
}