/* Mobile-first, WhatsApp-friendly */

:root{
  --bg:#0b0f14;
  --card:#121825;
  --text:#e9eef6;
  --muted:#aab6c7;
  --line:#243047;
  --btn:#1b263b;
  --btn2:#243555;
  --accent:#39B6D1;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif;
  background:var(--bg);
  color:var(--text);
}

.topbar{
  padding:14px 16px;
  text-align:center;
  font-weight:800;
  letter-spacing:1px;
  font-size:28px;
}

.wrap{
  max-width:860px;
  margin:0 auto;
  padding:10px 12px 30px;
}

.toolbar{
  display:flex;
  justify-content:flex-end;
  margin:4px 0 10px;
}

.lang label{
  display:block;
  font-size:12px;
  color:var(--muted);
  margin-bottom:6px;
}

select{
  background:var(--card);
  color:var(--text);
  border:1px solid var(--line);
  padding:8px 10px;
  border-radius:12px;
  font-size:14px;
}

.card{
  background:var(--card);
  border:1px solid var(--line);
  border-radius:18px;
  padding:14px;
  margin:12px 0;
}

.card h2{
  margin:0 0 10px;
  font-size:18px;
}

.label{
  display:block;
  margin:8px 0 6px;
  font-size:13px;
  color:var(--muted);
}

.ta{
  width:100%;
  border-radius:14px;
  border:1px solid var(--line);
  background:#0f1522;
  color:var(--text);
  padding:12px;
  font-size:18px; /* slightly bigger for symbols */
  line-height: 1.35;
  letter-spacing: 0.5px;
  resize:vertical;
  outline:none;
}

.ta:focus{
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(57,182,209,.12);
}

.opts{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  margin:10px 0 6px;
}

.opt{
  display:flex;
  gap:8px;
  align-items:center;
  font-size:14px;
  color:var(--text);
}

.opt input{ transform:scale(1.1); }

.btnrow{
  display:flex;
  gap:10px;
  margin-top:10px;
  flex-wrap:wrap;
}

.btn{
  border:1px solid var(--line);
  background:var(--btn);
  color:var(--text);
  padding:10px 12px;
  border-radius:14px;
  font-size:14px;
  cursor:pointer;
  min-width:140px;
}

.btn.primary{
  border-color: rgba(57,182,209,.45);
  background: linear-gradient(180deg, rgba(57,182,209,.22), rgba(57,182,209,.10));
}

.btn:hover{ background:var(--btn2); }

.foot{
  text-align:center;
  color:var(--muted);
  font-size:12px;
  margin-top:12px;
}

.toast{
  position:fixed;
  left:50%;
  bottom:18px;
  transform:translateX(-50%);
  background:#000;
  color:#fff;
  padding:10px 14px;
  border-radius:999px;
  opacity:0;
  pointer-events:none;
  transition: opacity .2s ease, transform .2s ease;
  border:1px solid rgba(255,255,255,.08);
}

.toast.show{
  opacity:1;
  transform:translateX(-50%) translateY(-4px);
}
