:root {
  --ink: #161842;
  --violet: #4a1eb7;
  --hot: #ff4b5c;
  --lime: #d5fa42;
  --paper: #f8f7f3;
  --muted: #72758e;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, sans-serif;
}
#app {
  max-width: 680px;
  margin: auto;
  min-height: 100vh;
  background: #fff;
}
header {
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 26px;
  border-bottom: 1px solid #edecf4;
}
.brand {
  font-size: 28px;
  font-weight: 900;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -2px;
}
.brand span {
  color: var(--hot);
}
.user {
  display: flex;
  gap: 13px;
  align-items: center;
}
.profile {
  border: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.user a {
  font-size: 20px;
  color: var(--violet);
  text-decoration: none;
}
main {
  padding: 22px 22px 112px;
}
.hero {
  background: var(--violet);
  border-radius: 25px;
  padding: 25px;
  color: #fff;
  box-shadow: 0 13px 25px #43218a29;
}
.hero p {
  margin: 0;
  color: #dcd1ff;
  font-size: 14px;
}
.score {
  display: flex;
  align-items: baseline;
  gap: 7px;
  margin: 8px 0;
}
.score strong {
  font-size: 59px;
  letter-spacing: -4px;
}
.score span {
  font-weight: 700;
  color: #dcd1ff;
}
.meter {
  height: 9px;
  background: #7153c8;
  border-radius: 9px;
  overflow: hidden;
}
.meter i {
  display: block;
  height: 100%;
  width: 50%;
  background: var(--lime);
  border-radius: inherit;
}
.hero small {
  display: block;
  margin-top: 12px;
  color: #ddd4fa;
}
.tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  margin: 25px 0 16px;
  border-bottom: 1px solid #e6e4ee;
}
.tabs button {
  border: 0;
  background: transparent;
  padding: 12px 4px;
  color: var(--muted);
  font-weight: 700;
  cursor: pointer;
}
.tabs .active {
  color: var(--violet);
  border-bottom: 3px solid var(--violet);
}
.card {
  padding: 17px;
  border: 1px solid #e9e7f0;
  border-radius: 17px;
  margin-bottom: 11px;
}
.card-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.card h3 {
  margin: 0;
  font-size: 16px;
}
.card p {
  font-size: 13px;
  color: var(--muted);
  margin: 5px 0;
}
.amount {
  font-weight: 900;
  font-size: 18px;
  white-space: nowrap;
}
.actions {
  display: flex;
  gap: 8px;
  margin-top: 14px;
}
.btn {
  border: 0;
  border-radius: 11px;
  padding: 10px 12px;
  background: #eeeaf9;
  color: var(--violet);
  font-weight: 800;
  cursor: pointer;
}
.btn.primary {
  background: var(--violet);
  color: #fff;
}
.chip {
  font-size: 11px;
  padding: 4px 8px;
  border-radius: 99px;
  background: #fff0f1;
  color: #ca283c;
  font-weight: 700;
}
.empty {
  text-align: center;
  padding: 52px 16px;
  color: var(--muted);
}
.empty b {
  display: block;
  font-size: 43px;
  color: var(--hot);
  margin-bottom: 12px;
}
.group {
  display: flex;
  align-items: center;
  gap: 13px;
  text-decoration: none;
  color: inherit;
}
.group-icon {
  background: var(--lime);
  width: 41px;
  height: 41px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 20px;
}
.fab {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  border: 0;
  border-radius: 99px;
  background: var(--hot);
  color: #fff;
  padding: 16px 23px;
  font-size: 15px;
  font-weight: 900;
  box-shadow: 0 10px 23px #ff4b5c4d;
  white-space: nowrap;
  cursor: pointer;
}
.login {
  min-height: 100vh;
  padding: 78px 34px;
  display: flex;
  flex-direction: column;
}
.ball {
  font-size: 38px;
  color: var(--lime);
  text-shadow: 7px 0 var(--violet);
  margin-bottom: auto;
}
.eyebrow {
  color: var(--hot);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 12px;
}
.login h1 {
  font-size: 52px;
  line-height: 0.95;
  letter-spacing: -3px;
  margin: 12px 0;
}
.login em {
  color: var(--violet);
  font-style: normal;
}
.login > p:not(.eyebrow) {
  color: var(--muted);
  line-height: 1.5;
}
.loginbtn {
  margin: 24px 0 40px;
  background: var(--violet);
  color: #fff;
  text-decoration: none;
  font-weight: 900;
  border-radius: 15px;
  padding: 17px;
  text-align: center;
}
.login small {
  color: var(--muted);
  font-size: 12px;
}
.setup {
  margin: 20px 0;
  padding: 15px;
  background: #fff3d9;
  border-radius: 12px;
  color: #725000;
}
dialog {
  border: 0;
  border-radius: 24px;
  padding: 25px;
  max-width: 570px;
  width: calc(100% - 32px);
  color: var(--ink);
  box-shadow: 0 18px 60px #17173444;
}
dialog::backdrop {
  background: #14112d88;
}
dialog h2 {
  margin: 0 0 18px;
}
label {
  display: block;
  font-size: 13px;
  font-weight: 800;
  margin: 14px 0 5px;
}
input, select {
  width: 100%;
  padding: 13px;
  border: 1px solid #dedbe9;
  border-radius: 10px;
  font: inherit;
  background: #fff;
}
.people {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 7px;
}
.person {
  padding: 10px;
  border: 1px solid #e4e1eb;
  border-radius: 9px;
  font-size: 13px;
}
.person input {
  width: auto;
  margin-right: 6px;
}
.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 20px;
}
.pix {
  word-break: break-all;
  background: #f4f2fa;
  padding: 11px;
  border-radius: 9px;
  font-size: 12px;
}
@media (max-width: 520px) {
  main {
    padding: 18px 16px 108px;
  }
  .hero {
    border-radius: 20px;
  }
  .score strong {
    font-size: 53px;
  }
  .login h1 {
    font-size: 47px;
  }
}
