/* Tip MVP standalone — misma pieza visual que la app / mock landing */
.tip-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px 16px 48px;
}

.tip-top {
  width: 100%;
  max-width: 420px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
}

.tip-top .brand-logo {
  height: 32px;
  max-width: 130px;
}

.tip-back {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
}

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

.tip-profiles {
  width: 100%;
  max-width: 380px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 18px;
}

.tip-profile {
  appearance: none;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 12px;
  padding: 10px 8px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: 0.18s ease;
}

.tip-profile:hover {
  border-color: rgba(79, 70, 229, 0.3);
  color: var(--brand);
}

.tip-profile.is-active {
  background: var(--brand-soft);
  border-color: rgba(79, 70, 229, 0.4);
  color: var(--brand);
  box-shadow: 0 0 0 1px rgba(79, 70, 229, 0.2);
}

.tip-shell-card {
  position: relative;
  width: 100%;
  max-width: 380px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: var(--shadow-lg);
  padding: 28px 24px 24px;
  overflow: hidden;
}

.tip-progress {
  position: relative;
  list-style: none;
  margin: 0 0 22px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}

.tip-progress-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-size: 9px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  color: var(--text-muted);
}

.tip-progress-item span {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 11px;
  border: 2px solid var(--border);
  background: var(--bg);
  color: var(--text-muted);
  transition: 0.2s ease;
}

.tip-progress-item.is-active {
  color: var(--brand);
}

.tip-progress-item.is-active span {
  border-color: var(--brand);
  background: var(--brand);
  color: #fff;
}

.tip-progress-item.is-done {
  color: var(--action);
}

.tip-progress-item.is-done span {
  border-color: var(--action);
  background: var(--action-soft);
  color: #059669;
}

.tip-flow-step {
  position: relative;
  animation: tipFadeIn 0.35s ease both;
}

@keyframes tipFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.tip-scan-view {
  position: relative;
  margin: 0 auto 18px;
  max-width: 220px;
}

.tip-scan-frame {
  position: relative;
  aspect-ratio: 1;
  border-radius: 18px;
  background: linear-gradient(145deg, #0F172A 0%, #1E293B 100%);
  padding: 18px;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.08);
}

.tip-scan-frame::before,
.tip-scan-frame::after {
  content: "";
  position: absolute;
  width: 28px;
  height: 28px;
  border: 3px solid rgba(16, 185, 129, 0.85);
  pointer-events: none;
}

.tip-scan-frame::before {
  top: 12px;
  left: 12px;
  border-right: none;
  border-bottom: none;
  border-radius: 6px 0 0 0;
}

.tip-scan-frame::after {
  bottom: 12px;
  right: 12px;
  border-left: none;
  border-top: none;
  border-radius: 0 0 6px 0;
}

.tip-scan-qr {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,0.04);
  border-radius: 12px;
}

.tip-scan-qr svg {
  width: 72%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
}

.tip-scan-line {
  position: absolute;
  left: 14%;
  right: 14%;
  height: 2px;
  background: linear-gradient(90deg, transparent, #10B981, transparent);
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.8);
  animation: tipScanLine 2.2s ease-in-out infinite;
}

@keyframes tipScanLine {
  0%, 100% { top: 18%; opacity: 0.4; }
  50% { top: 78%; opacity: 1; }
}

.tip-mp-shell {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: #fff;
}

.tip-mp-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: #009EE3;
  color: #fff;
}

.tip-mp-logo {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.tip-mp-secure {
  font-size: 11px;
  font-weight: 600;
  opacity: 0.9;
}

.tip-mp-body {
  padding: 22px 18px 18px;
  text-align: center;
}

.tip-mp-label {
  margin: 0;
  font-size: 12px;
  color: var(--text-muted);
}

.tip-mp-amount {
  margin: 8px 0 6px;
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text);
}

.tip-mp-recipient {
  margin: 0 0 18px;
  font-size: 13px;
  color: var(--text-muted);
}

.tip-mp-methods {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.tip-mp-method {
  flex: 1;
  padding: 10px 8px;
  border-radius: 10px;
  border: 1px solid var(--border);
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  background: var(--bg);
}

.tip-mp-method.is-active {
  border-color: rgba(0, 158, 227, 0.35);
  background: rgba(0, 158, 227, 0.08);
  color: #007EB5;
}

.tip-mp-pay {
  width: 100%;
  height: 48px;
  border: none;
  border-radius: 12px;
  background: #009EE3;
  color: #fff;
  font-weight: 800;
  font-size: 15px;
  cursor: pointer;
  font-family: inherit;
  transition: 0.2s ease;
}

.tip-mp-pay:hover:not(:disabled) {
  background: #0088C7;
}

.tip-mp-pay:disabled {
  opacity: 0.7;
  cursor: wait;
}

.tip-shell-card::before {
  content: "";
  position: absolute;
  top: 18%;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 200px;
  background: var(--brand);
  filter: blur(90px);
  opacity: 0.1;
  pointer-events: none;
}

.tip-meta {
  position: relative;
  display: flex;
  justify-content: space-between;
  margin-bottom: 18px;
  opacity: 0.55;
  font-size: 12px;
  font-weight: 600;
}

.tip-avatar {
  position: relative;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  margin: 0 auto 14px;
  background: var(--brand-soft);
  color: var(--brand);
  font-weight: 800;
  font-size: 15px;
}

.tip-page .tip-title {
  position: relative;
  margin: 0;
  text-align: center;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
}

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

.tip-org {
  position: relative;
  margin: 8px 0 0;
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  color: var(--brand);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.tip-label {
  position: relative;
  margin: 22px 0 10px;
  font-weight: 600;
  font-size: 13px;
  color: var(--text);
}

.tip-amounts {
  position: relative;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.tip-amount {
  flex: 1;
  min-width: calc(33% - 8px);
  appearance: none;
  border: 1px solid var(--border);
  background: var(--bg);
  border-radius: 12px;
  padding: 12px 8px;
  font-weight: 600;
  font-size: 14px;
  color: var(--text);
  cursor: pointer;
  transition: 0.18s ease;
}

.tip-amount:hover {
  border-color: rgba(79, 70, 229, 0.3);
  background: var(--brand-soft);
}

.tip-amount.is-active {
  background: var(--action-soft);
  border-color: rgba(16, 185, 129, 0.35);
  color: #059669;
}

.tip-custom {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
}

.tip-custom input {
  height: 48px;
  border-radius: 12px;
  border: 1px solid var(--border);
  padding: 0 14px;
  font-size: 16px;
  font-weight: 600;
  outline: none;
  background: var(--bg);
  color: var(--text);
  font-family: inherit;
}

.tip-custom input:focus {
  border-color: var(--brand);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15);
}

.tip-pay {
  position: relative;
  width: 100%;
  margin-top: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  border: none;
  border-radius: 12px;
  background: var(--action);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  box-shadow: 0 8px 18px var(--action-glow);
  transition: 0.2s ease;
  font-family: inherit;
}

.tip-pay:hover:not(:disabled) {
  background: #059669;
  transform: translateY(-1px);
}

.tip-pay:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

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

.tip-success {
  text-align: center;
  padding-top: 28px;
  padding-bottom: 8px;
}

.tip-success-icon {
  position: relative;
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--action-soft);
  color: var(--action);
}

.tip-actions {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 20px;
}

.tip-footer-links {
  margin-top: 28px;
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
}

.tip-footer-links a {
  color: var(--brand);
  font-weight: 600;
}

@media (max-width: 420px) {
  .tip-profiles {
    grid-template-columns: 1fr;
  }

  .tip-progress-item {
    font-size: 8px;
  }

  .tip-progress-item span {
    width: 22px;
    height: 22px;
    font-size: 10px;
  }
}
