/* /tools/barcode-generator: How it works scene (one value, the type switches CODE128 > UPC-A > EAN-13, the 2 x 1 label follows). */
.hub-anim.ha-barcode-generator .ha-stage { min-height: 0; border: 1px solid #c7d2fe; background: radial-gradient(110% 90% at 50% 0%, #ffffff 0%, #eef2ff 60%, #e0e7ff 100%); }
.hub-anim.ha-barcode-generator .sc { display: flex; align-items: center; justify-content: center; gap: 1.3rem; min-height: 250px; }
.hub-anim.ha-barcode-generator .sc-arrow { color: #3730a3; flex: 0 0 auto; } .hub-anim.ha-barcode-generator .sc-arrow svg { width: 60px; height: 30px; display: block; }
.hub-anim.ha-barcode-generator .bg-tool { width: 230px; flex: 0 0 auto; padding: 14px; background: #fff; border: 1px solid #c7d2fe; border-radius: 14px; box-sizing: border-box; box-shadow: 0 14px 26px -18px rgba(55, 48, 163, .55); }
.hub-anim.ha-barcode-generator .bg-field { margin: 0 0 10px; }
.hub-anim.ha-barcode-generator .bg-field small { display: block; margin-bottom: 4px; font: 700 .62rem/1 Inter, system-ui, sans-serif; color: #4338ca; text-transform: uppercase; letter-spacing: .08em; }
.hub-anim.ha-barcode-generator .bg-field b { display: block; padding: 8px 10px; border: 1.5px solid #a5b4fc; border-radius: 8px; font: 700 .86rem/1 ui-monospace, Menlo, monospace; color: #1e1b4b; }
.hub-anim.ha-barcode-generator .bg-chips { display: flex; gap: 5px; margin: 0 0 10px; }
.hub-anim.ha-barcode-generator .bg-chips i { flex: 1; padding: 6px 0; border: 1px solid #c7d2fe; border-radius: 7px; background: #f5f7ff; font: 800 .6rem/1 Manrope, Inter, sans-serif; font-style: normal; color: #4338ca; text-align: center; }
.hub-anim.ha-barcode-generator .bg-tool em { display: block; padding: 8px 0; border-radius: 8px; background: #4338ca; color: #fff; font: 800 .72rem/1 Manrope, Inter, sans-serif; font-style: normal; text-align: center; }
.hub-anim.ha-barcode-generator .bg-label { position: relative; width: 240px; height: 120px; flex: 0 0 auto; background: #fff; border: 1.5px solid #1e1b4b; border-radius: 8px; box-shadow: 0 16px 26px -18px rgba(30, 27, 75, .6); }
.hub-anim.ha-barcode-generator .bg-size { position: absolute; left: 0; right: 0; top: -20px; font: 700 .62rem/1 Inter, system-ui, sans-serif; color: #4338ca; text-align: center; }
.hub-anim.ha-barcode-generator .bg-l { position: absolute; inset: 0; padding: 10px 16px 6px; display: flex; flex-direction: column; align-items: center; opacity: 0; }
.hub-anim.ha-barcode-generator .bg-l b { font: 800 .7rem/1.2 Manrope, Inter, sans-serif; color: #1e1b4b; margin-bottom: 6px; }
.hub-anim.ha-barcode-generator .bg-bars { display: block; width: 168px; height: 56px; fill: #111827; }
.hub-anim.ha-barcode-generator .bg-l span { margin-top: 3px; font: 600 .64rem/1 ui-monospace, Menlo, monospace; color: #111827; letter-spacing: .08em; }
.hub-anim.ha-barcode-generator .bg-ret { position: relative; width: 170px; height: 66px; }
.hub-anim.ha-barcode-generator .bg-ret .bg-retail { position: absolute; left: 12px; top: 0; width: 146px; height: 62px; }
.hub-anim.ha-barcode-generator .bg-ret i { position: absolute; bottom: 0; transform: translateX(-50%); padding: 0 2px; background: #fff; font: 600 .62rem/1 ui-monospace, Menlo, monospace; font-style: normal; color: #111827; letter-spacing: .06em; }
.hub-anim.ha-barcode-generator .bg-ret .bg-d0 { left: 5px; bottom: 2px; background: none; } .hub-anim.ha-barcode-generator .bg-ret .bg-d9 { left: 165px; bottom: 2px; background: none; }
.hub-anim.ha-barcode-generator .bg-ret .bg-dl { left: 49px; } .hub-anim.ha-barcode-generator .bg-ret .bg-dr { left: 121px; }
@media (max-width: 640px) {
 .hub-anim.ha-barcode-generator .sc { flex-direction: column; gap: 1rem; } .hub-anim.ha-barcode-generator .sc-arrow { transform: rotate(90deg); } .hub-anim.ha-barcode-generator .ha-stage { padding-bottom: 3.4rem; }
 .hub-anim.ha-barcode-generator .bg-tool { width: 220px; } .hub-anim.ha-barcode-generator .bg-label { width: 220px; height: 110px; margin-top: 12px; } .hub-anim.ha-barcode-generator .bg-bars { width: 154px; height: 50px; }
}
/* Reduced motion: the finished scene (CODE128 picked, its label shown). */
.hub-anim.ha-barcode-generator .bg-l1 { opacity: 1; } .hub-anim.ha-barcode-generator .bg-c1 { background: #4338ca; color: #fff; border-color: #4338ca; }
@media (prefers-reduced-motion: no-preference) {
 .hub-anim.ha-barcode-generator .bg-l { animation: bg-show 12s ease infinite both; } .hub-anim.ha-barcode-generator .bg-l2 { animation-delay: -8s; } .hub-anim.ha-barcode-generator .bg-l3 { animation-delay: -4s; }
 .hub-anim.ha-barcode-generator .bg-chips i { animation: bg-chip 12s ease infinite both; } .hub-anim.ha-barcode-generator .bg-chips .bg-c2 { animation-delay: -8s; } .hub-anim.ha-barcode-generator .bg-chips .bg-c3 { animation-delay: -4s; }
 .hub-anim.ha-barcode-generator .bg-l .bg-bars { animation: bg-draw 12s ease infinite both; } .hub-anim.ha-barcode-generator .bg-l2 .bg-bars { animation-delay: -8s; } .hub-anim.ha-barcode-generator .bg-l3 .bg-bars { animation-delay: -4s; }
 .hub-anim.ha-barcode-generator .bg-tool em { animation: bg-go 4s ease infinite both; }
 @keyframes bg-show { 0%, 30% { opacity: 1; } 33.4%, 100% { opacity: 0; } }
 @keyframes bg-chip { 0%, 30% { background: #4338ca; color: #fff; border-color: #4338ca; } 33.4%, 100% { background: #f5f7ff; color: #4338ca; border-color: #c7d2fe; } }
 @keyframes bg-draw { 0% { clip-path: inset(0 100% 0 0); } 8%, 100% { clip-path: inset(0 0 0 0); } }
 @keyframes bg-go { 0%, 6% { transform: none; background: #4338ca; } 9% { transform: scale(.95); background: #312e81; } 13%, 100% { transform: none; background: #4338ca; } }
}
