.tip-card { --tool-accent: var(--site-light); padding: 28px; }
.tip-title-bar { background: linear-gradient(135deg, var(--tool-accent) 0%, var(--site-dark-2) 100%); border-radius: 10px 10px 0 0; padding: 18px 24px; margin: -28px -28px 24px; }
.tip-title-bar h1 { color: #fff; margin: 0; font-size: 1.4em; text-align: center; display: flex; align-items: center; justify-content: center; gap: 10px; }

/* ===== Inputs ===== */
.tip-inputs { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-bottom: 26px; }
.tip-field-head { margin-bottom: 8px; }
.tip-field label { font-weight: 700; font-size: .92em; color: #23272f; }
.tip-input-box { display: flex; align-items: center; gap: 6px; border: 1px solid #ddd; border-radius: 8px; padding: 9px 12px; transition: border-color .15s ease; }
.tip-input-box:focus-within { border-color: var(--site-light); }
.tip-input-box .unit { font-weight: 700; color: #6b7280; font-size: .9em; white-space: nowrap; }
.tip-input-box input[type="number"] { flex: 1; min-width: 0; border: none; outline: none; font-size: 1.05em; font-weight: 700; color: #23272f; background: none; }
.tip-input-box input[type="number"]::-webkit-outer-spin-button,
.tip-input-box input[type="number"]::-webkit-inner-spin-button { opacity: .5; }

.tip-field input[type="range"] { width: 100%; margin-top: 10px; accent-color: var(--site-light); }
.tip-range-labels { display: flex; justify-content: space-between; font-size: .76em; color: #9ca3af; margin-top: 2px; }

/* ===== Quick-select tip percentage buttons ===== */
.tip-quick-row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.tip-quick-btn { flex: 1; min-width: 54px; border: 1px solid #ddd; background: #fff; padding: 9px 10px; border-radius: 8px; font-weight: 700; font-size: .9em; color: #6b7280; cursor: pointer; transition: background .2s ease, color .2s ease, border-color .2s ease; }
.tip-quick-btn:hover { border-color: var(--tool-accent); color: var(--tool-accent); }
.tip-quick-btn.is-active { background: var(--tool-accent); border-color: var(--tool-accent); color: #fff; }

/* ===== People stepper ===== */
.tip-stepper { display: flex; align-items: stretch; border: 1px solid #ddd; border-radius: 8px; overflow: hidden; max-width: 220px; }
.tip-step-btn { border: none; background: #f7f8fa; color: #23272f; font-size: 1.2em; font-weight: 700; width: 44px; cursor: pointer; transition: background .15s ease; }
.tip-step-btn:hover { background: #eef0f2; }
.tip-stepper input[type="number"] { flex: 1; min-width: 0; border: none; outline: none; text-align: center; font-size: 1.05em; font-weight: 700; color: #23272f; background: none; -moz-appearance: textfield; }
.tip-stepper input[type="number"]::-webkit-outer-spin-button,
.tip-stepper input[type="number"]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* ===== Results ===== */
.tip-results { border-top: 1px dashed #e5e7eb; padding-top: 24px; }
.tip-hero-result { text-align: center; margin-bottom: 20px; }
.tip-hero-result .label { font-size: .9em; font-weight: 700; color: #6b7280; text-transform: uppercase; letter-spacing: .04em; }
.tip-hero-result .amount { font-size: 2.4em; font-weight: 800; color: var(--tool-accent); margin: 4px 0; word-break: break-word; }
.tip-hero-result .sub { font-size: .82em; color: #9ca3af; }

.tip-result-row { display: flex; align-items: center; justify-content: space-between; padding: 12px 4px; border-bottom: 1px solid #eee; }
.tip-r-label { font-size: .88em; color: #6b7280; font-weight: 600; }
.tip-r-value { font-size: 1.05em; font-weight: 700; color: #23272f; }

.tip-split-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 14px; padding-top: 14px; border-top: 1px dashed #ddd; }
.tip-split-item { text-align: center; background: #f7f8fa; border: 1px solid #eee; border-radius: 8px; padding: 12px; }
.tip-split-item .tip-r-label { display: block; margin-bottom: 6px; }
.tip-split-item .tip-r-value { font-size: 1.1em; color: #23272f; }

@media (max-width: 600px) {
    .tip-inputs { grid-template-columns: 1fr; }
    .tip-hero-result .amount { font-size: 1.9em; }
    .tip-quick-btn { min-width: 48px; }
}
