body {
  font-family: "Inter", Arial, sans-serif;
  background: #f6f7fb;
  margin: 0;
  padding: 20px;
  color: #222;
}

.wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  padding: 20px 24px;
  flex: 1;
  min-width: 340px;
}

h1 {
  font-weight: 700;
  color: #ff5722; /* Shopee orange header */
}

h3 {
  font-weight: 700;
}

.sub {
  font-size: 13px;
  color: #666;
  margin-bottom: 14px;
}

.section {
  border-top: 1px solid #eee;
  padding-top: 12px;
  margin-top: 12px;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 20px;
  align-items: start;
}

label {
  font-size: 14px;
  font-weight: 600;
  display: block;
  margin-bottom: 4px;
}

input[type="number"],
select {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 14px;
  box-sizing: border-box;
}

.form-group {
  margin-top: 10px;
}

label + input,
label + select {
  margin-top: 4px;
}

.section > div {
  margin-bottom: 12px;
}

button {
  padding: 8px 16px;
  font-size: 14px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

button.primary {
  background: #ff5722;
  color: #fff;
  font-weight: 600;
}

button.ghost {
  background: #f3f3f3;
  color: #333;
}

.footer {
  margin-top: 10px;
  text-align: center;
  color: #888;
}

.results {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.result-line {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  padding: 4px 0;
}

.result-line.total {
  font-weight: 600;
  border-top: 1px solid #eee;
  padding-top: 6px;
}

.result-line.danger {
  color: #e53935;
}

.result-line .big {
  font-size: 18px;
  font-weight: 700;
}

/* Profit color states */
#netProfit.green {
  color: green;
}
#netProfit.red {
  color: red;
}

.muted {
  color: #555;
}

/* Mobile layout fix */
@media (max-width: 600px) {
  .grid-2 {
    grid-template-columns: 1fr;
  }
}
