.tip-page main {
  background:
    radial-gradient(circle at 9% 16%, rgba(255, 109, 45, .09), transparent 280px),
    radial-gradient(circle at 84% 20%, rgba(8, 174, 100, .07), transparent 280px),
    linear-gradient(180deg, #fbfdff 0%, #f8fbff 54%, #fff 100%);
}

body.tip-page {
  max-width: 100%;
  overflow-x: hidden;
}

.tip-page .directory-header,
.tip-page .directory-footer,
.tip-page .cookie-bar {
  background: #fff;
}

.tip-hero {
  padding: 18px 0 14px;
  border-bottom: 1px solid #e4ebf3;
  background: linear-gradient(180deg, #fff 0%, #f9fcff 100%);
}

.tip-breadcrumbs,
.tip-title-row,
.tip-trust,
.tip-mode-tabs,
.tip-input,
.tip-stepper,
.tip-toggle,
.tip-actions,
.tip-result-lines div,
.tip-examples button,
.use-case-list a {
  display: flex;
  align-items: center;
}

.tip-breadcrumbs {
  gap: 8px;
  margin-bottom: 12px;
  color: #1688ff;
  font-size: 12px;
  font-weight: 750;
}

.tip-breadcrumbs span:last-child {
  color: #061738;
}

.tip-breadcrumbs svg {
  width: 12px;
  height: 12px;
}

.tip-title-row {
  gap: 22px;
}

.tip-mark {
  position: relative;
  width: 74px;
  height: 74px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: linear-gradient(145deg, #fff0e8, #ffd9c3);
  box-shadow: 0 18px 32px rgba(255, 109, 45, .16);
}

.receipt-lines {
  position: absolute;
  left: 22px;
  top: 16px;
  width: 30px;
  height: 40px;
  border: 3px solid #ff6d2d;
  border-radius: 7px 7px 4px 4px;
}

.receipt-lines::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 11px;
  width: 18px;
  height: 3px;
  background: #ff6d2d;
  box-shadow: 0 10px 0 #ff6d2d, 0 20px 0 #ff6d2d;
}

.receipt-hand {
  position: absolute;
  right: 16px;
  bottom: 13px;
  width: 19px;
  height: 30px;
  border-radius: 12px 12px 9px 9px;
  background: #ff6d2d;
  transform: rotate(-28deg);
}

.tip-title-row h1 {
  margin: 0;
  color: #061738;
  font-size: 42px;
  line-height: 1;
  font-weight: 850;
}

.tip-title-row p {
  margin: 8px 0 14px;
  color: #48607f;
  font-size: 16px;
}

.tip-trust {
  gap: 12px;
  flex-wrap: wrap;
}

.tip-trust span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 0 16px;
  border: 1px solid #dce6f2;
  border-radius: 999px;
  background: #fff;
  color: #173153;
  font-size: 13px;
  font-weight: 800;
}

.tip-trust svg {
  color: #ff6d2d;
}

.tip-workspace,
.tip-content {
  padding: 18px 0 0;
}

.tip-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 306px;
  gap: 28px;
  align-items: start;
}

.tip-card,
.learning-main,
.learning-side article {
  border: 1px solid #dce6f2;
  border-radius: 8px;
  background: rgba(255, 255, 255, .98);
  box-shadow: 0 16px 38px rgba(25, 60, 102, .07);
}

.tip-tool-card {
  overflow: hidden;
}

.tip-mode-tabs {
  border-bottom: 1px solid #dce6f2;
  background: linear-gradient(180deg, #fff, #fbfdff);
}

.tip-mode-tabs button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex: 1;
  min-height: 48px;
  border: 0;
  border-right: 1px solid #e6edf5;
  background: transparent;
  color: #173153;
  font-size: 13px;
  font-weight: 850;
}

.tip-mode-tabs button:last-child {
  border-right: 0;
}

.tip-mode-tabs button.is-active {
  color: #ff5e21;
  box-shadow: inset 0 -3px 0 #ff6d2d;
}

.mini-users {
  position: relative;
  width: 18px;
  height: 18px;
}

.mini-users::before,
.mini-users::after {
  content: "";
  position: absolute;
  border: 2px solid currentColor;
  border-radius: 50%;
}

.mini-users::before {
  left: 1px;
  top: 1px;
  width: 7px;
  height: 7px;
  box-shadow: 8px 0 0 -2px currentColor;
}

.mini-users::after {
  left: 0;
  right: 0;
  bottom: 1px;
  height: 7px;
  border-radius: 8px 8px 3px 3px;
}

.tip-tool-grid {
  display: grid;
  grid-template-columns: minmax(455px, .98fr) minmax(230px, .42fr) minmax(270px, .46fr);
}

.tip-form {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 16px 18px;
  border-right: 1px solid #dce6f2;
}

.tip-field {
  display: grid;
  grid-template-columns: 124px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  color: #061738;
  font-size: 13px;
  font-weight: 850;
}

.tip-field > span:first-child {
  min-width: 0;
}

.tip-input,
.tip-field select,
.tip-stepper {
  width: 100%;
  height: 34px;
  border: 1px solid #dce6f2;
  border-radius: 7px;
  background: #fbfdff;
}

.tip-input:focus-within,
.tip-field select:focus,
.tip-stepper:focus-within {
  border-color: rgba(255, 109, 45, .75);
  background: #fff;
  outline: 0;
  box-shadow: 0 0 0 4px rgba(255, 109, 45, .08);
}

.tip-input input,
.tip-stepper input {
  width: 100%;
  min-width: 0;
  height: 32px;
  border: 0;
  outline: 0;
  background: transparent;
  color: #071b43;
  font-size: 14px;
  font-weight: 800;
  appearance: textfield;
}

.tip-input input {
  padding: 0 12px;
}

.tip-input input::-webkit-outer-spin-button,
.tip-input input::-webkit-inner-spin-button,
.tip-stepper input::-webkit-outer-spin-button,
.tip-stepper input::-webkit-inner-spin-button {
  margin: 0;
  appearance: none;
}

.tip-input small {
  flex: 0 0 auto;
  min-width: 38px;
  padding-right: 12px;
  color: #48607f;
  font-size: 12px;
  font-weight: 800;
  text-align: right;
}

.tip-input.money small {
  min-width: 24px;
  padding: 0 0 0 12px;
  text-align: left;
}

.tip-field select {
  padding: 0 12px;
  color: #061738;
  font: inherit;
  font-size: 13px;
  font-weight: 750;
}

.tip-preset-row {
  display: flex;
  gap: 7px;
  flex-wrap: nowrap;
  min-width: 0;
}

.tip-presets {
  align-items: start;
}

.tip-presets > span:first-child {
  grid-row: auto;
  padding-top: 7px;
}

.tip-presets .tip-preset-row {
  grid-column: 2;
}

.tip-presets .tip-input {
  display: none;
  grid-column: 2;
  width: min(100%, 170px);
}

.tip-presets.is-custom .tip-input {
  display: flex;
}

.tip-preset-row button {
  flex: 0 0 auto;
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid #dce6f2;
  border-radius: 7px;
  background: #fff;
  color: #173153;
  font-size: 12px;
  font-weight: 800;
}

.tip-preset-row button.is-active {
  border-color: #ff6d2d;
  background: #ff6d2d;
  color: #fff;
}

.tip-stepper button {
  width: 38px;
  height: 32px;
  border: 0;
  background: #f2f7fc;
  color: #173153;
  font-size: 18px;
  font-weight: 800;
}

.tip-stepper input {
  text-align: center;
}

.tip-toggle {
  display: grid;
  grid-template-columns: 124px 46px;
  align-items: center;
  gap: 14px;
  color: #061738;
  font-size: 13px;
  font-weight: 850;
}

.tip-toggle input {
  position: absolute;
  opacity: 0;
}

.tip-toggle i {
  position: relative;
  width: 46px;
  height: 26px;
  border-radius: 999px;
  background: #cdd9e8;
}

.tip-toggle i::after {
  content: "";
  position: absolute;
  left: 3px;
  top: 3px;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  background: #fff;
  transition: transform .2s ease;
}

.tip-toggle input:checked + i {
  background: #08ae64;
}

.tip-toggle input:checked + i::after {
  transform: translateX(20px);
}

.tip-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 112px;
  gap: 12px;
  margin-top: 6px;
}

.tip-primary,
.tip-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 850;
}

.tip-primary {
  border: 1px solid #ff6d2d;
  background: linear-gradient(180deg, #ff7f42, #ff5e21);
  color: #fff;
  box-shadow: 0 12px 22px rgba(255, 109, 45, .18);
}

.tip-secondary {
  border: 1px solid #dce6f2;
  background: #fff;
  color: #173153;
}

.tip-results {
  padding: 16px 18px;
  border-right: 1px solid #dce6f2;
}

.tip-result-lines {
  display: grid;
  gap: 0;
}

.tip-result-lines div {
  gap: 10px;
  min-height: 48px;
  border-bottom: 1px solid #e6edf5;
  color: #48607f;
  font-size: 14px;
}

.tip-result-lines div:last-child {
  border-bottom: 0;
}

.tip-result-lines strong {
  margin-left: auto;
  color: #061738;
  font-size: 20px;
  font-weight: 850;
}

.tip-result-lines div:first-child strong {
  color: #ff5e21;
}

.tip-result-icon {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: #fff2ea;
}

.tip-result-icon::before {
  color: #ff6d2d;
  font-size: 16px;
  font-weight: 850;
}

.tip-icon-tip::before { content: "%"; }
.tip-icon-card::before { content: "$"; }
.tip-icon-user::before { content: "÷"; }
.tip-icon-percent::before { content: "i"; }

.receipt-preview {
  padding: 16px 18px;
}

.receipt-preview h2,
.tip-examples-card h2,
.tip-checklist h2,
.use-case-card h2,
.learning-side h2 {
  margin: 0 0 14px;
  color: #061738;
  font-size: 18px;
  font-weight: 850;
}

.receipt-paper {
  position: relative;
  display: grid;
  gap: 11px;
  padding: 18px;
  border: 1px solid #ccd8e8;
  background: #fff;
  color: #173153;
  font-size: 13px;
}

.receipt-paper::before,
.receipt-paper::after {
  content: "";
  position: absolute;
  left: -1px;
  right: -1px;
  height: 8px;
  background: linear-gradient(135deg, transparent 6px, #ccd8e8 0) 0 0 / 12px 12px, linear-gradient(225deg, transparent 6px, #ccd8e8 0) 0 0 / 12px 12px;
}

.receipt-paper::before {
  top: -8px;
}

.receipt-paper::after {
  bottom: -8px;
  transform: rotate(180deg);
}

.receipt-paper div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.receipt-paper strong {
  color: #061738;
}

.receipt-tip {
  padding-top: 12px;
  border-top: 1px dashed #aebbd0;
  color: #ff5e21;
}

.receipt-tip strong {
  color: #ff5e21;
}

.receipt-total {
  padding: 14px 0;
  border-top: 1px dashed #aebbd0;
  border-bottom: 1px dashed #aebbd0;
  font-size: 16px;
  font-weight: 850;
}

.receipt-paper p {
  margin: 0;
  color: #7a8da7;
  text-align: center;
  font-size: 12px;
}

.tip-side {
  display: grid;
  gap: 18px;
}

.tip-content-side {
  display: grid;
  gap: 18px;
}

.tip-examples-card,
.tip-checklist,
.use-case-card,
.learning-side article {
  padding: 18px;
}

.tip-examples {
  display: grid;
  gap: 10px;
}

.tip-examples button {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) 18px;
  gap: 14px;
  min-height: 76px;
  padding: 10px;
  border: 1px solid #dce6f2;
  border-radius: 8px;
  background: linear-gradient(180deg, #fff, #fbfdff);
  color: #061738;
  text-align: left;
}

.tip-examples button > span:nth-child(2) {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.tip-examples strong {
  font-size: 13px;
  line-height: 1.15;
  font-weight: 850;
}

.tip-examples small {
  color: #48607f;
  font-size: 12px;
  line-height: 1.35;
  font-weight: 700;
}

.example-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border-radius: 999px;
  color: #fff;
}

.example-badge svg {
  width: 32px;
  height: 32px;
  stroke: currentColor;
  stroke-width: 3;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  overflow: visible;
}

.dinner { background: linear-gradient(145deg, #ffb88f, #ff6d2d); }
.coffee { background: linear-gradient(145deg, #dff8e8, #8fdcb0); color: #087846; }
.salon { background: linear-gradient(145deg, #f4dfff, #b97add); color: #7b35a6; }
.taxi { background: linear-gradient(145deg, #d9f1ff, #65beef); color: #0872b8; }

.tip-checklist ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: #48607f;
  font-size: 13px;
  line-height: 1.35;
  font-weight: 750;
}

.tip-checklist li {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 9px;
}

.tip-checklist svg {
  color: #08ae64;
}

.tip-content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 28px;
  align-items: start;
}

.tip-main-stack {
  display: grid;
  gap: 18px;
}

.tip-guide {
  overflow: hidden;
}

.tip-tabs {
  display: flex;
  border-bottom: 1px solid #dce6f2;
}

.tip-tabs button {
  flex: 1;
  min-height: 44px;
  border: 0;
  background: #fff;
  color: #48607f;
  font-size: 13px;
  font-weight: 850;
}

.tip-tabs button.is-active {
  color: #ff5e21;
  box-shadow: inset 0 -3px 0 #ff6d2d;
}

.tip-panel {
  display: none;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 28px;
  align-items: center;
  padding: 18px;
}

.tip-panel.is-active {
  display: grid;
}

.tip-panel h2,
.learning-main h2 {
  margin: 0 0 8px;
  color: #061738;
  font-size: 20px;
  font-weight: 850;
}

.tip-panel p,
.learning-main p {
  margin: 0;
  color: #48607f;
  font-size: 14px;
  line-height: 1.6;
}

.tip-equation {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
  border: 1px solid rgba(255, 109, 45, .22);
  border-radius: 8px;
  background: linear-gradient(90deg, #fff, #fff3eb);
  color: #ff5e21;
  font-size: 16px;
  font-weight: 850;
  text-align: center;
}

.use-case-list {
  display: grid;
  gap: 8px;
}

.use-case-list a {
  justify-content: space-between;
  gap: 10px;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid #e2ebf5;
  border-radius: 7px;
  background: #fbfdff;
  color: #173153;
  font-size: 13px;
  font-weight: 800;
}

.case-icon {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  border-radius: 7px;
  background: #fff3eb;
  color: #ff5e21;
  font-size: 12px;
  font-weight: 850;
}

.case-dining::before { content: "D"; }
.case-salon::before { content: "S"; }
.case-taxi::before { content: "T"; }
.case-hotel::before { content: "H"; }

.learning-main {
  padding: 24px;
}

.learning-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 30px;
  padding: 0 12px;
  margin-bottom: 16px;
  border: 1px solid #ffd7c6;
  border-radius: 999px;
  background: #fff3eb;
  color: #ff5e21;
  font-size: 12px;
  font-weight: 850;
}

.learning-main h2 {
  font-size: 28px;
}

.learning-main h3 {
  margin: 24px 0 8px;
  color: #061738;
  font-size: 18px;
  font-weight: 850;
}

.learning-callout {
  display: grid;
  gap: 6px;
  margin: 20px 0;
  padding: 16px 18px;
  border: 1px solid rgba(255, 109, 45, .22);
  border-radius: 8px;
  background: linear-gradient(90deg, #fff3eb, #fff);
  color: #173153;
  font-size: 14px;
  line-height: 1.5;
}

.learning-callout strong {
  color: #ff5e21;
}

.factor-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.factor-list li {
  display: grid;
  grid-template-columns: 50px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  min-height: 66px;
  padding: 10px;
  border: 1px solid #e2ebf5;
  border-radius: 8px;
  background: linear-gradient(180deg, #fff, #fbfdff);
}

.factor-icon {
  display: grid;
  place-items: center;
  width: 50px;
  height: 44px;
  border-radius: 10px;
  background: color-mix(in srgb, var(--factor-color) 14%, #fff);
  color: var(--factor-color);
  font-size: 13px;
  font-weight: 850;
}

.factor-copy {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.factor-copy strong {
  color: #061738;
  font-size: 13px;
  line-height: 1.15;
  font-weight: 850;
}

.factor-copy small {
  color: #48607f;
  font-size: 12px;
  line-height: 1.35;
  font-weight: 700;
}

.tip-related-section {
  margin-top: 18px;
  background: #fff;
}

@media (max-width: 1180px) {
  .tip-layout,
  .tip-tool-grid,
  .tip-content-grid {
    grid-template-columns: 1fr;
  }

  .tip-form,
  .tip-results {
    border-right: 0;
    border-bottom: 1px solid #dce6f2;
  }

  .tip-field {
    grid-template-columns: 150px minmax(0, 1fr);
  }

  .tip-toggle {
    grid-template-columns: 150px 46px;
  }
}

@media (max-width: 760px) {
  .tip-page .mobile-menu[aria-hidden="true"] {
    display: none;
  }

  .tip-page.menu-open .mobile-menu {
    display: flex;
  }

  .tip-hero {
    padding: 20px 0 14px;
  }

  .tip-title-row {
    align-items: flex-start;
    gap: 14px;
  }

  .tip-mark {
    width: 58px;
    height: 58px;
  }

  .receipt-lines {
    left: 17px;
    top: 12px;
    width: 24px;
    height: 32px;
    border-width: 2px;
  }

  .receipt-lines::before {
    left: 5px;
    top: 8px;
    width: 13px;
    height: 2px;
    box-shadow: 0 7px 0 #ff6d2d, 0 14px 0 #ff6d2d;
  }

  .receipt-hand {
    right: 12px;
    bottom: 10px;
    width: 15px;
    height: 23px;
  }

  .tip-title-row h1 {
    font-size: 34px;
  }

  .tip-title-row p {
    font-size: 14px;
  }

  .tip-mode-tabs,
  .tip-preset-row,
  .tip-tabs {
    overflow-x: auto;
    scrollbar-width: none;
  }

  .tip-mode-tabs::-webkit-scrollbar,
  .tip-preset-row::-webkit-scrollbar,
  .tip-tabs::-webkit-scrollbar {
    display: none;
  }

  .tip-mode-tabs button {
    flex: 0 0 auto;
    min-width: 150px;
  }

  .tip-preset-row {
    flex-wrap: nowrap;
  }

  .tip-form,
  .tip-results,
  .receipt-preview,
  .tip-examples-card,
  .tip-checklist,
  .use-case-card,
  .learning-main,
  .learning-side article {
    padding: 16px;
  }

  .tip-field {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 8px;
  }

  .tip-toggle {
    grid-template-columns: minmax(0, 1fr) 46px;
  }

  .tip-presets > span:first-child {
    grid-row: auto;
    padding-top: 0;
  }

  .tip-presets .tip-preset-row,
  .tip-presets .tip-input {
    grid-column: auto;
  }

  .tip-presets .tip-input {
    width: 100%;
  }

  .tip-actions,
  .tip-panel.is-active {
    grid-template-columns: 1fr;
  }

  .tip-tabs button {
    flex: 0 0 auto;
    min-width: 110px;
  }

  .learning-main h2 {
    font-size: 24px;
  }
}

@media (max-width: 420px) {
  .tip-title-row {
    flex-direction: column;
  }
}
