.page { padding: 40px 20px; max-width: 900px; margin: 0 auto; }
.page h1 { font-size: 26px; font-weight: 700; color: #fff; margin-bottom: 6px; }
.page .subtitle { color: #888; margin-bottom: 24px; font-size: 14px; }

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

.card {
  background: #0d0d0d; border: 1px solid #262626; border-radius: 12px; padding: 24px;
}

label {
  display: block; font-size: 13px; font-weight: 600; color: #ccc;
  margin-bottom: 8px;
}
label span { color: #ff4444; font-weight: 700; }

input[type="number"], select {
  width: 100%; padding: 12px 14px; background: #141414; border: 1px solid #2a2a2a;
  border-radius: 8px; color: #fff; font-size: 16px; outline: none;
  font-family: inherit;
}
input[type="number"]:focus, select:focus { border-color: #ff4444; }

.input-with-prefix { display: flex; align-items: stretch; }
.input-with-prefix .prefix {
  background: #1a1a1a; border: 1px solid #2a2a2a; border-right: none;
  padding: 12px 16px; border-radius: 8px 0 0 8px; color: #aaa; font-weight: 600;
  display: flex; align-items: center; min-width: 44px; justify-content: center;
}
.input-with-prefix input { border-radius: 0 8px 8px 0; }

input[type="range"] {
  width: 100%; height: 6px; background: #1a1a1a; border-radius: 3px;
  -webkit-appearance: none; appearance: none; outline: none; cursor: pointer;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 18px; height: 18px; border-radius: 50%;
  background: #ff4444; cursor: pointer; border: 2px solid #fff;
}
input[type="range"]::-moz-range-thumb {
  width: 18px; height: 18px; border-radius: 50%;
  background: #ff4444; cursor: pointer; border: 2px solid #fff;
}

.tip-presets { display: flex; gap: 6px; margin-top: 10px; flex-wrap: wrap; }
.preset {
  padding: 8px 14px; background: #141414; border: 1px solid #333;
  color: #ccc; border-radius: 6px; font-size: 13px; cursor: pointer; transition: all 0.15s;
}
.preset:hover { border-color: #ff4444; color: #fff; }

.people-row { display: flex; align-items: stretch; gap: 8px; }
.step-btn {
  width: 44px; background: #141414; border: 1px solid #2a2a2a; color: #fff;
  font-size: 20px; border-radius: 8px; cursor: pointer; transition: all 0.15s;
}
.step-btn:hover { border-color: #ff4444; background: #1f1f1f; }
#people { width: 80px; flex: 0 0 auto; text-align: center; }
.people-label { align-self: center; color: #888; font-size: 14px; }

/* Results panel */
.results { display: flex; flex-direction: column; justify-content: center; }
.result-row {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 8px 0; font-size: 15px;
}
.result-label { color: #888; }
.result-val { color: #fff; font-weight: 600; font-family: 'SF Mono', Monaco, monospace; }
.result-row.big .result-label { color: #ccc; font-size: 16px; font-weight: 600; }
.result-row.big .result-val { font-size: 34px; color: #ff4444; font-weight: 700; }
.result-row.small { font-size: 13px; }
.result-row.small .result-label { color: #666; }
.result-row.small .result-val { color: #aaa; }
.result-divider { border-top: 1px solid #262626; margin: 12px 0; }

@media (max-width: 700px) {
  .tip-grid { grid-template-columns: 1fr; }
  .result-row.big .result-val { font-size: 28px; }
}
