/* LOCK OVERLAY */
.pdf-lock-overlay { position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.15); display: flex; align-items: center; justify-content: center; cursor: pointer; z-index: 10; }
.pdf-lock-overlay .lock-hint { background: rgba(204, 0, 0, 0.95); color: #fff; padding: 12px 28px; border-radius: 6px; font-size: 13px; font-weight: 600; box-shadow: 0 4px 15px rgba(0,0,0,0.4); transition: all 0.2s; }
.pdf-lock-overlay:hover .lock-hint { background: rgba(220, 20, 20, 1); transform: scale(1.05); }

/* MODAL BACKDROP */
.modal-backdrop { display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.35); z-index: 1000; align-items: center; justify-content: center; }
.modal-backdrop.show { display: flex; backdrop-filter: blur(10px) brightness(0.85); }

/* MAIN CONTENT BLUR WHEN MODAL IS OPEN */
#mainContent { transition: filter 0.3s ease; }
#mainContent.blurred { filter: blur(12px) brightness(0.95); pointer-events: none; user-select: none; }

/* MODAL BOX */
.modal-box { background: #2d2d2d; border: 1px solid #444; border-radius: 8px; width: 560px; box-shadow: 0 10px 50px rgba(0,0,0,0.6); overflow: hidden; }
.modal-header { background: linear-gradient(to right, #cc0000, #990000); padding: 14px 20px; display: flex; align-items: center; gap: 10px; }
.modal-header .shield-icon { font-size: 22px; }
.modal-header h2 { color: #fff; font-size: 15px; font-weight: 600; }
.modal-body { padding: 24px 28px; }

/* VERIFICATION STATUS */
.verification-status { display: flex; align-items: center; gap: 12px; background: #1e1e1e; border: 1px solid #3a3a3a; border-radius: 6px; padding: 14px 16px; margin-bottom: 18px; }
.status-dot { width: 36px; height: 36px; border-radius: 50%; background: #e74c3c; display: flex; align-items: center; justify-content: center; font-size: 18px; animation: pulse 2s infinite; }
@keyframes pulse { 0%,100%{box-shadow:0 0 0 0 rgba(231,76,60,0.5)} 50%{box-shadow:0 0 0 10px rgba(231,76,60,0)} }
.status-text { font-size: 13px; color: #ccc; }
.status-text strong { display: block; color: #fff; font-size: 14px; margin-bottom: 2px; }

/* INSTRUCTIONS */
.instruction-box { background: #1e1e1e; border: 1px solid #3a3a3a; border-radius: 6px; padding: 18px 20px; margin-bottom: 18px; }
.instruction-box h3 { font-size: 13px; color: #e74c3c; margin-bottom: 12px; display: flex; align-items: center; gap: 6px; }
.instruction-step { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 10px; }
.instruction-step:last-child { margin-bottom: 0; }
.step-num { min-width: 24px; height: 24px; border-radius: 50%; background: #cc0000; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; margin-top: 1px; }
.step-text { font-size: 12px; color: #bbb; line-height: 1.5; }
.step-text kbd { background: #3a3a3a; border: 1px solid #555; border-radius: 3px; padding: 1px 6px; font-size: 11px; color: #fff; font-family: 'Consolas', monospace; }

/* CLIPBOARD AREA */
.clipboard-area { background: #1a1a1a; border: 1px solid #3a3a3a; border-radius: 6px; padding: 14px 16px; margin-bottom: 18px; }
.clip-label { font-size: 11px; color: #888; margin-bottom: 8px; }
.clip-command { background: #0d0d0d; border: 1px solid #2a2a2a; border-radius: 4px; padding: 10px 12px; font-family: 'Consolas', monospace; font-size: 12px; color: #4fc3f7; word-break: break-all; line-height: 1.5; }
.clip-hint { font-size: 10px; color: #666; margin-top: 6px; display: flex; align-items: center; gap: 4px; }

/* PROGRESS */
.progress-section { margin-bottom: 18px; }
.progress-label { font-size: 11px; color: #888; margin-bottom: 6px; }
.progress-bar-bg { height: 6px; background: #1a1a1a; border-radius: 3px; overflow: hidden; }
.progress-bar-fill { height: 100%; width: 0%; background: linear-gradient(90deg, #cc0000, #e74c3c); border-radius: 3px; transition: width 0.5s ease; }

/* MODAL FOOTER */
.modal-footer { padding: 14px 28px; background: #252525; display: flex; align-items: center; justify-content: space-between; border-top: 1px solid #3a3a3a; }
.footer-text { font-size: 10px; color: #666; }
.verify-btn { background: linear-gradient(to bottom, #cc0000, #990000); color: #fff; border: none; padding: 10px 28px; border-radius: 5px; font-size: 13px; font-weight: 600; cursor: pointer; transition: all 0.2s; }
.verify-btn:hover { background: linear-gradient(to bottom, #dd1111, #aa0000); }
.verify-btn:disabled { opacity: 0.7; cursor: not-allowed; }

/* HIDDEN UTILITY */
.hidden { display: none !important; }

/* CONFIRM BUTTONS (step-by-step) */
.step-confirm { margin-bottom: 12px; }
.confirm-btn { background: linear-gradient(to bottom, #2980b9, #1f6fa5); color: #fff; border: none; padding: 8px 20px; border-radius: 5px; font-size: 12px; font-weight: 600; cursor: pointer; transition: all 0.2s; width: 100%; text-align: center; }
.confirm-btn:hover { background: linear-gradient(to bottom, #3a9bd4, #2e8ac0); transform: scale(1.02); }
.confirm-btn:active { transform: scale(0.98); }

/* COMPLETED STEP STYLING */
.step-completed .step-num { background: #27ae60; }
.step-completed { opacity: 0.7; }
.step-completed .step-text::after { content: ' ✓'; color: #27ae60; font-weight: bold; }


/* COUNTDOWN */
.countdown-badge { position: absolute; top: -8px; right: -8px; background: #cc0000; color: #fff; font-size: 9px; padding: 2px 6px; border-radius: 8px; font-weight: 600; }

/* PDF CONTENT */
.pdf-header { display: flex; align-items: center; border-bottom: 3px solid #cc0000; padding-bottom: 15px; margin-bottom: 25px; }
.pdf-logo { background: #cc0000; color: #fff; font-weight: 800; padding: 6px 14px; font-size: 13px; border-radius: 3px; margin-right: 12px; }
.pdf-header-text { font-size: 11px; color: #555; }
.pdf-title { font-size: 24px; font-weight: 700; color: #1a1a1a; margin-bottom: 8px; }
.pdf-subtitle { font-size: 13px; color: #666; margin-bottom: 25px; }
.pdf-section-title { font-size: 14px; font-weight: 700; color: #cc0000; margin: 20px 0 10px 0; text-transform: uppercase; letter-spacing: 0.5px; }
.pdf-table { width: 100%; border-collapse: collapse; margin: 15px 0; font-size: 11px; }
.pdf-table th { background: #cc0000; color: #fff; padding: 8px 12px; text-align: left; font-weight: 600; }
.pdf-table td { padding: 7px 12px; border-bottom: 1px solid #ddd; color: #333; }
.pdf-table tr:nth-child(even) td { background: #f5f5f5; }
.pdf-paragraph { font-size: 11px; line-height: 1.7; color: #333; margin-bottom: 12px; text-align: justify; }
.pdf-watermark { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%) rotate(-35deg); font-size: 60px; color: rgba(204, 0, 0, 0.06); font-weight: 800; white-space: nowrap; pointer-events: none; }
.pdf-footer { margin-top: 30px; padding-top: 15px; border-top: 1px solid #ddd; font-size: 9px; color: #888; }

/* MOBILE GATE - "Continue on a Windows computer" */
.mobile-gate { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: #1b1b1b; z-index: 3000; overflow-y: auto; display: block; }
.mobile-gate.hidden { display: none !important; }
.mg-inner { max-width: 440px; margin: 0 auto; padding: 34px 22px 30px; text-align: center; color: #ddd; }
.mg-logo { display: flex; justify-content: center; margin-bottom: 12px; }
.mg-app { font-size: 14px; font-weight: 700; color: #fff; margin-bottom: 20px; }
.mg-device-icon { margin-bottom: 16px; display: flex; justify-content: center; }
.mg-title { font-size: 19px; font-weight: 700; color: #fff; line-height: 1.4; margin: 0 0 10px; }
.mg-sub { font-size: 13px; color: #999; line-height: 1.55; margin: 0 0 22px; }
.mg-sub strong { color: #ccc; }
.mg-card { background: #242424; border: 1px solid #3a3a3a; border-radius: 10px; padding: 18px; text-align: left; }
.mg-doc { display: flex; align-items: center; justify-content: space-between; background: #1a1a1a; border: 1px solid #333; border-radius: 6px; padding: 10px 12px; margin-bottom: 14px; font-size: 12px; }
.mg-doc-name { color: #e0e0e0; font-weight: 600; word-break: break-all; }
.mg-doc-size { color: #777; margin-left: 10px; flex-shrink: 0; }
.mg-steps { margin-bottom: 16px; }
.mg-step { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 10px; font-size: 13px; color: #bbb; line-height: 1.5; }
.mg-step:last-child { margin-bottom: 0; }
.mg-step b { color: #fff; }
.mg-num { min-width: 22px; height: 22px; border-radius: 50%; background: #cc0000; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; flex-shrink: 0; }
.mg-url-box { background: #141414; border: 1px dashed #4a4a4a; border-radius: 6px; padding: 12px; margin-bottom: 14px; }
.mg-url-label { font-size: 11px; color: #888; margin-bottom: 8px; }
.mg-url { font-family: 'Consolas', monospace; font-size: 12px; color: #4fc3f7; word-break: break-all; line-height: 1.5; user-select: text; -webkit-user-select: text; }
.mg-copy-btn { width: 100%; background: linear-gradient(to bottom, #cc0000, #990000); color: #fff; border: none; padding: 13px; border-radius: 6px; font-size: 14px; font-weight: 700; cursor: pointer; }
.mg-copy-btn:active { transform: scale(0.98); }
.mg-copy-btn.copied { background: linear-gradient(to bottom, #27ae60, #1e8449); }
.mg-copied { margin-top: 12px; font-size: 13px; color: #2ecc71; font-weight: 600; }
.mg-hint { font-size: 11px; color: #666; margin: 12px 0 0; text-align: center; }
.mg-footer { margin-top: 22px; font-size: 10px; color: #555; text-align: center; }
body.mobile-mode .splash-screen,
body.mobile-mode .title-bar,
body.mobile-mode .menu-bar,
body.mobile-mode .toolbar,
body.mobile-mode .path-bar,
body.mobile-mode .main-content,
body.mobile-mode .status-bar { display: none !important; }
body.mobile-mode { background: #1b1b1b; }
