@import url("https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300..800;1,300..800&display=swap");

:root {
  --bg: #0f172a;
  --card: #0b1220;
  --muted: #9aa4b2;
  --accent: #7dd3fc;
  --font: "Open sans";
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  text-decoration: none;
}

body {
  font-family: var(--font);
  background: linear-gradient(180deg, #071026 0%, #071a2b 60%);
  color: #e6eef6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.container {
  max-width: 1240px;
  width: 100%;
  margin: 0 auto;
  padding: 0 20px;
}

header {
  padding: 20px 0;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.02),
    rgba(255, 255, 255, 0.01)
  );
  box-shadow: 0 6px 30px rgba(2, 6, 23, 0.6);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  margin-bottom: 40px;
}

.header-cont {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), #60a5fa);
  display: grid;
  place-items: center;
  color: #012;
  font-weight: 700;
}

h1 {
  font-size: 18px;
  margin: 0;
}

p.sub {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.card {
  width: 100%;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.02),
    rgba(255, 255, 255, 0.01)
  );
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 6px 30px rgba(2, 6, 23, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.03);
  margin-bottom: 40px;
}

.controls {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.btn {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: inherit;
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
}

.btn.primary {
  background: var(--accent);
  color: #022;
  border: none;
}

.btn.ghost {
  background: transparent;
}

.header-btn {
  background: linear-gradient(135deg, var(--accent), #60a5fa);
  color: #202020;
}

.swap {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.areas {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

textarea {
  width: 100%;
  min-height: 240px;
  padding: 14px;
  border-radius: 10px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.04);
  color: inherit;
  font-size: 16px;
  font-family: var(--font);
  resize: none;
}

label {
  font-size: 14px;
  color: var(--muted);
  display: block;
  margin-bottom: 6px;
}

.col {
  display: flex;
  flex-direction: column;
}

footer {
  padding: 14px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.02);
}

.footer-cont {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.tg {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}

.small {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  font-size: 14px;
  color: var(--muted);
  margin-top: 20px;
}

@media (max-width: 860px) {
  .btn.primary {
    font-size: 14px;
  }

  .areas {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .logo {
    display: none;
  }
}
