* {
  box-sizing: border-box;
}

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

.hidden {
  display: none !important;
}

.auth {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.auth-box, .panel, .modal-box {
  background: #171f35;
  padding: 25px;
  border-radius: 15px;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 5px 25px #0008;
}

.auth-box {
  text-align: center;
}

h1 {
  color: #00e5a0;
}

input, select {
  width: 100%;
  padding: 13px;
  margin: 8px 0;
  border: 1px solid #39445f;
  border-radius: 8px;
  background: #0d1529;
  color: white;
}

button {
  background: #00c98b;
  color: #071b16;
  border: none;
  padding: 12px 18px;
  margin: 5px 0;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
}

button:hover {
  background: #00efa5;
}

a {
  color: #00e5a0;
}

.right {
  text-align: right;
}

header {
  background: #171f35;
  padding: 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

main {
  max-width: 1000px;
  margin: auto;
  padding: 20px;
}

.balance {
  background: linear-gradient(120deg, #075c50, #142c54);
  padding: 20px;
  border-radius: 15px;
  margin-bottom: 25px;
}

.panel {
  max-width: 100%;
  margin-bottom: 25px;
}

.team {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 5px;
}

.preview {
  overflow-x: auto;
  margin-top: 20px;
  background: white;
  padding: 5px;
  border-radius: 10px;
}

canvas {
  width: 100%;
  height: auto;
  display: block;
}

.modal {
  position: fixed;
  inset: 0;
  background: #000b;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 15px;
  z-index: 10;
}

.modal-box {
  text-align: center;
}

.close {
  float: right;
  background: #ef4444;
  color: white;
}

@media(max-width:600px) {
  header {
    display: block;
    text-align: center;
  }

  .team {
    grid-template-columns: 1fr 1fr;
  }
}