:root{
  --bg: #0f1724;
  --card: #ffffff;
  --muted: #6b7280;
  --accent: #ff0000;
  --accent-2: #06b6d4;
  --glass: rgba(255,255,255,0.03);
  --border: rgba(0,0,0,0.06);
}
*{box-sizing:border-box}
html,body{min-height:100%;margin:0}
body{
  margin:0;
  font-family: 'Segoe UI', system-ui, -apple-system, Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: linear-gradient(180deg, #0f1724 0%, #0b1220 60%);
  color: #e6eef8;
  padding:20px;
}
.container{
  max-width:800px;
  margin:0 auto;
  width:100%;
}
.header{
  text-align:left;
  margin-bottom:18px;
}
.site-brand{display:flex;align-items:center;gap:14px}
.site-brand .logo{
  width:56px;height:56px;border-radius:8px;background:linear-gradient(135deg,#ff0000,#cc0000);display:flex;align-items:center;justify-content:center;font-weight:700;color:#fff;font-size:24px;box-shadow:0 6px 20px rgba(0,0,0,0.4)
}
.site-brand h1{font-size:24px;margin:0;color:#fff}
.subtitle{color:var(--muted);font-size:13px;margin-top:4px}
.card{
  background: var(--card);
  border-radius:12px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.6);
  padding:22px;
  margin-bottom:20px;
  color:#1a1f2e;
}
h3{
  margin:0 0 16px 0;
  font-size:18px;
  color:#1a1f2e;
  font-weight:600;
}
label{
  display:block;
  font-weight:600;
  margin-bottom:10px;
  color:#1a1f2e;
  font-size:14px;
}
.input-group{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}
input[type='text']{
  flex:1;
  min-width:200px;
  padding:12px 16px;
  border-radius:6px;
  border:1px solid #ddd;
  background:#fff;
  color:#1a1f2e;
  font-size:15px;
  outline:none;
  transition:border-color 0.2s;
}
input[type='text']:focus{
  border-color:var(--accent);
  box-shadow:0 0 0 3px rgba(79,70,229,0.1);
}
.btn-primary{
  background:linear-gradient(135deg, #ff0000 0%, #cc0000 100%);
  color:#fff;
  padding:12px 24px;
  border-radius:6px;
  border:none;
  cursor:pointer;
  font-weight:600;
  font-size:15px;
  transition:transform 0.1s, box-shadow 0.2s;
  white-space:nowrap;
}
.btn-primary:hover{
  box-shadow:0 4px 12px rgba(102,126,234,0.4);
}
.btn-primary:active{transform:translateY(1px)}
.btn-secondary{
  background:#6c757d;
  color:#fff;
  padding:12px 24px;
  border-radius:6px;
  border:none;
  cursor:pointer;
  font-weight:600;
  font-size:15px;
  transition:transform 0.1s;
  white-space:nowrap;
}
.btn-secondary:hover{
  background:#5a6268;
}
.btn-secondary:active{transform:translateY(1px)}
.btn-block{
  width: 100%;
  display: block;
}
.button3{
  background:#28a745;
  color:#fff;
  padding:12px 24px;
  border-radius:6px;
  border:none;
  cursor:pointer;
  font-weight:600;
  font-size:15px;
  margin-top:10px;
  display:inline-block;
}
.button3:hover{
  background:#218838;
}
.log-section pre{
  background:#0b1220;
  padding:16px;
  border-radius:6px;
  overflow:auto;
  max-height:300px;
  font-size:13px;
  line-height:1.5;
  color:#d1e2ff;
  border:1px solid rgba(255,255,255,0.03);
}
.links-list{
  list-style:none;
  padding:0;
  margin:0;
}
.links-list li{
  margin-bottom:8px;
}
.link-item{
  display:flex;
  align-items:center;
  padding:12px;
  background:#f1f3f5;
  border-radius:6px;
  cursor:pointer;
  transition:background 0.2s;
  border:2px solid transparent;
}
.link-item:hover{
  background:#e9ecef;
}
.link-item input[type="radio"]{
  margin-right:12px;
  cursor:pointer;
}
.link-item input[type="radio"]:checked + span{
  font-weight:600;
}
.link-item span{
  word-break:break-all;
  font-size:14px;
  color:#495057;
}
.progress-container{
  padding:10px 0;
}
.progress-bar{
  width:100%;
  height:24px;
  background:#e9ecef;
  border-radius:12px;
  overflow:hidden;
  box-shadow:inset 0 2px 4px rgba(0,0,0,0.1);
}
.progress-fill{
  height:100%;
  background:linear-gradient(90deg, #667eea 0%, #764ba2 100%);
  width:0%;
  transition:width 0.3s ease;
}
.progress-text{
  text-align:center;
  margin-top:8px;
  font-weight:600;
  font-size:16px;
  color:#1a1f2e;
}
.footer{
  text-align:center;
  margin-top:40px;
  padding:20px 0;
}
.footer a{
  color:#fff;
  text-decoration:none;
  font-weight:600;
  font-size:15px;
}
.footer a:hover{
  text-decoration:underline;
}
@media (max-width:600px){
  body{padding:16px}
  .card{padding:24px}
  .header{margin-bottom:24px}
  .header h1{font-size:36px}
  h3{font-size:20px;margin-bottom:18px}
  label{font-size:17px;margin-bottom:12px}
  .input-group{flex-direction:column;gap:12px}
  .input-group input[type="text"],
  .input-group button{width:100%;min-height:48px}
  input[type='text']{
    padding:14px 18px;
    font-size:16px;
    min-width:100%;
  }
  .btn-primary,
  .btn-secondary,
  .button3{
    padding:12px 16px;
    font-size:16px;
    min-height:48px;
    white-space:normal; /* allow wrapping */
    word-break:keep-all;
  }

  /* For very narrow screens shorten padding to avoid overflow */
  @media (max-width:360px){
    .btn-primary, .btn-secondary, .button3{ padding:10px 12px; font-size:15px; }
  }
  .link-item{
    padding:16px;
    font-size:16px;
  }
  .link-item input[type="radio"]{
    margin-right:14px;
    transform:scale(1.3);
  }
  .link-item span{font-size:15px}
  .log-section pre{
    font-size:14px;
    padding:18px;
  }
  .progress-bar{height:32px}
  .progress-text{font-size:18px;margin-top:10px}
}