.tip-content { display: grid; gap: 16px; }
.tip-content h2, .tip-content p { margin: 0; }
.tip-content h2 { overflow-wrap: anywhere; }
.tip-content label { display: grid; gap: 8px; }
.tip-content input, .tip-content select { width: 100%; min-width: 0; }
.tip-connect { display: flex; flex-wrap: wrap; gap: 8px; }
.tip-connect button { flex: 1 1 150px; justify-content: center; }
.tip-inputs { display: grid; grid-template-columns: minmax(0,1fr) 110px; gap: 12px; }
.tip-gifts { margin: 0; padding: 0; border: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; min-width: 0; }
.tip-gifts legend { font-size: 13px; font-weight: 700; margin-bottom: 10px; }
.tip-content .tip-gift { display: block; position: relative; min-width: 0; cursor: pointer; }
.tip-gift input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.tip-gift-card { min-height: 82px; display: flex; flex-direction: column; gap: 7px; align-items: center; justify-content: center; padding: 8px 4px; border: 1px solid #333831; border-radius: 12px; background: #171a16; text-align: center; }
.tip-gift-card b { font-size: 11px; line-height: 1.2; }
.tip-gift-icon { font-size: 25px; line-height: 1; }
.tip-gift input:checked + .tip-gift-card { border-color: #9afb58; background: #1e2c19; color: #d9ffc5; }
.tip-gift input:focus-visible + .tip-gift-card { outline: 2px solid white; outline-offset: 2px; }
.tip-notice, .tip-destination, .tip-summary { border: 1px solid #30352b; border-radius: 12px; background: #141812; padding: 14px; }
.tip-notice b { font-size: 13px; color: #dcefd1; }
.tip-notice p { color: #bdc5b9; font-size: 13px; line-height: 1.5; margin-top: 6px; }
.tip-destination, .tip-summary { display: grid; gap: 8px; }
.tip-destination span, .tip-summary span { display: block; color: #a5afa0; font-size: 11px; letter-spacing: .08em; }
.tip-destination code, .tip-summary code { display: block; overflow-wrap: anywhere; color: #edf4e8; font-size: 13px; line-height: 1.5; }
.tip-summary > div { display: grid; gap: 5px; }
.tip-wallet-link { display: flex; align-items: center; justify-content: center; text-decoration: none; min-height: 48px; }
.tip-qr { display: grid; justify-items: center; gap: 10px; text-align: center; }
.tip-qr img { display: block; max-width: min(240px, 100%); height: auto; background: #fff; border-radius: 8px; }
.tip-qr p { color: #bdc5b9; font-size: 12px; line-height: 1.5; max-width: 320px; }
.tip-disable { justify-self: start; min-height: 44px; }
@media (max-width: 400px) { .tip-inputs { grid-template-columns: minmax(0,1fr) 90px; } .tip-gifts { gap: 5px; } .tip-gift-card b { font-size: 10px; } }
.room-tip-settings { margin: 8px 18px; align-self: flex-start; }
.conversation-header [data-tip] { margin-left: auto; }
.conversation-header [data-action="safety-code"] { margin-left: 0; }
.gift-celebration:not([hidden]) { position: fixed; z-index: 60; right: 22px; bottom: 90px; display: flex; align-items: center; gap: 14px; max-width: min(380px, calc(100vw - 32px)); padding: 16px 20px; border: 1px solid #76db4e; border-radius: 18px; background: #172014; box-shadow: 0 12px 40px #000a; animation: gift-enter .35s ease-out; }
.gift-celebration > span { font-size: 34px; }
.gift-celebration strong, .gift-celebration small { display: block; overflow-wrap: anywhere; }
.gift-celebration small { margin-top: 4px; color: #c2d5bb; }
@keyframes gift-enter { from { opacity: 0; transform: translateY(14px) scale(.96); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .gift-celebration:not([hidden]) { animation: none; } }
