:root{
  --bg: #070a10;
  --card: rgba(16, 22, 35, .78);
  --card2: rgba(12, 16, 26, .70);
  --text: #e9efff;
  --muted: rgba(233,239,255,.68);
  --line: rgba(160, 190, 255, .14);
  --line2: rgba(160, 190, 255, .10);
  --focus: rgba(125, 175, 255, .35);

  --ok: #58d68d;
  --warn: #f7c948;
  --bad: #ff6b6b;
  --live: #7aa7ff;

  --btn: linear-gradient(135deg, rgba(87,140,255,1), rgba(45,108,223,1));
  --btn2: linear-gradient(135deg, rgba(63,120,240,1), rgba(34,88,190,1));

  --r: 18px;
  --shadow: 0 24px 70px rgba(0,0,0,.48);
}

*{ box-sizing: border-box; }
html, body{ height: 100%; }
body{
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
}

.bg{
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
}
.bg__grid{
  position: absolute;
  inset: -20%;
  background-image:
    linear-gradient(to right, rgba(255,255,255,.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 48px 48px;
  opacity: .12;
  transform: rotate(-8deg);
}
.bg__glow{
  position: absolute;
  width: 900px;
  height: 900px;
  left: -220px;
  top: -260px;
  background: radial-gradient(circle at 30% 30%, rgba(122,167,255,.35), transparent 60%);
  filter: blur(10px);
  opacity: .9;
}

.wrap{
  max-width: 980px;
  margin: 0 auto;
  padding: 28px 16px 40px;
}

.hero{
  padding: 10px 2px 18px;
}
.brand{
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}
.brand__mark{
  width: 44px; height: 44px;
  border-radius: 14px;
  display: grid; place-items: center;
  background: rgba(122,167,255,.18);
  border: 1px solid var(--line);
  box-shadow: 0 12px 30px rgba(0,0,0,.25);
  font-weight: 900;
  letter-spacing: .5px;
}
.brand__title{ font-weight: 800; letter-spacing: .2px; }
.brand__tag{ color: var(--muted); font-size: 13px; margin-top: 2px; }

.hero__h1{
  font-size: clamp(28px, 3.2vw, 40px);
  margin: 4px 0 8px;
  letter-spacing: -.4px;
}
.hero__p{
  margin: 0;
  color: var(--muted);
  max-width: 64ch;
  line-height: 1.5;
}

.panel{
  margin-top: 12px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.panel__head{
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 18px 14px;
  border-bottom: 1px solid var(--line2);
  background: linear-gradient(180deg, rgba(255,255,255,.04), transparent);
}
.panel__title{
  margin: 0;
  font-size: 18px;
}
.panel__sub{
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.trust{
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
}
.trust__item{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(12, 16, 26, .42);
  color: var(--muted);
  font-size: 12px;
}
.dot{
  width: 8px; height: 8px;
  border-radius: 999px;
  background: rgba(255,255,255,.25);
}
.dot--ok{ background: rgba(88,214,141,.9); }
.dot--live{ background: rgba(122,167,255,.95); }
.dot--pending{ background: rgba(247,201,72,.95); }

.form{ padding: 18px; }
.grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.field{ min-width: 0; }
.field--wide{ grid-column: 1 / -1; }

.label{
  display: block;
  font-weight: 700;
  font-size: 13px;
  margin-bottom: 8px;
  color: rgba(233,239,255,.92);
}

.control{
  position: relative;
}

.input{
  width: 100%;
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(7,10,16,.65);
  color: var(--text);
  outline: none;
  transition: box-shadow .15s ease, border-color .15s ease, transform .05s ease;
}
.input::placeholder{ color: rgba(233,239,255,.42); }
.input:focus{
  border-color: rgba(125,175,255,.55);
  box-shadow: 0 0 0 4px var(--focus);
}
.input:active{ transform: translateY(1px); }

.subbox{
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(7,10,16,.55);
}
.subbox__prefix,
.subbox__suffix{
  color: rgba(233,239,255,.60);
  font-size: 13px;
  user-select: none;
  white-space: nowrap;
}
.input--sub{
  border: 0;
  box-shadow: none !important;
  background: transparent;
  padding: 10px 6px;
  border-radius: 12px;
  min-width: 0;
}
.badge{
  margin-left: auto;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  border: 1px solid var(--line);
  color: rgba(233,239,255,.72);
  background: rgba(12, 16, 26, .52);
  white-space: nowrap;
}

.hint{
  margin: 8px 2px 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}
.status{
  margin: 8px 2px 0;
  font-size: 24px;
  color: rgba(233,239,255,.72);
}
.error{
  margin: 8px 2px 0;
  font-size: 12px;
  color: var(--bad);
  min-height: 16px;
}

.actions{
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 14px;
  align-items: start;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line2);
}

.btn{
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 13px 14px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.10);
  background: var(--btn);
  color: white;
  font-weight: 850;
  letter-spacing: .2px;
  cursor: pointer;
  box-shadow: 0 18px 40px rgba(0,0,0,.35);
  transition: transform .07s ease, filter .15s ease, opacity .15s ease;
}
.btn:hover{ filter: brightness(1.05); }
.btn:active{ transform: translateY(1px); }
.btn:disabled{
  opacity: .55;
  cursor: not-allowed;
  filter: grayscale(.2);
}
.btn__spin{
  width: 16px; height: 16px;
  border-radius: 999px;
  border: 2px solid rgba(255,255,255,.35);
  border-top-color: rgba(255,255,255,.95);
  display: none;
  animation: spin .8s linear infinite;
}
.btn.is-loading .btn__spin{ display: inline-block; }
.btn.is-loading .btn__text{ opacity: .9; }

@keyframes spin { to { transform: rotate(360deg); } }

.note{
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(12,16,26,.42);
}
.note__title{ font-weight: 800; font-size: 13px; margin-bottom: 4px; }
.note__text{ color: var(--muted); font-size: 12px; line-height: 1.45; }

.foot{
  margin-top: 14px;
  color: var(--muted);
  font-size: 12px;
}

.footer{
  margin-top: 16px;
  color: rgba(233,239,255,.55);
  text-align: center;
  font-size: 12px;
}

/* estados visuales */
.is-ok .badge{ border-color: rgba(88,214,141,.35); color: rgba(88,214,141,.95); background: rgba(88,214,141,.12); }
.is-bad .badge{ border-color: rgba(255,107,107,.35); color: rgba(255,107,107,.95); background: rgba(255,107,107,.10); }
.is-live .badge{ border-color: rgba(122,167,255,.35); color: rgba(122,167,255,.95); background: rgba(122,167,255,.12); }

.toast{
  position: fixed;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  width: min(680px, calc(100% - 24px));
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(10, 14, 22, .75);
  color: rgba(233,239,255,.9);
  box-shadow: 0 22px 60px rgba(0,0,0,.55);
  backdrop-filter: blur(8px);
  display: none;
}
.toast.show{ display: block; }
.toast.ok{ border-color: rgba(88,214,141,.35); }
.toast.err{ border-color: rgba(255,107,107,.35); }

/* responsive */
@media (max-width: 860px){
  .panel__head{ flex-direction: column; align-items: flex-start; }
  .trust{ justify-content: flex-start; }
  .actions{ grid-template-columns: 1fr; }
}
@media (max-width: 720px){
  .grid{ grid-template-columns: 1fr; }
  .subbox{ flex-wrap: wrap; }
  .badge{ margin-left: 0; }
}
.check{
  display:flex;
  gap:10px;
  align-items:flex-start;
  padding: 12px 12px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(12,16,26,.35);
  color: rgba(233,239,255,.85);
  font-size: 13px;
  line-height: 1.35;
}
.check input{
  margin-top: 2px;
  width: 18px;
  height: 18px;
}
.check a{
  color: rgba(122,167,255,.95);
  text-decoration: none;
  font-weight: 800;
}
.check a:hover{ text-decoration: underline; }
