* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: #f7f7fb;
  color: #151526;
}

.app {
  max-width: 430px;
  min-height: 100vh;
  margin: 0 auto;
  padding: 24px 18px;
Padding-bottom: 110px;
  background: linear-gradient(180deg, #ffffff 0%, #f7f7fb 100%);
}

.top {
  text-align: left;
  margin-bottom: 24px;
}

.top h1 {
  font-size: 38px;
  margin: 0;
  color: #5b2eff;
}

.top p {
  font-size: 16px;
  color: #555;
  margin-top: 8px;
}

.card {
  background: white;
  border-radius: 22px;
  padding: 20px;
  margin-bottom: 18px;
  box-shadow: 0 12px 30px rgba(21, 21, 38, 0.08);
  border: 1px solid #eeeeF5;
}

.card h2 {
  margin-top: 0;
  font-size: 22px;
}

input, select {
  width: 100%;
  padding: 14px;
  border-radius: 14px;
  border: 1px solid #ddd;
  margin-bottom: 12px;
  font-size: 15px;
}

button {
  width: 100%;
  background: #5b2eff;
  color: white;
  border: none;
  padding: 15px;
  border-radius: 15px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
}

button:hover {
  opacity: 0.9;
}


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

  padding: 18px 0;

  border-bottom: 1px solid #ececec;
}

.green {
  color: #38b66b;
  font-weight: bold;
}

.red {
  color: #e94057;
  font-weight: bold;
}
.checkbox-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  font-size: 15px;
}

.checkbox-item input {
  width: auto;
  margin: 0;
}
.bottom-nav {
  position: fixed;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);

  width: calc(100% - 36px);
  max-width: 430px;

  background: white;
  display: flex;
  justify-content: space-around;
  padding: 14px 10px;

  border-radius: 22px;
  box-shadow: 0 -5px 25px rgba(0,0,0,0.08);
  z-index: 999;
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 13px;
  color: #888;
  gap: 5px;
}

.nav-item.active {
  color: #5b2eff;
  font-weight: bold;
}
.secondary-button {
  background: #38b66b;
  margin-top: 10px;
}
.danger-button {
  background: #e94057;
  margin-top: 10px;
}
.danger-button-small {
  background: #e94057;
  width: auto;
  padding: 8px 12px;
  font-size: 13px;
  border-radius: 10px;
}
.balance-item input[type="checkbox"] {
  width: 22px;
  height: 22px;
}
/* Botón pequeño eliminar */

.balance-item button {
  width: auto;
  min-width: 50px;

  padding: 10px 16px;

  border-radius: 14px;

  font-size: 15px;
}

/* Botón abrir grupo */

.balance-item button:not(.danger-button-small) {
  min-width: 90px;
}

/* Botón borrar pequeño */

.danger-button-small {
  background: #ff4d6d;

  width: auto;

  min-width: 80px;

  padding: 10px 14px;

  border-radius: 14px;

  font-size: 14px;
}

/* Nombre del integrante */

.balance-item span {
  flex: 1;
}

/* Mejor separación */

.balance-item strong {
  font-size: 16px;
}

/* Fecha pequeña */

.balance-item small {
  color: #777;
}
.main-logo {
  width: 260px;
  height: auto;
  display: block;
  margin-bottom: 10px;
}
.why-button {
  width: auto;
  margin-top: 8px;
  padding: 6px 12px;
  font-size: 13px;
  border-radius: 10px;
  background: #f0ecff;
  color: #5b2eff;
}