/* =============================================================================
   modes.css - the homepage's "Six search modes" section
   (components/home/SearchModes.tsx, hx-* classes). Linked from app/page.tsx
   after home.css, so "/" only.

   The cards are the site's own (.bento-container ring + .fl-bento #0f1214,
   site.css); this sheet lays them out and draws the dashboard crops in the
   dashboard's palette (search-css.ts): panel #141a1d, raised #1a2023,
   hairline #242c30, text #e4e4e7 / #d4d4d8, muted #8d9097 / #6f767c,
   teal #8fc3cc / #658a95.

   Component classes only - never a bare utility name (site.css, THE ONE
   RULE). Motion: opacity/transform plus the skeleton shimmer; all of it
   stops under prefers-reduced-motion.
   ============================================================================ */

/* --- layout ---------------------------------------------------------------- */
/* Eight modes, seven cards (UUID and Storage ID share one): two rows of three
   from 1024px, three rows of two from 768px, then Reverse Lookup - the newest
   - across the whole row. */
.hx{display:grid;grid-template-columns:1fr;gap:16px;width:100%;max-width:32rem;margin:90px auto 0}
@media (min-width:768px){
  .hx{max-width:none;margin-top:100px;grid-template-columns:repeat(2,1fr);gap:20px}
}
@media (min-width:1024px){
  .hx{grid-template-columns:repeat(3,1fr)}
}

/* --- card ------------------------------------------------------------------ */
/* .hx-cell is the <Reveal> wrapper: the stacking context the ring needs. */
.hx-cell{position:relative;display:flex;min-width:0}
.hx-card{position:relative;display:flex;flex-direction:column;width:100%;min-width:0;border-radius:2rem}
.hx-card.bento-container:before{border-radius:2rem}
.hx-text{padding:28px 28px 0}
.hx-title{font-size:18px;line-height:1.3;font-weight:500;letter-spacing:-.01em}
.hx-body{margin-top:8px;max-width:46ch;font-size:14px;line-height:1.65;color:#a9adb4}
/* The crop: a fixed 200px window pinned to the card's bottom, the panel
   anchored 28px in from the left and running off the right and bottom
   edges, faded out at the bottom. */
.hx-crop{position:relative;flex:none;height:200px;margin-top:auto;overflow:hidden;border-radius:0 0 2rem 2rem;-webkit-user-select:none;user-select:none;pointer-events:none;-webkit-mask:linear-gradient(to bottom,#000 60%,transparent);mask:linear-gradient(to bottom,#000 60%,transparent)}
.hx-text{margin-bottom:22px}
.hx-crop>.hx-panel{position:absolute;left:28px;top:0;right:-40px;bottom:-40px}

/* --- the dashboard panel ------------------------------------------------------ */
.hx-panel{display:flex;flex-direction:column;gap:10px;padding:14px 16px;border-radius:14px 0 0 0;border:1px solid #242c30;border-right:0;border-bottom:0;background:linear-gradient(180deg,#151b1e,#111618 60%);box-shadow:inset 0 1px 0 rgba(255,255,255,.04),0 -20px 60px -30px rgba(143,195,204,.18);overflow:hidden}
.hx-panel-h{display:flex;align-items:center;gap:10px}
.hx-panel-ico{display:grid;place-items:center;flex:none;width:28px;height:28px;border-radius:8px;border:1px solid #242c30;background:#1a2023;color:#8fc3cc}
.hx-panel-ico svg{width:14px;height:14px}
.hx-panel-t{display:flex;flex-direction:column;min-width:0}
.hx-panel-t b{font-size:12.5px;font-weight:600;color:#f4f4f5;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.hx-panel-t span{margin-top:1px;font-size:11px;color:#8d9097;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.hx-panel code,.hx-input,.hx-chip,.hx-meta,.hx-sel-row,.hx-id,.hx-code-n,.hx-chip-k,.hx-free{font-family:"Geist Mono",ui-monospace,monospace}
.hx-panel-t code{font-size:11px;color:#c4d6da}

/* shared bits */
.hx-sk{display:block;height:7px;border-radius:99px;background:linear-gradient(90deg,#222b2f,#33434a 50%,#222b2f);background-size:200% 100%;animation:hx-shimmer 2.6s linear infinite}
.hx-sk-dim{height:6px;opacity:.6}
.hx-btn{flex:none;display:inline-flex;align-items:center;gap:8px;height:32px;padding:0 13px;border-radius:99px;border:1px solid #2c383d;background:linear-gradient(180deg,#26353a,#1a2427);font-size:12px;font-weight:500;color:#e4e4e7;box-shadow:inset 0 1px 0 rgba(255,255,255,.07)}
.hx-btn svg{width:12px;height:12px}
.hx-chips{display:flex;flex-wrap:wrap;align-items:center;gap:6px}
.hx-chip-k{margin-right:4px;font-size:10px;letter-spacing:.16em;text-transform:uppercase;color:#6f767c}
.hx-chip{display:inline-flex;align-items:center;height:22px;padding:0 9px;border-radius:99px;border:1px solid #242c30;background:#161b1e;font-size:10.5px;color:#d4d4d8;white-space:nowrap}
.hx-chip.is-on{border-color:#3f5258;background:#243038;color:#f4f4f5}
.hx-meta{display:flex;flex-wrap:nowrap;align-items:center;gap:12px;margin-top:6px;font-size:10px;color:#8d9097}
.hx-meta>span{display:inline-flex;align-items:center;gap:5px;white-space:nowrap}
.hx-meta>span>.hx-sk{width:44px!important}
.hx-meta svg{width:11px;height:11px;color:#658a95}
.hx-ghost{display:grid;place-items:center;flex:none;width:26px;height:26px;border-radius:8px;border:1px solid #242c30;color:#8d9097}
.hx-ghost svg{width:12px;height:12px}

/* --- Intelligence Search ---------------------------------------------------- */
.hx-search{display:flex;align-items:center;gap:10px}
.hx-input{flex:1;min-width:0;display:flex;align-items:center;gap:8px;height:34px;padding:0 12px;border-radius:10px;border:1px solid #3a4b51;background:#0f1416;font-size:12px;color:#e4e4e7;box-shadow:0 0 0 3px rgba(143,195,204,.07)}
.hx-input svg{width:13px;height:13px;color:#6f767c}
.hx-caret{flex:none;display:inline-block;width:1.5px;height:14px;margin-left:-6px;background:#8fc3cc;animation:hx-blink 1.1s steps(1) infinite}
.hx-sum{display:flex;align-items:baseline;gap:8px;padding-top:8px;border-top:1px solid #1d2427}
.hx-sum b{font-size:13px;font-weight:600;color:#f4f4f5}
.hx-sum span{font-size:11px;color:#8d9097}
.hx-sum code{font-size:11px;color:#d4d4d8}
.hx-files{display:flex;flex-direction:column;gap:6px}
.hx-file{display:flex;align-items:center;gap:12px;padding:9px 12px;border-radius:11px;border:1px solid #1f272a;background:#141a1d}
.hx-file-ico{display:grid;place-items:center;flex:none;width:26px;height:26px;border-radius:8px;background:#1a2023;color:#8fc3cc}
.hx-file-ico svg{width:13px;height:13px}
.hx-file-main{flex:1;min-width:0}
.hx-file-main>.hx-sk{max-width:300px}

/* --- Phonebook ---------------------------------------------------------------- */
.hx-export{display:inline-flex;align-items:center;gap:6px;height:22px;padding:0 4px 0 9px;margin-left:8px;border-radius:99px;border:1px solid #242c30;font-family:"Geist Mono",monospace;font-size:10.5px;color:#d4d4d8}
.hx-export svg{width:11px;height:11px;color:#8d9097}
.hx-free{height:15px;display:inline-flex;align-items:center;padding:0 6px;border-radius:99px;background:#8fc3cc;color:#0b1416;font-size:9px;font-style:normal;font-weight:600;letter-spacing:.08em;text-transform:uppercase}
.hx-sel{display:grid;grid-template-columns:1fr;gap:5px}
.hx-sel-row{display:flex;align-items:center;justify-content:space-between;gap:10px;height:28px;padding:0 10px;border-radius:8px;border:1px solid #1f272a;background:#141a1d;font-size:11px;color:#d4d4d8}
.hx-sel-row code{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.hx-sel-row svg{flex:none;width:12px;height:12px;color:#5f676c}

/* --- Identity Search ---------------------------------------------------------- */
.hx-lines{display:flex;flex-direction:column;gap:6px}
.hx-line{padding:9px 12px;border-radius:11px;border:1px solid #1f272a;background:#141a1d}
.hx-line code{display:block;font-size:11px;color:#c4c7cc;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.hx-line mark{padding:1px 4px;border-radius:5px;background:rgba(143,195,204,.18);color:#dff0f3}

/* --- Stealer Export ----------------------------------------------------------- */
.hx-tree{display:flex;flex-direction:column;border-radius:11px;border:1px solid #1f272a;background:#141a1d;padding:6px 0}
.hx-tree-row{display:flex;align-items:center;gap:9px;height:27px;padding-right:14px}
.hx-tree-row svg{flex:none;width:12px;height:12px;color:#658a95}
.hx-size{margin-left:auto;width:38px;flex:none}

/* --- UUID & Storage ID -------------------------------------------------------- */
.hx-ids{display:flex;flex-wrap:wrap;gap:8px}
.hx-id{display:inline-flex;align-items:center;gap:8px;min-width:0;max-width:100%;height:26px;padding:0 10px;border-radius:99px;border:1px solid #242c30;background:#141a1d;font-size:11px;color:#e4e4e7;white-space:nowrap}
.hx-id>span{font-size:9px;letter-spacing:.14em;text-transform:uppercase;color:#6f767c}
.hx-id svg{flex:none;width:12px;height:12px;color:#5f676c}
.hx-code{display:flex;flex-direction:column;padding:6px 0;border-radius:11px;border:1px solid #1f272a;background:#0f1416}
.hx-code-row{display:grid;grid-template-columns:34px 1fr;align-items:center;height:21px;padding-right:20px}
.hx-code-n{text-align:right;padding-right:11px;font-size:10px;color:#3f484d}

.hx-id code{min-width:0;overflow:hidden;text-overflow:ellipsis}

/* --- motion -------------------------------------------------------------------- */
@keyframes hx-shimmer{to{background-position:-200% 0}}
@keyframes hx-blink{50%{opacity:0}}
@keyframes hx-in{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}


/* --- animation: one 8s loop per card ------------------------------------------ */
/* Intelligence Search: type, press, filter, results. */
.hx-type{display:inline-block;overflow:hidden;white-space:nowrap;width:16ch;animation:hx-type 8s steps(16,end) infinite}
.hx-cyc-1{border-color:#3f5258;background:#243038;color:#f4f4f5;animation:hx-cyc-1 8s steps(1) infinite}
.hx-cyc-2{animation:hx-cyc-2 8s steps(1) infinite}
.hx-cyc-3{animation:hx-cyc-3 8s steps(1) infinite}
.hx-loop{animation:hx-loop 8s cubic-bezier(.2,.7,.2,1) infinite both}
@keyframes hx-type{0%{width:0}20%,86%{width:16ch}94%,100%{width:0}}
/* the "on" chip: All, then leaks.logs, then pastes */
@keyframes hx-cyc-1{0%{border-color:#3f5258;background:#243038;color:#f4f4f5}45%{border-color:#242c30;background:#161b1e;color:#d4d4d8}}
@keyframes hx-cyc-2{0%{border-color:#242c30;background:#161b1e;color:#d4d4d8}45%{border-color:#3f5258;background:#243038;color:#f4f4f5}65%{border-color:#242c30;background:#161b1e;color:#d4d4d8}}
@keyframes hx-cyc-3{0%{border-color:#242c30;background:#161b1e;color:#d4d4d8}65%{border-color:#3f5258;background:#243038;color:#f4f4f5}89%{border-color:#242c30;background:#161b1e;color:#d4d4d8}}
/* results arrive after the press, leave before the next query */
@keyframes hx-loop{0%,26%{opacity:0;transform:translateY(10px)}34%,86%{opacity:1;transform:none}93%,100%{opacity:0;transform:translateY(-4px)}}

/* Phonebook: the list scrolls; one selector gets copied each pass. */
.hx-sel{display:block;overflow:hidden}
.hx-sel-track{display:flex;flex-direction:column;gap:5px;animation:hx-scroll 12s linear infinite}
@keyframes hx-scroll{to{transform:translateY(calc(-50% - 2.5px))}}
.hx-copy{position:relative;flex:none;display:grid;width:12px;height:12px}
.hx-copy svg{grid-area:1/1;width:12px;height:12px;color:#5f676c}
.hx-copy svg+svg{opacity:0;color:#8fc3cc}
.hx-copied{animation:hx-row-hi 6s ease infinite}
.hx-copied .hx-copy svg:first-child{animation:hx-ico-out 6s ease infinite}
.hx-copied .hx-copy svg+svg{animation:hx-ico-in 6s ease infinite}
@keyframes hx-row-hi{0%,30%,62%,100%{border-color:#1f272a;background:#141a1d}38%,54%{border-color:#3f5258;background:#1b2427}}
@keyframes hx-ico-out{0%,36%,58%,100%{opacity:1}40%,54%{opacity:0}}
@keyframes hx-ico-in{0%,36%,58%,100%{opacity:0;transform:scale(.6)}40%,54%{opacity:1;transform:none}}

/* Identity Search: lines arrive one by one, the searched term lights up. */
.hx-line mark{animation:hx-mark 8s ease infinite;animation-delay:inherit}
@keyframes hx-mark{0%,34%{background:rgba(143,195,204,.06)}44%{background:rgba(143,195,204,.36);box-shadow:0 0 14px rgba(143,195,204,.35)}56%,100%{background:rgba(143,195,204,.18);box-shadow:none}}

/* Stealer Export: the .zip downloads, the check lands, the tree opens. */
.hx-prog{display:flex;align-items:center;gap:10px}
.hx-prog-bar{flex:1;height:4px;border-radius:99px;background:#1a2226;overflow:hidden}
.hx-prog-bar span{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,#3b585e,#8fc3cc);transform-origin:left;animation:hx-fill 8s ease-in-out infinite}
.hx-prog-ok{display:grid;place-items:center;flex:none;width:18px;height:18px;border-radius:99px;background:#8fc3cc;color:#0b1416;animation:hx-pop 8s ease infinite}
.hx-prog-ok svg{width:11px;height:11px}
.hx-loop-late{animation:hx-loop-late 8s cubic-bezier(.2,.7,.2,1) infinite both}
@keyframes hx-fill{0%{transform:scaleX(0)}30%,92%{transform:scaleX(1)}100%{transform:scaleX(0)}}
@keyframes hx-pop{0%,30%{opacity:0;transform:scale(.4)}36%,90%{opacity:1;transform:none}96%,100%{opacity:0}}
@keyframes hx-loop-late{0%,34%{opacity:0;transform:translateX(-8px)}42%,88%{opacity:1;transform:none}95%,100%{opacity:0}}

/* UUID & Storage ID: the ID is copied, the raw text streams in. */
.hx-copy-id svg:first-child{animation:hx-ico-out 8s ease infinite}
.hx-copy-id svg+svg{animation:hx-ico-in 8s ease infinite}
.hx-stream{animation:hx-stream 8s ease-out infinite both}
@keyframes hx-stream{0%,8%{opacity:0;transform:translateX(-10px)}16%,88%{opacity:1;transform:none}96%,100%{opacity:0}}


/* --- the figures band under the modes (IntelxStats.tsx) ------------------ */
.hxs{display:grid;grid-template-columns:repeat(2,1fr);gap:1px;margin:20px auto 0;width:100%;max-width:32rem;border-radius:2rem;overflow:hidden;border:1px solid #1d2226;background:#1d2226}
@media (min-width:768px){.hxs{max-width:none;grid-template-columns:repeat(4,1fr);margin-top:20px}}
.hxs-item{display:flex;flex-direction:column;align-items:flex-start;gap:4px;padding:24px 26px;background:linear-gradient(180deg,#101416,#0c0f11)}
.hxs-n{font-family:"Geist Mono",ui-monospace,monospace;font-size:clamp(20px,2.2vw,30px);font-weight:600;letter-spacing:-.02em;color:#f4f4f5;font-variant-numeric:tabular-nums;white-space:nowrap;background:linear-gradient(180deg,#ffffff,#9fc9d1);-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent}
.hxs-l{font-size:14px;font-weight:600;color:#e0e0e2}
.hxs-s{font-size:12.5px;line-height:1.45;color:#8d9097}
@media (max-width:767px){.hxs{margin-top:12px;border-radius:24px}.hxs-item{padding:18px 18px}.hxs-n{font-size:19px}}

/* --- phone ---------------------------------------------------------------------- */
@media (max-width:767px){
  .hx{gap:12px;margin-top:var(--fl-m-head-gap,56px)}
  .hx-card,.hx-card.bento-container:before{border-radius:24px}
  .hx-text{padding:22px 20px 0;margin-bottom:18px}
  .hx-title{font-size:18px}
  .hx-body{margin-top:6px;font-size:15px;line-height:1.6}
  .hx-crop{height:170px;border-radius:0 0 24px 24px}
  .hx-crop>.hx-panel{left:20px}
  .hx-meta>span:nth-child(n+3){display:none}
}

/* --- Reverse Lookup: the whole row, text left, its answer right ------------- */
.hx-c-rev{grid-column:1/-1}
.hx-new{display:inline-flex;align-items:center;height:20px;margin-left:10px;padding:0 8px;border-radius:99px;background:#8fc3cc;color:#0b1416;font-family:"Geist Mono",ui-monospace,monospace;font-size:10px;font-weight:600;letter-spacing:.12em;text-transform:uppercase;vertical-align:3px}
.hx-live{display:inline-flex;align-items:center;gap:7px;flex:none;height:22px;margin-left:auto;margin-right:56px;padding:0 10px;border-radius:99px;border:1px solid #2c3a3f;background:#151c1f;font-family:"Geist Mono",ui-monospace,monospace;font-size:10.5px;color:#cfe6eb;white-space:nowrap}
.hx-live i{width:7px;height:7px;border-radius:50%;background:#8fc3cc;animation:hx-pulse 1.6s ease-out infinite}
/* a phone's crop is too narrow for both the title and the chip: the card's text says 1,000 */
@media (max-width:767.98px){.hx-live{display:none}}
@keyframes hx-pulse{0%{box-shadow:0 0 0 0 rgba(143,195,204,.5)}70%{box-shadow:0 0 0 8px rgba(143,195,204,0)}100%{box-shadow:0 0 0 0 rgba(143,195,204,0)}}
@media (min-width:768px){
  .hx-c-rev .hx-card{flex-direction:row}
  .hx-c-rev .hx-text{flex:0 0 36%;max-width:400px;margin:0;padding:34px 0 34px 34px;align-self:center}
  .hx-c-rev .hx-crop{flex:1;height:250px;margin:0 0 0 28px;border-radius:0 2rem 2rem 0}
  .hx-c-rev .hx-crop>.hx-panel{top:34px;left:0}
}

@media (prefers-reduced-motion:reduce){
.hx-live i{animation:none}
  .hx *{animation:none!important;transition:none!important}
}
