/* Scan app */
.app-hero { position: relative; padding: 150px 0 40px; text-align: center; overflow: hidden; isolation: isolate; }
.app-hero::before { content: ''; position: absolute; inset: -30% -10% auto; height: 640px; background: radial-gradient(55% 55% at 50% 0%, rgba(113, 120, 130,.38), transparent 70%); z-index: -1; }
.app-hero::after { content: ''; position: absolute; left: 50%; bottom: -220px; width: 1300px; height: 380px; transform: translateX(-50%); background: radial-gradient(closest-side, rgba(135, 141, 151,.22), transparent); z-index: -1; }
.app-hero h1 { font-size: clamp(38px, 5vw, 60px); font-weight: 500; letter-spacing: -0.035em; line-height: 1.08; margin: 26px 0 16px; }
.app-hero p { color: var(--muted); max-width: 600px; margin: 0 auto; }

.tabs { display: inline-flex; gap: 4px; padding: 4px; border-radius: 12px; border: 1px solid var(--line); background: rgba(255,255,255,.02); margin-top: 34px; }
.tab { border: 0; background: none; padding: 9px 18px; border-radius: 9px; font-size: 14px; color: var(--muted); cursor: pointer; transition: .2s; }
.tab.active { background: linear-gradient(180deg, #79808b, #5b6169); color: #fff; box-shadow: 0 0 0 1px rgba(177, 181, 187,.35) inset; }

.scan-box { max-width: 760px; margin: 30px auto 0; padding: 8px; display: flex; gap: 8px; }
.scan-box .input { height: 54px; font-family: var(--mono); font-size: 14.5px; background: rgba(0,0,0,.35); }
.scan-box .btn { height: 54px; min-width: 150px; }
.examples { margin-top: 14px; display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; font-size: 13px; color: var(--dim); }
.chip { border: 1px solid var(--line); background: rgba(255,255,255,.02); padding: 4px 11px; border-radius: 999px; color: #c0c3c8; cursor: pointer; font-size: 12.5px; font-family: var(--mono); }
.chip:hover { border-color: var(--line-blue); color: #fff; }
.error-box { max-width: 760px; margin: 18px auto 0; padding: 14px 18px; border-radius: 10px; border: 1px solid rgba(255,91,107,.35); background: rgba(255,91,107,.08); color: #ffb3ba; font-size: 14.5px; text-align: left; }

/* Progress */
.progress { max-width: 760px; margin: 34px auto 0; padding: 26px; text-align: left; }
.progress h3 { font-size: 17px; font-weight: 500; }
.progress p { color: var(--muted); font-size: 14px; margin-top: 4px; }
.chain-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.cchip { display: inline-flex; align-items: center; gap: 7px; padding: 6px 11px; border-radius: 8px; border: 1px solid var(--line); font-size: 12.5px; font-family: var(--mono); color: var(--muted); transition: .3s; }
.cchip i { width: 6px; height: 6px; border-radius: 50%; background: var(--dim); }
.cchip.reading i { background: var(--blue-soft); animation: pulse 1s ease-in-out infinite; }
.cchip.active { color: #fff; border-color: var(--line-blue); } .cchip.active i { background: var(--green); }
.cchip.empty i { background: #4b5057; }
.cchip.unavailable { opacity: .55; } .cchip.unavailable i { background: var(--red); }
@keyframes pulse { 50% { opacity: .25; } }
.bar-line { height: 3px; border-radius: 3px; background: rgba(255,255,255,.06); margin-top: 22px; overflow: hidden; }
.bar-line i { display: block; height: 100%; width: 30%; background: linear-gradient(90deg, transparent, var(--blue-soft), transparent); animation: sweep 1.3s linear infinite; }
@keyframes sweep { from { transform: translateX(-100%); } to { transform: translateX(340%); } }

/* Report */
.report { margin-top: 40px; display: grid; gap: 20px; }
.r-grid { display: grid; grid-template-columns: 380px 1fr; gap: 20px; align-items: start; }
.panel { padding: 26px; border-radius: 14px; border: 1px solid var(--line); background: rgba(255,255,255,.015); }
.panel h3 { font-size: 13px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 18px; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.score-card { padding: 30px; text-align: center; }
.score-card .ring { width: 190px; height: 190px; margin: 0 auto; }
.score-card .ring .val b { font-size: 58px; }
.grade { font-size: 26px; font-weight: 500; margin-top: 16px; letter-spacing: -0.02em; }
.score-card .sum { color: var(--muted); font-size: 14.5px; margin-top: 6px; }
.addr-line { margin-top: 18px; font-family: var(--mono); font-size: 12px; color: #b5b9be; word-break: break-all; padding: 10px; border-radius: 8px; background: rgba(0,0,0,.25); border: 1px solid var(--line); }
.ens-tag { display: inline-block; margin-top: 10px; font-size: 13px; padding: 3px 10px; border-radius: 999px; background: rgba(135, 141, 151,.16); border: 1px solid var(--line-blue); }
.score-actions { display: flex; gap: 8px; justify-content: center; margin-top: 18px; flex-wrap: wrap; }
.score-actions .btn { height: 38px; padding: 0 14px; font-size: 13.5px; }
.totals { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 20px; text-align: left; }
.totals div { padding: 12px; border-radius: 10px; border: 1px solid var(--line); background: rgba(0,0,0,.2); }
.totals b { display: block; font-size: 20px; font-weight: 500; }
.totals span { font-size: 12px; color: var(--muted); }

.cats { display: grid; gap: 14px; }
.cat-row { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; font-size: 14px; }
.cat-row .pts { font-family: var(--mono); font-size: 12.5px; color: var(--muted); }
.cat-row .pts.hit { color: #ffcd80; }
.cat-row .track { grid-column: 1 / -1; height: 6px; border-radius: 6px; background: rgba(255,255,255,.06); overflow: hidden; }
.cat-row .track i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #ffb547, #ff5b6b); transition: width 1s ease; }

.findings { display: grid; gap: 12px; }
.finding { border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,.015); overflow: hidden; }
.finding.critical { border-color: rgba(255,91,107,.32); background: linear-gradient(180deg, rgba(255,91,107,.06), transparent 60%); }
.finding.high { border-color: rgba(255,181,71,.25); }
.f-head { display: flex; align-items: center; gap: 12px; padding: 18px 20px 0; flex-wrap: wrap; }
.f-head h4 { font-size: 17px; font-weight: 500; flex: 1; min-width: 200px; }
.f-head .pen { font-family: var(--mono); font-size: 15px; color: #ffcd80; }
.f-body { padding: 10px 20px 18px; }
.f-body p { color: #bdc0c5; font-size: 14.5px; }
.f-meta { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 12px; font-size: 12.5px; color: var(--muted); align-items: center; }
.conf { display: inline-flex; align-items: center; gap: 8px; }
.conf .m { width: 70px; height: 4px; border-radius: 4px; background: rgba(255,255,255,.08); overflow: hidden; }
.conf .m i { display: block; height: 100%; background: var(--blue-soft); }
.proof { margin-top: 12px; border-top: 1px dashed var(--line); padding-top: 10px; display: grid; gap: 6px; }
.proof a, .proof span { font-size: 13px; color: #cdd0d4; display: flex; gap: 8px; align-items: baseline; }
.proof a:hover { color: #fff; }
.proof .k { font-family: var(--mono); font-size: 11px; color: var(--blue-soft); flex: none; }
.empty-ok { text-align: center; padding: 40px 20px; color: var(--muted); }
.empty-ok b { display: block; color: #8ff0bb; font-size: 18px; font-weight: 500; margin-bottom: 6px; }

.linked { display: grid; gap: 10px; }
.lw { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--line); background: rgba(0,0,0,.18); }
.lw a { font-family: var(--mono); font-size: 13px; }
.lw a:hover { color: var(--blue-soft); }
.lw .c { font-size: 12.5px; color: #cdd0d3; }
.lw .why { grid-column: 1 / -1; font-size: 12px; color: var(--muted); }

.chainbars { display: grid; gap: 9px; }
.cb { display: grid; grid-template-columns: 90px 1fr 44px; gap: 10px; align-items: center; font-size: 12.5px; font-family: var(--mono); }
.cb .t { height: 8px; border-radius: 4px; background: rgba(255,255,255,.05); overflow: hidden; }
.cb .t i { display: block; height: 100%; background: linear-gradient(90deg, var(--blue), var(--cyan)); border-radius: inherit; }
.cb .n { text-align: right; color: var(--muted); }
.cb.off { opacity: .45; }

.hours { display: grid; grid-template-columns: repeat(24, 1fr); gap: 3px; align-items: end; height: 110px; }
.hours i { display: block; background: linear-gradient(180deg, var(--blue-soft), var(--blue-2)); border-radius: 3px 3px 0 0; min-height: 2px; }
.hours i.z { background: rgba(255,255,255,.06); }
.hours-axis { display: flex; justify-content: space-between; font-size: 11px; color: var(--dim); font-family: var(--mono); margin-top: 6px; }

.fix { display: grid; gap: 12px; counter-reset: fx; }
.fix li { list-style: none; display: grid; grid-template-columns: 32px 1fr; gap: 12px; }
.fix li::before { counter-increment: fx; content: counter(fx); width: 32px; height: 32px; border-radius: 8px; display: grid; place-items: center; background: rgba(135, 141, 151,.15); border: 1px solid var(--line-blue); font-family: var(--serif); font-style: italic; font-size: 17px; }
.fix b { font-weight: 500; display: block; }
.fix span { color: var(--muted); font-size: 14px; }
.side { display: grid; gap: 20px; }

/* Firewall */
.fw { max-width: 760px; margin: 30px auto 0; padding: 28px; text-align: left; }
.fw-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.fw-grid .full { grid-column: 1 / -1; }
select.input { appearance: none; background-image: linear-gradient(45deg, transparent 50%, #90969f 50%), linear-gradient(135deg, #90969f 50%, transparent 50%); background-position: calc(100% - 18px) 20px, calc(100% - 13px) 20px; background-size: 5px 5px; background-repeat: no-repeat; }
select.input option { background: #131518; }
.fw-result { max-width: 760px; margin: 20px auto 0; text-align: left; }
.risk { display: flex; align-items: center; gap: 24px; padding: 26px; flex-wrap: wrap; }
.risk .lvl { font-size: 13px; letter-spacing: .14em; color: var(--muted); }
.risk .lvl b { display: block; font-size: 34px; letter-spacing: -0.02em; font-weight: 500; }
.risk .lvl b.HIGH { color: #ff8d98; } .risk .lvl b.MEDIUM { color: #ffcd80; } .risk .lvl b.LOW { color: #8ff0bb; }
.meter { flex: 1; min-width: 200px; }
.meter .t { height: 10px; border-radius: 10px; background: linear-gradient(90deg, #2bd67b, #ffb547 50%, #ff5b6b); position: relative; }
.meter .t i { position: absolute; top: -5px; width: 4px; height: 20px; border-radius: 2px; background: #fff; box-shadow: 0 0 10px #fff; transform: translateX(-50%); transition: left 1s ease; }
.meter .lab { display: flex; justify-content: space-between; font-size: 11px; color: var(--dim); margin-top: 8px; font-family: var(--mono); }
.checks { display: grid; gap: 10px; margin-top: 14px; }
.check { padding: 16px 18px; border-radius: 12px; border: 1px solid var(--line); background: rgba(255,255,255,.015); }
.check .h { display: flex; gap: 10px; align-items: center; font-weight: 500; }
.check p { color: var(--muted); font-size: 14px; margin-top: 6px; }
.check a { font-size: 12.5px; color: var(--blue-soft); }
.tips { margin-top: 14px; padding: 20px; }
.tips h4 { font-size: 15px; font-weight: 500; margin-bottom: 10px; }
.tips li { color: #cdd0d4; font-size: 14px; margin: 6px 0 0 18px; }

@media (max-width: 1000px) { .r-grid { grid-template-columns: 1fr; } }
@media (max-width: 640px) {
  .app-hero { padding-top: 116px; }
  .scan-box { flex-direction: column; padding: 0; }
  .scan-box .btn { width: 100%; }
  .fw-grid { grid-template-columns: 1fr; }
  .panel, .fw, .progress { padding: 20px; }
  .cb { grid-template-columns: 70px 1fr 36px; }
}

/* Card polish for the app (shares .fx glow/spotlight from style.css) */
.panel { border-radius: 16px; background: linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.008)); }
.panel.fx::before, .finding.fx::before, .check.fx::before, .lw.fx::before { opacity: .45; }
.panel.fx:hover::before, .finding.fx:hover::before, .check.fx:hover::before, .lw.fx:hover::before { opacity: 1; }
.finding { border-radius: 14px; transition: transform .35s var(--ease); }
.finding:hover { transform: translateX(4px); }
.finding.critical.fx::before { background: linear-gradient(180deg, rgba(255,120,135,.7), rgba(255,91,107,.12) 45%, rgba(255,91,107,.05)); }
.finding.high.fx::before { background: linear-gradient(180deg, rgba(255,200,120,.6), rgba(255,181,71,.1) 45%, rgba(255,181,71,.04)); }
.score-card { overflow: hidden; }
.score-card .ring { filter: drop-shadow(0 0 22px rgba(154, 160, 167,.35)); }
.scan-box { border-radius: 14px; }
.scan-box .input:focus { box-shadow: 0 0 0 4px rgba(135, 141, 151,.2), 0 0 30px rgba(135, 141, 151,.25); }
.report .side > * { animation: fadeUp .8s var(--ease) both; }
.report .side > *:nth-child(2) { animation-delay: .1s; } .report .side > *:nth-child(3) { animation-delay: .2s; } .report .side > *:nth-child(4) { animation-delay: .3s; }
.findings .finding { animation: fadeUp .7s var(--ease) both; }
.findings .finding:nth-child(2) { animation-delay: .08s; } .findings .finding:nth-child(3) { animation-delay: .16s; } .findings .finding:nth-child(4) { animation-delay: .24s; } .findings .finding:nth-child(5) { animation-delay: .32s; } .findings .finding:nth-child(n+6) { animation-delay: .4s; }
.hours i { transform-origin: bottom; animation: grow .9s var(--ease) both; }
@keyframes grow { from { transform: scaleY(0); } }
.cb .t i, .cat-row .track i { animation: growX 1.2s var(--ease) both; transform-origin: left; }
@keyframes growX { from { transform: scaleX(0); } }

/* Silver theme */
.tab.active { background: var(--chrome); color: var(--ink); box-shadow: 0 0 0 1px rgba(255,255,255,.55) inset, 0 6px 20px rgba(200, 206, 214, .25); }
.step .num, .fix li::before { color: #e6e8eb; }
/* Seamless: let the hero glow spill instead of ending on a line */
.app-hero { overflow-x: clip; overflow-y: visible; }
