/* ==========================================================================
   Dream Scanner — "piano lacquer" tasarım sistemi
   Saf siyah zemin, cilalı (lacquer) yüzeyler, beyaz tipografi, yarış kırmızısı vurgu.
   ========================================================================== */
/* Yerel fontlar (Google'a bağımlılık yok) */
@font-face { font-family: 'Archivo'; font-style: normal; font-display: swap; font-weight: 100 900; font-stretch: 62% 125%; src: url(/assets/fonts/archivo-latin-ext-standard-normal.woff2) format('woff2-variations'); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Archivo'; font-style: normal; font-display: swap; font-weight: 100 900; font-stretch: 62% 125%; src: url(/assets/fonts/archivo-latin-standard-normal.woff2) format('woff2-variations'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'JetBrains Mono'; font-display: swap; font-weight: 400; src: url(/assets/fonts/jetbrains-mono-latin-ext-400-normal.woff2) format('woff2'); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'JetBrains Mono'; font-display: swap; font-weight: 400; src: url(/assets/fonts/jetbrains-mono-latin-400-normal.woff2) format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'JetBrains Mono'; font-display: swap; font-weight: 600 700; src: url(/assets/fonts/jetbrains-mono-latin-ext-700-normal.woff2) format('woff2'); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'JetBrains Mono'; font-display: swap; font-weight: 600 700; src: url(/assets/fonts/jetbrains-mono-latin-700-normal.woff2) format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }

:root {
  --black: #000;
  --lacquer: #070708;
  --lacquer-2: #0d0d0f;
  --lacquer-3: #151518;
  --white: #f6f5f3;
  --white-2: #c9c8c6;
  --muted: #86858a;
  --faint: #4a4a50;
  --line: rgba(255, 255, 255, .075);
  --line-2: rgba(255, 255, 255, .13);
  --red: #e5121f;
  --red-hot: #ff2a37;
  --red-deep: #7d0910;
  --red-glow: rgba(229, 18, 31, .35);
  --amber: #f2a93b;
  --green: #2fd17a;
  --sheen: linear-gradient(180deg, rgba(255,255,255,.055) 0%, rgba(255,255,255,0) 38%);
  --display: 'Archivo', system-ui, sans-serif;
  --body: 'Archivo', system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, Consolas, monospace;
  --r-sm: 10px;
  --r: 16px;
  --r-lg: 26px;
  --pill: 999px;
  --ease: cubic-bezier(.2, .7, .1, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
/* v3.4 — the top nav is position:fixed, so anchor targets need a scroll
   offset or their headings hide under it when the user clicks a nav link. */
.section[id], [id="features"], [id="detections"], [id="pricing"], [id="faq"] { scroll-margin-top: 92px; }
.nav .nav-links a { position: relative; transition: color .18s; }
.nav .nav-links a:hover { color: #fff; }
.nav .nav-links a::after { content: ''; position: absolute; left: 50%; right: 50%; bottom: -4px; height: 2px; background: var(--red); border-radius: 2px; transition: left .22s, right .22s; opacity: 0; }
.nav .nav-links a:hover::after { left: 20%; right: 20%; opacity: 1; }
body {
  margin: 0; background: var(--black); color: var(--white);
  font-family: var(--body); font-size: 15px; line-height: 1.6;
  font-variation-settings: 'wdth' 100;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--red); color: #fff; }
:focus-visible { outline: 2px solid var(--red-hot); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.mono { font-family: var(--mono); font-size: .92em; letter-spacing: -.01em; }
.muted { color: var(--muted); }
.red { color: var(--red-hot); }
.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }

/* ---------- Tipografi ---------- */
.display {
  font-family: var(--display); font-weight: 800; font-variation-settings: 'wdth' 125;
  letter-spacing: -.035em; line-height: .98; margin: 0;
}
.h-xl { font-size: clamp(42px, 7.4vw, 96px); }
.h-lg { font-size: clamp(32px, 4.8vw, 60px); }
.h-md { font-size: clamp(24px, 2.6vw, 34px); }
.lead { font-size: clamp(16px, 1.35vw, 18.5px); color: var(--white-2); line-height: 1.6; max-width: 60ch; }

/* ---------- Butonlar ---------- */
.btn {
  --bg: var(--lacquer-3); --fg: var(--white);
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  height: 44px; padding: 0 20px; border-radius: var(--pill); border: 1px solid var(--line-2);
  background: var(--sheen), var(--bg); color: var(--fg); font-weight: 600; font-size: 14.5px;
  cursor: pointer; white-space: nowrap; transition: transform .15s var(--ease), border-color .2s, background-color .2s, box-shadow .2s;
}
.btn:hover { border-color: rgba(255,255,255,.28); }
.btn:active { transform: translateY(1px) scale(.99); }
.btn svg { width: 17px; height: 17px; }
.btn-red {
  --bg: var(--red); border-color: rgba(255,120,120,.35);
  box-shadow: 0 0 0 1px rgba(0,0,0,.6) inset, 0 10px 30px -10px var(--red-glow), inset 0 1px 0 rgba(255,255,255,.35);
}
.btn-red:hover { --bg: var(--red-hot); border-color: rgba(255,160,160,.5); }
.btn-white { --bg: var(--white); --fg: #000; border-color: #fff; }
.btn-ghost { --bg: transparent; border-color: transparent; }
.btn-ghost:hover { background: rgba(255,255,255,.05); }
.btn-sm { height: 34px; padding: 0 14px; font-size: 13px; }
.btn-lg { height: 52px; padding: 0 26px; font-size: 15.5px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .45; pointer-events: none; }
.btn .kbd { font-family: var(--mono); font-size: 11px; opacity: .6; }

/* ---------- Lake yüzey ---------- */
.lacquer {
  position: relative; background: var(--sheen), var(--lacquer);
  border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
}
.lacquer::after { /* üst kenar yansıması */
  content: ''; position: absolute; left: 12%; right: 12%; top: -1px; height: 1px; pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.35), transparent);
}

/* ---------- Logo ---------- */
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 800; font-variation-settings: 'wdth' 118; letter-spacing: -.03em; font-size: 19px; color: inherit; text-decoration: none; }
/* The 6-arm brand mark. Inherits color so dark pages get white arms, light
   pages get dark. On hover the whole mark rotates 60° — one tick of its own
   geometry — in a long easing so it feels alive without ever stuttering. */
.brand-mark { width: 30px; height: 30px; flex: none; color: currentColor; transition: transform .6s cubic-bezier(.3,.7,.2,1), filter .3s; will-change: transform; }
.brand:hover .brand-mark,
a:hover > .brand-mark,
button:hover > .brand-mark,
.brand-mark:hover { transform: rotate(60deg); filter: drop-shadow(0 0 10px rgba(255,255,255,.25)); }
.brand-mark.spin { animation: brand-spin 14s linear infinite; }
@keyframes brand-spin { to { transform: rotate(360deg); } }

/* ==========================================================================
   NAV (yüzen hap)
   ========================================================================== */
.nav {
  position: fixed; top: 14px; left: 50%; transform: translateX(-50%); z-index: 50;
  width: min(1200px, 100% - 24px); height: 60px; padding: 0 10px 0 20px;
  display: flex; align-items: center; gap: 18px;
  background: rgba(6,6,7,.72); backdrop-filter: blur(18px) saturate(140%); -webkit-backdrop-filter: blur(18px) saturate(140%);
  border: 1px solid var(--line-2); border-radius: var(--pill);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 20px 50px -20px rgba(0,0,0,.9);
}
.nav-links { display: flex; gap: 4px; margin-inline: auto; }
.nav-links a { padding: 8px 14px; border-radius: var(--pill); font-size: 14.5px; font-weight: 500; color: var(--white-2); transition: color .2s, background-color .2s; }
.nav-links a:hover { color: #fff; background: rgba(255,255,255,.05); }
.nav-right { display: flex; align-items: center; gap: 8px; }
.icon-btn { width: 38px; height: 38px; display: grid; place-items: center; border-radius: var(--pill); border: 1px solid var(--line); background: rgba(255,255,255,.02); color: var(--white-2); cursor: pointer; transition: color .2s, border-color .2s; }
.icon-btn:hover { color: #fff; border-color: var(--line-2); }
.icon-btn svg { width: 18px; height: 18px; }
.nav-burger { display: none; }
@media (max-width: 900px) {
  .nav { padding-left: 16px; }
  .nav-links { display: none; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; padding: 10px; background: rgba(6,6,7,.96); border: 1px solid var(--line-2); border-radius: 22px; }
  .nav.open .nav-links { display: flex; }
  .nav-links a { padding: 12px 14px; }
  .nav-burger { display: grid; margin-left: auto; }
  .nav-right .hide-sm { display: none; }
}

/* ==========================================================================
   LANDING
   ========================================================================== */
.hero { position: relative; padding: 150px 0 40px; text-align: center; overflow: hidden; isolation: isolate; }
.hero-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero-bg::before { /* piyano tuşu yansımaları: dikey lake şeritler */
  content: ''; position: absolute; inset: -10% -5% 30%;
  background:
    repeating-linear-gradient(90deg, rgba(255,255,255,.035) 0 1px, transparent 1px 118px),
    radial-gradient(60% 55% at 50% 0%, rgba(229,18,31,.20), transparent 70%),
    radial-gradient(40% 40% at 50% 30%, rgba(255,255,255,.06), transparent 70%);
  mask-image: linear-gradient(180deg, #000 30%, transparent 95%);
}
.hero-bg::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 40%; background: linear-gradient(180deg, transparent, var(--black)); }
.pill-note {
  display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 6px; margin-bottom: 26px;
  border: 1px solid var(--line-2); border-radius: var(--pill); background: rgba(255,255,255,.03); font-size: 13.5px; color: var(--white-2);
}
.pill-note b { background: var(--red); color: #fff; font-weight: 700; font-size: 12px; padding: 3px 9px; border-radius: var(--pill); }
.hero h1 { margin-inline: auto; max-width: 13ch; }
.hero h1 .stroke { color: transparent; -webkit-text-stroke: 1.5px rgba(255,255,255,.75); }
.hero .lead { margin: 26px auto 34px; }
.hero-cta { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
.hero-proof { margin-top: 26px; display: flex; justify-content: center; gap: 22px; flex-wrap: wrap; color: var(--muted); font-size: 13.5px; }
.hero-proof span { display: inline-flex; gap: 7px; align-items: center; }
.hero-proof svg { width: 15px; height: 15px; color: var(--red-hot); }

/* Panel önizleme (hero altı) */
.preview { position: relative; margin: 70px auto 0; width: min(1120px, 100%); padding: 10px; border-radius: 30px; background: linear-gradient(180deg, rgba(255,255,255,.09), rgba(255,255,255,.01) 40%); }
.preview-inner { position: relative; overflow: hidden; border-radius: 22px; border: 1px solid var(--line-2); background: #030304; text-align: left; aspect-ratio: 16 / 9.4; }
.preview-glow { position: absolute; left: 50%; top: -60px; width: 70%; height: 140px; transform: translateX(-50%); background: radial-gradient(closest-side, rgba(229,18,31,.45), transparent); filter: blur(30px); z-index: -1; }
.scanline { position: absolute; top: 0; bottom: 0; width: 34%; left: -40%; pointer-events: none; z-index: 5;
  background: linear-gradient(90deg, transparent, rgba(229,18,31,.08) 70%, rgba(255,42,55,.55) 99%, transparent);
  animation: sweep 2.6s .6s var(--ease) forwards; }
@keyframes sweep { to { left: 110%; } }
@media (prefers-reduced-motion: reduce) { .scanline { display: none; } }
.mock { position: absolute; inset: 0; display: grid; grid-template-columns: 19% 1fr; font-size: clamp(6px, .9vw, 11px); }
.mock-side { border-right: 1px solid var(--line); padding: 1.6em 1.2em; display: flex; flex-direction: column; gap: .3em; }
.mock-side .brand { font-size: 1.3em; margin-bottom: 1.6em; } .mock-side .brand-mark { width: 2em; height: 2em; }
.mock-side small { color: var(--faint); font-size: .85em; margin: 1.2em 0 .4em .6em; }
/* v3.5c: mock sidebar items. Was broken when <a> became <button> because the
   old selector only matched anchors; now matches any .mock-i and strips the
   browser-default button chrome so icons stay the size the text implies. */
.mock-side .mock-i,
.mock-side i { font-style: normal; color: var(--white-2); padding: .55em .7em; border-radius: .6em; display: flex; gap: .6em; align-items: center; font-size: .95em; text-decoration: none; transition: background .15s, color .15s, transform .15s; background: none; border: 0; cursor: pointer; text-align: left; width: 100%; font-family: inherit; line-height: 1.2; pointer-events: auto; position: relative; z-index: 2; }
.mock-side .mock-i > * { pointer-events: none; }
.mock-side .mock-i:hover { background: rgba(255,255,255,.04); color: #fff; }
.mock-side .mock-i:active { transform: translateX(1px); }
.mock-side .on { background: rgba(255,255,255,.06); color: #fff; box-shadow: inset 2px 0 0 var(--red); }
.mock-side i::before,
.mock-side .mock-i::before { content: ''; width: 1em; height: 1em; border: 1px solid currentColor; border-radius: .25em; opacity: .35; flex: none; }
.mock-side i:has(svg)::before,
.mock-side .mock-i:has(svg)::before { display: none; }
.mock-side i > svg,
.mock-side .mock-i > svg { width: 1em !important; height: 1em !important; opacity: .9; flex: none; }
.mock-main { padding: 1.6em 2em; display: grid; grid-template-rows: auto auto 1fr auto; gap: 1.2em; min-width: 0; }
.mock-head { display: flex; justify-content: space-between; align-items: center; }
.mock-head b { font-size: 1.45em; } .mock-head p { margin: .2em 0 0; color: var(--muted); }
.mock-head .btn { height: 2.6em; padding: 0 1.2em; font-size: 1em; }
.mock-stats { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: 1em; }
.mock-stats div { padding: 1em 1.2em; border-right: 1px solid var(--line); }
.mock-stats div:last-child { border-right: 0; }
.mock-stats span { color: var(--muted); display: block; } .mock-stats b { font-size: 1.9em; letter-spacing: -.02em; }
.mock-grid { display: grid; grid-template-columns: 1.9fr 1fr; gap: 1.2em; min-height: 0; }
.mock-card { border: 1px solid var(--line); border-radius: 1em; padding: 1em 1.2em; min-height: 0; display: flex; flex-direction: column; background: var(--sheen); }
.mock-card > span { color: var(--muted); }
.mock-card svg { flex: 1; width: 100%; min-height: 0; }
.mock-rows { display: grid; gap: .1em; }
.mock-rows div { display: grid; grid-template-columns: 1fr 1.4fr 1fr .7fr; padding: .5em .8em; border-top: 1px solid var(--line); color: var(--white-2); align-items: center; }
.mock-rows .v-det { color: var(--red-hot); } .mock-rows .v-ok { color: var(--green); } .mock-rows .v-sus { color: var(--amber); }

/* v3.5 — mock sidebar tab-swap panes. Each pane is a full main view that
   trades places with the Overview when the visitor clicks a tab. The parent
   .mock-main uses grid with fixed rows, so each pane re-establishes grid
   internally for its own 4-row layout (head / stats / grid / rows). */
.mock-pane { display: grid; grid-template-rows: auto auto 1fr auto; gap: 1.2em; min-height: 0; grid-column: 1 / -1; grid-row: 1 / -1; }
.mock-pane[hidden] { display: none !important; }
.mock-i { background: none; border: 0; cursor: pointer; text-align: left; width: 100%; font: inherit; }
.mock-rows-4 div { grid-template-columns: 1.4fr .8fr .6fr .6fr; }
.mock-rows-5 div { grid-template-columns: .9fr 1.3fr .7fr 1fr .7fr; }
.mock-rows .mock-th { color: var(--muted); font-size: .85em; letter-spacing: .04em; text-transform: uppercase; border-top: 0; padding-top: 0; }

/* PINs: 2x3 grid of small cards */
.mock-pin-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .8em; }
.mock-pin { border: 1px solid var(--line); border-radius: .8em; padding: .9em 1em; background: var(--sheen); display: grid; gap: .25em; }
.mock-pin b { font-size: 1.3em; letter-spacing: .08em; }
.mock-pin small { color: var(--muted); font-size: .85em; }

/* Team: avatar + role tag */
.mock-u { display: inline-flex; align-items: center; gap: .55em; }
.mock-av { width: 1.6em; height: 1.6em; border-radius: 50%; background: var(--red); display: inline-flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; font-size: .85em; flex: none; }
.mock-tag { display: inline-flex; padding: .15em .55em; border-radius: 999px; font-size: .78em; background: rgba(255,255,255,.08); color: var(--white-2); }
.mock-tag-owner { background: rgba(229,18,31,.22); color: #ffb3b8; }
.mock-tag-mgr { background: rgba(75,123,255,.22); color: #a9c2ff; }
.mock-tag-inv { background: rgba(242,169,59,.22); color: #ffd389; }

/* Enterprise + Analytics: horizontal bars */
.mock-bars { display: grid; gap: .5em; }
.mock-bars > div { display: grid; grid-template-columns: 7em 1fr 3em; gap: .6em; align-items: center; color: var(--white-2); padding: 0; border: 0; }
.mock-bars em { font-style: normal; font-size: .9em; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mock-bars i { height: .55em; background: linear-gradient(90deg, var(--red), var(--red-hot)); border-radius: 999px; display: block; min-width: 2%; }
.mock-bars b { font-size: .9em; text-align: right; }

/* Enterprise feed */
.mock-feed { display: grid; gap: .4em; font-size: .9em; }
.mock-feed > div { color: var(--white-2); padding: 0; border: 0; display: block; }
.mock-feed em { font-style: normal; color: #fff; font-weight: 600; }
.mock-feed small { color: var(--muted); }

/* Tool designer: swatches + mini scanner preview */
.mock-sw { display: grid; grid-template-columns: 1.6em 1fr; align-items: center; gap: .55em; padding: .3em 0; }
.mock-sw i { width: 1.2em; height: 1.2em; border-radius: .35em; border: 1px solid rgba(255,255,255,.2); display: block; }
.mock-sw em { font-style: normal; color: var(--white-2); font-size: .9em; }
.mock-scanner { border: 1px solid rgba(255,255,255,.2); border-radius: .8em; padding: 1.2em 1em; background: #0b0b0d; text-align: center; margin-top: .6em; }
.mock-scanner-title { font-weight: 700; margin-bottom: .8em; }
.mock-scanner-bar { height: .55em; background: rgba(255,255,255,.08); border-radius: 999px; overflow: hidden; margin-bottom: .6em; }
.mock-scanner-bar i { display: block; height: 100%; width: 62%; background: linear-gradient(90deg, var(--red), #fff); }
.mock-scanner small { color: var(--muted); font-size: .85em; }

/* Mini rows (threat intel) */
.mock-mini-rows { display: grid; gap: .35em; margin-top: .4em; }
.mock-mini-rows > div { display: grid; grid-template-columns: 1.2fr 1fr .6fr; align-items: center; padding: .35em 0; color: var(--white-2); font-size: .9em; border: 0; }

/* API code block */
.mock-code { background: #0b0b0d; border: 1px solid var(--line); border-radius: .6em; padding: .9em 1em; font-family: var(--mono); font-size: .85em; color: #e2e2e2; margin: .4em 0 0; overflow-x: auto; }

/* Analytics hour-bars */
.mock-hourbar { display: flex; align-items: flex-end; gap: 3px; height: 100%; min-height: 7em; padding-top: .6em; }
.mock-hourbar span { flex: 1; background: rgba(255,255,255,.15); border-radius: 2px; min-height: 2px; }
.mock-hourbar span:nth-child(10) { background: var(--red); }

@media (max-width: 640px) { .mock { grid-template-columns: 1fr; } .mock-side { display: none; } .preview-inner { aspect-ratio: 4 / 3.4; } .mock { font-size: 8px; } }

/* Bölümler */
.section { padding: 100px 0; position: relative; }
.section-head { text-align: center; max-width: 760px; margin: 0 auto 60px; }
.section-head .lead { margin: 20px auto 0; }
.section-head.left { text-align: left; margin-left: 0; }
.section-head.left .lead { margin-left: 0; }

/* Bento */
.bento { display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px; }
.bento > * { padding: 30px; overflow: hidden; min-height: 330px; display: flex; flex-direction: column; }
.b-7 { grid-column: span 7; } .b-5 { grid-column: span 5; } .b-6 { grid-column: span 6; } .b-4 { grid-column: span 4; } .b-8 { grid-column: span 8; }
.b-title { font-size: 17.5px; font-weight: 600; margin: 0; max-width: 36ch; }
.b-title span { color: var(--muted); font-weight: 500; }
.b-foot { margin-top: auto; }
@media (max-width: 920px) { .bento > * { grid-column: 1 / -1; } }

.tiles { margin: auto 0; display: flex; gap: 12px; justify-content: center; align-items: center; padding: 30px 0 10px; flex-wrap: wrap; }
.tile { width: 84px; height: 84px; border-radius: 18px; display: grid; place-items: center; border: 1px solid var(--line-2); background: var(--sheen), var(--lacquer-2); color: var(--white-2); position: relative; }
.tile svg { width: 28px; height: 28px; }
.tile.on { width: 96px; height: 96px; color: #fff; border-color: rgba(255,80,90,.55); box-shadow: 0 0 0 6px rgba(229,18,31,.08), 0 20px 50px -14px var(--red-glow); }
.tile.on::after { content: attr(data-label); position: absolute; top: calc(100% + 10px); font-size: 13px; color: var(--white-2); white-space: nowrap; }

.stack { position: relative; margin: 0 -30px 24px auto; width: 92%; height: 210px; }
.stack div { position: absolute; right: 0; height: 52px; display: flex; align-items: center; gap: 10px; padding: 0 18px; font-family: var(--mono); font-size: 13.5px; color: var(--white-2); border: 1px solid var(--line-2); border-right: 0; border-radius: 14px 0 0 14px; background: var(--sheen), var(--lacquer-2); }
.stack div svg { width: 16px; height: 16px; opacity: .7; }
.stack div:nth-child(1) { top: 0; left: 26%; } .stack div:nth-child(2) { top: 48px; left: 18%; } .stack div:nth-child(3) { top: 96px; left: 10%; }
.stack div:nth-child(4) { top: 144px; left: 0; height: 58px; color: #fff; background: linear-gradient(180deg, var(--red-hot), var(--red)); border-color: rgba(255,140,140,.5); box-shadow: 0 18px 40px -16px var(--red-glow); }
.stack div:nth-child(4) svg { opacity: 1; }

.term { font-family: var(--mono); font-size: 13px; line-height: 1.75; color: var(--white-2); margin: 26px 0; padding: 18px; border-radius: 14px; border: 1px solid var(--line); background: #020202; min-height: 210px; }
.term .t-dim { color: var(--faint); } .term .t-red { color: var(--red-hot); } .term .t-ok { color: var(--green); } .term .t-amb { color: var(--amber); }
.term .cursor { display: inline-block; width: 8px; height: 15px; background: var(--red-hot); vertical-align: -2px; animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 26px 0 0; }
.chip { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px; border-radius: 11px; border: 1px solid var(--line-2); background: var(--sheen), var(--lacquer-2); font-size: 13.5px; font-weight: 500; color: var(--white-2); }
.chip svg { width: 15px; height: 15px; }
.chip.ghost { color: var(--faint); border-style: dashed; }
.chip.hot { color: #fff; border-color: rgba(255,80,90,.5); }
.chip.hot svg { color: var(--red-hot); }

/* Farklılıklar listesi */
.diff { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; border-top: 1px solid var(--line); }
.diff > div { padding: 34px 34px 34px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 44px 1fr; gap: 18px; }
.diff > div:nth-child(odd) { border-right: 1px solid var(--line); }
.diff > div:nth-child(even) { padding-left: 34px; }
.diff .ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; border: 1px solid rgba(255,80,90,.35); color: var(--red-hot); background: rgba(229,18,31,.07); }
.diff .ico svg { width: 20px; height: 20px; }
.diff h3 { margin: 2px 0 8px; font-size: 18px; letter-spacing: -.01em; }
.diff p { margin: 0; color: var(--muted); max-width: 46ch; }
@media (max-width: 820px) { .diff { grid-template-columns: 1fr; } .diff > div, .diff > div:nth-child(even) { padding: 26px 0; border-right: 0 !important; } }

/* Adımlar */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: s; }
.step { padding: 30px; }
.step .n { font-family: var(--display); font-variation-settings: 'wdth' 125; font-weight: 800; font-size: 54px; line-height: 1; color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,.3); }
.step:hover .n { -webkit-text-stroke-color: var(--red-hot); }
.step h3 { margin: 22px 0 8px; font-size: 19px; }
.step p { margin: 0; color: var(--muted); }
.step code { font-family: var(--mono); font-size: 13px; color: #fff; background: rgba(255,255,255,.06); padding: 2px 7px; border-radius: 6px; }
@media (max-width: 820px) { .steps { grid-template-columns: 1fr; } }

/* Modüller */
.modules { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.module { padding: 24px 26px; background: var(--lacquer); }
.module h4 { margin: 0 0 6px; font-size: 15.5px; display: flex; align-items: center; gap: 10px; }
.module h4 i { width: 7px; height: 7px; border-radius: 50%; background: var(--red); box-shadow: 0 0 10px var(--red); }
.module p { margin: 0; color: var(--muted); font-size: 14px; }
.module.sum { grid-column: span 3; display: flex; align-items: center; justify-content: space-between; gap: 20px; background: radial-gradient(70% 140% at 100% 50%, rgba(229,18,31,.16), transparent 70%), var(--lacquer); }
.module.sum b { font-family: var(--display); font-variation-settings: 'wdth' 120; font-weight: 800; font-size: 26px; letter-spacing: -.03em; display: block; }
@media (max-width: 1000px) { .modules { grid-template-columns: 1fr 1fr; } .module.sum { grid-column: span 1; flex-direction: column; align-items: flex-start; } }
@media (max-width: 600px) { .modules { grid-template-columns: 1fr; } }

/* Fiyatlar */
.prices { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.price { padding: 34px; }
.price.pop { border-color: rgba(255,80,90,.45); box-shadow: 0 30px 80px -40px var(--red-glow), inset 0 1px 0 rgba(255,255,255,.08); }
.price .tag { position: absolute; top: -13px; right: 26px; background: var(--red); color: #fff; font-size: 12.5px; font-weight: 700; padding: 5px 13px; border-radius: var(--pill); box-shadow: 0 8px 20px -6px var(--red-glow); }
.price h3 { margin: 0; font-family: var(--display); font-variation-settings: 'wdth' 120; font-weight: 800; font-size: 28px; letter-spacing: -.03em; }
.price .sub { color: var(--muted); font-size: 14px; margin: 4px 0 22px; }
.price .amount { display: flex; align-items: baseline; gap: 8px; margin-bottom: 24px; }
.price .amount b { font-family: var(--display); font-variation-settings: 'wdth' 112; font-size: 56px; font-weight: 800; letter-spacing: -.04em; line-height: 1; }
.price.pop .amount b { color: var(--red-hot); }
.price .amount span { color: var(--muted); }
.feat { list-style: none; padding: 0; margin: 26px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px 22px; }
.feat li { display: flex; gap: 10px; font-size: 14.5px; font-weight: 500; line-height: 1.4; }
.feat li::before { content: ''; flex: none; width: 7px; height: 7px; margin-top: 6px; border-radius: 50%; background: var(--red); }
.price.wide { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1.6fr; gap: 30px; align-items: start; }
.price.wide .feat { margin-top: 6px; }
@media (max-width: 860px) { .prices, .price.wide { grid-template-columns: 1fr; } .feat { grid-template-columns: 1fr; } }
.price-note { text-align: center; color: var(--muted); font-size: 14px; margin-top: 26px; }

/* SSS */
.faq { display: grid; grid-template-columns: .8fr 1.6fr; gap: 60px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 24px 0; display: flex; justify-content: space-between; gap: 20px; font-size: 17px; font-weight: 600; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { width: 18px; height: 18px; flex: none; color: var(--muted); transition: transform .25s var(--ease); }
.faq details[open] summary svg { transform: rotate(45deg); color: var(--red-hot); }
.faq details p { margin: -8px 0 24px; color: var(--white-2); max-width: 65ch; }
@media (max-width: 860px) { .faq { grid-template-columns: 1fr; gap: 20px; } }

/* CTA bandı */
.cta-band { margin-top: 40px; padding: 56px; display: grid; grid-template-columns: 1.4fr auto; gap: 30px; align-items: center; overflow: hidden; }
.cta-band::before { content: ''; position: absolute; right: -10%; top: -60%; width: 60%; height: 220%; background: radial-gradient(closest-side, rgba(229,18,31,.25), transparent); pointer-events: none; }
@media (max-width: 760px) { .cta-band { grid-template-columns: 1fr; padding: 34px; } }

/* Footer */
.footer { position: relative; margin-top: 80px; padding: 80px 0 30px; border-top: 1px solid var(--line); overflow: hidden; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; position: relative; z-index: 1; }
.footer h5 { margin: 0 0 18px; font-size: 13px; color: var(--muted); font-weight: 600; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.footer ul a { color: var(--white-2); } .footer ul a:hover { color: #fff; }
.footer .about { color: var(--muted); max-width: 36ch; margin: 16px 0 22px; }
.footer-mark { position: absolute; left: 50%; bottom: -0.18em; transform: translateX(-50%); font-family: var(--display); font-weight: 800; font-variation-settings: 'wdth' 125; font-size: clamp(110px, 22vw, 330px); letter-spacing: -.06em; line-height: 1; color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,.07); background: linear-gradient(180deg, rgba(255,255,255,.05), transparent 70%); -webkit-background-clip: text; background-clip: text; white-space: nowrap; pointer-events: none; user-select: none; }
.footer-bottom { position: relative; z-index: 1; display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-top: 120px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13.5px; }
.status-dot { display: inline-flex; align-items: center; gap: 8px; }
.status-dot::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px var(--green); }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > :first-child { grid-column: 1 / -1; } }

/* ==========================================================================
   FORM ELEMANLARI
   ========================================================================== */
.field { display: grid; gap: 7px; margin-bottom: 16px; }
.field label { font-size: 13.5px; font-weight: 600; color: var(--white-2); }
.field .hint { font-size: 12.5px; color: var(--muted); }
.input, .select, .textarea {
  width: 100%; height: 44px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line-2);
  background: #050506; color: var(--white); outline: none; transition: border-color .2s, box-shadow .2s;
}
.textarea { height: auto; min-height: 96px; padding: 12px 14px; resize: vertical; line-height: 1.5; }
.input:focus, .select:focus, .textarea:focus { border-color: rgba(255,80,90,.6); box-shadow: 0 0 0 4px rgba(229,18,31,.12); }
.input::placeholder, .textarea::placeholder { color: var(--faint); }
.select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 18px) 19px, calc(100% - 13px) 19px; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 34px; }
.select option { background: #0d0d0f; }
.input.mono { font-family: var(--mono); letter-spacing: .04em; }
.row { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; }
.check { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-size: 14px; color: var(--white-2); }
.switch { position: relative; display: inline-block; vertical-align: middle; width: 40px; height: 23px; flex: none; }
.switch input { position: absolute; opacity: 0; inset: 0; cursor: pointer; margin: 0; }
.switch span { position: absolute; inset: 0; border-radius: 99px; background: var(--lacquer-3); border: 1px solid var(--line-2); transition: background-color .2s; pointer-events: none; }
.switch span::after { content: ''; position: absolute; top: 2px; left: 2px; width: 17px; height: 17px; border-radius: 50%; background: var(--white-2); transition: transform .2s var(--ease), background-color .2s; }
.switch input:checked + span { background: var(--red); border-color: var(--red); }
.switch input:checked + span::after { transform: translateX(17px); background: #fff; }
.switch input:focus-visible + span { outline: 2px solid var(--red-hot); outline-offset: 2px; }

/* Auth sayfaları */
.auth { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; }
.auth-art { position: relative; overflow: hidden; border-right: 1px solid var(--line); padding: 40px; display: flex; flex-direction: column; justify-content: space-between; background: radial-gradient(70% 50% at 30% 100%, rgba(229,18,31,.22), transparent 70%), repeating-linear-gradient(90deg, rgba(255,255,255,.03) 0 1px, transparent 1px 90px), var(--black); }
.auth-art blockquote { margin: 0; font-family: var(--display); font-variation-settings: 'wdth' 125; font-weight: 800; font-size: clamp(30px, 3.6vw, 52px); letter-spacing: -.035em; line-height: 1.02; max-width: 12ch; }
.auth-art p { color: var(--muted); max-width: 40ch; }
.auth-form { display: grid; place-items: center; padding: 40px 20px; }
.auth-card { width: min(400px, 100%); }
.auth-card h1 { font-size: 30px; margin: 0 0 6px; letter-spacing: -.02em; }
.auth-card > p { color: var(--muted); margin: 0 0 28px; }
.auth-alt { margin-top: 20px; text-align: center; color: var(--muted); font-size: 14px; }
.auth-alt a { color: #fff; font-weight: 600; }
.form-error { display: none; padding: 11px 14px; border-radius: 12px; background: rgba(229,18,31,.1); border: 1px solid rgba(229,18,31,.35); color: #ffb3b8; font-size: 14px; margin-bottom: 16px; }
.form-error.show { display: block; }
@media (max-width: 860px) { .auth { grid-template-columns: 1fr; } .auth-art { display: none; } }

/* ==========================================================================
   UYGULAMA KABUĞU (dashboard + panel)
   ========================================================================== */
.app { display: grid; grid-template-columns: 252px 1fr; min-height: 100vh; }
.side { position: sticky; top: 0; height: 100vh; overflow-y: auto; border-right: 1px solid var(--line); padding: 20px 14px; display: flex; flex-direction: column; background: linear-gradient(180deg, #050505, #000); }
.side .brand { padding: 4px 8px 20px; }
.side-group { margin: 14px 0 4px 10px; font-size: 12px; color: var(--faint); font-weight: 600; }
.side a.item { display: flex; align-items: center; gap: 11px; padding: 9px 10px; margin: 1px 0; border-radius: 10px; color: var(--white-2); font-size: 14px; font-weight: 500; position: relative; transition: background-color .15s, color .15s; }
.side a.item svg { width: 17px; height: 17px; opacity: .75; flex: none; }
.side a.item:hover { background: rgba(255,255,255,.04); color: #fff; }
.side a.item.on { background: rgba(255,255,255,.065); color: #fff; }
.side a.item.on::before { content: ''; position: absolute; left: -14px; top: 8px; bottom: 8px; width: 3px; border-radius: 0 3px 3px 0; background: var(--red); box-shadow: 0 0 12px var(--red); }
.side a.item.on svg { opacity: 1; color: var(--red-hot); }
.side a.item .lock { margin-left: auto; width: 14px; height: 14px; opacity: .45; }
.side a.item .count { margin-left: auto; font-size: 11.5px; font-weight: 700; background: var(--red); color: #fff; border-radius: 99px; padding: 1px 7px; }
.side-foot { margin-top: auto; padding-top: 16px; }
.me { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 12px; border: 1px solid var(--line); margin-top: 10px; }
.avatar { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; font-weight: 800; font-size: 14px; background: linear-gradient(135deg, var(--red), var(--red-deep)); color: #fff; flex: none; }
.avatar.av-img { background: none; overflow: hidden; }
.avatar.av-img img { width: 100%; height: 100%; object-fit: cover; border-radius: 10px; }
.av-wrap { display: flex; align-items: flex-start; gap: 18px; }
.av-preview { width: 72px; height: 72px; border-radius: 14px; background: linear-gradient(135deg, var(--red), var(--red-deep)); display: grid; place-items: center; font-size: 26px; font-weight: 800; color: #fff; flex: none; overflow: hidden; }
.av-preview img { width: 100%; height: 100%; object-fit: cover; }
.av-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; justify-content: center; }
.me b { display: block; font-size: 13.5px; line-height: 1.2; } .me small { color: var(--muted); font-size: 12px; }
.me .icon-btn { margin-left: auto; width: 32px; height: 32px; }
.main { min-width: 0; padding: 26px clamp(16px, 3vw, 40px) 60px; }
.topbar { display: flex; align-items: center; gap: 14px; margin-bottom: 26px; flex-wrap: wrap; }
.topbar h1 { margin: 0; font-size: 24px; letter-spacing: -.02em; }
.topbar p { margin: 2px 0 0; color: var(--muted); font-size: 14px; }
.topbar .actions { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; }
.mobile-bar { display: none; }
@media (max-width: 980px) {
  .app { grid-template-columns: 1fr; }
  .side { position: fixed; z-index: 60; left: 0; top: 0; width: 270px; transform: translateX(-100%); transition: transform .25s var(--ease); }
  .app.menu .side { transform: none; box-shadow: 30px 0 80px rgba(0,0,0,.8); }
  .mobile-bar { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: rgba(0,0,0,.85); backdrop-filter: blur(12px); z-index: 40; }
}

.announce { display: flex; gap: 12px; align-items: center; padding: 12px 16px; margin-bottom: 20px; border-radius: 14px; border: 1px solid rgba(229,18,31,.3); background: linear-gradient(90deg, rgba(229,18,31,.12), transparent); font-size: 14px; }
.announce svg { width: 18px; height: 18px; color: var(--red-hot); flex: none; }

/* Kartlar & ızgara */
.card { padding: 22px; border-radius: 20px; }
.card-head { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.card-head h3 { margin: 0; font-size: 15px; font-weight: 600; }
.card-head .sub { color: var(--muted); font-size: 13px; }
.card-head .right { margin-left: auto; display: flex; gap: 6px; align-items: center; }
.grid { display: grid; gap: 16px; }
.g-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .g-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g-main { grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr); }
@media (max-width: 1100px) { .g-main, .g-3 { grid-template-columns: 1fr; } }
@media (max-width: 720px) { .g-2 { grid-template-columns: 1fr; } }
.mb { margin-bottom: 16px; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); border-radius: 20px; overflow: hidden; }
.stat { padding: 20px 22px; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat .k { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 13px; font-weight: 500; }
.stat .k i { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; border: 1px solid var(--line-2); color: var(--white-2); }
.stat .k i svg { width: 14px; height: 14px; }
.stat .k i.r { color: var(--red-hot); border-color: rgba(229,18,31,.35); background: rgba(229,18,31,.08); }
.stat .v { font-size: 30px; font-weight: 700; letter-spacing: -.03em; margin-top: 10px; line-height: 1; font-variant-numeric: tabular-nums; }
.stat .v small { font-size: 14px; color: var(--muted); font-weight: 500; letter-spacing: 0; }
@media (max-width: 900px) { .stats { grid-template-columns: 1fr 1fr; } .stat:nth-child(2) { border-right: 0; } .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); } }

/* Tablolar */
.table-wrap { overflow-x: auto; margin: 0 -22px -22px; }
table.t { width: 100%; border-collapse: collapse; font-size: 13.5px; }
table.t th { text-align: left; font-weight: 600; color: var(--muted); font-size: 12px; padding: 10px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; }
table.t td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.t th:first-child, table.t td:first-child { padding-left: 22px; }
table.t th:last-child, table.t td:last-child { padding-right: 22px; }
table.t tbody tr { transition: background-color .12s; }
table.t tbody tr:hover { background: rgba(255,255,255,.025); }
table.t tbody tr.click { cursor: pointer; }
table.t tr:last-child td { border-bottom: 0; }
.cell-strong { font-weight: 600; color: #fff; }
.cell-mono { font-family: var(--mono); font-size: 12.5px; }
.empty { padding: 46px 20px; text-align: center; color: var(--muted); }
.empty svg { width: 34px; height: 34px; margin: 0 auto 12px; opacity: .5; }
.empty b { display: block; color: var(--white); font-size: 15.5px; margin-bottom: 4px; }
.empty .btn { margin-top: 16px; }

/* Rozetler */
.badge { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 9px; border-radius: 7px; font-size: 12px; font-weight: 700; border: 1px solid var(--line-2); color: var(--white-2); white-space: nowrap; }
.badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge.plain::before { display: none; }
.b-detected, .b-critical, .b-revoked, .b-banned { color: #ff6b74; border-color: rgba(229,18,31,.4); background: rgba(229,18,31,.09); }
.b-high { color: #ff8a4d; border-color: rgba(255,120,60,.35); background: rgba(255,120,60,.08); }
.b-suspicious, .b-medium, .b-waiting { color: var(--amber); border-color: rgba(242,169,59,.35); background: rgba(242,169,59,.08); }
.b-clean, .b-unused, .b-completed, .b-active { color: var(--green); border-color: rgba(47,209,122,.3); background: rgba(47,209,122,.07); }
.b-low, .b-info, .b-expired, .b-used, .b-failed { color: var(--muted); }
.b-running { color: #fff; border-color: rgba(255,255,255,.3); }
.b-running::before { animation: blink 1s steps(2) infinite; background: var(--red-hot); }
.b-owner { color: #fff; background: var(--red); border-color: var(--red); }
.b-admin { color: #ff8b92; border-color: rgba(229,18,31,.45); }
.b-staff { color: #fff; border-color: rgba(255,255,255,.3); }
.b-plan { color: #fff; background: rgba(255,255,255,.06); }
.b-plan::before { background: var(--red); }

/* Sekmeler & segment */
.seg { display: inline-flex; padding: 3px; border-radius: 11px; border: 1px solid var(--line); background: #040405; }
.seg button { border: 0; background: transparent; padding: 6px 12px; border-radius: 8px; font-size: 13px; font-weight: 600; color: var(--muted); cursor: pointer; }
.seg button.on { background: var(--lacquer-3); color: #fff; box-shadow: inset 0 1px 0 rgba(255,255,255,.07); }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 20px; overflow-x: auto; }
.tabs button { border: 0; background: transparent; padding: 11px 14px; font-size: 14px; font-weight: 600; color: var(--muted); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tabs button.on { color: #fff; border-bottom-color: var(--red); }

.toolbar { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; align-items: center; }
.toolbar .input, .toolbar .select { height: 38px; width: auto; min-width: 160px; }
.toolbar .grow { flex: 1; min-width: 200px; }

/* Grafik */
.chart { width: 100%; height: 220px; }
.chart text { fill: var(--faint); font-size: 10.5px; font-family: var(--body); }
.legend { display: grid; gap: 10px; margin-top: 16px; }
.legend div { display: flex; align-items: center; gap: 10px; font-size: 13.5px; }
.legend i { width: 9px; height: 9px; border-radius: 50%; }
.legend b { margin-left: auto; font-variant-numeric: tabular-nums; }
.legend span.p { width: 44px; text-align: right; color: var(--muted); font-size: 12.5px; }
.bars { display: grid; gap: 10px; }
.bars .bar { display: grid; grid-template-columns: minmax(90px, 160px) 1fr 40px; gap: 12px; align-items: center; font-size: 13px; }
.bars .bar > span:first-child { color: var(--white-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bars .track { height: 8px; border-radius: 99px; background: rgba(255,255,255,.05); overflow: hidden; }
.bars .fill { height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--red-deep), var(--red-hot)); }
.bars b { text-align: right; font-variant-numeric: tabular-nums; }

/* Üyelik kartı */
.member .days { font-size: 40px; font-weight: 800; letter-spacing: -.04em; line-height: 1; }
.member .days small { font-size: 14px; color: var(--muted); font-weight: 500; letter-spacing: 0; margin-left: 6px; }
.progress { height: 6px; border-radius: 99px; background: rgba(255,255,255,.06); overflow: hidden; margin: 14px 0 8px; }
.progress > i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--red-deep), var(--red-hot)); box-shadow: 0 0 12px var(--red-glow); transition: width .5s var(--ease); }
.kv { display: grid; gap: 0; }
.kv > div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.kv > div:last-child { border-bottom: 0; }
.kv span { color: var(--muted); }
.kv b { font-weight: 600; text-align: right; overflow-wrap: anywhere; }

/* Kilitli özellik */
.locked { text-align: center; padding: 60px 24px; max-width: 520px; margin: 30px auto; }
.locked .ico { width: 58px; height: 58px; margin: 0 auto 18px; display: grid; place-items: center; border-radius: 16px; border: 1px solid rgba(229,18,31,.4); background: rgba(229,18,31,.08); color: var(--red-hot); }
.locked .ico svg { width: 26px; height: 26px; }
.locked h2 { margin: 0 0 8px; font-size: 22px; }
.locked p { color: var(--muted); margin: 0 0 22px; }

/* PIN kartı */
.pin-big { font-family: var(--mono); font-size: 34px; font-weight: 700; letter-spacing: .14em; padding: 18px; text-align: center; border-radius: 14px; border: 1px dashed rgba(255,80,90,.45); background: rgba(229,18,31,.05); color: #fff; user-select: all; }

/* Canlı tarama */
.live { padding: 18px 20px; border-radius: 16px; border: 1px solid rgba(255,80,90,.35); background: linear-gradient(90deg, rgba(229,18,31,.10), rgba(229,18,31,.02)); margin-bottom: 16px; display: grid; gap: 10px; }
.live-top { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.live-top b { font-size: 15px; }
.live-top .stage { color: var(--white-2); font-size: 13.5px; }
.live-top .pct { margin-left: auto; font-family: var(--mono); font-weight: 700; }
.pulse { width: 10px; height: 10px; border-radius: 50%; background: var(--red-hot); box-shadow: 0 0 0 0 var(--red-glow); animation: pulse 1.4s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(229,18,31,0); } 100% { box-shadow: 0 0 0 0 rgba(229,18,31,0); } }

/* Tarama raporu */
.verdict { display: grid; grid-template-columns: auto 1fr auto; gap: 24px; align-items: center; padding: 26px; border-radius: 22px; margin-bottom: 16px; }
.verdict.detected { border-color: rgba(229,18,31,.5); background: radial-gradient(80% 140% at 0% 0%, rgba(229,18,31,.22), transparent 60%), var(--lacquer); }
.verdict.suspicious { border-color: rgba(242,169,59,.4); background: radial-gradient(80% 140% at 0% 0%, rgba(242,169,59,.14), transparent 60%), var(--lacquer); }
.verdict.clean { border-color: rgba(47,209,122,.35); background: radial-gradient(80% 140% at 0% 0%, rgba(47,209,122,.12), transparent 60%), var(--lacquer); }
.gauge { width: 110px; height: 110px; position: relative; }
.gauge svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.gauge b { position: absolute; inset: 0; display: grid; place-items: center; font-size: 30px; font-weight: 800; letter-spacing: -.03em; }
.gauge small { position: absolute; bottom: 22px; left: 0; right: 0; text-align: center; font-size: 10.5px; color: var(--muted); }
.verdict h2 { margin: 0 0 4px; font-family: var(--display); font-variation-settings: 'wdth' 122; font-weight: 800; font-size: 32px; letter-spacing: -.03em; }
.verdict p { margin: 0; color: var(--white-2); }
.verdict .meta { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 12px; color: var(--muted); font-size: 13px; }
@media (max-width: 760px) { .verdict { grid-template-columns: 1fr; } }

.det { border: 1px solid var(--line); border-radius: 14px; margin-bottom: 10px; overflow: hidden; background: var(--lacquer); }
.det summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 4px auto 1fr auto; gap: 14px; align-items: center; padding: 14px 16px 14px 0; }
.det summary::-webkit-details-marker { display: none; }
.det summary .rail { align-self: stretch; margin: -14px 0; }
.det.critical .rail { background: var(--red-hot); box-shadow: 0 0 14px var(--red); }
.det.high .rail { background: #ff7a3d; } .det.medium .rail { background: var(--amber); } .det.low .rail, .det.info .rail { background: var(--faint); }
.det summary b { font-size: 14.5px; display: block; }
.det summary small { color: var(--muted); font-size: 12.5px; }
.det-body { padding: 0 18px 16px 34px; }
.det-body p { margin: 0 0 12px; color: var(--white-2); font-size: 14px; }
.evidence { font-family: var(--mono); font-size: 12.5px; background: #020202; border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; display: grid; gap: 4px; overflow-x: auto; }
.evidence div { white-space: pre-wrap; word-break: break-all; color: var(--white-2); }
.evidence div::before { content: '› '; color: var(--red-hot); }
.timeline { display: grid; gap: 0; position: relative; }
.timeline div { display: grid; grid-template-columns: 70px 1fr auto; gap: 12px; padding: 7px 0 7px 18px; font-size: 13px; position: relative; }
.timeline div::before { content: ''; position: absolute; left: 3px; top: 13px; width: 7px; height: 7px; border-radius: 50%; background: var(--faint); }
.timeline div:last-child::before { background: var(--red-hot); box-shadow: 0 0 8px var(--red); }
.timeline::before { content: ''; position: absolute; left: 6px; top: 14px; bottom: 14px; width: 1px; background: var(--line-2); }
.timeline span { color: var(--muted); font-family: var(--mono); font-size: 12px; }
.acc { display: flex; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.acc:last-child { border-bottom: 0; }
.acc .p { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; background: rgba(255,255,255,.05); font-size: 11px; font-weight: 800; color: var(--white-2); flex: none; }
.acc small { color: var(--muted); font-family: var(--mono); font-size: 11.5px; display: block; }
.artifact-list { max-height: 360px; overflow: auto; font-family: var(--mono); font-size: 12.5px; border: 1px solid var(--line); border-radius: 12px; background: #020202; }
.artifact-list div { padding: 7px 14px; border-bottom: 1px solid rgba(255,255,255,.04); color: var(--white-2); word-break: break-all; }
.artifact-list div.hit { color: #fff; background: rgba(229,18,31,.12); }

/* Modal */
.modal-bg { position: fixed; inset: 0; z-index: 100; background: rgba(0,0,0,.72); backdrop-filter: blur(6px); display: grid; place-items: center; padding: 16px; animation: fade .18s ease; }
.modal { width: min(560px, 100%); max-height: calc(100vh - 32px); overflow-y: auto; padding: 26px; border-radius: 22px; animation: rise .22s var(--ease); }
.modal.wide { width: min(820px, 100%); }
.modal h2 { margin: 0 0 6px; font-size: 21px; letter-spacing: -.02em; }
.modal > p { margin: 0 0 20px; color: var(--muted); }
.modal-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 22px; flex-wrap: wrap; }
@keyframes fade { from { opacity: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(10px) scale(.98); } }
@media (prefers-reduced-motion: reduce) { .modal, .modal-bg { animation: none; } }

/* Toast */
.toasts { position: fixed; right: 16px; bottom: 16px; z-index: 200; display: grid; gap: 8px; }
.toast { min-width: 260px; max-width: 380px; padding: 12px 16px; border-radius: 14px; background: #0e0e10; border: 1px solid var(--line-2); box-shadow: 0 20px 50px -20px #000; font-size: 14px; display: flex; gap: 10px; align-items: flex-start; animation: rise .2s var(--ease); }
.toast.err { border-color: rgba(229,18,31,.5); }
.toast.ok svg { color: var(--green); } .toast.err svg { color: var(--red-hot); }
.toast svg { width: 18px; height: 18px; flex: none; margin-top: 1px; }

/* Anahtar çıktısı */
.keys-out { font-family: var(--mono); font-size: 13.5px; border: 1px solid var(--line-2); border-radius: 12px; background: #020202; max-height: 300px; overflow: auto; }
.keys-out div { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 9px 14px; border-bottom: 1px solid var(--line); }
.keys-out div:last-child { border-bottom: 0; }
.copy { cursor: pointer; color: var(--muted); border: 0; background: none; padding: 4px; border-radius: 6px; display: inline-grid; }
.copy:hover { color: #fff; }
.copy svg { width: 15px; height: 15px; }

/* Tasarımcı önizlemesi (scanner penceresi) */
.scanner-win { border-radius: 16px; overflow: hidden; border: 1px solid var(--line-2); box-shadow: 0 40px 80px -30px #000; font-size: 13px; }
.scanner-win .bar { height: 34px; display: flex; align-items: center; gap: 8px; padding: 0 12px; background: #0a0a0b; border-bottom: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.scanner-win .bar i { width: 10px; height: 10px; border-radius: 50%; background: #2a2a2e; }
.scanner-win .body { padding: 26px; min-height: 330px; display: flex; flex-direction: column; gap: 14px; }
.scanner-win.light .body { background: #f4f4f2; color: #111; }
.scanner-win.piano .body { background: radial-gradient(80% 60% at 50% 0%, color-mix(in srgb, var(--acc) 22%, transparent), transparent), #000; }
.scanner-win.carbon .body { background: repeating-linear-gradient(45deg, #0d0d0f 0 6px, #111114 6px 12px); }
.scanner-win .s-logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18px; }
.scanner-win .s-logo img { width: 34px; height: 34px; border-radius: 8px; object-fit: cover; }
.scanner-win .s-logo .dot { width: 34px; height: 34px; border-radius: 10px; background: var(--acc); }
.scanner-win .s-pin { display: flex; gap: 8px; }
.scanner-win .s-pin span { flex: 1; height: 44px; border-radius: 10px; border: 1px solid rgba(128,128,128,.35); display: grid; place-items: center; font-family: var(--mono); font-weight: 700; }
.scanner-win .s-btn { height: 44px; border-radius: 10px; background: var(--acc); color: #fff; display: grid; place-items: center; font-weight: 700; }
.scanner-win .s-prog { height: 6px; border-radius: 99px; background: rgba(128,128,128,.25); overflow: hidden; }
.scanner-win .s-prog i { display: block; height: 100%; width: 62%; background: var(--acc); }
.scanner-win .s-mods { display: flex; flex-wrap: wrap; gap: 6px; }
.scanner-win .s-mods span { font-size: 11px; padding: 3px 8px; border-radius: 6px; border: 1px solid rgba(128,128,128,.3); opacity: .85; }

/* Kural (betik) düzenleyici */
.cond { display: grid; grid-template-columns: 1fr 1fr 1.6fr auto; gap: 8px; margin-bottom: 8px; }
.cond .input, .cond .select { height: 40px; }
@media (max-width: 700px) { .cond { grid-template-columns: 1fr 1fr; } }
.code { font-family: var(--mono); font-size: 12.5px; background: #020202; border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; overflow-x: auto; white-space: pre; color: var(--white-2); line-height: 1.6; }
.code .k { color: var(--red-hot); } .code .s { color: #f5c78a; } .code .c { color: var(--faint); }

.split { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.stack-sm > * + * { margin-top: 8px; }
.hr { height: 1px; background: var(--line); margin: 18px 0; border: 0; }
.dim-link { color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.dim-link:hover { color: #fff; }
.skeleton { height: 120px; border-radius: 16px; background: linear-gradient(90deg, rgba(255,255,255,.02), rgba(255,255,255,.05), rgba(255,255,255,.02)); background-size: 200% 100%; animation: sk 1.2s infinite linear; }
@keyframes sk { to { background-position: -200% 0; } }
.det summary > svg { width: 16px; height: 16px; color: var(--muted); transition: transform .2s var(--ease); }
.det[open] summary > svg { transform: rotate(180deg); }
.side .brand .brand-mark { width: 28px; height: 28px; }
.card > .table-wrap:first-child, .card > [data-list] > .table-wrap:first-child { margin-top: -22px; }
.cell-mono { white-space: nowrap; }
@media (max-width: 1000px) { .module.sum { grid-column: 1 / -1 !important; } }
.card-head { flex-wrap: wrap; }

/* --- Tespitler kartı: filtreler + grup başlıkları --- */
.det-filters { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin: 4px 0 18px; padding-top: 14px; border-top: 1px solid var(--line); }
.det-tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.det-tab { background: transparent; border: 1px solid var(--line); color: var(--muted); font-size: 12.5px; font-weight: 500; padding: 7px 13px; border-radius: 10px; cursor: pointer; transition: all .15s; display: inline-flex; align-items: center; gap: 7px; font-family: inherit; }
.det-tab:hover { color: var(--white); border-color: var(--line-hi); }
.det-tab .n { background: rgba(255,255,255,.06); padding: 2px 7px; border-radius: 6px; font-size: 11px; font-weight: 600; }
.det-tab.on { background: rgba(255,255,255,.05); border-color: var(--white-3); color: var(--white); }
.det-tab.on .n { background: rgba(255,255,255,.14); }
.det-tab.critical.on { background: rgba(255,55,65,.12); border-color: rgba(255,55,65,.5); color: #ff6b73; }
.det-tab.high.on { background: rgba(255,122,61,.12); border-color: rgba(255,122,61,.4); color: #ffa373; }
.det-tab.medium.on { background: rgba(245,180,45,.12); border-color: rgba(245,180,45,.4); color: #e8c568; }
.det-tab.low.on { background: rgba(140,140,160,.1); border-color: rgba(140,140,160,.3); color: var(--muted); }
.det-search { flex: 1; min-width: 200px; font-size: 13px; padding: 8px 12px; }
.det-group { margin-bottom: 14px; }
.det-group-head { font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin: 0 0 8px; padding: 0 4px; }

/* ==========================================================================
   v2.6 — Tool designer (VoidScanner-style), feature-card motion, pricing
   ========================================================================== */

/* Tool designer layout: big canvas on the left, tabbed inspector on the right */
.td-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 20px; align-items: start; }
@media (max-width: 1100px) { .td-wrap { grid-template-columns: 1fr; } }
.td-canvas { padding: 24px; border-radius: 20px; }
.td-canvas-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.td-eye { display: inline-flex; align-items: center; gap: 8px; font-size: 11.5px; letter-spacing: .14em; color: var(--muted); font-weight: 600; }
.td-eye svg { width: 15px; height: 15px; }
.td-preview { aspect-ratio: 16 / 9; border-radius: 14px; border: 1px solid var(--line); overflow: hidden; background: #04040a; }
.td-preview .scanner-win { width: 100%; height: 100%; display: flex; flex-direction: column; border-radius: inherit; }
.td-preview .scanner-win .bar { height: 32px; display: flex; align-items: center; gap: 6px; padding: 0 12px; border-bottom: 1px solid rgba(255,255,255,.06); background: rgba(0,0,0,.3); }
.td-preview .scanner-win .bar i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.14); }
.td-preview .scanner-win .body { padding: 32px 40px; flex: 1; display: flex; flex-direction: column; gap: 20px; }
.s-logo { display: flex; align-items: center; gap: 14px; }
.s-logo img { width: 36px; height: 36px; border-radius: 10px; object-fit: cover; }
.s-logo .dot { display: inline-block; width: 14px; height: 14px; border-radius: 50%; box-shadow: 0 0 12px currentColor; }
.s-logo > div { font-weight: 700; font-size: 15px; line-height: 1.2; }
.s-pin-prompt { font-weight: 700; margin: 20px 0 10px; display: inline-flex; align-items: center; gap: 8px; }
.s-pin { display: flex; gap: 10px; }
.s-pin span { width: 48px; height: 48px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid rgba(255,255,255,.14); border-radius: 10px; background: rgba(255,255,255,.03); font-family: var(--mono); font-weight: 700; font-size: 22px; transition: all .2s; }
.s-prog { height: 4px; border-radius: 999px; overflow: hidden; margin: 10px 0 0; background: rgba(255,255,255,.07); }
.s-prog i { display: block; height: 100%; border-radius: inherit; transition: width .3s; }
.s-mods { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.s-mods span { font-size: 11px; padding: 4px 9px; border-radius: 6px; background: rgba(255,255,255,.05); color: rgba(255,255,255,.75); }
.s-btn { display: inline-block; margin-top: auto; padding: 10px 16px; border-radius: 10px; background: #fff; color: #000; font-weight: 700; font-size: 13px; }

.td-shots { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; margin-top: 16px; }
.td-shot { padding: 10px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,.02); cursor: pointer; transition: all .18s var(--ease); color: var(--muted); font-size: 11px; font-weight: 600; letter-spacing: .14em; }
.td-shot em { font-style: normal; display: block; margin-top: 8px; }
.td-shot:hover { border-color: var(--line-2); color: var(--white-2); }
.td-shot.on { border-color: rgba(229,18,31,.5); background: rgba(229,18,31,.06); color: var(--white); }
.td-shot-mini { display: block; height: 60px; border-radius: 8px; background: linear-gradient(135deg, #1a1a22, #0b0b10); border: 1px solid var(--line); position: relative; }
.td-shot-mini::after { content: ''; position: absolute; left: 50%; top: 50%; width: 24px; height: 24px; transform: translate(-50%, -50%); border-radius: 50%; background: radial-gradient(circle, rgba(229,18,31,.5), transparent 60%); }

/* Right-side tabbed inspector */
.td-rail { padding: 16px; border-radius: 20px; position: sticky; top: 20px; }
.td-tabs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; padding: 4px; background: rgba(255,255,255,.03); border-radius: 12px; margin-bottom: 20px; }
.td-tabs button { background: transparent; border: 0; color: var(--muted); padding: 10px 8px; font-size: 12.5px; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; gap: 6px; border-radius: 8px; cursor: pointer; transition: all .18s; }
.td-tabs button svg { width: 14px; height: 14px; }
.td-tabs button:hover { color: var(--white-2); }
.td-tabs button.on { background: var(--lacquer-3); color: var(--white); box-shadow: 0 2px 10px rgba(0,0,0,.4); }

.td-pane { display: none; }
.td-pane.on { display: block; animation: tdFade .18s ease-out; }
@keyframes tdFade { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }
.td-h { margin: 0 0 4px; font-size: 15px; font-weight: 700; }
.td-sub { color: var(--muted); font-size: 12.5px; margin: 0 0 18px; line-height: 1.5; }

.td-row-color { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.td-row-color:last-child { border-bottom: 0; }
.td-col-info b { display: block; font-size: 13.5px; font-weight: 600; color: var(--white); }
.td-col-info small { display: block; color: var(--muted); font-size: 11.5px; margin-top: 2px; }
.td-col-pick { display: flex; align-items: center; gap: 8px; }
.td-swatch { width: 32px; height: 32px; border-radius: 8px; border: 1px solid var(--line-2); background: transparent; padding: 2px; cursor: pointer; }
.td-swatch::-webkit-color-swatch-wrapper { padding: 0; }
.td-swatch::-webkit-color-swatch { border: 0; border-radius: 6px; }
.td-hex { width: 90px; height: 32px; font-size: 12px; padding: 0 10px; letter-spacing: .05em; }
.td-mods { display: grid; grid-template-columns: 1fr; gap: 10px; }
.td-mod { padding: 10px 12px; border-radius: 10px; background: rgba(255,255,255,.025); border: 1px solid var(--line); font-size: 13.5px; }

/* ==========================================================================
   Feature card motion — lifts, parallax tilt, glow on hover
   ========================================================================== */
.bento > * { transition: transform .4s var(--ease), border-color .3s, box-shadow .4s var(--ease); position: relative; }
.bento > *::after { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), rgba(229,18,31,.14), transparent 60%); transition: opacity .3s; }
.bento > *:hover { transform: translateY(-4px); border-color: rgba(255,80,90,.35); box-shadow: 0 24px 60px -24px var(--red-glow); }
.bento > *:hover::after { opacity: 1; }
.bento > *:hover .tile:not(.on) { transform: translateY(-2px); }
.tile { transition: transform .3s var(--ease), border-color .3s, box-shadow .3s; }
.tile.on { animation: tileBreathe 3.6s ease-in-out infinite; }
@keyframes tileBreathe { 0%, 100% { box-shadow: 0 0 0 6px rgba(229,18,31,.08), 0 20px 50px -14px var(--red-glow); } 50% { box-shadow: 0 0 0 10px rgba(229,18,31,.14), 0 28px 60px -14px var(--red-glow); } }
.chip { transition: transform .22s var(--ease), background .22s, border-color .22s, color .22s; }
.chip:hover { transform: translateY(-2px); border-color: rgba(255,80,90,.45); color: #fff; background: linear-gradient(180deg, rgba(229,18,31,.12), rgba(229,18,31,.02)); }
.chip.hot:hover { box-shadow: 0 8px 20px -8px var(--red-glow); }
.stack div { transition: transform .3s var(--ease), left .4s var(--ease); }
.bento > *:hover .stack div:nth-child(1) { left: 20%; }
.bento > *:hover .stack div:nth-child(2) { left: 12%; }
.bento > *:hover .stack div:nth-child(3) { left: 4%; }
.bento > *:hover .stack div:nth-child(4) { transform: translateX(-6px); }
.diff > div { transition: background .3s; position: relative; }
.diff > div::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--red); transform: scaleY(0); transform-origin: top; transition: transform .3s var(--ease); }
.diff > div:hover { background: rgba(255,255,255,.015); }
.diff > div:hover::before { transform: scaleY(1); }
.diff > div:hover .ico { background: var(--red); color: #fff; border-color: var(--red); box-shadow: 0 10px 28px -10px var(--red-glow); }
.diff .ico { transition: background .3s, color .3s, border-color .3s, box-shadow .3s; }
.step { transition: transform .3s var(--ease), border-color .3s; }
.step:hover { transform: translateY(-4px); border-color: rgba(255,80,90,.3); }
.module { transition: background .3s; }
.module:hover { background: linear-gradient(180deg, var(--lacquer-2), var(--lacquer)); }

/* ==========================================================================
   Pricing — new design: billing toggle, hover highlight, popular glow
   ========================================================================== */
.pricing-toggle { display: inline-flex; align-items: center; gap: 10px; padding: 6px; border: 1px solid var(--line); background: var(--lacquer-2); border-radius: 999px; margin: 0 auto 36px; }
.pricing-toggle button { background: transparent; border: 0; color: var(--muted); padding: 8px 18px; font-size: 13.5px; font-weight: 600; border-radius: 999px; cursor: pointer; transition: all .2s; display: inline-flex; align-items: center; gap: 8px; }
.pricing-toggle button.on { background: var(--white); color: var(--black); }
.pricing-toggle .save-tag { font-size: 11px; padding: 2px 7px; border-radius: 999px; background: rgba(47,209,122,.14); color: var(--green); font-weight: 700; letter-spacing: .04em; }
.pricing-toggle button.on .save-tag { background: rgba(47,209,122,.9); color: #022014; }
.pricing-wrap { text-align: center; }
.pricing-wrap > .prices, .pricing-wrap > .price-matrix { text-align: left; }
.price .feat { grid-template-columns: 1fr; }
.prices { grid-template-columns: repeat(3, 1fr); position: relative; }
.price { padding: 36px 30px; position: relative; transition: transform .3s var(--ease), border-color .3s, box-shadow .4s var(--ease); display: flex; flex-direction: column; }
.price::before { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: linear-gradient(180deg, rgba(229,18,31,.08), transparent 50%); opacity: 0; transition: opacity .3s; }
.price:hover { transform: translateY(-6px); border-color: rgba(255,80,90,.4); box-shadow: 0 40px 80px -40px var(--red-glow); }
.price:hover::before { opacity: 1; }
.price.pop { transform: scale(1.02); border-color: rgba(255,80,90,.5); }
.price.pop:hover { transform: scale(1.02) translateY(-6px); }
.price .amount b { transition: color .25s; }
.price:hover .amount b { color: var(--red-hot); }
.price.wide { grid-column: auto; }
.price.wide .feat { grid-template-columns: 1fr; margin-top: 26px; }
@media (max-width: 900px) { .prices { grid-template-columns: 1fr; } .price.pop { transform: none; } .price.pop:hover { transform: translateY(-6px); } }

/* Comparison matrix under the pricing cards */
.price-matrix { margin: 60px auto 0; max-width: 940px; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: var(--lacquer); }
.price-matrix h3 { margin: 0; padding: 22px 28px; font-size: 15px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid var(--line); background: var(--lacquer-2); font-weight: 700; }
.price-matrix table { width: 100%; border-collapse: collapse; font-size: 14px; }
.price-matrix th, .price-matrix td { padding: 14px 24px; text-align: left; border-bottom: 1px solid var(--line); }
.price-matrix thead th { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.price-matrix tr:last-child td { border-bottom: 0; }
.price-matrix td:not(:first-child), .price-matrix th:not(:first-child) { text-align: center; width: 140px; }
.price-matrix td.y { color: var(--green); font-weight: 700; }
.price-matrix td.n { color: var(--faint); }
.price-matrix tr:hover td { background: rgba(255,255,255,.015); }
@media (max-width: 760px) { .price-matrix { font-size: 12.5px; } .price-matrix th, .price-matrix td { padding: 10px 12px; } }

/* v2.6.1 — comparison table on phones: columns shrink to fit, scroll if still too wide */
@media (max-width: 760px) {
  .price-matrix { overflow-x: auto; }
  .price-matrix td:not(:first-child), .price-matrix th:not(:first-child) { width: auto; padding-left: 6px; padding-right: 6px; }
  .price-matrix thead th { font-size: 10px; letter-spacing: .04em; }
}

/* v2.6.1 — top bar: logo never breaks into two lines, right-side buttons stay
   on the right edge on tablets/phones, links tighten up on mid-size screens */
.brand { white-space: nowrap; flex: none; }
@media (max-width: 1080px) { .nav { gap: 12px; } .nav-links a { padding: 8px 10px; } }
@media (max-width: 900px) { .nav-right { margin-left: auto; } }
@media (max-width: 420px) {
  .nav { gap: 8px; padding-left: 12px; padding-right: 8px; }
  .nav .brand { font-size: 16px; gap: 8px; }
  .nav .brand-mark { width: 26px; height: 26px; }
  .nav-right { gap: 6px; }
  .nav-right .btn-sm { padding-left: 12px; padding-right: 12px; }
}
@media (max-width: 350px) { .nav .brand { font-size: 0; gap: 0; } }

/* v2.7 — Discord sign-in */
.btn-discord { --bg: #5865f2; --fg: #fff; border-color: rgba(160,170,255,.45); box-shadow: 0 10px 30px -12px rgba(88,101,242,.7), inset 0 1px 0 rgba(255,255,255,.3); }
.btn-discord:hover { --bg: #4752c4; border-color: rgba(190,198,255,.6); }
.btn-discord svg { width: 20px; height: 20px; }
.auth-or { display: flex; align-items: center; gap: 12px; margin: 22px 0 18px; color: var(--muted); font-size: 12.5px; letter-spacing: .02em; }
.auth-or::before, .auth-or::after { content: ''; flex: 1; height: 1px; background: var(--line-2); }
.auth-points { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 10px; }
.auth-points li { display: flex; gap: 10px; color: var(--muted); font-size: 13.5px; line-height: 1.45; }
.auth-points li::before { content: ''; flex: none; width: 6px; height: 6px; margin-top: 7px; border-radius: 50%; background: var(--red); }
.dc-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.dc-id { display: flex; align-items: center; gap: 12px; }
.dc-id .dc-badge { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: #5865f2; color: #fff; flex: none; }
.dc-id .dc-badge svg { width: 22px; height: 22px; }
.dc-id b { display: block; font-size: 14.5px; }
.dc-id small { color: var(--muted); font-size: 12.5px; }

/* ============================================================ */
/* v2.9 — Report viewer layout (hero + stat tiles + left nav)   */
/* ============================================================ */
.rep-hero { display:grid; grid-template-columns: 190px 1fr 260px; gap:28px; align-items:center; padding:28px 32px; margin-bottom:14px; }
.rep-hero.detected { border-color: rgba(255,42,55,.35); }
.rep-hero.suspicious { border-color: rgba(242,169,59,.3); }
.rep-hero-gauge { display:flex; flex-direction:column; align-items:center; gap:8px; }
.rep-hero-gauge .gauge { width:170px; height:170px; }
.rep-hero-score b { font-family: var(--heading, 'Archivo', sans-serif); font-weight: 800; font-size: 26px; display:block; text-align:center; }
.rep-hero-score small { display:block; text-align:center; color:#86858a; font-size:11.5px; letter-spacing:.08em; text-transform:uppercase; margin-top:2px; }
.rep-hero-main { min-width: 0; }
.rep-hero-icon { width:40px; height:40px; display:flex; align-items:center; justify-content:center; border-radius:12px; background:rgba(255,255,255,.04); margin-bottom:10px; }
.rep-hero-icon svg { width:22px; height:22px; }
.rep-hero-main h2 { margin: 0 0 6px; font-size: 28px; letter-spacing:-.01em; }
.rep-hero-main p { margin: 0 0 2px; color:#c7c6cc; max-width: 520px; line-height:1.55; }
.rep-hero-main p.muted { color:#86858a; font-size:13px; }
.rep-hero-side { display:flex; flex-direction:column; gap:10px; padding:16px 18px; border-radius:14px; background: rgba(255,255,255,.03); border:1px solid rgba(255,255,255,.06); }
.rep-hero-kv .k { display:flex; align-items:center; gap:8px; color:#86858a; font-size:11.5px; letter-spacing:.06em; text-transform:uppercase; margin-bottom:3px; }
.rep-hero-kv .k svg { width:14px; height:14px; }
.rep-hero-kv .v { color:#f6f5f3; font-size:13.5px; overflow-wrap:anywhere; }
.rep-hero-more { margin-top: 6px; }
.rep-hero-more > summary { list-style:none; display:flex; align-items:center; justify-content:space-between; cursor:pointer; color:#9c9ba1; font-size:12px; letter-spacing:.04em; padding:8px 0 6px; border-top: 1px solid rgba(255,255,255,.06); }
.rep-hero-more > summary::-webkit-details-marker { display:none; }
.rep-hero-more > summary svg { width:14px; height:14px; transition: transform .2s; }
.rep-hero-more[open] > summary svg { transform: rotate(180deg); }
.rep-hero-more .rep-hero-kv { margin-top:6px; }

.rep-stats { display:grid; grid-template-columns: repeat(4, 1fr); gap:12px; margin-bottom:14px; }
.rep-stat { background: #0b0b0d; border:1px solid rgba(255,255,255,.08); border-radius:14px; padding:14px 16px; display:flex; flex-direction:column; gap:6px; }
.rep-stat span { color:#86858a; font-size:12px; letter-spacing:.04em; display:flex; align-items:center; gap:7px; text-transform:uppercase; }
.rep-stat span svg { width:14px; height:14px; opacity:.85; }
.rep-stat b { font-family: var(--heading, 'Archivo', sans-serif); font-weight:800; font-size:26px; color:#f6f5f3; letter-spacing:-.02em; }

.rep-body { display:grid; grid-template-columns: 280px minmax(0,1fr); gap:14px; align-items:flex-start; }
.rep-body > * { min-width: 0; }
.rep-nav { background: #0b0b0d; border:1px solid rgba(255,255,255,.08); border-radius:16px; padding:14px 12px; position:sticky; top:14px; }
.rep-nav-h { color:#86858a; font-size:11.5px; letter-spacing:.08em; text-transform:uppercase; display:flex; flex-direction:column; padding:6px 10px 12px; border-bottom:1px solid rgba(255,255,255,.05); margin-bottom:6px; }
.rep-nav-h small { color:#5c5c62; font-size:11px; text-transform:none; letter-spacing:0; margin-top:2px; }
.rep-nav-item { display:flex; align-items:center; gap:10px; width:100%; text-align:left; padding:11px 10px; border-radius:10px; background:transparent; border:1px solid transparent; color:#c7c6cc; cursor:pointer; margin-top:2px; transition: background .15s, border-color .15s, color .15s; }
.rep-nav-item:hover { background: rgba(255,255,255,.04); color:#f6f5f3; }
.rep-nav-item.on { background: rgba(229,18,31,.14); border-color: rgba(229,18,31,.4); color:#f6f5f3; }
.rep-nav-item em { font-style:normal; color:#5c5c62; font-family: var(--mono, 'JetBrains Mono', monospace); font-size:11px; width:22px; }
.rep-nav-item.on em { color:#e5121f; }
.rep-nav-icon { display:flex; align-items:center; justify-content:center; width:22px; }
.rep-nav-icon svg { width:16px; height:16px; }
.rep-nav-label { flex:1; font-size:14px; font-weight:500; }
.rep-nav-count { background: rgba(255,255,255,.06); color:#9c9ba1; font-size:11.5px; padding:2px 8px; border-radius:8px; font-family: var(--mono, 'JetBrains Mono', monospace); }
.rep-nav-item.on .rep-nav-count { background: rgba(229,18,31,.22); color:#ffd0d4; }

.rep-pane { background: #0b0b0d; border:1px solid rgba(255,255,255,.08); border-radius:16px; padding:22px 24px; min-height: 300px; }
.rep-pane-view { }
.rep-pane-view[hidden] { display:none; }
.rep-pane-h { margin-bottom: 14px; padding-bottom: 12px; border-bottom: 1px solid rgba(255,255,255,.06); }
.rep-pane-h h3 { margin:0 0 4px; font-size:17px; letter-spacing:-.01em; }
.rep-pane-h p { margin:0; color:#86858a; font-size:13px; }
.rep-pane-search { background: #050506; border-color: rgba(255,255,255,.08); font-size:13px; }

.rep-sub-h { color:#86858a; font-size:11.5px; letter-spacing:.1em; text-transform:uppercase; margin:14px 0 8px; padding:0 2px; }
.rep-sub-h.rep-sub-crit { color:#ff6a73; }
.det-path { background: rgba(255,255,255,.03); padding:6px 10px; border-radius:7px; border:1px solid rgba(255,255,255,.05); }

.det-group-fold { background: transparent; border:1px solid rgba(255,255,255,.06); border-radius:12px; margin-top:8px; }
.det-group-fold > summary { list-style:none; display:flex; align-items:center; gap:8px; padding:12px 14px; cursor:pointer; color:#c7c6cc; }
.det-group-fold > summary::-webkit-details-marker { display:none; }
.det-group-fold > summary svg { margin-left:auto; width:16px; height:16px; transition: transform .18s; }
.det-group-fold[open] > summary svg { transform: rotate(180deg); }
.det-group-fold[open] > summary { border-bottom: 1px solid rgba(255,255,255,.05); }
.det-group-fold > div { padding: 4px 14px 10px; }

.rep-row-head { display:grid; grid-template-columns: 150px minmax(0,2fr) minmax(0,3fr); gap:10px; padding:6px 10px; font-size:11px; letter-spacing:.08em; text-transform:uppercase; color:#86858a; border-bottom:1px solid rgba(255,255,255,.06); margin-top:10px; }
.rep-list { max-height: 60vh; overflow-y: auto; margin-top: 2px; }
.rep-row { display:grid; grid-template-columns: 150px minmax(0,2fr) minmax(0,3fr); gap:10px; padding:7px 10px; font-size:12px; font-family: var(--mono, 'JetBrains Mono', monospace); border-bottom:1px solid rgba(255,255,255,.03); align-items:start; }
.rep-row-ts { color:#9c9ba1; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.rep-row-path { color:#e5e5ea; overflow-wrap:anywhere; line-height:1.4; }
.rep-row-rest { color:#9c9ba1; overflow-wrap:anywhere; line-height:1.4; }

@media (max-width: 980px) {
  .rep-hero { grid-template-columns: 1fr; gap:18px; padding:20px; }
  .rep-hero-side { max-width: 480px; }
  .rep-stats { grid-template-columns: repeat(2, 1fr); }
  .rep-body { grid-template-columns: minmax(0,1fr); }
  .rep-nav { position: static; }
  .rep-row-head, .rep-row { grid-template-columns: 1fr; }
  .rep-row-ts, .rep-row-path, .rep-row-rest { padding: 2px 0; }
}

/* ---------- v3.0 · intelligence, signatures, report seal ---------- */
.rep-seal { display:flex; align-items:center; gap:8px; padding:8px 12px; border-radius:10px; font-size:12.5px; font-weight:700; border:1px solid var(--line-2); color: var(--muted); background: rgba(255,255,255,.02); }
.rep-seal svg { width:15px; height:15px; flex:none; }
.rep-seal small { margin-left:auto; font-weight:600; opacity:.7; font-family: var(--mono); }
.seal-ok.rep-seal, .seal-box.seal-ok .seal-big svg { color: var(--green); }
.rep-seal.seal-ok { border-color: rgba(47,209,122,.3); background: rgba(47,209,122,.06); }
.rep-seal.seal-bad { color:#ff6b74; border-color: rgba(229,18,31,.45); background: rgba(229,18,31,.1); }
.seal-box { border:1px solid var(--line); border-radius:14px; padding:16px 18px; background: rgba(255,255,255,.02); }
.seal-box.seal-ok { border-color: rgba(47,209,122,.28); }
.seal-box.seal-bad { border-color: rgba(229,18,31,.45); background: rgba(229,18,31,.06); }
.seal-big { display:flex; gap:12px; align-items:center; margin-bottom:6px; }
.seal-big svg { width:26px; height:26px; flex:none; color: var(--muted); }
.seal-box.seal-bad .seal-big svg { color:#ff6b74; }
.seal-big b { display:block; font-size:15px; }
.seal-big small { display:block; color: var(--muted); font-size:12.5px; overflow-wrap:anywhere; }

.det-actions { display:flex; gap:8px; flex-wrap:wrap; margin-top:12px; }
.det-actions .btn svg { width:14px; height:14px; }
.supp-row { display:flex; gap:10px; align-items:center; padding:7px 2px; border-bottom:1px solid rgba(255,255,255,.04); font-size:13px; }
.supp-row:last-child { border-bottom:0; }
.supp-row small { display:block; color: var(--muted); font-size:12px; }

.sig { display:inline-flex; align-items:center; gap:6px; font-size:11.5px; font-weight:700; padding:2px 8px; border-radius:6px; border:1px solid var(--line-2); white-space:nowrap; font-family: var(--sans, inherit); }
.sig svg { width:13px; height:13px; }
.sig-ok { color: var(--green); border-color: rgba(47,209,122,.3); background: rgba(47,209,122,.06); }
.sig-none { color:#e8b04a; border-color: rgba(232,176,74,.3); background: rgba(232,176,74,.06); }
.sig-bad { color:#ff6b74; border-color: rgba(229,18,31,.4); background: rgba(229,18,31,.09); }
.sig-na { color: var(--muted); }
.intel-head, .intel-row { grid-template-columns: minmax(0,2.4fr) 110px minmax(0,1.3fr) 150px auto; align-items:center; }
.intel-head { display:grid; gap:10px; padding:6px 10px; font-size:11px; letter-spacing:.08em; text-transform:uppercase; color:#86858a; border-bottom:1px solid rgba(255,255,255,.06); }
.intel-row { font-family: inherit; font-size:13px; }
.intel-row.is-flagged { background: rgba(229,18,31,.07); box-shadow: inset 2px 0 0 var(--red); }
.intel-file b { display:block; overflow-wrap:anywhere; }
.intel-file small { display:block; color:#86858a; font-size:11.5px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.intel-signer { display:block; color:#86858a; font-size:11.5px; margin-top:3px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.intel-sha { cursor:pointer; color:#c7c6cc; font-size:12px; }
.intel-sha:hover { color:#fff; text-decoration: underline dotted; }
.intel-act { display:flex; gap:6px; justify-content:flex-end; }
.intel-act .btn { padding: 0 8px; }
.intel-act .btn svg { width:13px; height:13px; }

.intel-tabs { flex-wrap: wrap; }
.seg a { display:inline-flex; align-items:center; padding:6px 12px; border-radius:8px; font-size:13px; font-weight:600; color: var(--muted); text-decoration:none; }
.seg a.on { background: var(--lacquer-3); color:#fff; box-shadow: inset 0 1px 0 rgba(255,255,255,.07); }
.seg a:hover { color:#fff; }

.yara-src { min-height: 320px; font-family: var(--mono); font-size: 12.5px; line-height: 1.55; tab-size: 2; white-space: pre; }
pre.yara-src { min-height: 0; max-height: 60vh; overflow:auto; background:#020202; border:1px solid var(--line); border-radius:10px; padding:12px 14px; }
.yara-out { display:grid; gap:10px; margin-top:6px; }
.yara-err, .yara-ok { display:flex; gap:10px; align-items:flex-start; padding:12px 14px; border-radius:10px; font-size:13px; }
.yara-err { border:1px solid rgba(229,18,31,.4); background: rgba(229,18,31,.08); color:#ffb3b8; }
.yara-ok { border:1px solid rgba(47,209,122,.3); background: rgba(47,209,122,.06); }
.yara-err svg, .yara-ok svg { width:16px; height:16px; flex:none; margin-top:2px; }
.yara-ok svg { color: var(--green); }
.yara-err div div, .yara-ok div div { margin-top:4px; }
.yara-ok b, .yara-err b { display:block; }

.base-file { border-bottom:1px solid var(--line); padding:12px 4px; }
.base-file:last-child { border-bottom:0; }
.base-head { display:flex; align-items:center; gap:10px; flex-wrap:wrap; margin-bottom:6px; }
.base-head .grow { flex:1; }
.base-var { display:grid; grid-template-columns: 200px minmax(0,1fr) auto auto; gap:12px; align-items:center; padding:5px 0 5px 14px; font-size:13px; }
.base-act { display:flex; gap:4px; }

.verify-wrap { max-width: 760px; }
.drop { display:flex; flex-direction:column; align-items:center; gap:6px; padding:34px 20px; border:1px dashed var(--line-2); border-radius:14px; cursor:pointer; text-align:center; transition: border-color .2s, background-color .2s; }
.drop svg { width:28px; height:28px; color: var(--red-hot); }
.drop small { color: var(--muted); }
.drop:hover, .drop.over { border-color: rgba(255,80,90,.6); background: rgba(229,18,31,.05); }

@media (max-width: 980px) {
  .intel-head { display:none; }
  .intel-row { grid-template-columns: 1fr; gap:4px; }
  .intel-act { justify-content:flex-start; }
  .base-var { grid-template-columns: 1fr; gap:4px; }
}

/* ==========================================================================
   v3.10 — GLASS REDESIGN
   Soft red-neon abstract backdrop painted once at the body level, then every
   surface (nav, cards, side rails, modals, mock dashboard) becomes a frosted
   pane that shows the backdrop through blurred glass. Overrides live BELOW
   the original lacquer rules so the existing design keeps its shape — colors,
   typography and brand are untouched, only the surface treatment changes.
   ========================================================================== */

/* Backdrop: a fixed layer painted behind every page. Three parts:
   1) a faint tech-grid                         (very low contrast)
   2) five soft red radial glows                 (brand accent, bottom-weighted)
   3) scattered 6-arm brand marks at 2% opacity  (subtle identity texture)
   The whole thing is baked into a single SVG so it loads once and is cached.
   The SVG uses the brand's own red (#e5121f) and 6-arm geometry. */
body::before {
  content: '';
  position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background-color: #000;
  background-image:
    radial-gradient(1200px 700px at 85% 110%, rgba(229,18,31,0.18), transparent 60%),
    radial-gradient(900px 600px at 10% 95%, rgba(229,18,31,0.12), transparent 65%),
    radial-gradient(700px 500px at 65% 15%, rgba(229,18,31,0.08), transparent 70%),
    radial-gradient(500px 500px at 15% 20%, rgba(255,42,55,0.05), transparent 65%),
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='680' height='680' viewBox='0 0 680 680'><defs><pattern id='g' width='40' height='40' patternUnits='userSpaceOnUse'><path d='M40 0H0V40' fill='none' stroke='%23ffffff' stroke-opacity='0.025' stroke-width='1'/></pattern><g id='a' fill='%23e5121f' fill-opacity='0.07'><path d='M0,-28 L5,-5 L28,0 L5,5 L0,28 L-5,5 L-28,0 L-5,-5 Z'/><circle r='3'/></g></defs><rect width='680' height='680' fill='url(%23g)'/><use href='%23a' x='110' y='140' transform='scale(0.9) rotate(12 110 140)'/><use href='%23a' x='520' y='95' transform='scale(1.1) rotate(28 520 95)'/><use href='%23a' x='300' y='380' transform='scale(0.75) rotate(-14 300 380)'/><use href='%23a' x='590' y='520' transform='scale(0.95) rotate(42 590 520)'/><use href='%23a' x='70' y='580' transform='scale(1.0) rotate(-24 70 580)'/><use href='%23a' x='410' y='620' transform='scale(0.85) rotate(8 410 620)'/><use href='%23a' x='230' y='60' transform='scale(0.7) rotate(-32 230 60)'/></svg>");
  background-attachment: fixed, fixed, fixed, fixed, fixed;
  background-size: cover, cover, cover, cover, 680px 680px;
  animation: ds-glass-drift 72s linear infinite;
}
/* Very slow drift gives the backdrop a sense of life without ever
   distracting from content; CPU/GPU cost is near zero. */
@keyframes ds-glass-drift {
  from { background-position: 0 0, 0 0, 0 0, 0 0, 0 0; }
  to   { background-position: 0 0, 0 0, 0 0, 0 0, 680px 680px; }
}
/* Users who prefer reduced motion get the same backdrop, no drift. */
@media (prefers-reduced-motion: reduce) {
  body::before { animation: none; }
}

/* The body itself stays transparent so our ::before shows through. The
   solid-black fallback moves into the ::before layer above. */
body { background: transparent; }

/* ---------- Frosted surfaces ----------------------------------------------
   Every "surface" element — the floating nav, cards, side rails, mock panels,
   modals — becomes translucent black with a backdrop-filter blur so the
   neon layer softly reads through. The existing lacquer border + inset
   highlight are preserved so panels still feel like polished glass, not
   paper. On browsers that cannot blur the backdrop the solid rgba fallback
   still looks correct — never a see-through hole. */
.lacquer {
  background: rgba(10, 10, 12, 0.68);
  backdrop-filter: blur(22px) saturate(145%);
  -webkit-backdrop-filter: blur(22px) saturate(145%);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .lacquer { background: rgba(10, 10, 12, 0.94); }
}

/* The .nav floating pill already had backdrop-filter; nudge its colour so it
   sits in the same visual family as every other glass pane. */
.nav {
  background: rgba(8, 8, 10, 0.58);
  backdrop-filter: blur(22px) saturate(150%);
  -webkit-backdrop-filter: blur(22px) saturate(150%);
}

/* Dashboard side rail — was a solid vertical black strip. Make it match the
   glass language so content panes to the right look like they float over the
   same backdrop as the nav. The red "active page" bar glows against the
   backdrop. The right-edge seam gets a soft red hairline. */
.side {
  background: rgba(5, 5, 7, 0.55);
  backdrop-filter: blur(26px) saturate(150%);
  -webkit-backdrop-filter: blur(26px) saturate(150%);
  border-right: 1px solid rgba(229, 18, 31, 0.12);
  box-shadow: 1px 0 24px -16px rgba(229, 18, 31, 0.35);
}
.side a.item.on { background: rgba(229, 18, 31, 0.10); }

/* Landing-page mock dashboard: give it the same frosted feel as the real
   dashboard so the preview "looks like" the product. */
.mock { background: rgba(10, 10, 12, 0.62); backdrop-filter: blur(20px) saturate(140%); -webkit-backdrop-filter: blur(20px) saturate(140%); }
.mock-side { background: rgba(6, 6, 8, 0.55); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); border-right: 1px solid rgba(229,18,31,0.12); }

/* Cards: on top of a glass panel they get a slightly more opaque pane so
   stacked content stays legible. Non-lacquer plain .card gets glass too. */
.card:not(.lacquer) {
  background: rgba(14, 14, 16, 0.60);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border: 1px solid var(--line);
  border-radius: 20px;
}

/* Modal/dialog sheets become frosted glass so the backdrop reads through. */
.modal-sheet, .sheet, dialog, .popover {
  background: rgba(10, 10, 12, 0.72);
  backdrop-filter: blur(28px) saturate(160%);
  -webkit-backdrop-filter: blur(28px) saturate(160%);
}

/* The tool-designer rail and preview surface switch to glass too so the
   "edit it live" experience feels tactile instead of papery. */
.td-canvas, .td-rail { background: rgba(10, 10, 12, 0.62); backdrop-filter: blur(18px) saturate(140%); -webkit-backdrop-filter: blur(18px) saturate(140%); }

/* Tabs / segmented buttons on a glass pane need a touch more contrast. */
.td-pane, .mock-pane { background: transparent; }

/* Subtle red accent line under the active mock-sidebar item so it reads
   as "selected" against the frosted pane. */
.mock-i.on { background: rgba(229,18,31,0.12); color:#fff; border-left: 2px solid var(--red); }

/* Dropped shadows under floating glass panes gain a soft red lift so the
   whole site feels illuminated from inside. */
.nav, .side, .mock, .lacquer {
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.06),
    0 20px 60px -30px rgba(229,18,31,0.25),
    0 25px 70px -25px rgba(0,0,0,.75);
}

/* ============================================================
   v3.20 — DARK SCROLLBAR
   Hide the ugly default Windows white scrollbars.
   Thin, dark, invisible-ish until hover; subtle red accent on
   hover so you can still see where you are on the page.
   Works in Chrome, Edge and the Chromium-based desktop app.
   Firefox falls back to the standard `scrollbar-*` properties.
   ============================================================ */

/* --- Firefox + evergreen fallback ------------------------------------ */
html, body {
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,.08) transparent;
}

/* --- WebKit / Chromium ---------------------------------------------- */
/* Thin bar — 8px vertical, 8px horizontal. The track stays fully
   transparent so it blends into whatever glass pane sits behind it. */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
  background: transparent;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,.06);
  border-radius: 10px;
  border: 2px solid transparent;
  background-clip: padding-box;
  transition: background-color 180ms ease;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(229,18,31,.45);
  background-clip: padding-box;
}
::-webkit-scrollbar-thumb:active {
  background: rgba(229,18,31,.75);
  background-clip: padding-box;
}
/* The little square where vertical + horizontal bars meet — kill it. */
::-webkit-scrollbar-corner {
  background: transparent;
}
/* No arrow buttons at the ends. */
::-webkit-scrollbar-button {
  display: none;
  width: 0;
  height: 0;
}

/* --- Inside the dark sidebars/panels the thumb is already dim — but
   if a user drags focus to the sidebar their thumb colour sits on a
   near-black background, which is nearly invisible. Lift it slightly. */
.side::-webkit-scrollbar-thumb,
.main::-webkit-scrollbar-thumb,
.table-wrap::-webkit-scrollbar-thumb,
.rep-list::-webkit-scrollbar-thumb,
.evidence::-webkit-scrollbar-thumb,
.td-mods::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,.09);
  background-clip: padding-box;
}
.side::-webkit-scrollbar-thumb:hover,
.main::-webkit-scrollbar-thumb:hover,
.table-wrap::-webkit-scrollbar-thumb:hover,
.rep-list::-webkit-scrollbar-thumb:hover,
.evidence::-webkit-scrollbar-thumb:hover,
.td-mods::-webkit-scrollbar-thumb:hover {
  background: rgba(229,18,31,.5);
  background-clip: padding-box;
}
