:root {
  --bg: #0b0b0c;
  --card: rgba(255, 255, 255, 0.06);
  --stroke: rgba(255, 255, 255, 0.12);
  --text: rgba(255, 255, 255, 0.92);
  --muted: rgba(255, 255, 255, 0.72);
  --muted2: rgba(255, 255, 255, 0.56);
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  background: radial-gradient(1200px 600px at 50% 10%, rgba(255,255,255,0.10), transparent 60%), var(--bg);
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
}

.wrap {
  min-height: 100%;
  display: grid;
  place-items: center;
  padding: 24px;
}

.card {
  width: 100%;
  max-width: 560px;
  border: 1px solid var(--stroke);
  background: var(--card);
  border-radius: 18px;
  padding: 22px 20px;
  backdrop-filter: blur(14px);
}

.cardTop {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.brand {
  font-weight: 700;
  letter-spacing: 0.3px;
  opacity: 0.9;
}

.title {
  margin: 10px 0 6px;
  font-size: 26px;
  line-height: 1.15;
}

.lead {
  margin: 0 0 14px;
  color: var(--muted);
}

.form {
  margin-top: 10px;
  padding: 14px 14px;
  border: 1px solid var(--stroke);
  border-radius: 14px;
}

.label {
  display: block;
  font-size: 12px;
  color: var(--muted2);
  margin-bottom: 8px;
}

.row {
  display: flex;
  gap: 10px;
}

.input {
  flex: 1;
  border: 1px solid var(--stroke);
  background: rgba(255,255,255,0.04);
  color: var(--text);
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 14px;
  outline: none;
}

.btnPrimary, .btnGhost {
  appearance: none;
  border-radius: 12px;
  padding: 10px 12px;
  cursor: pointer;
  text-decoration: none;
  font-size: 14px;
  line-height: 1;
  white-space: nowrap;
}

.btnPrimary {
  border: 1px solid rgba(255,255,255,0.92);
  background: rgba(255,255,255,0.92);
  color: #0b0b0c;
}

.btnGhost {
  border: 1px solid var(--stroke);
  background: rgba(255,255,255,0.06);
  color: var(--text);
}

.status {
  margin: 10px 0 0;
  color: var(--muted2);
  font-size: 12px;
}

.result {
  margin-top: 14px;
  border: 1px solid var(--stroke);
  border-radius: 14px;
  padding: 14px 14px;
}

.kv {
  display: flex;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.kv:last-child { border-bottom: 0; }

.k {
  width: 90px;
  color: var(--muted2);
  font-size: 13px;
}

.v {
  flex: 1;
  color: var(--text);
  font-size: 14px;
}

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

.meta {
  margin-top: 10px;
  color: var(--muted2);
  font-size: 12px;
}

.fine {
  margin: 12px 0 0;
  color: var(--muted2);
  font-size: 12px;
}

.langSwitch {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.langSwitch__current {
  appearance: none;
  border: 1px solid var(--stroke);
  background: rgba(255,255,255,0.06);
  color: var(--text);
  border-radius: 999px;
  padding: 8px 10px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  line-height: 1;
}

.langSwitch__flag {
  font-size: 13px;
  line-height: 1;
}

.langSwitch__caret {
  font-size: 12px;
  opacity: 0.7;
}

.langSwitch__menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 150px;
  padding: 6px;
  border-radius: 14px;
  background: rgba(16,16,18,0.92);
  border: 1px solid var(--stroke);
  backdrop-filter: blur(14px);
  display: none;
  z-index: 20;
}

.langSwitch.is-open .langSwitch__menu {
  display: block;
}

.langSwitch__option {
  appearance: none;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text);
  width: 100%;
  text-align: left;
  cursor: pointer;
  border-radius: 10px;
  padding: 10px 10px;
  font-size: 13px;
}

.langSwitch__option:hover,
.langSwitch__option.is-active {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.10);
}

.is-hidden { display: none; }

@media (max-width: 520px) {
  .cardTop {
    align-items: flex-start;
    flex-direction: column;
  }

  .row {
    flex-direction: column;
  }
}