/* Website home → Features (partials/website/features.blade.php). Pictures are CSS / inline SVG. */
.ft { --ft-ok: #10b981; --ft-late: #f59e0b; --ft-bad: #ef4444; --ft-leave: #8b5cf6; --ft-visit: #06b6d4; --ft-hol: #ec4899; --ft-off: #e2e8f0; }

/* Tabs */
.ft-tabs { display: flex; justify-content: center; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 2.25rem; }
.ft-tab { display: inline-flex; align-items: center; gap: 0.5rem; border: 1px solid rgba(27, 38, 59, 0.1); background: white; color: #495057; border-radius: 999px; padding: 0.6rem 1.15rem; font-size: 0.92rem; font-weight: 600; cursor: pointer; transition: all .2s ease; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03); }
.ft-tab i { color: var(--primary-color); transition: color .2s ease; }
.ft-tab:hover { border-color: var(--accent-color); color: var(--primary-color); transform: translateY(-1px); }
.ft-tab[aria-selected="true"] { background: linear-gradient(135deg, var(--primary-color), var(--accent-color)); color: white; border-color: transparent; box-shadow: 0 8px 20px rgba(67, 97, 238, 0.28); }
.ft-tab[aria-selected="true"] i { color: white; }
.ft-tab:focus-visible { outline: 2px solid var(--accent-color); outline-offset: 2px; }

.ft-panel.is-on { animation: ftIn .45s ease; }
@keyframes ftIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* Text side */
.ft-kicker { display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--primary-color); background: rgba(67, 97, 238, 0.08); padding: 0.3rem 0.7rem; border-radius: 999px; margin-bottom: 0.8rem; }
.ft-title { font-size: 1.65rem; font-weight: 800; color: var(--dark-color); line-height: 1.25; margin-bottom: 0.6rem; }
.ft-lead { color: #6c757d; margin-bottom: 1.1rem; }
.ft-small { color: #6c757d; font-size: 0.85rem; margin: 1rem 0 0; }
.ft-small i { color: var(--primary-color); margin-right: 0.3rem; }
.ft-checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.65rem; }
.ft-checks li { display: flex; gap: 0.7rem; align-items: flex-start; font-size: 0.92rem; color: #4b5563; }
.ft-checks li > i { width: 32px; height: 32px; flex-shrink: 0; border-radius: 9px; background: linear-gradient(135deg, var(--primary-color), var(--accent-color)); color: white; display: flex; align-items: center; justify-content: center; font-size: 0.82rem; box-shadow: 0 4px 10px rgba(67, 97, 238, 0.2); }
.ft-checks b { color: var(--dark-color); }
.ft-periods { display: inline-flex; background: #eef2ff; border-radius: 12px; padding: 4px; gap: 4px; margin-bottom: 1rem; flex-wrap: wrap; }
.ft-periods span { padding: 0.35rem 0.8rem; border-radius: 9px; font-size: 0.82rem; font-weight: 700; color: var(--primary-color); }
.ft-periods span:first-child { background: white; box-shadow: 0 2px 6px rgba(67, 97, 238, 0.15); }
.ft-chips { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.ft-chips span { display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.8rem; font-weight: 600; color: #374151; background: white; border: 1px solid rgba(27, 38, 59, 0.1); border-radius: 999px; padding: 0.35rem 0.75rem; transition: all .2s ease; }
.ft-chips span:hover { border-color: var(--accent-color); color: var(--primary-color); transform: translateY(-1px); }
.ft-chips i { color: var(--primary-color); font-size: 0.78rem; }

/* Picture cards */
.ft-stage, .ft-mini { background: white; border-radius: 16px; border: 1px solid rgba(27, 38, 59, 0.07); box-shadow: 0 15px 35px rgba(27, 38, 59, 0.08); }
.ft-stage { padding: 1.25rem; position: relative; overflow: hidden; }
.ft-mini { padding: 1rem; height: 100%; display: flex; flex-direction: column; transition: transform .25s ease, box-shadow .25s ease; }
.ft-mini:hover { transform: translateY(-4px); box-shadow: 0 20px 40px rgba(27, 38, 59, 0.12); }
.ft-mini-head { display: flex; align-items: baseline; justify-content: space-between; gap: 0.5rem; margin-bottom: 0.7rem; }
.ft-mini-head b { font-size: 0.9rem; color: var(--dark-color); }
.ft-mini-head span { font-size: 0.72rem; color: #94a3b8; white-space: nowrap; }
.ft-mini-foot { margin-top: auto; padding-top: 0.65rem; font-size: 0.75rem; color: #6b7280; display: flex; align-items: center; gap: 0.35rem; flex-wrap: wrap; }
.ft-mini-foot > i { color: var(--ft-ok); }
.ft-key { display: inline-block; width: 10px; height: 10px; border-radius: 3px; }
.ft-key.ok { background: var(--ft-ok); }
.ft-key.no { background: #fecaca; margin-left: 0.4rem; }

/* 1 · network diagram */
.ft-net { display: grid; grid-template-columns: 1fr 1.1fr 1fr; align-items: center; min-height: 230px; background: radial-gradient(circle at 50% 50%, rgba(72, 149, 239, 0.1), transparent 60%), white; }
.ft-net-lines { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.ft-wire { fill: none; stroke: #dbe4ff; stroke-width: 2.5; vector-effect: non-scaling-stroke; }
.ft-pulse { fill: none; stroke: var(--primary-color); stroke-width: 3; stroke-linecap: round; vector-effect: non-scaling-stroke; stroke-dasharray: 14 400; animation: ftFlow 2.4s linear infinite; }
.ft-pulse.d1 { animation-delay: .8s; } .ft-pulse.d2 { animation-delay: 1s; } .ft-pulse.d3 { animation-delay: 1.2s; }
@keyframes ftFlow { from { stroke-dashoffset: 414; } to { stroke-dashoffset: 0; } }
.ft-net-you, .ft-net-cloud, .ft-net-devs { position: relative; z-index: 1; }
.ft-net-you { display: flex; flex-direction: column; align-items: center; gap: 0.35rem; }
.ft-net-you > span { font-size: 0.75rem; font-weight: 700; color: var(--dark-color); }
.ft-net-screen { width: 70px; height: 50px; border-radius: 10px; background: var(--dark-color); color: white; display: flex; align-items: center; justify-content: center; font-size: 1.4rem; box-shadow: 0 8px 18px rgba(27, 38, 59, 0.25); }
.ft-net-phone { position: absolute; top: 18px; right: calc(50% - 50px); width: 24px; height: 38px; border-radius: 6px; background: var(--primary-color); color: white; display: flex; align-items: center; justify-content: center; font-size: 0.8rem; border: 2px solid white; }
.ft-net-cloud { justify-self: center; width: 96px; height: 96px; border-radius: 50%; background: white; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.2rem; box-shadow: 0 0 0 8px rgba(67, 97, 238, 0.08), 0 12px 28px rgba(67, 97, 238, 0.25); animation: ftBeat 2.4s ease-in-out infinite; }
.ft-net-cloud i { font-size: 1.7rem; background: linear-gradient(135deg, var(--primary-color), var(--accent-color)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ft-net-cloud span { font-size: 0.68rem; font-weight: 800; color: var(--primary-color); }
@keyframes ftBeat { 50% { box-shadow: 0 0 0 14px rgba(67, 97, 238, 0.05), 0 12px 28px rgba(67, 97, 238, 0.25); } }
.ft-net-devs { display: flex; flex-direction: column; gap: 0.6rem; align-items: flex-end; }
.ft-dev { display: grid; grid-template-columns: auto auto; column-gap: 0.45rem; align-items: center; background: white; border: 1px solid rgba(27, 38, 59, 0.08); border-radius: 10px; padding: 0.4rem 0.6rem; box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05); min-width: 118px; }
.ft-dev i { grid-row: span 2; font-size: 1.1rem; color: var(--dark-color); }
.ft-dev span { font-size: 0.72rem; font-weight: 700; color: var(--dark-color); }
.ft-dev em { font-size: 0.62rem; font-style: normal; font-weight: 700; color: var(--ft-ok); display: flex; align-items: center; gap: 4px; }
.ft-dev em::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--ft-ok); animation: ftBlink 1.6s ease-in-out infinite; }
@keyframes ftBlink { 50% { opacity: .3; } }

/* 1 · ten fingers */
.ft-hands { width: 100%; height: auto; max-height: 130px; }
.ft-palm { fill: #eef2ff; stroke: #c7d2fe; stroke-width: 1.2; }
.ft-tip { fill: #e2e8f0; stroke: white; stroke-width: 2; animation: ftTip 6s ease infinite; animation-delay: calc(var(--n) * .28s); }
@keyframes ftTip { 0%, 4% { fill: #e2e8f0; } 10%, 85% { fill: var(--ft-ok); } 100% { fill: #e2e8f0; } }

/* 1 · weekly punch schedule */
.ft-week { display: grid; gap: 5px; }
.ft-week-row { display: grid; grid-template-columns: 30px 1fr; align-items: center; gap: 0.4rem; font-size: 0.68rem; font-weight: 700; color: #6b7280; }
.ft-week-bar { position: relative; height: 10px; border-radius: 5px; background: #fee2e2; overflow: hidden; }
.ft-week-bar.off { background: repeating-linear-gradient(45deg, #fee2e2, #fee2e2 4px, #fecaca 4px, #fecaca 8px); }
.ft-week-bar i { position: absolute; top: 0; bottom: 0; border-radius: 5px; background: var(--ft-ok); width: 0; animation: ftGrow .9s cubic-bezier(.2, .8, .2, 1) forwards; animation-delay: calc(var(--d) * .08s + .2s); }
@keyframes ftGrow { to { width: var(--w); } }

/* 1 · persons list (block / admin) */
.ft-people { display: grid; gap: 0.45rem; }
.ft-person { display: grid; grid-template-columns: 28px 1fr auto; align-items: center; gap: 0.55rem; }
.ft-av { width: 28px; height: 28px; border-radius: 50%; background: #e0e7ff; color: var(--primary-color); font-size: 0.62rem; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.ft-av.b { background: #fce7f3; color: #db2777; } .ft-av.c { background: #dcfce7; color: #16a34a; }
.ft-pn { font-size: 0.8rem; font-weight: 600; color: var(--dark-color); }
.ft-switch { width: 34px; height: 19px; border-radius: 10px; background: #cbd5e1; position: relative; transition: background .3s ease; }
.ft-switch::after { content: ""; position: absolute; top: 2px; left: 2px; width: 15px; height: 15px; border-radius: 50%; background: white; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2); transition: transform .3s ease; }
.ft-switch.on { background: var(--ft-ok); } .ft-switch.on::after { transform: translateX(15px); }
.ft-switch.ft-flip { animation: ftFlipBg 4s ease infinite; }
.ft-switch.ft-flip::after { animation: ftFlipKnob 4s ease infinite; }
@keyframes ftFlipBg { 0%, 45% { background: var(--ft-ok); } 55%, 100% { background: var(--ft-bad); } }
@keyframes ftFlipKnob { 0%, 45% { transform: translateX(15px); } 55%, 100% { transform: translateX(0); } }
.ft-role { font-size: 0.68rem; font-weight: 700; color: #6b7280; background: #f1f5f9; border-radius: 999px; padding: 0.2rem 0.55rem; }
.ft-role.admin { color: white; background: linear-gradient(135deg, #f59e0b, #f97316); }

/* 2 · monthly report */
.ft-report-head { display: flex; align-items: center; gap: 0.65rem; margin-bottom: 0.9rem; }
.ft-report-head b { display: block; color: var(--dark-color); font-size: 0.95rem; }
.ft-report-head span:not(.ft-av) { font-size: 0.75rem; color: #94a3b8; }
.ft-report-btns { margin-left: auto; display: flex; gap: 0.35rem; }
.ft-report-btns span { font-size: 0.68rem; font-weight: 800; padding: 0.25rem 0.55rem; border-radius: 6px; background: #fee2e2; color: #dc2626; }
.ft-report-btns span + span { background: #dcfce7; color: #16a34a; }
.ft-cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; }
.ft-cal b { font-size: 0.66rem; color: #94a3b8; text-align: center; font-weight: 700; }
.ft-cal span { aspect-ratio: 1.6; max-height: 34px; border-radius: 7px; display: flex; align-items: center; justify-content: center; font-size: 0.7rem; font-weight: 700; color: white; opacity: 0; transform: scale(.6); animation: ftPop .35s ease forwards; animation-delay: calc(var(--n) * 25ms + .15s); }
@keyframes ftPop { to { opacity: 1; transform: none; } }
.k-p { background: var(--ft-ok); } .k-l { background: var(--ft-late); } .k-a { background: var(--ft-bad); } .k-v { background: var(--ft-leave); }
.k-t { background: var(--ft-visit); } .k-h { background: var(--ft-hol); } .ft-cal .k-w, .ft-legend i.k-w { background: var(--ft-off); color: #64748b; }
.ft-legend { display: flex; flex-wrap: wrap; gap: 0.35rem 0.8rem; margin: 0.8rem 0; font-size: 0.7rem; color: #6b7280; font-weight: 600; }
.ft-legend span { display: inline-flex; align-items: center; gap: 0.3rem; }
.ft-legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.ft-sum { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.5rem; }
.ft-sum div { background: #ecfdf5; border-radius: 10px; padding: 0.5rem; text-align: center; }
.ft-sum b { display: block; font-size: 1.05rem; color: #047857; }
.ft-sum span { font-size: 0.66rem; color: #6b7280; font-weight: 600; }
.ft-sum .l { background: #fffbeb; } .ft-sum .l b { color: #b45309; }
.ft-sum .o { background: #eef2ff; } .ft-sum .o b { color: var(--primary-color); }
.ft-sum .v { background: #f5f3ff; } .ft-sum .v b { color: #6d28d9; }
.ft-row { margin-top: 0.75rem; display: flex; flex-wrap: wrap; gap: 0.4rem 0.9rem; align-items: center; font-size: 0.76rem; font-weight: 600; color: #374151; background: #f8fafc; border: 1px dashed #e2e8f0; border-radius: 10px; padding: 0.55rem 0.75rem; }
.ft-row i { color: #94a3b8; margin-right: 2px; }
.ft-row .late { color: #b45309; background: #fef3c7; border-radius: 6px; padding: 0.1rem 0.4rem; }
.ft-row .ot { color: var(--primary-color); background: #e0e7ff; border-radius: 6px; padding: 0.1rem 0.4rem; }

/* 3 · roster grid */
.ft-grid { display: grid; grid-template-columns: minmax(92px, 1.4fr) repeat(var(--cols), 1fr); gap: 5px; align-items: center; }
.ft-grid > b { font-size: 0.68rem; color: #94a3b8; text-align: center; font-weight: 700; }
.ft-grid-corner { text-align: left !important; color: var(--dark-color) !important; }
.ft-grid-name { font-size: 0.72rem; font-weight: 700; color: var(--dark-color); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ft-shift { height: 30px; border-radius: 7px; display: flex; align-items: center; justify-content: center; font-size: 0.7rem; font-weight: 800; color: white; opacity: 0; transform: translateY(6px); animation: ftPop .3s ease forwards; animation-delay: calc(var(--n) * 18ms + .1s); }
.s-M { background: #f59e0b; } .s-E { background: #3b82f6; } .s-N { background: #4338ca; } .ft-shift.s-O, .ft-legend i.s-O { background: var(--ft-off); color: #64748b; }
.ft-cover { display: grid; grid-template-columns: auto 1fr; gap: 0.75rem; align-items: center; background: #f8fafc; border-radius: 12px; padding: 0.65rem 0.8rem; }
.ft-cover > span { font-size: 0.75rem; font-weight: 700; color: var(--dark-color); }
.ft-cover-bars { display: grid; gap: 4px; }
.ft-cover-bars div { display: grid; grid-template-columns: 56px 1fr 30px; align-items: center; gap: 0.45rem; font-size: 0.68rem; }
.ft-cover-bars em { font-style: normal; color: #6b7280; font-weight: 600; }
.ft-cover-bars i { height: 7px; border-radius: 4px; background: var(--ft-ok); width: 0; animation: ftGrow 1s cubic-bezier(.2, .8, .2, 1) .4s forwards; }
.ft-cover-bars i.short { background: var(--ft-bad); }
.ft-cover-bars b { color: var(--dark-color); text-align: right; }

/* 4 · leave / payslip / visit / app */
.ft-flow { display: flex; align-items: flex-start; justify-content: space-between; position: relative; margin: 0.3rem 0 0.9rem; }
.ft-flow::before { content: ""; position: absolute; left: 12%; right: 12%; top: 15px; height: 3px; background: linear-gradient(90deg, var(--ft-ok), var(--ft-ok)) no-repeat 0 0 / 0 100%, #e2e8f0; animation: ftLine 1.4s ease .3s forwards; }
@keyframes ftLine { to { background-size: 100% 100%, auto; } }
.ft-step { position: relative; display: flex; flex-direction: column; align-items: center; gap: 0.3rem; width: 33%; }
.ft-step i { width: 32px; height: 32px; border-radius: 50%; background: #e2e8f0; color: white; display: flex; align-items: center; justify-content: center; font-size: 0.78rem; animation: ftStep .3s ease forwards; }
.ft-step:nth-child(1) i { animation-delay: .2s; } .ft-step:nth-child(2) i { animation-delay: .9s; } .ft-step:nth-child(3) i { animation-delay: 1.6s; }
@keyframes ftStep { to { background: var(--ft-ok); box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.15); } }
.ft-step span { font-size: 0.66rem; font-weight: 700; color: #6b7280; text-align: center; }
.ft-balance { display: grid; grid-template-columns: auto 1fr auto; gap: 0.5rem; align-items: center; font-size: 0.72rem; margin-top: auto; }
.ft-balance span { color: #6b7280; font-weight: 600; }
.ft-balance div { height: 8px; border-radius: 4px; background: #ede9fe; overflow: hidden; }
.ft-balance i { display: block; height: 100%; width: 0; background: var(--ft-leave); border-radius: 4px; animation: ftGrow 1s ease .6s forwards; }
.ft-balance b { color: var(--dark-color); }
.ft-slip-row { display: flex; justify-content: space-between; font-size: 0.78rem; padding: 0.32rem 0; border-bottom: 1px dashed #e5e7eb; color: #4b5563; }
.ft-slip-row b { color: var(--dark-color); font-variant-numeric: tabular-nums; }
.ft-slip-row b.up { color: #059669; } .ft-slip-row b.down { color: #dc2626; }
.ft-slip-row.total { border: 0; margin-top: 0.25rem; padding: 0.45rem 0.6rem; border-radius: 8px; background: linear-gradient(135deg, var(--primary-color), var(--accent-color)); color: white; font-weight: 700; }
.ft-slip-row.total b { color: white; }
.ft-map { position: relative; height: 84px; border-radius: 10px; background: linear-gradient(90deg, rgba(148, 163, 184, .15) 1px, transparent 1px) 0 0 / 18px 18px, linear-gradient(rgba(148, 163, 184, .15) 1px, transparent 1px) 0 0 / 18px 18px, #f0f9ff; overflow: hidden; }
.ft-route { position: absolute; left: 30px; right: 36px; top: 50%; border-top: 3px dashed var(--ft-visit); transform: rotate(-12deg); }
.ft-home { position: absolute; left: 14px; bottom: 14px; color: #64748b; font-size: 1.1rem; }
.ft-pin { position: absolute; right: 18px; top: 10px; color: var(--ft-visit); font-size: 1.5rem; animation: ftDrop 2.4s ease infinite; }
@keyframes ftDrop { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
.ft-phone { display: flex; flex-direction: column; align-items: center; gap: 0.5rem; padding: 0.4rem 0; }
.ft-phone-ring { width: 58px; height: 58px; border-radius: 50%; background: linear-gradient(135deg, var(--primary-color), var(--accent-color)); color: white; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; animation: ftRing 2s ease-out infinite; }
@keyframes ftRing { 0% { box-shadow: 0 0 0 0 rgba(67, 97, 238, .45); } 100% { box-shadow: 0 0 0 18px rgba(67, 97, 238, 0); } }
.ft-phone span { font-size: 0.78rem; font-weight: 700; color: var(--dark-color); }

@media (max-width: 576px) {
  .ft-tab { padding: 0.5rem 0.85rem; font-size: 0.82rem; }
  .ft-title { font-size: 1.35rem; }
  .ft-net { grid-template-columns: 1fr 1fr; grid-template-rows: auto auto; gap: 1rem; min-height: 0; }
  .ft-net-lines { display: none; }
  .ft-net-devs { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; justify-content: center; align-items: stretch; }
  .ft-sum { grid-template-columns: repeat(2, 1fr); }
  .ft-grid { grid-template-columns: minmax(70px, 1.2fr) repeat(var(--cols), 1fr); gap: 3px; }
  .ft-grid-name { font-size: 0.64rem; }
  .ft-shift { height: 24px; font-size: 0.6rem; }
}
@media (prefers-reduced-motion: reduce) {
  .ft *, .ft *::before, .ft *::after { animation-duration: 0s !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition: none !important; }
  .ft-tip { fill: var(--ft-ok); }
}

/* 1 · face */
.ft-face { position: relative; display: flex; justify-content: center; }
.ft-face svg { height: 118px; width: auto; max-width: 100%; }
.ft-face-corner { fill: none; stroke: var(--primary-color); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.ft-face-head { fill: #eef2ff; stroke: #c7d2fe; stroke-width: 1.5; }
.ft-face-hair { fill: #c7d2fe; }
.ft-face-smile { fill: none; stroke: #94a3b8; stroke-width: 2; stroke-linecap: round; }
.ft-face-dot { fill: #94a3b8; animation: ftFaceDot 4s ease infinite; animation-delay: calc(var(--n) * .15s); }
@keyframes ftFaceDot { 0%, 45% { fill: #94a3b8; } 55%, 90% { fill: var(--ft-ok); } 100% { fill: #94a3b8; } }
.ft-face-scan { fill: var(--accent-color); opacity: .75; filter: drop-shadow(0 0 4px rgba(72, 149, 239, .8)); animation: ftScan 4s ease-in-out infinite; }
@keyframes ftScan { 0% { transform: translateY(0); opacity: .8; } 45% { transform: translateY(72px); opacity: .8; } 50%, 100% { transform: translateY(72px); opacity: 0; } }
.ft-face-ok { position: absolute; right: calc(50% - 64px); bottom: 6px; width: 26px; height: 26px; border-radius: 50%; background: var(--ft-ok); color: white; font-size: 0.75rem; display: flex; align-items: center; justify-content: center; box-shadow: 0 0 0 3px white; transform: scale(0); animation: ftOk 4s ease infinite; }
@keyframes ftOk { 0%, 48% { transform: scale(0); } 56%, 92% { transform: scale(1); } 100% { transform: scale(0); } }

/* 1 · upload to every device */
.ft-upload { display: grid; grid-template-columns: auto 1fr; gap: 0.75rem; align-items: center; }
.ft-upload-from { display: flex; flex-direction: column; }
.ft-upload-from .ft-av + .ft-av { margin-top: -6px; box-shadow: 0 0 0 2px white; }
.ft-upload-lanes { display: grid; gap: 0.45rem; }
.ft-lane { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 0.5rem; }
.ft-lane > i { height: 6px; border-radius: 3px; background: #e2e8f0; position: relative; overflow: hidden; }
.ft-lane > i::after { content: ""; position: absolute; inset: 0; width: 0; background: linear-gradient(90deg, var(--primary-color), var(--ft-ok)); border-radius: 3px; animation: ftLoad 4.5s ease infinite; animation-delay: calc(var(--n) * .35s); }
@keyframes ftLoad { 0% { width: 0; } 45%, 90% { width: 100%; } 100% { width: 100%; opacity: 0; } }
.ft-lane span { font-size: 0.7rem; font-weight: 700; color: var(--dark-color); white-space: nowrap; }
.ft-lane span i { color: #64748b; margin-right: 2px; }

/* 4 · check in four ways (12 s loop, each shown 3 s) */
.ft-ways { position: relative; height: 104px; }
.ft-way { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.5rem; opacity: 0; animation: ftWay 12s infinite; animation-delay: calc(var(--n) * 3s); }
@keyframes ftWay { 0% { opacity: 0; transform: translateY(6px); } 3%, 22% { opacity: 1; transform: none; } 25%, 100% { opacity: 0; transform: translateY(-6px); } }
.ft-way > span { font-size: 0.78rem; font-weight: 700; color: var(--dark-color); }
.ft-gps { position: relative; width: 64px; height: 58px; border-radius: 12px; background: linear-gradient(90deg, rgba(148, 163, 184, .2) 1px, transparent 1px) 0 0 / 12px 12px, linear-gradient(rgba(148, 163, 184, .2) 1px, transparent 1px) 0 0 / 12px 12px, #f0f9ff; display: flex; align-items: center; justify-content: center; }
.ft-gps i { color: #ef4444; font-size: 1.5rem; position: relative; z-index: 1; animation: ftDrop 1.5s ease infinite; }
.ft-gps em { position: absolute; bottom: 14px; width: 18px; height: 6px; border-radius: 50%; background: rgba(239, 68, 68, .25); }
.ft-fence { position: relative; width: 70px; height: 62px; display: flex; align-items: center; justify-content: center; }
.ft-fence::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px dashed var(--ft-ok); background: rgba(16, 185, 129, .08); }
.ft-fence i { color: #64748b; font-size: 1.2rem; }
.ft-fence b { position: absolute; width: 12px; height: 12px; border-radius: 50%; background: var(--primary-color); box-shadow: 0 0 0 4px rgba(67, 97, 238, .2); right: 14px; bottom: 12px; }
.ft-wifi { width: 62px; height: 62px; border-radius: 50%; background: rgba(67, 97, 238, .08); display: flex; align-items: center; justify-content: center; }
.ft-wifi i { font-size: 1.6rem; color: var(--primary-color); animation: ftBlink 1.2s ease-in-out infinite; }
.ft-way-chips { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.35rem; margin-top: auto; padding-top: 0.6rem; }
.ft-way-chips span { font-size: 0.68rem; font-weight: 700; color: #6b7280; background: #f1f5f9; border-radius: 999px; padding: 0.25rem 0.5rem; text-align: center; white-space: nowrap; animation: ftChip 12s infinite; animation-delay: calc(var(--n) * 3s); }
.ft-way-chips i { margin-right: 2px; }
@keyframes ftChip { 0%, 24% { background: var(--primary-color); color: white; } 25%, 100% { background: #f1f5f9; color: #6b7280; } }
@media (prefers-reduced-motion: reduce) {
  .ft-way { position: static; opacity: 1; }
  .ft-way + .ft-way { display: none; }
  .ft-ways { height: auto; }
  .ft-face-ok { transform: none; }
}

/* 4 · notifications */
.ft-notes { display: grid; gap: 0.45rem; }
.ft-note { display: flex; align-items: center; gap: 0.55rem; font-size: 0.74rem; color: #4b5563; background: #f8fafc; border-radius: 10px; padding: 0.45rem 0.6rem; opacity: 0; transform: translateX(14px); animation: ftNote .45s ease forwards; animation-delay: calc(var(--n) * .5s + .3s); }
.ft-note > i { width: 24px; height: 24px; border-radius: 50%; flex-shrink: 0; background: #e0e7ff; color: var(--primary-color); display: flex; align-items: center; justify-content: center; font-size: 0.68rem; }
.ft-note:nth-child(2) > i { background: #dcfce7; color: #16a34a; }
.ft-note b { color: var(--dark-color); }
@keyframes ftNote { to { opacity: 1; transform: none; } }

/* 5 · self attendance: phone + manager side */
.ft-self { display: grid; grid-template-columns: minmax(220px, 260px) 1fr; gap: 1.25rem; align-items: center; }
.ft-handset { background: white; border-radius: 30px; padding: 0.9rem 0.9rem 1.1rem; border: 8px solid var(--dark-color); box-shadow: 0 25px 50px rgba(27, 38, 59, 0.22); display: flex; flex-direction: column; min-height: 380px; }
.ft-handset-top { display: flex; justify-content: center; margin: -0.35rem 0 0.75rem; }
.ft-handset-top span { width: 70px; height: 6px; border-radius: 3px; background: #e2e8f0; }
.ft-handset-hello { display: flex; align-items: center; gap: 0.55rem; padding-bottom: 0.75rem; border-bottom: 1px solid #f1f5f9; }
.ft-handset-hello b { display: block; font-size: 0.82rem; color: var(--dark-color); }
.ft-handset-hello span:not(.ft-av) { font-size: 0.68rem; color: #94a3b8; }
.ft-app { flex: 1; display: flex; flex-direction: column; }
.ft-handset .ft-ways { height: 190px; }
.ft-handset .ft-phone-ring { width: 86px; height: 86px; font-size: 2rem; }
.ft-handset .ft-gps { width: 110px; height: 96px; }
.ft-handset .ft-gps i { font-size: 2.2rem; }
.ft-handset .ft-gps em { bottom: 24px; width: 26px; }
.ft-handset .ft-fence { width: 116px; height: 100px; }
.ft-handset .ft-fence i { font-size: 1.8rem; }
.ft-handset .ft-wifi { width: 96px; height: 96px; }
.ft-handset .ft-wifi i { font-size: 2.4rem; }
.ft-handset .ft-way > span { font-size: 0.9rem; }
.ft-self-side { display: grid; gap: 1rem; }
.ft-pn small { display: block; font-size: 0.66rem; color: #94a3b8; font-weight: 600; }
.ft-role.ok { color: #047857; background: #d1fae5; }
.ft-approve { font-size: 0.66rem; font-weight: 800; border-radius: 999px; padding: 0.22rem 0.6rem; color: white; background: var(--primary-color); position: relative; animation: ftApprove 5s ease infinite; }
.ft-approve::before { content: "Approve"; animation: ftApproveTxt 5s step-end infinite; }
@keyframes ftApproveTxt { 0% { content: "Approve"; } 55% { content: "\2713  Approved"; } }
@keyframes ftApprove { 0%, 50% { background: var(--primary-color); } 55%, 100% { background: var(--ft-ok); } }
.ft-daily { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; }
.ft-daily div { background: #ecfdf5; border-radius: 10px; padding: 0.55rem; text-align: center; }
.ft-daily b { display: block; font-size: 1.2rem; color: #047857; }
.ft-daily span { font-size: 0.68rem; color: #6b7280; font-weight: 600; }
.ft-daily .l { background: #fffbeb; } .ft-daily .l b { color: #b45309; }
@media (max-width: 576px) {
  .ft-self { grid-template-columns: 1fr; }
  .ft-handset { max-width: 280px; margin: 0 auto; width: 100%; min-height: 340px; }
}
