.support-topbar { flex: 0 0 auto; background: #0c1422; border-bottom: 1px solid #25334b; }
.support-topbar-inner { width: min(1240px, calc(100% - 40px)); margin-inline: auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 48px; }
.support-topbar-inner > span { color: #98a9c1; font: 400 12px 'Chakra Petch', sans-serif; }
.support-button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 40px; padding: 7px 14px; border-radius: 6px; flex-shrink: 0; border: 1px solid #4de3ff; background: #101d31; color: #dffaff; font: 600 14px 'Chakra Petch', sans-serif; cursor: pointer; }
.support-button:hover { background: #142b40; }
.support-button > span:first-child { font-size: 24px; line-height: 1; }
.support-button:focus-visible,.support-close:focus-visible { outline: 2px solid #4de3ff; outline-offset: 4px; }
dialog.support-dialog { box-sizing: border-box; width: min(560px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); padding: 32px; border: 1px solid #364860; border-top: 2px solid #4de3ff; border-radius: 12px; background: #0c1221; color: #edf4ff; overflow-y: auto; }
.support-dialog::backdrop { background: #020610bf; backdrop-filter: blur(5px); }
.support-close { position: absolute; right: 12px; top: 12px; width: 44px; height: 44px; border: 1px solid #2b3950; background: transparent; font-size: 24px; cursor: pointer; }
dialog.support-dialog .support-heart { display: block; font-size: 36px; color: #4de3ff; line-height: 1; margin-bottom: 16px; }
.support-dialog h2 { margin: 0 40px 12px 0; font-size: 26px; }
.support-dialog p { font-size: 14px; line-height: 1.6; color: #b7c3da; }
.support-options { display: grid; grid-template-columns: 1fr; gap: 14px; margin: 24px 0; }
.support-options section { display: grid; grid-template-columns: minmax(0, 1fr) 164px; grid-template-rows: auto 1fr; column-gap: 18px; align-items: start; padding: 18px; border: 1px solid #2a3951; border-radius: 8px; background: #101a2b; }
dialog.support-dialog .support-option-icon { font-size: 25px; color: #a7ddeb; }
.support-options h3 { margin: 0; font-size: 17px; }
.support-options p { grid-column: 1; margin: 10px 0 0; font-size: 13px; }
.support-options button:disabled { width: 100%; min-height: 44px; padding: 9px; background: #152033; color: #94a6bf; border: 1px solid #35445a; font: inherit; font-size: 13px; cursor: default; opacity: 1; }
.support-dialog .support-thanks { margin: 0; font-size: 12px; text-align: center; }
@media(max-width: 620px) {
  .support-topbar { min-height: 34px; }
  .support-topbar-inner { width: calc(100% - 24px); min-height: 34px; justify-content: flex-end; }
  .support-topbar-inner > span { display: none; }
  .support-button { min-height: 30px; padding: 4px 9px; gap: 5px; border-color: transparent; background: transparent; box-shadow: none; font-size: 0; }
  .support-button::after { content: "Support"; font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }
  .support-button > span:first-child { font-size: 14px; }
  dialog.support-dialog { padding: 24px; }
}
@media(max-width: 380px) { .support-options { grid-template-columns: 1fr; } }
@media print { .support-topbar, .support-dialog { display: none !important; } }
.support-qr-trigger { display: grid; gap: 9px; width: 100%; padding: 10px; border: 1px solid #4de3ff; border-radius: 8px; background: #0c1422; color: #dffaff; cursor: zoom-in; font: 600 13px 'Chakra Petch', sans-serif; }
.support-qr-trigger img { display: block; width: 100%; height: auto; border-radius: 3px; }
.support-qr-trigger:hover { background: #142b40; }
.support-qr-trigger:focus-visible, .support-kofi:focus-visible, .support-qr-dialog a:focus-visible { outline: 2px solid #4de3ff; outline-offset: 3px; }
.support-kofi { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 8px; border: 1px solid #4de3ff; border-radius: 6px; background: #143147; color: #dffaff; text-decoration: none; font-size: 13px; font-weight: 600; }
.support-kofi:hover { background: #1b435c; }
dialog.support-qr-dialog { box-sizing: border-box; width: fit-content; max-width: calc(100vw - 24px); max-height: calc(100dvh - 24px); padding: 16px; border: 1px solid #4de3ff; border-radius: 12px; background: #0c1221; color: #edf4ff; overflow: auto; }
.support-qr-dialog::backdrop { background: #020610de; backdrop-filter: blur(5px); }
.support-qr-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.support-qr-heading h2 { margin: 0; font-size: 18px; }
.support-qr-heading .support-close { position: static; flex-shrink: 0; }
.support-qr-dialog > img { display: block; width: auto; height: auto; max-width: min(904px, calc(100vw - 58px)); max-height: calc(100dvh - 170px); margin-inline: auto; object-fit: contain; }
.support-qr-dialog > a { display: block; padding-top: 12px; text-align: center; color: #a7edff; font-size: 13px; }
@media print { .support-qr-dialog { display: none !important; } }

/* Matching payment rows: method and copy left, action right. */
.support-method-heading { display: flex; align-items: center; gap: 9px; }
.support-method-icon { display: grid; place-items: center; width: 24px; flex: 0 0 24px; font-size: 24px; line-height: 1; color: #a7ddeb; }
.support-options .support-qr-trigger, .support-options .support-kofi { grid-column: 2; grid-row: 1 / 3; }
.support-qr-trigger img { width: 80px; height: auto; margin-inline: auto; }
.support-qr-trigger { font-size: 12px; }
.support-kofi { box-sizing: border-box; width: 100%; }
@media (max-width: 480px) {
  .support-options section { grid-template-columns: minmax(0, 1fr) 130px; column-gap: 12px; padding: 14px; }
  .support-options h3 { font-size: 14px; }
  .support-method-heading { gap: 5px; }
  .support-method-icon { width: 18px; flex-basis: 18px; font-size: 20px; }
  .support-options p { font-size: 12px; }
  .support-kofi { font-size: 12px; }
}
@media (max-width: 360px) {
  .support-options section { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .support-options .support-qr-trigger, .support-options .support-kofi { grid-column: 1; grid-row: 3; }
  .support-options p { margin: 0; }
}
.support-options section > p { padding-left: 33px; }
@media (max-width: 480px) { .support-options section > p { padding-left: 23px; } }
