/* lilvr.com — Tip Jar modal. Hidden by default; shown via `.open` (added by
   js/lilvr-tip-jar.js). Without this stylesheet the panel renders unstyled over
   the page, which looks like a glitch — so the base rule MUST keep it hidden. */

#tip-panel,
#tip-panel-backdrop {
  display: none;
}

#tip-panel-backdrop {
  position: fixed;
  inset: 0;
  z-index: 3300;
  background: rgba(2, 4, 10, 0.62);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
#tip-panel-backdrop.open {
  display: block;
}

#tip-panel {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 3400;
  width: min(360px, 92vw);
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 20px 22px;
  border-radius: 18px;
  border: 1px solid rgba(0, 212, 255, 0.25);
  background: rgba(10, 12, 22, 0.97);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  color: #e2e8f0;
  font-family: inherit;
}
#tip-panel.open {
  display: block;
}

.tip-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.tip-panel-eyebrow {
  display: block;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #00d4ff;
  margin-bottom: 2px;
}

#tip-panel-title {
  margin: 0;
  font-size: 20px;
  font-weight: 800;
  color: #fff;
}

.tip-panel-close {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: #cbd5e1;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.tip-panel-close:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.tip-panel-streamer {
  margin: 0 0 6px;
  font-size: 14px;
  font-weight: 700;
  color: #f1f5f9;
}
#tip-streamer-name {
  color: #00d4ff;
}

.tip-panel-hint {
  margin: 0 0 16px;
  font-size: 12px;
  line-height: 1.5;
  color: #94a3b8;
}

.tip-amt-row {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
}
.tip-amt {
  flex: 1;
  padding: 12px 0;
  border-radius: 12px;
  border: 1px solid rgba(0, 212, 255, 0.3);
  background: rgba(0, 212, 255, 0.08);
  color: #e2e8f0;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s, border-color 0.15s, transform 0.12s;
}
.tip-amt:hover {
  background: rgba(0, 212, 255, 0.18);
  border-color: rgba(0, 212, 255, 0.55);
}
.tip-amt:active {
  transform: scale(0.96);
}

.tip-custom-row {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.tip-msg-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: #94a3b8;
  margin: 0 0 4px;
}

#tip-message.tip-message,
.tip-message {
  width: 100%;
  box-sizing: border-box;
  margin-bottom: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(0, 0, 0, 0.35);
  color: #e2e8f0;
  font-size: 13px;
  font-family: inherit;
  resize: vertical;
}
#tip-custom-amount {
  flex: 1;
  min-width: 0;
  padding: 11px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(0, 0, 0, 0.35);
  color: #e2e8f0;
  font-size: 14px;
  font-family: inherit;
}
#tip-custom-amount:focus {
  outline: none;
  border-color: rgba(0, 212, 255, 0.55);
}
.tip-send-btn {
  flex-shrink: 0;
  padding: 11px 22px;
  border-radius: 12px;
  border: none;
  background: linear-gradient(135deg, #00d4ff, #7c3aed);
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  font-family: inherit;
  transition: opacity 0.15s, transform 0.12s;
}
.tip-send-btn:hover {
  opacity: 0.92;
}
.tip-send-btn:active {
  transform: scale(0.96);
}

.tip-status {
  font-size: 12px;
  font-weight: 600;
  color: #94a3b8;
  min-height: 16px;
}
.tip-status.tip-err {
  color: #fca5a5;
}
.tip-status.tip-ok {
  color: #6ee7b7;
}

#tip-panel.tip-busy {
  pointer-events: none;
  opacity: 0.7;
}
