:root {
  --bg: #0f1720;
  --card: #0f1720;
  --muted: #94a3b8;
  --accent: #0ea5ff;
  --glass: rgba(255,255,255,0.03);
  --white: #f8fafc;
  --radius: 12px;
}

*{box-sizing:border-box}
html,body{height:100%}
body {
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  margin: 0;
  background: linear-gradient(180deg,#071024 0%, #081225 60%);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
}

.container {
  width: 100%;
  max-width: 760px;
}

.brand {
  margin: 0;
  font-size: 2.2rem;
  letter-spacing: -0.02em;
  color: var(--white);
}
.tagline {
  margin: 6px 0 22px 0;
  color: var(--muted);
  font-size: 0.95rem;
}

/* Card */
.card {
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
  padding: 20px;
  border-radius: var(--radius);
  box-shadow: 0 6px 24px rgba(2,6,23,0.6);
  margin-bottom: 16px;
}

/* Small card */
.small-card { padding:14px; }

/* Form */
.label { display:block; font-size:0.9rem; color:var(--muted); margin-bottom:6px; }

.input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.04);
  background: rgba(255,255,255,0.02);
  color: var(--white);
  outline: none;
  font-size: 1rem;
  margin-bottom: 12px;
  transition: box-shadow .15s ease, transform .08s;
}
.input:focus { box-shadow: 0 6px 24px rgba(14,165,255,0.07); transform: translateY(-1px); }

/* slug row */
.slug-row { display:flex; gap:8px; align-items:center; }
.slug-input{ flex:1 }

/* Buttons */
.btn {
  border: 0;
  padding: 10px 14px;
  border-radius: 10px;
  background: rgba(255,255,255,0.04);
  color: var(--white);
  cursor: pointer;
  font-weight: 600;
}
.btn.small{ padding:8px 10px; font-size:0.9rem }
.btn.primary {
  background: linear-gradient(90deg,var(--accent),#60a5fa);
  color: #022;
  box-shadow: 0 8px 24px rgba(14,165,255,0.12);
}
.btn.ghost { background: transparent; color: var(--muted); border:1px dashed rgba(255,255,255,0.03); }

/* Controls row */
.controls { display:flex; gap:12px; align-items:center; margin-top:6px; }

/* Status */
.status { color: var(--muted); font-size: 0.9rem; }

/* Result */
.result { margin-top:18px; padding:12px; border-radius:10px; background:var(--glass); }
.hidden { display:none; }
.result-row { display:flex; gap:10px; align-items:center; flex-wrap:wrap; }
.short-url { color:var(--accent); font-weight:600; text-decoration:none; }

/* meta and qr */
.meta { margin-top:10px; color:var(--muted); display:flex; gap:18px; flex-wrap:wrap; }
.qr { margin-top:10px; }
.qr img { width:86px; height:86px; border-radius:8px; background:#fff; padding:6px; }

/* list */
.list { list-style:none; padding:0; margin:10px 0 0 0; max-height:220px; overflow:auto; }
.list li { padding:8px; border-radius:8px; background:rgba(255,255,255,0.01); display:flex; justify-content:space-between; gap:12px; margin-bottom:8px; }
.list a { color:var(--accent); text-decoration:none; }

/* footer */
footer { margin-top:8px; color:var(--muted); font-size:0.85rem; }

/* Responsivo */
@media (max-width:520px){
  .controls{flex-direction:column;align-items:stretch}
  .result-row{flex-direction:column;align-items:flex-start}
}

/* ---------- Tela de redirecionamento ---------- */
.redirect-screen {
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: radial-gradient(circle at center, #0b1220 0%, #050810 100%);
  color: #f8fafc;
  text-align: center;
  padding: 24px;
}

.redirect-logo {
  width: 120px;
  height: auto;
  margin-bottom: 20px;
  filter: drop-shadow(0 4px 12px rgba(14,165,255,0.3));
}

.redirect-screen h1 {
  font-size: 1.6rem;
  margin: 0;
  font-weight: 700;
  color: #0ea5ff;
}

.redirect-screen p {
  color: #cbd5e1;
  margin: 12px 0 28px;
  font-size: 1rem;
}

.redirect-progress {
  width: 240px;
  height: 6px;
  background: rgba(255,255,255,0.1);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 20px;
}
.redirect-progress div {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #0ea5ff, #60a5fa);
  transition: width 2.5s linear;
}

.redirect-screen a {
  color: #38bdf8;
  text-decoration: none;
  word-break: break-all;
}
.redirect-screen a:hover {
  text-decoration: underline;
}
