/* FastUTM short links and account pages (v1.13.0). Builds on pages.css. */
.fu-links .form-field select, .fu-links .form-field textarea, .fu-links .fu-copyrow input, .fu-links .fu-search input, .fu-links .fu-prefix input {
  width: 100%; font-family: 'Nunito', sans-serif; font-size: .92rem; font-weight: 600; color: var(--text);
  background: var(--input-bg); border: 1.5px solid var(--input-border); border-radius: 10px; padding: .7rem .85rem; }
.fu-links textarea { min-height: 110px; resize: vertical; }
.fu-check { display: block; position: relative; padding-left: 1.7rem; font-size: .88rem; line-height: 1.5; font-weight: 600; }
.fu-check input { position: absolute; left: 0; top: .15rem; width: 1.05rem; height: 1.05rem; margin: 0; }
.fu-opt { font-weight: 600; color: var(--text-3, #64748b); }
.fu-small { font-size: .85rem; color: var(--text-2); margin-top: 1rem; }
.fu-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.fu-alert { padding: .85rem 1rem; border-radius: 10px; margin: 0 0 1rem; border-left: 3px solid; }
.fu-alert-ok { background: rgba(22,163,74,.12); border-color: var(--green, #16a34a); }
.fu-alert-error { background: rgba(220,38,38,.12); border-color: var(--red, #dc2626); }
.fu-alert-warn { background: rgba(234,179,8,.14); border-color: #ca8a04; }
.fu-two { display: grid; gap: 1.2rem; grid-template-columns: 1fr; }
@media (min-width: 860px) { .fu-two { grid-template-columns: 1fr 1fr; } }
.fu-two > .glass-card { margin: 0; }
.fu-narrow { max-width: 560px; }
.fu-copyrow { display: flex; gap: .6rem; flex-wrap: wrap; align-items: center; margin: .6rem 0; }
.fu-copyrow input { flex: 1 1 260px; font-family: 'DM Mono', monospace; font-size: 1rem; }
.fu-actions-row { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; }
.fu-actions-row .btn-primary, .fu-actions-row .btn-secondary { width: auto; }
.fu-inline { display: inline; margin: 0; }
.fu-linkbtn { background: none; border: 0; padding: 0; color: var(--accent); font: inherit; font-weight: 800; text-decoration: underline; cursor: pointer; }
.fu-prefix { display: flex; align-items: stretch; }
.fu-prefix span { display: flex; align-items: center; padding: 0 .7rem; border: 1.5px solid var(--input-border); border-right: 0; border-radius: 10px 0 0 10px;
  background: var(--bg2, rgba(0,0,0,.04)); font-family: 'DM Mono', monospace; font-size: .85rem; color: var(--text-2); white-space: nowrap; }
.fu-prefix input { border-radius: 0 10px 10px 0 !important; }
.fu-result { border-left: 4px solid var(--green, #16a34a); }
.fu-search { display: flex; gap: .6rem; margin-bottom: 1rem; }
.fu-search .btn-secondary { width: auto; }
.fu-linklist { list-style: none; padding: 0; margin: 0; }
.fu-linklist li { display: flex; flex-wrap: wrap; gap: .8rem 1.2rem; justify-content: space-between; align-items: center; padding: 1rem 0; border-top: 1px solid var(--border); }
.fu-linklist li:first-child { border-top: 0; }
.fu-linklist li.is-disabled { opacity: .6; }
.fu-l-main { display: grid; gap: .2rem; min-width: 0; flex: 1 1 320px; }
.fu-l-title { font-size: .95rem; }
.fu-l-short { border: 0 !important; background: none !important; padding: 0 !important; font-family: 'DM Mono', monospace; font-weight: 700; color: var(--accent) !important; font-size: 1rem !important; }
.fu-l-dest { font-size: .85rem; color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 60ch; }
.fu-l-meta { font-size: .8rem; color: var(--text-3, #64748b); }
.fu-l-actions { display: flex; flex-wrap: wrap; gap: .4rem; }
.fu-l-actions .btn-secondary { width: auto; padding: .45rem .8rem; font-size: .82rem; }
.fu-spark { width: 100%; max-width: 600px; height: 90px; display: block; margin: .5rem 0; }
.fu-spark rect { fill: var(--accent, #2563eb); }
.fu-danger { color: var(--red, #dc2626) !important; border-color: var(--red, #dc2626) !important; }
.fu-s-card { max-width: 640px; margin: 3rem auto; }
.fu-s-dest span { font-family: 'DM Mono', monospace; font-size: .85rem; word-break: break-all; color: var(--text-2); }
.fu-s-note { font-size: .88rem; color: var(--text-2); }
.fu-s-actions { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; }
.fu-s-actions .btn-primary { width: auto; }
.fu-s-report { font-weight: 800; color: var(--red, #dc2626); }
@media (max-width: 600px) { .fu-search { flex-direction: column; } }
.fu-center { justify-content: center; margin-top: 1rem; }
.fu-links a.btn-primary, .fu-links a.btn-secondary { text-decoration: none; }
.fu-links .fu-linklist li { padding-left: 0; }
.fu-links .fu-linklist li::before { content: none; display: none; }
/* v1.14.0: saved UTM links */
.fu-set-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; flex-wrap: wrap; }
.fu-set-head h2 { margin: 0 0 .2rem; }
.fu-l-full { border: 0 !important; background: none !important; padding: 0 !important; font-family: 'DM Mono', monospace; font-size: .8rem !important; color: var(--text-2) !important; width: 100%; }
.fu-l-meta a { color: var(--accent); font-family: 'DM Mono', monospace; }

/* ------------------------------------------------------------------
 * v1.15.0: Short Links explainer (long link > shorten > send > unpacks)
 * ------------------------------------------------------------------ */
.fu-flow { max-width: 1040px; margin: 0 auto 1.4rem; padding: 1rem 1rem 0.9rem; background: var(--surface); border: 1px solid var(--border); border-radius: 20px; box-shadow: var(--shadow-card); }
.fu-flow-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 26px 1fr 26px 1fr 26px 1fr; align-items: stretch; }
.fu-flow-steps li::before { content: none !important; }
.fu-flow-step { position: relative; display: flex; flex-direction: column; gap: 0.4rem; padding: 0.8rem; margin: 0; border-radius: 14px; background: var(--bg2); border: 1px solid var(--border); text-align: left; animation: fuFlowLit 8s ease-in-out infinite; }
.fu-flow-2 { animation-delay: 2s; } .fu-flow-3 { animation-delay: 4s; } .fu-flow-4 { animation-delay: 6s; }
.fu-flow-num { width: 22px; height: 22px; border-radius: 50%; display: inline-grid; place-items: center; font-size: 0.7rem; font-weight: 900; color: #fff; background: linear-gradient(135deg, #2563eb, #7c3aed); }
.fu-flow-step strong { font-size: 0.82rem; font-weight: 900; color: var(--text); line-height: 1.25; }
.fu-flow-note { font-size: 0.7rem; color: var(--text-2); font-weight: 700; margin-top: auto; }
.fu-flow-chip { display: block; font-family: var(--mono); font-size: 0.66rem; line-height: 1.45; padding: 0.35rem 0.5rem; border-radius: 8px; background: var(--surface); border: 1px solid var(--border); color: var(--text); word-break: break-all; overflow: hidden; }
.fu-flow-chip em { font-style: normal; color: #db2777; }
.fu-flow-short { color: var(--accent); font-weight: 600; animation: fuFlowPop 8s ease-in-out infinite 2s; }
.fu-flow-open { max-height: 2.55em; animation: fuFlowUnpack 8s ease-in-out infinite; }
.fu-flow-send { display: flex; align-items: center; gap: 0.5rem; }
.fu-flow-bubble { font-family: var(--mono); font-size: 0.64rem; padding: 0.4rem 0.6rem; border-radius: 12px 12px 12px 3px; background: #22c55e; color: #fff; font-weight: 600; word-break: break-all; animation: fuFlowPop 8s ease-in-out infinite 4s; }
.fu-flow-qr { width: 30px; height: 30px; flex: none; color: var(--text); }
.fu-flow-arrow { position: relative; margin: 0; }
.fu-flow-arrow span { position: absolute; left: 4px; right: 4px; top: 50%; height: 2px; background: var(--border-strong); border-radius: 2px; }
.fu-flow-arrow span::after { content: ""; position: absolute; right: -1px; top: -4px; border-left: 6px solid var(--border-strong); border-top: 5px solid transparent; border-bottom: 5px solid transparent; }
.fu-flow-arrow span::before { content: ""; position: absolute; top: -3px; left: 0; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); opacity: 0; animation: fuFlowDot 8s linear infinite; }
.fu-flow-arrow:nth-child(4) span::before { animation-delay: 2s; }
.fu-flow-arrow:nth-child(6) span::before { animation-delay: 4s; }
.fu-flow-foot { margin: 0.8rem 0 0; text-align: center; font-size: 0.8rem; color: var(--text-2); }
.fu-flow-foot a { font-weight: 800; }
@keyframes fuFlowLit { 0%, 26%, 100% { border-color: var(--border); box-shadow: none; transform: none; } 4%, 22% { border-color: var(--accent); box-shadow: 0 10px 24px -14px rgba(37, 99, 235, .6); transform: translateY(-2px); } }
@keyframes fuFlowPop { 0%, 100% { transform: scale(1); } 3% { transform: scale(0.9); } 8% { transform: scale(1.06); } 12% { transform: scale(1); } }
@keyframes fuFlowUnpack { 0%, 74% { max-height: 2.55em; } 84%, 97% { max-height: 12em; } }
@keyframes fuFlowDot { 0%, 21% { left: 0; opacity: 0; } 22% { opacity: 1; } 27% { left: calc(100% - 8px); opacity: 1; } 28%, 100% { left: calc(100% - 8px); opacity: 0; } }
@media (max-width: 860px) {
  .fu-flow-steps { grid-template-columns: 1fr; }
  .fu-flow-arrow { height: 22px; }
  .fu-flow-arrow span { left: 50%; right: auto; top: 3px; bottom: 3px; width: 2px; height: auto; }
  .fu-flow-arrow span::after { right: auto; top: auto; bottom: -1px; left: -4px; border-left: 5px solid transparent; border-right: 5px solid transparent; border-top: 6px solid var(--border-strong); border-bottom: 0; }
  .fu-flow-arrow span::before { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .fu-flow-step, .fu-flow-short, .fu-flow-bubble, .fu-flow-arrow span::before { animation: none; }
  .fu-flow-open { animation: none; max-height: none; }
}

/* v1.15.0: All links / QR codes filter, and QR thumbnails */
.fu-tabs { display: flex; gap: 0.4rem; margin: 0.8rem 0 0.2rem; flex-wrap: wrap; }
.fu-tabs a { padding: 0.4rem 0.85rem; border-radius: 999px; font-size: 0.8rem; font-weight: 800; text-decoration: none; color: var(--text-2); background: var(--bg2); border: 1px solid var(--border); }
.fu-tabs a:hover { color: var(--accent); border-color: var(--accent); }
.fu-tabs a.is-on { color: #fff; background: var(--accent); border-color: var(--accent); }
.fu-linklist li.has-qr { align-items: center; }
.fu-l-qr { flex: none; width: 96px; height: 96px; padding: 6px; border-radius: 12px; background: #fff; border: 1px solid var(--border); display: grid; place-items: center; box-shadow: var(--shadow-card); transition: transform .2s, box-shadow .2s; }
.fu-l-qr:hover { transform: translateY(-2px); box-shadow: 0 10px 22px -12px rgba(37, 99, 235, .6); }
/* qrcodejs draws a canvas and copies it into an <img>; show the image */
.fu-l-qr canvas { display: none !important; }
.fu-l-qr img, .fu-l-qr table { width: 84px !important; height: 84px !important; display: block; }
@media (max-width: 600px) { .fu-l-qr { width: 80px; height: 80px; } .fu-l-qr img, .fu-l-qr table { width: 68px !important; height: 68px !important; } }
