* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background: #020617;
  color: #e5e7eb;
}

.app {
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  padding: 20px;
  padding-bottom: 40px;
}

.header {
  margin-bottom: 20px;
}

.header h1 {
  margin: 0;
  font-size: 30px;
}

.header p {
  margin: 6px 0 0;
  color: #94a3b8;
}

.card {
  background: #0f172a;
  border: 1px solid #1e293b;
  border-radius: 18px;
  padding: 18px;
  margin-bottom: 16px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.25);
}

h2 {
  margin-top: 0;
  font-size: 20px;
}

label {
  display: block;
  margin: 14px 0 6px;
  color: #cbd5e1;
  font-size: 14px;
}

input {
  width: 100%;
  height: 48px;
  border: 1px solid #334155;
  border-radius: 12px;
  background: #020617;
  color: #f8fafc;
  padding: 0 14px;
  font-size: 16px;
}

.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

button {
  width: 100%;
  height: 50px;
  border: none;
  border-radius: 14px;
  margin-top: 16px;
  background: #2563eb;
  color: white;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
}

button.secondary {
  background: #334155;
}

button.danger {
  background: #dc2626;
}

button.small {
  width: auto;
  height: 38px;
  padding: 0 14px;
  margin-top: 0;
  font-size: 14px;
}

.result {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid #1e293b;
  padding: 12px 0;
}

.result:last-child {
  border-bottom: none;
}

.result span {
  color: #94a3b8;
}

.result strong {
  color: #f8fafc;
}

.section-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.legs-list {
  margin-top: 12px;
}

.leg {
  background: #020617;
  border: 1px solid #1e293b;
  border-radius: 14px;
  padding: 14px;
  margin-bottom: 12px;
}

.leg-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.leg-title {
  font-weight: bold;
}

.leg-date {
  color: #94a3b8;
  font-size: 13px;
}

.leg button {
  width: auto;
  height: 34px;
  margin: 0;
  padding: 0 12px;
  font-size: 13px;
  background: #7f1d1d;
}

.empty {
  color: #94a3b8;
  text-align: center;
  padding: 12px;
}

@media (max-width: 420px) {
  .grid {
    grid-template-columns: 1fr;
  }

  .header h1 {
    font-size: 26px;
  }
}

.install-banner {
  position: sticky;
  top: 0;
  z-index: 999;
  width: 100%;
  background: #2563eb;
  color: #ffffff;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
}

.install-banner.hidden {
  display: none;
}

.install-banner strong {
  display: block;
  font-size: 15px;
}

.install-banner p {
  margin: 2px 0 0;
  font-size: 13px;
  color: #dbeafe;
}

.install-banner button {
  width: auto;
  height: 38px;
  margin: 0;
  padding: 0 14px;
  border-radius: 10px;
  background: #ffffff;
  color: #1d4ed8;
  font-size: 14px;
}

.close-banner {
  background: transparent !important;
  color: #ffffff !important;
  font-size: 24px !important;
  padding: 0 6px !important;
}

@media (max-width: 420px) {
  .install-banner {
    align-items: flex-start;
  }

  .install-banner p {
    max-width: 180px;
  }
}