:root{
  --bg1:#020617;
  --bg2:#0f172a;
  --glass:rgba(255,255,255,.08);
  --border:rgba(255,255,255,.15);
  --text:#e5e7eb;

  --blue:#38bdf8;
  --green:#22c55e;
  --purple:#a78bfa;
  --gray:#94a3b8;
}

*{box-sizing:border-box;font-family:Inter,system-ui}

body{
  margin:0;
  min-height:100vh;
  background:
    radial-gradient(circle at top,#1e3a8a,transparent 45%),
    linear-gradient(135deg,var(--bg2),var(--bg1));
  display:flex;
  align-items:center;
  justify-content:center;
  padding:16px;
  color:var(--text);
}

.card{
  width:100%;
  max-width:420px;
  background:var(--glass);
  backdrop-filter:blur(18px);
  border:1px solid var(--border);
  border-radius:26px;
  padding:22px;
  box-shadow:0 30px 60px rgba(0,0,0,.45);
}

h1{
  text-align:center;
  margin-bottom:14px;
  font-size:1.5rem;
  background:linear-gradient(90deg,var(--blue),var(--green));
  -webkit-background-clip:text;
  -webkit-text-fill-color:transparent;
}

textarea{
  width:100%;
  min-height:80px;
  background:rgba(255,255,255,.04);
  border:1px solid var(--border);
  border-radius:16px;
  padding:14px;
  color:white;
  font-size:15px;
  resize:none;
  outline:none;
}

textarea:focus{border-color:var(--blue)}

.detect{
  display:flex;
  align-items:center;
  gap:8px;
  margin-top:8px;
  font-size:13px;
  opacity:.8;
}

.detect svg{
  width:18px;
  height:18px;
  stroke:var(--green);
}

.btn-main{
  width:100%;
  margin-top:14px;
  padding:14px;
  border:none;
  border-radius:16px;
  font-weight:600;
  cursor:pointer;
  background:linear-gradient(135deg,var(--blue),var(--green));
  color:#020617;
}

.qr-area{
  display:none;
  margin-top:20px;
  text-align:center;
}

.qr-box{
  display:inline-block;
  background:white;
  padding:16px;
  border-radius:20px;
}

.actions{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:10px;
  margin-top:14px;
}

.action{
  padding:11px;
  border-radius:14px;
  border:none;
  font-weight:600;
  cursor:pointer;
  color:#020617;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:6px;
}

.action svg{
  width:16px;
  height:16px;
}

.copy{background:var(--blue)}
.open{background:var(--green)}
.download{background:var(--purple)}

.action.disabled{
  background:var(--gray);
  cursor:not-allowed;
  opacity:.6;
}

footer{
  text-align:center;
  font-size:12px;
  opacity:.6;
  margin-top:14px;
}