/* ============================================================
   MASHPIT CREATOR TIPS (Feature 7)
   Tip modal, profile tip section, edit-profile address fields.
   Win98 chrome: Tahoma 11px, #d4d0c8, inset/outset borders.
   ============================================================ */

/* ── Tip modal ── */
.tip-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 3000;
  background: rgba(0, 0, 0, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
}

.window-tipmodal {
  position: relative;
  width: 320px;
  max-width: calc(100vw - 24px);
  max-height: calc(100vh - 24px);
  overflow: auto;
  font-family: Tahoma, sans-serif;
  font-size: 11px;
}

.tip-modal-body {
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tip-chain-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.tip-chain-tab.is-active {
  background: #fff;
  border-color: #808080 #fff #fff #808080;
  font-weight: bold;
}

.tip-qr-wrap {
  display: flex;
  justify-content: center;
  padding: 8px;
  background: #fff;
  border: 1px solid;
  border-color: #808080 #fff #fff #808080;
}

.tip-qr-canvas {
  width: 176px;
  height: 176px;
  image-rendering: pixelated;
}

.tip-address {
  font-family: 'Courier New', monospace;
  font-size: 10px;
  word-break: break-all;
  padding: 6px;
  background: #fff;
  border: 1px solid;
  border-color: #808080 #fff #fff #808080;
  user-select: all;
}

.tip-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 6px;
}

/* ── Toast ── */
.tip-toast {
  position: fixed;
  left: 50%;
  bottom: 48px;
  transform: translateX(-50%);
  z-index: 3100;
  font-family: Tahoma, sans-serif;
  font-size: 11px;
  color: #000;
  background: #d4d0c8;
  border: 1px solid;
  border-color: #fff #808080 #808080 #fff;
  box-shadow: 1px 1px 0 #000;
  padding: 5px 14px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease;
}

.tip-toast.is-visible { opacity: 1; }

/* ── Profile card: Tip This Cypher section ── */
.profile-tip-list {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.profile-tip-list em {
  color: #555;
}

.tip-chain-row {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  text-align: left;
  font-family: Tahoma, sans-serif;
  font-size: 11px;
  padding: 3px 6px;
  background: #d4d0c8;
  border: 1px solid;
  border-color: #fff #808080 #808080 #fff;
  cursor: pointer;
  color: #000;
}

.tip-chain-row:hover { background: #dedbd6; }
.tip-chain-row:active {
  border-color: #808080 #fff #fff #808080;
}

.tip-chain-row-label {
  font-weight: bold;
  min-width: 64px;
}

.tip-chain-row-addr {
  font-family: 'Courier New', monospace;
  font-size: 10px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ── Edit profile: Tip Addresses fields ── */
.tip-edit-section-title {
  font-weight: bold;
  border-bottom: 1px solid #808080;
  padding-bottom: 2px;
  margin: 10px 0 4px;
}

.tip-edit-hint {
  color: #555;
  font-weight: normal;
}

.profile-edit-input.tip-invalid {
  background: #ffe4e4;
  border-color: #a00;
}

.tip-field-error {
  color: #a00;
  font-size: 10px;
  min-height: 12px;
  margin-top: 1px;
}

/* ── Mobile (375px checklist item) ── */
@media (max-width: 480px) {
  .window-tipmodal { width: calc(100vw - 16px); }
  .tip-qr-canvas { width: 144px; height: 144px; }
}
