:root{
  --bg0:#05070a;
  --bg1:#0b1020;
  --card:#070b12cc;
  --border:#1eea8a55;
  --border2:#3bffb455;
  --text:#d9ffe9;
  --muted:#9becc4;
  --danger:#ff5c7c;
  --warn:#ffd36a;
  --ok:#29ff8a;
  --shadow: 0 18px 60px rgba(0,0,0,.55);
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

*{ box-sizing:border-box; }
html,body{ height:100%; }
body{
  margin:0;
  font-family: var(--mono);
  color: var(--text);
  background: radial-gradient(1200px 800px at 50% 20%, #101a2f 0%, var(--bg0) 60%, #000 100%);
  overflow-x:hidden;
}

/* Background layers */
.bg{ position:fixed; inset:0; z-index:-1; }
.matrix{ position:absolute; inset:0; width:100%; height:100%; display:block; opacity:.62; filter:saturate(1.1) contrast(1.05); }
.vignette{
  position:absolute; inset:-20%;
  background: radial-gradient(closest-side at 50% 35%, transparent 0%, rgba(0,0,0,.35) 55%, rgba(0,0,0,.85) 100%);
  pointer-events:none;
}
.scanlines{
  position:absolute; inset:0;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255,255,255,0.03) 0px,
    rgba(255,255,255,0.03) 1px,
    rgba(0,0,0,0) 2px,
    rgba(0,0,0,0) 5px
  );
  opacity:.25;
  mix-blend-mode: overlay;
  pointer-events:none;
}
.noise{
  position:absolute; inset:0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23n)' opacity='.35'/%3E%3C/svg%3E");
  opacity:.08;
  mix-blend-mode: soft-light;
  pointer-events:none;
}

.wrap{
  min-height:100%;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  padding: clamp(18px, 4vw, 42px);
  gap: 14px;
}

.card{
  width:min(520px, 92vw);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(7,11,18,.88), rgba(7,11,18,.72));
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
  overflow:hidden;
}

.card__header{
  display:flex;
  gap:12px;
  align-items:flex-start;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(90deg, rgba(30,234,138,.10), rgba(0,0,0,0));
}
.terminal-dots{ display:flex; gap:7px; padding-top:4px; }
.dot{ width:10px; height:10px; border-radius:50%; opacity:.95; box-shadow: 0 0 0 1px rgba(255,255,255,.08) inset; }
.dot--red{ background:#ff5c7c; }
.dot--yellow{ background:#ffd36a; }
.dot--green{ background:#29ff8a; }

.title{ display:flex; flex-direction:column; gap:4px; }
.title__top{ font-weight:600; letter-spacing:.08em; font-size:12px; color: var(--muted); }
.title__bottom{
  font-size: 13px;
  color: var(--text);
  opacity:.95;
  position:relative;
  padding-right:10px;
}
.title__bottom::after{
  content:"";
  display:inline-block;
  width:8px;
  height:1.1em;
  margin-left:6px;
  background: var(--ok);
  opacity:.9;
  vertical-align:-2px;
  animation: blink 1s steps(2, start) infinite;
}
@keyframes blink{ 50%{ opacity:0; } }

.card__body{ padding: 18px 16px 16px; }
.hint{ margin:0 0 14px; color: rgba(217,255,233,.78); font-size: 12.5px; line-height:1.45; }

.form{ display:flex; flex-direction:column; gap: 14px; }
.field{ display:flex; flex-direction:column; gap: 7px; }
.field__label{ font-size: 12px; color: rgba(155,236,196,.92); letter-spacing:.02em; }
.field__control{
  display:flex;
  align-items:center;
  gap:10px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(30,234,138,.30);
  background: rgba(2,4,8,.55);
  box-shadow: 0 0 0 1px rgba(0,0,0,.25) inset;
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.field__control:focus-within{
  border-color: rgba(59,255,180,.70);
  box-shadow: 0 0 0 4px rgba(30,234,138,.10);
  transform: translateY(-1px);
}
.prompt{
  color: rgba(217,255,233,.62);
  font-weight:600;
  user-select:none;
}
input{
  flex:1;
  border:0;
  outline:0;
  background: transparent;
  color: var(--text);
  font-size: 14px;
  font-family: var(--mono);
}
input::placeholder{ color: rgba(217,255,233,.35); }
.field__help{ font-size: 11.5px; color: rgba(155,236,196,.70); }

.actions{ display:flex; gap:10px; margin-top: 2px; }
.btn{
  flex:1;
  border-radius: 12px;
  padding: 11px 12px;
  border: 1px solid rgba(59,255,180,.65);
  background: linear-gradient(180deg, rgba(30,234,138,.22), rgba(30,234,138,.08));
  color: var(--text);
  font-family: var(--mono);
  font-weight:600;
  letter-spacing:.02em;
  cursor:pointer;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease, border-color .12s ease;
}
.btn:hover{ transform: translateY(-1px); box-shadow: 0 10px 28px rgba(0,0,0,.35); }
.btn:active{ transform: translateY(0px); }
.btn:disabled{ opacity:.6; cursor:not-allowed; transform:none; box-shadow:none; }
.btn--ghost{
  flex:0 0 auto;
  min-width: 110px;
  border-color: rgba(217,255,233,.30);
  background: rgba(0,0,0,.18);
}

.tweet-actions{
  margin: 8px 0 14px;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid rgba(30,234,138,.22);
  background: rgba(2,4,8,.40);
}
.tweet-actions__row{
  display:flex;
  gap:10px;
}
.check{
  display:flex;
  align-items:center;
  gap:10px;
  margin-top: 10px;
  font-size: 12px;
  color: rgba(217,255,233,.78);
  user-select:none;
}
.check input{
  width: 16px;
  height: 16px;
  accent-color: #29ff8a;
}
.check.is-invalid{
  color: rgba(255,92,124,.92);
}

.status{
  min-height: 18px;
  font-size: 12px;
  color: rgba(217,255,233,.78);
  padding-top: 2px;
  white-space: pre-line;
}
.status--ok{ color: var(--ok); }
.status--err{ color: var(--danger); }
.status--warn{ color: var(--warn); }

.details{
  margin-top: 10px;
  border-top: 1px dashed rgba(30,234,138,.25);
  padding-top: 10px;
  color: rgba(217,255,233,.70);
  font-size: 12px;
}
.details summary{
  cursor:pointer;
  color: rgba(155,236,196,.9);
}
.details code{
  background: rgba(30,234,138,.10);
  border: 1px solid rgba(30,234,138,.20);
  padding: 1px 6px;
  border-radius: 999px;
}

.footer{
  width:min(520px, 92vw);
  display:flex;
  justify-content:space-between;
  font-size: 11.5px;
  color: rgba(217,255,233,.55);
  padding: 0 6px;
}

/* Invalid state */
.is-invalid .field__control{
  border-color: rgba(255,92,124,.70);
  box-shadow: 0 0 0 4px rgba(255,92,124,.10);
}
.is-invalid .field__help{ color: rgba(255,92,124,.85); }

@media (prefers-reduced-motion: reduce){
  .title__bottom::after{ animation:none; opacity:.6; }
  .btn, .field__control{ transition:none; }
  .matrix{ display:none; }
}

