* { box-sizing: border-box; margin: 0; padding: 0; font-family: 'Segoe UI', Arial, sans-serif; }
body { background: #0f1117; color: #e6e6e6; min-height: 100vh; }
a { color: inherit; text-decoration: none; }
.container { max-width: 1100px; margin: 0 auto; padding: 24px; }
.topbar { display: flex; justify-content: space-between; align-items: center; padding: 16px 24px; background: #161923; border-bottom: 1px solid #262b3a; }
.topbar h1 { font-size: 18px; color: #fff; }
.topbar .user-info { display: flex; align-items: center; gap: 16px; font-size: 14px; color: #9aa0b4; }
.btn { display: inline-block; padding: 9px 16px; border-radius: 8px; border: none; cursor: pointer; font-size: 14px; font-weight: 600; transition: 0.15s; }
.btn-primary { background: #4f6ef7; color: #fff; }
.btn-primary:hover { background: #3d5ce0; }
.btn-danger { background: #e74c5b; color: #fff; }
.btn-danger:hover { background: #cf3b49; }
.btn-secondary { background: #262b3a; color: #e6e6e6; }
.btn-secondary:hover { background: #323851; }
.btn-sm { padding: 6px 10px; font-size: 12px; }

.card { background: #161923; border: 1px solid #262b3a; border-radius: 12px; padding: 20px; margin-bottom: 20px; }
.card h2 { font-size: 16px; margin-bottom: 14px; color: #fff; }

.login-wrap { display: flex; align-items: center; justify-content: center; min-height: 100vh; }
.login-box { background: #161923; padding: 36px; border-radius: 14px; width: 340px; border: 1px solid #262b3a; }
.login-box h1 { text-align: center; margin-bottom: 24px; font-size: 20px; color: #fff; }

.form-group { margin-bottom: 14px; }
.form-group label { display: block; font-size: 13px; margin-bottom: 6px; color: #9aa0b4; }
.form-group input, .form-group select { width: 100%; padding: 10px 12px; border-radius: 8px; border: 1px solid #2c3244; background: #0f1117; color: #fff; font-size: 14px; }
.form-group input:focus, .form-group select:focus { outline: none; border-color: #4f6ef7; }

.error-msg { background: #3a1e22; color: #ff8896; padding: 10px 14px; border-radius: 8px; margin-bottom: 14px; font-size: 13px; }

table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid #262b3a; font-size: 13px; }
th { color: #9aa0b4; font-weight: 600; }

.progress-outer { background: #0f1117; border-radius: 8px; height: 10px; overflow: hidden; border: 1px solid #262b3a; }
.progress-inner { background: linear-gradient(90deg,#4f6ef7,#7b5cf7); height: 100%; width: 0%; transition: width 0.2s; }
.progress-label { font-size: 12px; color: #9aa0b4; margin-top: 6px; }

.video-item { display: flex; justify-content: space-between; align-items: center; padding: 12px; border: 1px solid #262b3a; border-radius: 10px; margin-bottom: 10px; }
.video-item .info { display: flex; flex-direction: column; gap: 4px; }
.video-item .name { font-weight: 600; color: #fff; font-size: 14px; }
.video-item .meta { font-size: 12px; color: #9aa0b4; }
.actions { display: flex; gap: 8px; }
.badge { padding: 3px 8px; border-radius: 6px; font-size: 11px; font-weight: 700; }
.badge-live { background: #26382a; color: #4fdc7a; }
.badge-off { background: #262b3a; color: #9aa0b4; }

.key-item { display: flex; justify-content: space-between; align-items: center; padding: 10px 12px; border: 1px solid #262b3a; border-radius: 10px; margin-bottom: 8px; font-family: monospace; font-size: 14px; }

.modal-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.6); align-items: center; justify-content: center; z-index: 50; }
.modal-overlay.active { display: flex; }
.modal-box { background: #161923; border: 1px solid #262b3a; border-radius: 12px; padding: 24px; width: 380px; }
.modal-box h3 { margin-bottom: 16px; color: #fff; }
.checkbox-row { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; }
.checkbox-row input { width: auto; }
.hint { font-size: 12px; color: #6a7186; margin-top: 4px; }
