.tip-entry {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 18px;
  padding: 6px 2px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  opacity: 0.78;
  transition: color 0.15s ease, opacity 0.15s ease;
}

.tip-entry svg {
  width: 15px;
  height: 15px;
}

.tip-entry:hover {
  color: var(--brand);
  opacity: 1;
}

.tip-modal[hidden] {
  display: none;
}

.tip-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 24px 16px;
}

.tip-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(7, 20, 28, 0.52);
}

.tip-modal__panel {
  position: relative;
  width: min(100%, 400px);
  padding: 28px 24px 24px;
  border-radius: 16px;
  background: #fff;
  color: var(--ink);
  box-shadow: var(--shadow-lg);
}

.tip-modal__close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 32px;
  height: 32px;
  color: var(--muted);
  font-size: 24px;
  line-height: 1;
}

.tip-modal__close:hover {
  color: var(--ink);
}

.tip-modal__eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #07c160;
  margin-bottom: 6px;
}

.tip-modal h3 {
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 900;
}

.tip-modal__lead {
  margin: 0 0 20px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
}

.tip-presets {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 14px;
}

.tip-preset {
  padding: 8px 0;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--brand);
  font-size: 13px;
  font-weight: 700;
}

.tip-preset.is-on,
.tip-preset:hover {
  border-color: #07c160;
  background: #f0faf4;
  color: #05964a;
}

.tip-amount {
  display: grid;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
}

.tip-amount input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
}

.tip-amount input:focus {
  outline: 2px solid rgba(7, 193, 96, 0.28);
  border-color: #07c160;
}

.tip-error {
  margin: 10px 0 0;
  font-size: 13px;
  color: #b42318;
}

.tip-submit {
  width: 100%;
  margin-top: 16px;
  padding: 12px 16px;
  border-radius: 10px;
  background: #07c160;
  color: #fff;
  font-size: 16px;
  font-weight: 800;
}

.tip-submit:hover {
  background: #06ad56;
}

.tip-submit[disabled] {
  opacity: 0.6;
  cursor: wait;
}

.tip-submit--ghost {
  margin-top: 18px;
  background: #fff;
  color: var(--brand);
  border: 1px solid var(--border);
}

.tip-submit--ghost:hover {
  background: var(--surface);
}

.tip-qr__amount {
  margin: 0 0 14px;
  text-align: center;
  font-size: 14px;
  color: var(--muted);
}

.tip-qr__amount strong {
  color: var(--brand);
  font-size: 22px;
}

.tip-qr__box {
  position: relative;
  width: 220px;
  margin: 0 auto 14px;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
}

.tip-qr__box img {
  width: 200px;
  height: 200px;
}

.tip-qr__wx {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  transform: translate(-50%, -50%);
  border-radius: 8px;
  background: #07c160;
  box-shadow: 0 0 0 4px #fff;
}

.tip-qr__wx svg {
  width: 22px;
  height: 22px;
  fill: #fff;
}

.tip-qr__status {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0 0 6px;
  font-size: 13px;
  font-weight: 700;
  color: #07c160;
}

.tip-qr__dots,
.tip-qr__dots::before,
.tip-qr__dots::after {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #07c160;
}

.tip-qr__dots {
  position: relative;
  margin: 0 10px 0 0;
  animation: tip-pulse 1.2s ease-in-out infinite;
}

.tip-qr__dots::before,
.tip-qr__dots::after {
  content: "";
  position: absolute;
  top: 0;
}

.tip-qr__dots::before {
  left: -10px;
  animation: tip-pulse 1.2s ease-in-out infinite 0.15s;
}

.tip-qr__dots::after {
  left: 10px;
  animation: tip-pulse 1.2s ease-in-out infinite 0.3s;
}

@keyframes tip-pulse {
  0%,
  80%,
  100% {
    opacity: 0.28;
  }
  40% {
    opacity: 1;
  }
}

.tip-qr__hint {
  margin: 0;
  text-align: center;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
}

.tip-qr__status.is-expired,
.tip-qr__hint.is-expired {
  color: #b42318;
}

.tip-back {
  display: block;
  margin: 14px auto 0;
  font-size: 13px;
  color: var(--accent);
  font-weight: 700;
}

.tip-back:hover {
  color: var(--brand);
}

.tip-ok__mark {
  width: 56px;
  height: 56px;
  margin: 8px auto 12px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #07c160;
  color: #fff;
  font-size: 28px;
  font-weight: 800;
}

.tip-ok__title {
  margin: 0;
  text-align: center;
  font-size: 20px;
  font-weight: 900;
}

.tip-ok__amount {
  margin: 6px 0 0;
  text-align: center;
  font-size: 28px;
  font-weight: 900;
  color: var(--brand);
}

.tip-ok__thanks {
  margin: 8px 0 0;
  text-align: center;
  font-size: 14px;
  color: var(--muted);
}

