@property --a { syntax: '<angle>'; initial-value: 0deg; inherits: false; }

/* oude header/footer + alles wat footer.php nog na de pagina uitspuugt verbergen */
html:has(.tl-home) body > header, html:has(.tl-home) body > nav, html:has(.tl-home) body > footer { display: none !important; }
.tl-home ~ *:not(script):not(style),
body > :has(.tl-home) ~ *:not(script):not(style) { display: none !important; }
html:has(.tl-home), html:has(.tl-home) body { background: #000; margin: 0; padding-bottom: 0; scroll-behavior: auto !important; }

.tl-home {
  --bg: #000; --fg: #fff; --dim: #8b8b8b;
  --faint: rgba(255,255,255,.10); --glass: rgba(255,255,255,.035);
  --ease: cubic-bezier(.16, 1, .3, 1);
  position: relative; overflow: clip; background: var(--bg); color: var(--fg);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; -webkit-font-smoothing: antialiased;
}
.tl-home *, .tl-home *::before, .tl-home *::after { box-sizing: border-box; }
.tl-home a { color: inherit; }
.tl-home :focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.tl-wrap { position: relative; z-index: 1; width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.ic { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ================= NAVBAR ================= */
.tl-nav { position: fixed; top: 16px; left: 0; right: 0; z-index: 100; display: flex; justify-content: center; padding: 0 12px; pointer-events: none; }
.tl-nav-bar {
  pointer-events: auto; position: relative; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  width: min(680px, 100%); height: 56px; padding: 0 .6rem; border-radius: 16px;
  background: rgba(12,12,12,.62); -webkit-backdrop-filter: blur(18px) saturate(1.5); backdrop-filter: blur(18px) saturate(1.5);
  border: 1px solid rgba(255,255,255,.14); box-shadow: 0 10px 40px rgba(0,0,0,.5);
  animation: navOpen 1s var(--ease) 1.1s backwards;
}
@keyframes navOpen { from { width: 56px; opacity: 0; } to { width: min(680px, 100%); opacity: 1; } }
.nav-in { animation: navDrop .7s var(--ease) calc(1.9s + var(--i, 0) * 80ms) backwards; }
@keyframes navDrop { from { opacity: 0; transform: translateY(-24px); } }
.nav-logo { display: flex; align-items: center; justify-self: start; padding: 0 .4rem; }
.nav-logo img { height: 28px; width: auto; display: block; }
.nav-links { display: flex; align-items: center; gap: .25rem; }
.nav-right { display: flex; align-items: center; gap: .5rem; justify-self: end; }
.nav-item { position: relative; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 11px; color: var(--dim); text-decoration: none; transition: color .2s, background .2s; }
.nav-item:hover, .nav-item.on { color: #fff; background: rgba(255,255,255,.08); }
.tip {
  position: absolute; top: calc(100% + 14px); left: 50%; transform: translate(-50%, -6px); padding: .35rem .75rem; border-radius: 8px;
  background: #fff; color: #000; font-size: .78rem; font-weight: 600; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .2s, transform .25s var(--ease);
}
.tip::before { content: ""; position: absolute; top: -.25em; left: 50%; width: .5em; height: .5em; background: #fff; transform: translateX(-50%) rotate(45deg); }
.nav-item:hover .tip { opacity: 1; transform: translate(-50%, 0); }

.dd-wrap { position: relative; }
.nav-btn {
  display: inline-flex; align-items: center; gap: .5rem; height: 40px; padding: 0 .75rem; border-radius: 11px; font: inherit; font-size: .875rem; font-weight: 600;
  color: #fff; background: transparent; border: 1px solid transparent; cursor: pointer; transition: background .2s, border-color .2s;
}
.nav-btn:hover, .dd-wrap.open > .nav-btn { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.12); }
.nav-btn .chev { width: 16px; height: 16px; transition: transform .3s var(--ease); color: var(--dim); }
.dd-wrap.open > .nav-btn .chev { transform: rotate(180deg); }
.btn-signin {
  display: inline-flex; align-items: center; gap: .5rem; height: 40px; padding: 0 1.1rem; border-radius: 11px; background: #fff; color: #000 !important;
  font-size: .875rem; font-weight: 600; text-decoration: none; white-space: nowrap; transition: transform .2s var(--ease), box-shadow .2s;
}
.btn-signin:hover { transform: translateY(-1px); box-shadow: 0 0 28px rgba(255,255,255,.3); }
.avatar { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; overflow: hidden; font-size: .8rem; font-weight: 700; color: #000; background: linear-gradient(135deg, #fff, #8d8d8d); flex: none; }
.avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.nav-name { max-width: 110px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dd {
  position: absolute; right: 0; top: calc(100% + 14px); min-width: 230px; padding: .4rem; border-radius: 14px; background: rgba(12,12,12,.97);
  -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); border: 1px solid rgba(255,255,255,.14); box-shadow: 0 20px 60px rgba(0,0,0,.7);
  opacity: 0; visibility: hidden; transform: translateY(-8px) scale(.97); transform-origin: top right; transition: opacity .25s, transform .3s var(--ease), visibility .25s;
}
.dd-wrap.open > .dd { opacity: 1; visibility: visible; transform: none; }
.dd-head { display: flex; align-items: center; gap: .7rem; padding: .7rem .75rem .8rem; margin-bottom: .3rem; border-bottom: 1px solid var(--faint); }
.dd-head b { display: block; font-size: .92rem; }
.dd-head small { display: block; color: var(--dim); font-size: .78rem; }
.dd-account { min-width: 274px; }
.dd-id { min-width: 0; flex: 1; }
.dd-id b, .dd-id small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dd-plan { flex: none; padding: .18rem .55rem; border-radius: 999px; border: 1px solid rgba(255,255,255,.18); color: #d4d4d4; font-size: .68rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.dd-plan.pro { color: #fff; border-color: rgba(255,255,255,.5); background: rgba(255,255,255,.1); }
.dd-plan.lifetime { color: #000; border-color: #fff; background: #fff; }
.dd-plan-line { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: .15rem .75rem .55rem; color: var(--dim); font-size: .76rem; }
.dd-plan-line a { display: inline; width: auto; padding: 0; color: #fff; font-size: .76rem; text-decoration: underline; text-underline-offset: 3px; }
.dd .dd-plan-line a { width: auto; padding: 0; }
.dd-plan-line a:hover { background: transparent; }
.dd a, .dd button.dd-i {
  display: flex; align-items: center; gap: .7rem; width: 100%; padding: .6rem .75rem; border: 0; border-radius: 9px; background: transparent; color: #d4d4d4; font: inherit; font-size: .9rem;
  text-align: left; text-decoration: none; cursor: pointer; transition: background .15s, color .15s;
}
.dd a:hover, .dd button.dd-i:hover { background: rgba(255,255,255,.08); color: #fff; }
.dd .ic { width: 17px; height: 17px; }
.dd .ck { margin-left: auto; opacity: 0; } .dd .cur .ck { opacity: 1; }
.dd hr { border: 0; height: 1px; background: var(--faint); margin: .3rem 0; }

/* ================= ACHTERGROND ================= */
.tl-bg { position: sticky; top: 0; height: 100svh; margin-bottom: -100svh; z-index: 0; pointer-events: none; overflow: hidden; animation: fadeIn 1.2s ease both; }
.tl-bg::before { content: ""; position: absolute; inset: 0; }
/* grid: veel zachter */
.tl-bg::before {
  background-image: linear-gradient(to right, rgba(255,255,255,.045) 1px, transparent 1px), linear-gradient(to bottom, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 85% 75% at 50% 35%, #000 20%, transparent 100%); mask-image: radial-gradient(ellipse 85% 75% at 50% 35%, #000 20%, transparent 100%);
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* zachte lichtbundels in de bovenhoeken, langzaam heen en weer */
.rays {
  position: absolute; top: 0; width: 62%; height: 100%; overflow: hidden; opacity: 0; animation: fadeIn 1.8s ease .1s forwards;
  -webkit-mask-image: linear-gradient(#000 30%, transparent 92%); mask-image: linear-gradient(#000 30%, transparent 92%);
}
.rays-l { left: 0; } .rays-r { right: 0; transform: scaleX(-1); }
.rays::before {
  content: ""; position: absolute; top: -28%; left: -28%; width: 80%; height: 80%;
  background: radial-gradient(closest-side, rgba(255,255,255,.2), transparent); filter: blur(30px);
  animation: breathe 9s ease-in-out infinite alternate;
}
.rays-r::before { animation-delay: -4s; }
.beam {
  position: absolute; top: -20%; left: -6%; height: 170%; width: var(--w); opacity: var(--o);
  transform-origin: 50% 0; background: linear-gradient(180deg, rgba(255,255,255,.9), rgba(255,255,255,0) 75%); filter: blur(38px);
  animation: sway var(--t) ease-in-out infinite alternate; will-change: transform;
}
.rays-r .beam { animation-delay: calc(var(--t) / -2); }
@keyframes sway {
  from { transform: translateX(-3%) rotate(calc(var(--r) - 7deg)); }
  to   { transform: translateX(6%)  rotate(calc(var(--r) + 7deg)); }
}
@keyframes breathe { from { opacity: .55; transform: scale(1); } to { opacity: 1; transform: scale(1.12); } }

.tl-progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 120; transform-origin: 0 50%; transform: scaleX(0); background: linear-gradient(90deg, transparent, #fff); }

/* ================= SECTIES ================= */
.tl-section { position: relative; z-index: 1; min-height: 100svh; display: flex; flex-direction: column; justify-content: center; padding: 6.5rem 0 4rem; }
.js .reveal { opacity: 0; transform: translateY(32px); filter: blur(10px); transition: opacity 1s var(--ease) var(--d, 0ms), transform 1s var(--ease) var(--d, 0ms), filter 1s var(--ease) var(--d, 0ms), border-color .3s; }
.js .reveal.in { opacity: 1; transform: none; filter: none; }
.g-text { background: linear-gradient(180deg, #fff 30%, rgba(255,255,255,.35)); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }
h2.sec { margin: 0; font-size: clamp(2.1rem, 4.8vw, 3.9rem); letter-spacing: -.045em; line-height: 1; font-weight: 700; }

/* ================= HERO ================= */
.tl-hero { text-align: center; }
.tl-hero h1 { margin: 0 0 1.6rem; font-size: clamp(2.5rem, 7vw, 6rem); line-height: 1; letter-spacing: -.055em; font-weight: 700; }
.h-line { display: block; overflow: hidden; padding: .04em 0 .14em; margin-bottom: -.1em; }
.h-line > span { display: block; transform: translateY(115%); animation: lineUp 1.1s var(--ease) var(--hd, 3.3s) forwards; }
.h-line.dim > span { color: var(--dim); }
@keyframes lineUp { to { transform: none; } }
.hero-fade { opacity: 0; transform: translateY(16px); animation: fadeUp 1s var(--ease) var(--hd, 3.8s) forwards; }
@keyframes fadeUp { to { opacity: 1; transform: none; } }
.tl-hero p { margin: 0 auto 2.5rem; max-width: 46ch; color: var(--dim); font-size: clamp(1rem, 1.5vw, 1.2rem); line-height: 1.6; }
.tl-cta { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; align-items: center; }
.tl-cue { position: absolute; bottom: 2rem; left: 50%; width: 1px; height: 60px; background: var(--faint); overflow: hidden; transform: translateX(-50%); opacity: 0; animation: fadeIn 1s ease 4.9s forwards; }
.tl-cue::after { content: ""; position: absolute; left: 0; top: -40%; width: 1px; height: 40%; background: #fff; animation: cue 2s var(--ease) infinite; }
@keyframes cue { to { top: 110%; } }

/* star-button: alleen transform/opacity animeren = geen lag */
.star-button {
  position: relative; isolation: isolate; display: inline-flex; align-items: center; gap: .65rem; padding: 15px 34px; font-size: 1rem; font-weight: 600; text-decoration: none;
  color: #000 !important; background-color: #fff; border: 2px solid #fff; border-radius: 999px; transition: background-color .35s ease, color .35s ease, box-shadow .35s ease;
}
.star-button:hover { background-color: transparent; color: #fff !important; box-shadow: 0 0 30px rgba(255,255,255,.26); }
.star-button .ic { width: 18px; height: 18px; transition: transform .4s var(--ease); }
.star-button:hover .ic { transform: translateX(4px); }
.star-button [class^="star-"] {
  position: absolute; top: 50%; left: 50%; z-index: -1; height: auto; pointer-events: none; opacity: 0; color: #fff;
  transform: translate(-50%, -50%) scale(.2); filter: drop-shadow(0 0 5px rgba(255,255,255,.75));
  transition: transform .8s var(--ease), opacity .5s ease; will-change: transform, opacity;
}
.star-button [class^="star-"] svg { display: block; width: 100%; height: auto; fill: currentColor; }
.star-button:hover [class^="star-"] { opacity: .95; transform: translate(calc(-50% + var(--x)), calc(-50% + var(--y))) scale(1); }
.star-1 { width: 20px; --x: -112px; --y: -36px; } .star-2 { width: 12px; --x: -58px; --y: -34px; } .star-3 { width: 7px; --x: -88px; --y: 28px; }
.star-4 { width: 11px; --x: 100px; --y: -30px; } .star-5 { width: 16px; --x: 134px; --y: 12px; } .star-6 { width: 7px; --x: 40px; --y: -38px; }
.tl-ghost { display: inline-flex; align-items: center; padding: 15px 28px; font-weight: 600; text-decoration: none; border: 1px solid rgba(255,255,255,.22); border-radius: 999px; background: var(--glass); transition: border-color .3s, background .3s; }
.tl-ghost:hover { border-color: #fff; background: rgba(255,255,255,.1); }

/* ================= DASHBOARD (3D) ================= */
.tl-dash { text-align: center; }
.tl-dash h2 { margin: 0 auto 1rem; max-width: 18ch; }
.tl-dash p { margin: 0 auto 2.25rem; color: var(--dim); max-width: 52ch; line-height: 1.6; }
.dash-stage { perspective: 1600px; display: flex; justify-content: center; }
.dash-frame {
  --rx: 30deg; --ry: 0deg; position: relative; width: min(1100px, 100%, max(520px, calc((100svh - 19rem) * 1.6))); overflow: hidden; border-radius: 18px;
  background: #080808; border: 1px solid rgba(255,255,255,.16); box-shadow: 0 60px 120px -30px rgba(255,255,255,.12), 0 40px 80px rgba(0,0,0,.8);
  transform: rotateX(var(--rx)) rotateY(var(--ry)); will-change: transform;
}
.dash-bar { display: flex; align-items: center; gap: .4rem; padding: .7rem 1rem; border-bottom: 1px solid var(--faint); background: rgba(255,255,255,.03); }
.dash-bar i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.2); }
.dash-bar em { margin: 0 auto; padding: .15rem 1.5rem; border-radius: 999px; background: rgba(255,255,255,.06); color: var(--dim); font-size: .75rem; font-style: normal; }
.dash-body { position: relative; aspect-ratio: 16 / 10; }
.dash-body > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.dash-glare { position: absolute; inset: 0; pointer-events: none; opacity: var(--go, 0); transition: opacity .3s; background: radial-gradient(520px circle at var(--gx, 50%) var(--gy, 0%), rgba(255,255,255,.14), transparent 60%); }
/* fallback als /assets/dashboard.png nog niet bestaat */
.dash-mock { display: none; position: absolute; inset: 0; grid-template-columns: 18% 1fr; text-align: left; }
.dash-body.fallback .dash-mock { display: grid; }
.dm-side { padding: 1.2rem; display: grid; align-content: start; gap: .7rem; border-right: 1px solid var(--faint); }
.dm-side i { display: block; height: 12px; border-radius: 6px; background: rgba(255,255,255,.12); }
.dm-side i:first-child { width: 60%; background: rgba(255,255,255,.42); }
.dm-main { padding: 1.4rem; display: grid; grid-template-rows: auto 1fr; gap: 1rem; }
.dm-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.dm-cards div { height: 90px; border-radius: 12px; border: 1px solid var(--faint); background: linear-gradient(135deg, rgba(255,255,255,.1), rgba(255,255,255,.02)); }
.dm-chart { display: flex; align-items: flex-end; gap: 2.2%; padding: 1.2rem; border-radius: 12px; border: 1px solid var(--faint); }
.dm-chart span { flex: 1; height: var(--h); border-radius: 6px 6px 0 0; background: linear-gradient(180deg, #fff, rgba(255,255,255,.06)); }

/* ================= CARD FX (tools + pricing) ================= */
.fx { --cx: 50%; --cy: 0%; position: relative; overflow: hidden; background: var(--glass); border: 1px solid var(--faint); border-radius: 18px; }
.fx::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none; opacity: 0; transition: opacity .4s;
  background: conic-gradient(from var(--a), transparent 0 60%, #fff 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  animation: spin 3.5s linear infinite;
}
.fx::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .4s; background: radial-gradient(260px circle at var(--cx) var(--cy), rgba(255,255,255,.09), transparent 70%); }
.fx:hover::before, .fx:hover::after { opacity: 1; }
@keyframes spin { to { --a: 360deg; } }

/* ================= TOOLS ================= */
.tl-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; flex-wrap: wrap; margin-bottom: 2.25rem; }
.tl-head a { color: var(--dim); text-decoration: none; transition: color .2s; } .tl-head a:hover { color: #fff; }
.tl-tools-layout { display: grid; grid-template-columns: 280px 1fr; gap: 1.5rem; align-items: start; }
.choice-box { position: sticky; top: 6rem; margin: 0; border: 1px solid var(--faint); padding: 1.1rem .75rem; background: var(--glass); backdrop-filter: blur(14px); border-radius: 16px; min-width: 0; }
.choice-box legend { float: left; width: 100%; padding: 0 .5rem; margin-bottom: .6rem; font-size: 1rem; font-weight: 600; color: var(--dim); }
.choice-list { clear: both; display: flex; flex-direction: column; gap: .4rem; max-height: min(44svh, 380px); overflow-y: auto; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.25) transparent; }
.choice { position: relative; flex: none; display: flex; align-items: center; gap: .75rem; height: 3.1rem; padding: 0 .85rem; font-weight: 500; border-radius: 10px; cursor: pointer; user-select: none; color: var(--dim); transition: all .25s; }
.choice:hover { background: rgba(255,255,255,.06); color: #fff; }
.choice .ico { width: 1.15rem; height: 1.15rem; flex: none; } .choice .ico svg { width: 100%; height: 100%; display: block; }
.choice input { position: absolute; right: .85rem; width: 1rem; height: 1rem; accent-color: #fff; }
.choice:has(:checked) { color: #fff; background: rgba(255,255,255,.09); box-shadow: inset 0 0 0 1px rgba(255,255,255,.45); }
.tool-showcase-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1rem; min-height: 260px; }
.main-toolcard { display: flex; flex-direction: column; gap: 1rem; padding: 1.15rem 1.15rem 1.4rem; }
.toolcard-top, .toolcard-link { position: relative; z-index: 1; }
.toolcard-top { display: flex; justify-content: space-between; align-items: center; }
.toolcard-badge { font-size: .78rem; color: var(--dim); border: 1px solid var(--faint); padding: .2rem .65rem; border-radius: 999px; }
.toolcard-actions { display: flex; align-items: center; }
.fullscreen-btn { display: grid; place-items: center; width: 34px; height: 34px; color: var(--dim); border-radius: 8px; transition: all .2s; }
.fullscreen-btn:hover { color: #fff; background: rgba(255,255,255,.1); } .fullscreen-btn svg { width: 17px; height: 17px; }
.toolcard-link { display: flex; gap: .9rem; align-items: flex-start; text-decoration: none; color: inherit; }
.toolcard-icon-box { flex: none; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 10px; font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; font-weight: 600; font-size: .88rem; letter-spacing: -.02em; color: #f1f5f9; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.12); }
.toolcard-title { margin: 0 0 .3rem; font-size: 1.05rem; font-weight: 600; letter-spacing: -.02em; }
.toolcard-desc { margin: 0; color: var(--dim); font-size: .9rem; line-height: 1.5; }
.tl-empty { grid-column: 1 / -1; padding: 4rem 1rem; text-align: center; color: var(--dim); } .tl-empty a { color: #fff; }

.heart-container { --heart-color: #f43f5e; position: relative; width: 34px; height: 34px; flex: none; }
.heart-container .checkbox { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; z-index: 20; cursor: pointer; }
.heart-container .svg-container { width: 100%; height: 100%; display: flex; justify-content: center; align-items: center; }
.heart-container .svg-outline, .heart-container .svg-filled { position: absolute; width: 18px; height: 18px; }
.heart-container .svg-outline { fill: #8a8a8a; opacity: .7; transition: opacity .2s, fill .2s; }
.heart-container:hover .svg-outline { opacity: 1; fill: #fff; }
.heart-container .svg-filled { fill: var(--heart-color); animation: keyframes-svg-filled 1s; display: none; }
.heart-container .svg-celebrate { position: absolute; width: 100%; height: 100%; animation: keyframes-svg-celebrate .5s forwards; display: none; stroke: var(--heart-color); fill: var(--heart-color); stroke-width: 2px; }
.heart-container .checkbox:checked ~ .svg-container .svg-filled, .heart-container .checkbox:checked ~ .svg-container .svg-celebrate { display: block; }
@keyframes keyframes-svg-filled { 0% { transform: scale(0); } 25% { transform: scale(1.2); } 50% { transform: scale(1); filter: brightness(1.5); } }
@keyframes keyframes-svg-celebrate { 0% { transform: scale(0); } 50% { opacity: 1; filter: brightness(1.5); } 100% { transform: scale(1.4); opacity: 0; } }

.loader { display: flex; align-items: center; justify-content: center; grid-column: 1 / -1; padding: 5rem 0; }
.loader .bar { display: inline-block; width: 3px; height: 20px; background: rgba(255,255,255,.4); border-radius: 10px; animation: scale-up4 1s linear infinite; }
.loader .bar:nth-child(2) { height: 35px; margin: 0 5px; animation-delay: .25s; } .loader .bar:nth-child(3) { animation-delay: .5s; }
@keyframes scale-up4 { 20% { background: #fff; transform: scaleY(1.5); } 40% { transform: scaleY(1); } }

/* ---- Popular tools: clean (haarlijnen, geen boxen) ---- */
.choice-box { border: 0; background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; padding: 0; border-radius: 0; }
.choice-box legend { padding: 0; margin-bottom: 1rem; font-size: .85rem; font-weight: 600; color: #fff; }
.choice-list { gap: 0; border-top: 1px solid var(--faint); }
.choice { height: 2.75rem; padding: 0 .25rem; border-radius: 0; border-bottom: 1px solid var(--faint); font-size: .92rem; }
.choice:hover { background: transparent; color: #fff; }
.choice input { opacity: 0; pointer-events: none; }
.choice:has(:checked) { background: transparent; box-shadow: none; color: #fff; }
.choice:has(:checked)::after { content: ""; position: absolute; right: .25rem; top: 50%; width: 6px; height: 6px; margin-top: -3px; border-radius: 50%; background: #fff; }
.tool-showcase-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1.5rem 2.5rem; }
.main-toolcard.fx { background: transparent; border: 0; border-top: 1px solid var(--faint); border-radius: 0; padding: 1.25rem .25rem 1.5rem; gap: 1rem; }
.main-toolcard.fx::before, .main-toolcard.fx::after { display: none; }
.main-toolcard.fx:hover { border-top-color: #fff; }
.toolcard-badge { border: 0; padding: 0; font-size: .75rem; }
.fullscreen-btn { display: none; }
.toolcard-icon-box { width: 38px; height: 38px; border-radius: 10px; background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.18); font-size: .8rem; }
.toolcard-title { font-size: 1rem; }
.toolcard-desc { font-size: .88rem; }

/* ================= PRICING (clean) ================= */
.tl-pricing .tl-head { display: block; text-align: center; }
.tl-pricing .tl-head p { margin: 1rem auto 0; color: var(--dim); max-width: 46ch; line-height: 1.6; }
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; align-items: stretch; max-width: 1040px; margin: 0 auto; }
.pcard { display: flex; flex-direction: column; gap: 1.1rem; padding: 2rem 1.75rem; }
.pcard > * { position: relative; z-index: 1; }
.pcard h3 { margin: 0; font-size: 1.05rem; color: var(--dim); font-weight: 600; }
.pprice { display: flex; align-items: baseline; gap: .45rem; }
.pprice b { font-size: clamp(3rem, 5vw, 4.25rem); line-height: 1; letter-spacing: -.05em; }
.pprice small { color: var(--dim); font-size: .95rem; }
.pdesc { margin: 0; color: var(--dim); line-height: 1.5; font-size: .95rem; min-height: 0; }
.plist { list-style: none; margin: 0; padding: .25rem 0 0; border-top: 0; display: grid; gap: .65rem; font-size: .92rem; color: #cfcfcf; flex: 1; align-content: start; }
.plist li { display: flex; gap: .65rem; align-items: flex-start; } .plist .ic { width: 18px; height: 18px; margin-top: 2px; }
.pcard.feat { background: rgba(255,255,255,.06); box-shadow: none; border-color: rgba(255,255,255,.28); }
.pbadge { position: absolute !important; top: 1.25rem; right: 1.25rem; padding: .25rem .7rem; border-radius: 999px; background: #fff; color: #000; font-size: .72rem; font-weight: 700; }
.pcard.fx::before { display: none; } /* geen draaiende rand in pricing */
.pcard .btn-line, .pcard .btn-solid { margin-top: auto; }
.pcard .pdesc { flex: 1; }
/* kaarten: geen box meer, alleen haarlijn bovenaan zoals de tabel */
.price-grid { gap: 2.5rem; }
.pcard.fx, .pcard.feat { background: transparent; border: 0; border-top: 1px solid var(--faint); border-radius: 0; box-shadow: none; padding: 1.5rem 0 0; gap: 1rem; }
.pcard.fx::after { display: none; }
.pcard.feat { border-top-color: #fff; }
.pcard h3 { font-size: .85rem; color: #fff; font-weight: 600; }
.pprice b { font-size: clamp(2.4rem, 4vw, 3.25rem); }
.pdesc { font-size: .92rem; }
.pbadge { top: 1.4rem; right: 0; padding: .15rem .6rem; font-size: .68rem; }
.pcard .btn-line, .pcard .btn-solid { padding: .75rem 1rem; border-radius: 10px; font-size: .92rem; }
.cmp-title { max-width: 1040px; margin: 4rem auto 1rem; font-size: .95rem; font-weight: 600; color: var(--dim); }
.cmp-wrap { max-width: 1040px; margin: 0 auto; overflow-x: auto; }
table.cmp { width: 100%; min-width: 560px; border-collapse: collapse; font-size: .92rem; }
.cmp th, .cmp td { padding: .95rem 0; text-align: left; border-bottom: 1px solid var(--faint); font-weight: 500; }
.cmp thead th { color: #fff; font-size: .85rem; font-weight: 600; }
.cmp td { color: #d4d4d4; } .cmp td:first-child { color: var(--dim); width: 34%; }
.cmp tr:last-child td { border-bottom: 0; }
.cmp .ic { width: 16px; height: 16px; }

/* ================= FAQ ================= */
.tl-faq .tl-head { display: block; text-align: center; margin-bottom: 2.5rem; }
.tl-faq .tl-head p { margin: 1rem auto 0; color: var(--dim); max-width: 54ch; line-height: 1.6; }
.faq-list { max-width: 860px; margin: 0 auto; border-top: 1px solid var(--faint); }
.faq-item { border-bottom: 1px solid var(--faint); }
.faq-item summary { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding: 1.35rem .2rem; cursor: pointer; list-style: none; font-weight: 600; letter-spacing: -.01em; transition: color .2s; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: #fff; }
.faq-plus { position: relative; flex: none; width: 18px; height: 18px; }
.faq-plus::before, .faq-plus::after { content: ""; position: absolute; top: 50%; left: 50%; width: 16px; height: 1.5px; background: currentColor; transform: translate(-50%, -50%); transition: transform .25s var(--ease), opacity .25s; }
.faq-plus::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq-item[open] .faq-plus::after { transform: translate(-50%, -50%) rotate(90deg) scaleX(0); opacity: 0; }
.faq-item p { margin: 0; padding: 0 2.5rem 1.4rem .2rem; color: var(--dim); line-height: 1.7; max-width: 78ch; }
.faq-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: .7rem; margin-top: 2.5rem; }
.btn-solid, .btn-line { display: inline-flex; justify-content: center; align-items: center; padding: .85rem 1.2rem; border-radius: 12px; font-weight: 600; text-decoration: none; transition: transform .25s var(--ease), box-shadow .25s, background .25s, border-color .25s; }
.btn-solid { background: #fff; color: #000 !important; } .btn-solid:hover { transform: translateY(-2px); box-shadow: 0 0 34px rgba(255,255,255,.3); }
.btn-line { border: 1px solid rgba(255,255,255,.25); } .btn-line:hover { border-color: #fff; background: rgba(255,255,255,.08); }

/* ================= BROWSER ================= */
.tl-browser, .tl-account { text-align: center; }
.tl-browser-logo { position: relative; display: inline-block; margin-bottom: 2.25rem; }
.tl-browser-logo::before { content: ""; position: absolute; inset: -60%; background: radial-gradient(closest-side, rgba(255,255,255,.22), transparent); filter: blur(30px); }
.tl-browser-logo img { position: relative; height: 104px; width: auto; display: block; }
.tl-browser h2, .tl-account h2 { margin: 0 auto 1.25rem; max-width: 14ch; font-size: clamp(2.4rem, 6.5vw, 5.5rem); line-height: .98; letter-spacing: -.05em; font-weight: 700; }
.tl-browser p, .tl-account p { margin: 0 auto 2.5rem; max-width: 46ch; color: var(--dim); line-height: 1.6; font-size: 1.1rem; }
/* standaard = outline, hover = wit gevuld met zwarte tekst + logo */
.playstore-button {
  display: inline-flex; align-items: center; justify-content: center; border: 2px solid #fff; border-radius: 9999px; background: transparent; color: #fff !important; padding: .7rem 1.6rem; text-decoration: none;
  box-shadow: 0 0 30px rgba(255,255,255,.1); transition: background .25s ease, color .25s ease, box-shadow .3s ease, transform .2s;
}
.playstore-button:hover { background: #fff; color: #000 !important; box-shadow: 0 0 40px rgba(255,255,255,.2); }
.playstore-button:active { transform: scale(.98); }
.playstore-button img { height: 1.6rem; width: auto; display: block; transition: filter .25s; }
.playstore-button:hover img { filter: brightness(0); }
.playstore-button .texts { margin-left: 1rem; display: flex; flex-direction: column; align-items: flex-start; line-height: 1; }
.playstore-button .text-1 { margin-bottom: .25rem; font-size: .75rem; line-height: 1rem; } .playstore-button .text-2 { font-weight: 600; }
.playstore-button.sm { padding: .45rem 1.1rem; box-shadow: 0 0 24px rgba(255,255,255,.14); } .playstore-button.sm img { height: 1.3rem; }

/* ================= ACCOUNT ================= */
.google-btn { max-width: 320px; display: inline-flex; align-items: center; gap: .75rem; padding: .7rem 1.5rem; font-size: .875rem; line-height: 1.25rem; font-weight: 700; text-transform: uppercase; text-decoration: none; color: rgb(65,63,63) !important; background: #fff; border: 1px solid rgba(0,0,0,.25); border-radius: .6rem; transition: all .6s ease; }
.google-btn svg { height: 24px; width: 24px; } .google-btn:hover { transform: scale(1.03); box-shadow: 0 0 40px rgba(255,255,255,.2); }
.tl-social { display: flex; gap: .75rem; justify-content: center; align-items: center; margin-top: 3.5rem; }
.Btn { position: relative; isolation: isolate; width: 45px; height: 45px; display: flex; align-items: center; justify-content: center; background: transparent; border-radius: 7px; transition: all .3s; text-decoration: none; }
.Btn .svgContainer { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; border-radius: 10px; transition: all .3s; border: 1px solid rgba(156,156,156,.47); }
.Btn .BG { position: absolute; inset: 0; background: #1b1b1b; z-index: -1; border-radius: 10px; pointer-events: none; transition: all .3s; }
.Btn:hover .BG { transform: rotate(35deg); transform-origin: bottom; background: #fff; }
.Btn:hover .svgContainer { background-color: rgba(156,156,156,.47); backdrop-filter: blur(4px); }
.Social-Btn { position: relative; width: 4.5em; height: 2.5em; border-radius: 7px; transition: all .3s; text-decoration: none; display: block; }
.Social-Btn .svgContainer { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; border-radius: 10px; transition: all .3s; border: 1px solid rgba(156,156,156,.47); background: #151515; }
.Social-Btn .logo-ico { height: 1.5rem; width: auto; display: block; }
.Social-Btn .BG { position: absolute; inset: 0; border-radius: 10px; pointer-events: none; transition: all .4s; display: flex; justify-content: center; align-items: center; font-weight: 600; color: transparent; filter: blur(4px); z-index: 4; }
.Social-Btn .BG::before { content: ""; position: absolute; height: .6em; width: .6em; bottom: -.2em; left: 50%; transform: translate(-50%) rotate(45deg); background: #fff; opacity: 0; z-index: -10; transition: all .4s; }
.Social-Btn:hover .BG::before { opacity: 1; }
.Social-Btn:hover .BG { transform: translateY(-130%); transform-origin: bottom; background: #fff; color: #000; filter: blur(0); }
.Social-Btn:hover .svgContainer { z-index: 20; background: rgba(156,156,156,.5); }

/* ================= FOOTER ================= */
.tl-footer { position: relative; z-index: 1; border-top: 1px solid var(--faint); background: linear-gradient(180deg, transparent, rgba(255,255,255,.035)); padding: 5rem 0 2rem; }
.ft-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 3rem; }
.ft-brand img { height: 34px; width: auto; display: block; margin-bottom: 1.1rem; }
.ft-brand p { margin: 0; max-width: 38ch; color: var(--dim); line-height: 1.65; font-size: .95rem; }
.ft-col h4 { margin: 0 0 1rem; font-size: .85rem; font-weight: 600; color: var(--dim); }
.ft-col p, .ft-col a { display: block; margin: 0; color: #d4d4d4; font-size: .95rem; line-height: 1.75; text-decoration: none; } .ft-col a:hover { color: #fff; }
.pay { display: flex; flex-wrap: wrap; gap: .5rem; }
.pay span { padding: .35rem .75rem; border: 1px solid var(--faint); border-radius: 8px; font-size: .85rem; color: #d4d4d4; background: var(--glass); }
.ft-bottom { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; margin-top: 4rem; padding-top: 1.75rem; border-top: 1px solid var(--faint); }
.ft-bottom small { color: var(--dim); } .ft-bottom small a { text-decoration: none; margin-left: 1.25rem; } .ft-bottom small a:hover { color: #fff; }
.ft-actions { display: flex; align-items: center; gap: .75rem; margin-left: auto; }

/* ================= RESPONSIVE ================= */
@media (max-width: 900px) {
  .tl-tools-layout, .price-grid { grid-template-columns: 1fr; } .choice-box { position: static; }
  .ft-grid { grid-template-columns: 1fr 1fr; } .ft-brand { grid-column: 1 / -1; }
}
@media (max-width: 560px) { .nav-name, .lang-code { display: none; } .ft-grid { grid-template-columns: 1fr; } .ft-actions { margin-left: 0; } }
@media (hover: none), (pointer: coarse) {
  html:has(.tl-home) { scroll-snap-type: y mandatory; }
  .tl-section, .tl-footer { scroll-snap-align: start; } .tl-section { scroll-snap-stop: always; }
  .tip { display: none; }
}
/* ================= MOBIEL / TELEFOON ================= */
@media (hover: none), (pointer: coarse) {
  html:has(.tl-home) { scroll-snap-type: none; }       /* vrij scrollen op touch (hoge secties blijven bereikbaar) */
  .tl-section { scroll-snap-stop: normal; }
  .tl-home { -webkit-tap-highlight-color: transparent; -webkit-text-size-adjust: 100%; }
}
@media (max-width: 900px) {
  /* hero-kop: gradient-tekst + animatie rendert op telefoons soms onzichtbaar -> effen wit */
  .h-line.g-text { background: none; color: #fff; -webkit-text-fill-color: #fff; }
  .price-grid { gap: 2rem; }
  /* categorieÃ«n als horizontale chips */
  .choice-list { flex-direction: row; overflow-x: auto; overflow-y: hidden; max-height: none; border-top: 0; gap: .5rem; padding-bottom: .35rem; }
  .choice { height: 2.5rem; padding: 0 1rem; border: 1px solid var(--faint); border-radius: 999px; white-space: nowrap; }
  .choice:has(:checked) { background: #fff; color: #000; border-color: #fff; }
  .choice:has(:checked)::after { display: none; }
  .choice input { display: none; }
  /* lichter voor mobiele GPU's */
  .beam { filter: blur(26px); } .beam:nth-child(3) { display: none; }
  .js .reveal { transform: translateY(20px); filter: blur(4px); }
}
@media (max-width: 560px) {
  .tl-wrap { padding: 0 1.1rem; }
  .tl-section { padding: 5.5rem 0 3rem; }
  /* navbar compact */
  .tl-nav { top: 10px; padding: 0 8px; }
  .tl-nav-bar { height: 52px; padding: 0 .35rem; grid-template-columns: auto 1fr auto; }
  .nav-logo { padding: 0 .3rem; } .nav-logo img { height: 22px; max-width: 72px; object-fit: contain; }
  .nav-links { justify-content: center; gap: 0; }
  .nav-item { width: 36px; height: 38px; }
  .nav-right { gap: .25rem; }
  .nav-btn { height: 38px; padding: 0 .5rem; }
  .btn-signin { height: 38px; padding: 0 .7rem; } .btn-signin span { display: none; }
  /* hero */
  .tl-hero h1 { font-size: clamp(2.1rem, 10vw, 2.8rem); }
  .tl-cta { flex-direction: column; width: 100%; }
  .tl-cta > a { width: 100%; max-width: 320px; justify-content: center; }
  .dash-bar em { padding: .15rem .8rem; font-size: .68rem; }
  /* tools + pricing */
  .tool-showcase-grid { grid-template-columns: 1fr; gap: 1rem; }
  .cmp-title { margin-top: 2.5rem; }
  table.cmp { min-width: 0; font-size: .8rem; }
  .cmp th, .cmp td { padding: .8rem .25rem .8rem 0; }
  .cmp td:first-child { width: 32%; }
  /* browser + footer */
  .tl-browser-logo img { height: 80px; }
  .tl-footer { padding: 3.5rem 0 1.5rem; }
  .ft-bottom { margin-top: 2.5rem; } .ft-actions { flex-wrap: wrap; }
}
@media (max-width: 420px) {
  /* logo blijft zichtbaar: alles in de navbar iets compacter */
  .nav-logo { padding: 0 .2rem; } .nav-logo img { height: 20px; max-width: 60px; }
  .nav-item { width: 32px; }
  .nav-btn { padding: 0 .4rem; }
  .btn-signin { padding: 0 .6rem; }
}
@media (prefers-reduced-motion: reduce) {
  html:has(.tl-home) { scroll-snap-type: none; }
  .js .reveal { opacity: 1; transform: none; filter: none; transition: none; }
  .h-line > span, .hero-fade, .tl-cue { transform: none; opacity: 1; animation: none; }
  .nav-in, .tl-nav-bar, .rays, .tl-bg, .beam, .rays::before { animation: none; } .rays { opacity: 1; }
  .tl-home *, .tl-home *::before, .tl-home *::after { animation-iteration-count: 1 !important; }
}
/* ================= PAGINA-EXTRA'S (zelfde design language als home) ================= */
html, body { margin: 0; background: #000; }
body { color: #fff; font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; -webkit-font-smoothing: antialiased; }
.tl-home { min-height: 100svh; }

/* Pagina-kop */
.page-top { padding-top: 8.5rem; }
.page-top .sec { margin-bottom: .75rem; }
.page-lead { margin: 0; max-width: 60ch; color: var(--dim); line-height: 1.65; font-size: 1.02rem; }

/* Auth */
.auth-shell { display: flex; justify-content: center; }
.auth-card { width: min(440px, 100%); padding: 2rem; border: 1px solid var(--faint); border-radius: 18px; background: var(--glass); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.auth-card h1 { margin: 0 0 .4rem; font-size: 1.75rem; letter-spacing: -.03em; }
.auth-card .sub { margin: 0 0 1.5rem; color: var(--dim); font-size: .95rem; }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: .35rem; padding: .3rem; margin-bottom: 1.35rem; border: 1px solid var(--faint); border-radius: 12px; background: rgba(255,255,255,.03); }
.auth-tab { padding: .55rem .5rem; border: 0; border-radius: 9px; background: transparent; color: var(--dim); font: inherit; font-size: .9rem; font-weight: 600; cursor: pointer; transition: background .2s, color .2s; }
.auth-tab.active { background: #fff; color: #000; }
.field { margin-bottom: .95rem; }
.field label { display: block; margin-bottom: .4rem; font-size: .86rem; color: #cfcfcf; }
.input { width: 100%; padding: .72rem .9rem; border-radius: 10px; border: 1px solid var(--faint); background: rgba(255,255,255,.03); color: #fff; font: inherit; font-size: .95rem; transition: border-color .2s, background .2s; }
.input:focus { outline: none; border-color: rgba(255,255,255,.5); background: rgba(255,255,255,.06); }
.input::placeholder { color: #6b6b6b; }
.auth-divider { display: flex; align-items: center; gap: .8rem; margin: 1.2rem 0; color: #6f6f6f; font-size: .78rem; letter-spacing: .06em; }
.auth-divider::before, .auth-divider::after { content: ""; flex: 1; height: 1px; background: var(--faint); }
.oauth-row { display: grid; gap: .6rem; margin-bottom: .2rem; }
.oauth-btn { display: flex; align-items: center; justify-content: center; gap: .6rem; width: 100%; padding: .7rem 1rem; border: 1px solid var(--faint); border-radius: 10px; background: transparent; color: #fff; text-decoration: none; font-size: .92rem; font-weight: 500; transition: background .2s, border-color .2s; }
.oauth-btn:hover { background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.25); }
.oauth-btn svg { width: 18px; height: 18px; flex: none; }
.alert { display: none; padding: .75rem .9rem; border-radius: 10px; margin-bottom: 1rem; font-size: .88rem; line-height: 1.45; }
.alert.err { display: block; background: rgba(239,68,68,.12); border: 1px solid rgba(239,68,68,.3); color: #fca5a5; }
.alert.ok { display: block; background: rgba(34,197,94,.12); border: 1px solid rgba(34,197,94,.3); color: #86efac; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: not-allowed; }

/* Tools toolbar */
.tools-toolbar { display: flex; flex-wrap: wrap; gap: .7rem; align-items: center; margin-bottom: 1.5rem; }
.search-box { position: relative; flex: 1; min-width: 220px; }
.search-box svg { position: absolute; left: .85rem; top: 50%; transform: translateY(-50%); width: 17px; height: 17px; color: #7a7a7a; }
.search-box .input { padding-left: 2.4rem; }
.chip-row { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2rem; }
.chip { padding: .45rem .95rem; border-radius: 999px; border: 1px solid var(--faint); background: transparent; color: var(--dim); font: inherit; font-size: .85rem; font-weight: 500; cursor: pointer; transition: all .2s; }
.chip:hover { color: #fff; border-color: rgba(255,255,255,.3); }
.chip.active { background: #fff; color: #000; border-color: #fff; }
.tools-count { margin-left: auto; color: #6f6f6f; font-size: .85rem; }
.tool-showcase-grid .main-toolcard { background: transparent; border: 0; border-top: 1px solid var(--faint); border-radius: 0; padding: 1.25rem .25rem 1.5rem; transition: border-color .25s; }
.tool-showcase-grid .main-toolcard:hover { border-top-color: #fff; }
.tool-showcase-grid .toolcard-icon-box { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.18); }
.empty-note { grid-column: 1/-1; padding: 3rem 0; text-align: center; color: var(--dim); }

/* Dashboard */
.dash-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; margin-bottom: 2.25rem; }
.dash-user { display: flex; align-items: center; gap: 1rem; }
.dash-avatar { width: 62px; height: 62px; border-radius: 50%; display: grid; place-items: center; font-size: 1.5rem; font-weight: 700; color: #000; background: linear-gradient(135deg, #fff, #8d8d8d); overflow: hidden; }
.dash-avatar img { width: 100%; height: 100%; object-fit: cover; }
.dash-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.25rem; }
.dcard { padding: 1.6rem; border: 1px solid var(--faint); border-radius: 16px; background: var(--glass); }
.dcard h2 { margin: 0 0 .5rem; font-size: 1.08rem; }
.dcard p { margin: 0 0 1rem; color: var(--dim); font-size: .9rem; line-height: 1.55; }
.dcard .row { display: flex; align-items: center; justify-content: space-between; gap: .8rem; }
.badge { display: inline-flex; align-items: center; gap: .35rem; padding: .2rem .65rem; border-radius: 999px; font-size: .74rem; font-weight: 600; border: 1px solid var(--faint); color: var(--dim); }
.badge.ok { color: #86efac; border-color: rgba(34,197,94,.35); background: rgba(34,197,94,.08); }
.badge.warn { color: #fbbf24; border-color: rgba(234,179,8,.35); background: rgba(234,179,8,.08); }
.dash-sub { margin-top: 3rem; display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 1.25rem; }
.dash-sub h2 { margin: 0; font-size: 1.35rem; letter-spacing: -.02em; }

/* Account, passkeys en dashboard-overzicht */
.dash-actions { display: flex; align-items: center; gap: .7rem; flex-wrap: wrap; }
.stat { display: flex; flex-direction: column; }
.stat-k { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--dim); margin-bottom: .5rem; }
.stat-v { display: block; font-size: clamp(2.4rem, 5vw, 3.2rem); line-height: 1; letter-spacing: -.05em; margin-bottom: .9rem; }
.stat-v.sm { font-size: 1.45rem; letter-spacing: -.02em; margin-top: .35rem; }
.stat p { flex: 1; }
.kv { display: grid; gap: .75rem; margin-bottom: 1rem; }
.kv > div { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; padding-bottom: .65rem; border-bottom: 1px solid var(--faint); }
.kv span { color: var(--dim); font-size: .82rem; }
.kv b { font-size: .92rem; font-weight: 600; text-align: right; overflow-wrap: anywhere; }
.method-list { display: grid; gap: .55rem; margin-bottom: .25rem; }
.method { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .55rem .75rem; border: 1px solid var(--faint); border-radius: 10px; background: rgba(255,255,255,.02); font-size: .9rem; }
.passkey-card { max-width: 860px; padding: 1.8rem; }
.passkey-intro { max-width: 70ch; }
.passkey-list { list-style: none; display: grid; gap: .6rem; margin: 0 0 1.25rem; padding: 0; }
.passkey-item { display: flex; align-items: center; gap: .9rem; padding: .85rem 1rem; border: 1px solid var(--faint); border-radius: 12px; background: rgba(255,255,255,.025); }
.passkey-ico { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; border: 1px solid rgba(255,255,255,.18); flex: none; }
.passkey-ico .ic { width: 18px; height: 18px; }
.passkey-meta { min-width: 0; flex: 1; }
.passkey-meta b { display: block; font-size: .95rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.passkey-meta small { display: block; color: var(--dim); font-size: .8rem; }
.passkey-del { display: grid; place-items: center; width: 36px; height: 36px; flex: none; border: 1px solid var(--faint); border-radius: 9px; background: transparent; color: var(--dim); cursor: pointer; transition: color .2s, border-color .2s, background .2s; }
.passkey-del:hover { color: #fca5a5; border-color: rgba(239,68,68,.4); background: rgba(239,68,68,.08); }
.passkey-del .ic { width: 17px; height: 17px; }
.passkey-empty { padding: 1rem; border: 1px dashed var(--faint); border-radius: 12px; text-align: center; margin-bottom: 1.25rem; }
.passkey-add { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .8rem; align-items: end; }
.passkey-add .field { margin-bottom: 0; }
.passkey-add .btn { white-space: nowrap; }
.passkey-note { margin: .9rem 0 0; color: #6f6f6f; font-size: .82rem; }
#passkeys { scroll-margin-top: 7rem; }
.err-code { font-size: clamp(4.5rem, 18vw, 9rem); line-height: .9; font-weight: 800; letter-spacing: -.06em; margin-bottom: 1rem; }
.err-actions { display: flex; gap: .7rem; justify-content: center; flex-wrap: wrap; }

@media (max-width: 700px) {
  .passkey-add { grid-template-columns: 1fr; }
  .passkey-add .btn { width: 100%; }
}
@media (max-width: 560px) {
  .dash-head { align-items: flex-start; }
  .dash-actions { width: 100%; flex-direction: column; align-items: stretch; }
  .dash-actions .btn { width: 100%; }
  .dash-user { align-items: flex-start; width: 100%; }
  .dash-avatar { width: 52px; height: 52px; font-size: 1.25rem; }
  .dash-grid { grid-template-columns: 1fr; gap: .9rem; }
  .dcard { padding: 1.25rem; }
  .dcard .row { flex-wrap: wrap; }
  .dcard .row .btn { width: 100%; }
  .kv > div { flex-direction: column; align-items: flex-start; gap: .15rem; }
  .kv b { text-align: left; }
  .passkey-card { padding: 1.25rem; }
  .passkey-item { flex-wrap: wrap; }
  .passkey-del { margin-left: auto; }
  .dash-sub { flex-wrap: wrap; }
  .notice-card { padding: 1.6rem 1.2rem; }
}

/* Prose (about / privacy / terms) */
.prose { max-width: 760px; }
.prose h2 { margin: 2rem 0 .6rem; font-size: 1.15rem; }
.prose p { margin: 0 0 1rem; color: #bdbdbd; line-height: 1.75; }
.prose ul { margin: 0 0 1rem; padding-left: 1.2rem; color: #bdbdbd; line-height: 1.75; }
.prose .card-line { margin-top: 1.5rem; padding-top: 1.5rem; border-top: 1px solid var(--faint); }

/* Checkout / notice */
.notice-card { max-width: 560px; margin: 0 auto; padding: 2.5rem 2rem; border: 1px solid var(--faint); border-radius: 18px; background: var(--glass); text-align: center; }
.notice-card h1 { margin: 0 0 .6rem; font-size: 1.7rem; letter-spacing: -.03em; }
.notice-card p { margin: 0 auto 1.5rem; max-width: 42ch; color: var(--dim); line-height: 1.6; }

@media (max-width: 560px) {
  .page-top { padding-top: 7rem; }
  .auth-card { padding: 1.4rem; }
  .dash-head { flex-direction: column; align-items: flex-start; }
}


/* ================= SUBPAGINA-FIXES ================= */
/* Geen entrance-vertraging op subpagina's */
.tl-nav-bar { animation-delay: 0s; }
.nav-in { animation-delay: 0s; }
/* Inhoud bovenaan i.p.v. verticaal gecentreerd */
.tl-section.page-top { justify-content: flex-start; }
h1.sec { margin: 0; font-size: clamp(2.1rem, 4.8vw, 3.9rem); letter-spacing: -.045em; line-height: 1; font-weight: 700; }
.page-lead { margin: .9rem 0 0; }
/* Nette kaarten op subpagina's */
.card { background: var(--glass); border: 1px solid var(--faint); border-radius: 18px; padding: 1.8rem; margin-top: 1.5rem; }
.card h2 { margin: 0 0 .8rem; font-size: 1.3rem; }
.card p { margin: 0; color: var(--dim); line-height: 1.7; }
/* Auth-formulier */
.auth-card .btn { width: 100%; }
.auth-alt { margin: 1.1rem 0 0; text-align: center; color: var(--dim); font-size: .9rem; }
.auth-alt a { color: #fff; text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.35); }
.auth-alt a:hover { border-bottom-color: #fff; }

/* Basis-knop (subpagina's) */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .45rem; padding: .8rem 1.15rem; border-radius: 11px; border: 1px solid var(--faint); background: transparent; color: #fff; font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; transition: transform .2s, box-shadow .2s, background .2s, border-color .2s; }
.btn:hover { border-color: rgba(255,255,255,.45); background: rgba(255,255,255,.06); }
.btn-solid { background: #fff; border-color: #fff; color: #000 !important; }
.btn-solid:hover { background: #fff; color: #000 !important; transform: translateY(-1px); box-shadow: 0 0 26px rgba(255,255,255,.25); }
.btn-line { background: transparent; }

/* Zelfde basis-reset als de homepage (app.css) */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { line-height: 1.6; min-height: 100vh; }
.prose a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.prose a:hover { text-decoration-thickness: 2px; }

/* ================= TOOL RUNTIME ================= */
.tool-page { padding-bottom: 1rem; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem; color: #6f6f6f; font-size: .82rem; margin-bottom: 1.6rem; }
.crumbs a { color: #a8a8a8; text-decoration: none; }
.crumbs a:hover { color: #fff; }
.crumbs span[aria-current] { color: #fff; }
.tool-hero { display: flex; align-items: flex-start; gap: 1.15rem; margin-bottom: 2rem; }
.tool-hero-icon { flex: none; width: 62px; height: 62px; display: grid; place-items: center; border-radius: 16px; border: 1px solid rgba(255,255,255,.18); font-size: .9rem; font-weight: 700; letter-spacing: -.02em; background: rgba(255,255,255,.03); }
.tool-hero-copy { min-width: 0; }
.tool-hero-copy .sec { margin: .35rem 0 .55rem; }
.tool-badge { display: inline-flex; padding: .18rem .6rem; border: 1px solid var(--faint); border-radius: 999px; color: var(--dim); font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; }
.tool-app { border: 1px solid var(--faint); border-radius: 18px; background: var(--glass); padding: 1.5rem; margin-bottom: 2.5rem; }
.tool-app.is-ready:empty { display: none; }
.tool-intro { margin: 0 0 1.2rem; color: var(--dim); font-size: .92rem; line-height: 1.6; }
.tool-form { display: flex; flex-direction: column; gap: 1rem; }
.tool-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.tool-field { display: flex; flex-direction: column; gap: .4rem; min-width: 0; }
.tool-field.wide { grid-column: 1 / -1; }
.tool-field > label { color: #cfcfcf; font-size: .85rem; }
.tool-hint { color: #6f6f6f; font-size: .76rem; line-height: 1.45; }
.tool-textarea { resize: vertical; min-height: 7rem; line-height: 1.55; }
.tool-output { resize: vertical; min-height: 10rem; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .86rem; line-height: 1.55; }
.tool-output-html { padding: 1rem; border: 1px solid var(--faint); border-radius: 10px; background: rgba(0,0,0,.35); overflow: auto; line-height: 1.6; font-size: .93rem; }
.tool-output-html .diff-add { color: #86efac; background: rgba(34,197,94,.08); display: block; }
.tool-output-html .diff-del { color: #fca5a5; background: rgba(239,68,68,.08); display: block; }
.tool-output-html .diff-same { color: #bdbdbd; display: block; }
.tool-output-html .palette-row { display: flex; flex-wrap: wrap; gap: .6rem; }
.tool-output-html .palette-chip { width: 88px; }
.tool-output-html .palette-chip i { display: block; height: 64px; border-radius: 10px; border: 1px solid rgba(255,255,255,.16); }
.tool-output-html .palette-chip code { display: block; margin-top: .35rem; font-size: .75rem; color: var(--dim); text-align: center; }
.tool-actions { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; }
.tool-actions .btn { padding: .72rem 1.1rem; font-size: .9rem; border-radius: 10px; }
.btn-mini { padding: .32rem .7rem !important; font-size: .76rem !important; border-radius: 8px !important; background: transparent; color: #fff; border: 1px solid var(--faint); cursor: pointer; }
.btn-mini:hover { border-color: #fff; }
.tool-result { border-top: 1px solid var(--faint); padding-top: 1rem; display: flex; flex-direction: column; gap: .7rem; }
.tool-result-head { display: flex; align-items: center; justify-content: space-between; gap: .8rem; color: #cfcfcf; font-size: .85rem; }
.tool-result-tools { display: flex; gap: .45rem; }
.tool-result-body { display: flex; flex-direction: column; gap: .8rem; }
.tool-error { padding: .85rem 1rem; border-radius: 10px; background: rgba(239,68,68,.1); border: 1px solid rgba(239,68,68,.3); color: #fca5a5; font-size: .9rem; line-height: 1.5; }
.tool-alert { padding: .7rem .9rem; border-radius: 10px; font-size: .86rem; margin-bottom: 1rem; }
.tool-alert.ok { background: rgba(34,197,94,.12); border: 1px solid rgba(34,197,94,.3); color: #86efac; }
.tool-alert.err { background: rgba(239,68,68,.12); border: 1px solid rgba(239,68,68,.3); color: #fca5a5; }
.tool-noscript { padding: 1.1rem 1.2rem; border: 1px solid var(--faint); border-radius: 12px; color: var(--dim); line-height: 1.6; }
.tool-noscript b { display: block; color: #fff; margin-bottom: .35rem; }
.tool-noscript p { margin: 0 0 .8rem; }
.tool-check { display: inline-flex; align-items: center; gap: .55rem; color: #cfcfcf; font-size: .9rem; cursor: pointer; }
.tool-check input { width: 17px; height: 17px; accent-color: #fff; }
.tool-range { display: flex; align-items: center; gap: .8rem; }
.tool-range input { flex: 1; accent-color: #fff; }
.tool-range-value { min-width: 3rem; text-align: right; color: var(--dim); font-size: .85rem; font-variant-numeric: tabular-nums; }
.tool-color { height: 44px; padding: .25rem; cursor: pointer; }
.tool-drop { display: flex; flex-direction: column; align-items: center; gap: .35rem; padding: 2rem 1rem; border: 1px dashed rgba(255,255,255,.22); border-radius: 14px; background: rgba(255,255,255,.02); text-align: center; cursor: pointer; transition: border-color .2s, background .2s; }
.tool-drop:hover, .tool-drop.over { border-color: #fff; background: rgba(255,255,255,.06); }
.tool-drop b { font-size: .95rem; font-weight: 600; }
.tool-drop small { color: #7c7c7c; font-size: .8rem; }
.tool-drop-icon { font-size: 1.5rem; line-height: 1; color: #a8a8a8; }
.tool-image-stage { display: flex; flex-direction: column; gap: .6rem; }
.tool-canvas { display: block; max-width: 100%; height: auto; margin: 0 auto; border-radius: 10px; border: 1px solid var(--faint); background: repeating-conic-gradient(#171717 0% 25%, #0d0d0d 0% 50%) 50% / 20px 20px; }
.tool-image-meta { margin: 0; text-align: center; color: #6f6f6f; font-size: .78rem; }
.tool-image-extra:empty { display: none; }
.tool-preview-frame { width: 100%; min-height: 340px; border: 1px solid var(--faint); border-radius: 10px; background: #fff; }
.tool-info { border-top: 1px solid var(--faint); padding-top: 2rem; margin-top: .5rem; }
.tool-info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.5rem; }
.tool-info-grid h2 { margin: 0 0 .4rem; font-size: 1rem; }
.tool-info-grid p { margin: 0; color: var(--dim); font-size: .88rem; line-height: 1.6; }
.tool-related { margin-top: 3rem; }
.tool-related-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 1.2rem; }
.tool-related-head h2 { margin: 0; font-size: 1.25rem; letter-spacing: -.02em; }
.tool-related-head a { color: var(--dim); font-size: .85rem; text-decoration: none; }
.tool-related-head a:hover { color: #fff; }
.tool-missing { padding: 3rem 0 5rem; }
.tool-missing .page-lead { margin: .8rem 0 1.5rem; }
.tool-kv { display: grid; grid-template-columns: auto 1fr; gap: .4rem 1rem; font-size: .9rem; }
.tool-kv dt { color: var(--dim); }
.tool-kv dd { margin: 0; }
.tool-list { margin: 0; padding-left: 1.2rem; color: var(--dim); line-height: 1.7; }
.tool-inline { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; }
.tool-inline > .input { flex: 1; min-width: 140px; }
.tool-grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; }
.tool-grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .8rem; }
.tool-embed-output { width: 100%; min-height: 280px; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .84rem; }
.tool-palette-preview { display: flex; flex-wrap: wrap; gap: .5rem; }
.tool-palette-preview span { width: 64px; height: 44px; border-radius: 8px; border: 1px solid rgba(255,255,255,.18); }
.tool-timer { font-size: clamp(2rem, 7vw, 4rem); font-weight: 700; letter-spacing: -.04em; line-height: 1.1; }
.tool-timer small { display: block; font-size: .8rem; font-weight: 500; color: var(--dim); letter-spacing: .1em; text-transform: uppercase; margin-top: .4rem; }
.tool-timer-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .7rem; }
.tool-timer-cell { text-align: center; padding: .8rem .4rem; border: 1px solid var(--faint); border-radius: 12px; background: rgba(255,255,255,.02); }
.tool-timer-cell b { display: block; font-size: clamp(1.4rem, 4vw, 2.2rem); line-height: 1.1; font-variant-numeric: tabular-nums; }
.tool-timer-cell span { color: var(--dim); font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; }
.tool-table { width: 100%; border-collapse: collapse; font-size: .86rem; }
.tool-table th, .tool-table td { text-align: left; padding: .55rem .6rem; border-bottom: 1px solid var(--faint); }
.tool-table th { color: var(--dim); font-weight: 500; }
.tool-swatch { width: 28px; height: 28px; border-radius: 7px; border: 1px solid rgba(255,255,255,.18); display: inline-block; vertical-align: middle; }

@media (max-width: 720px) {
  .tool-app { padding: 1rem; border-radius: 14px; }
  .tool-fields, .tool-grid-2, .tool-grid-3 { grid-template-columns: 1fr; }
  .tool-hero { gap: .85rem; }
  .tool-hero-icon { width: 50px; height: 50px; border-radius: 13px; font-size: .8rem; }
  .tool-hero-copy .sec { font-size: clamp(1.7rem, 7vw, 2.3rem); }
  .tool-timer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tool-actions .btn { flex: 1 1 auto; }
  .tool-result-head { align-items: flex-start; flex-direction: column; }
}

/* ================= ACCOUNT WORKSPACE ================= */
[hidden] { display: none !important; }
.eyebrow { display: inline-block; color: #8a8a8a; font-size: .72rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.account-hero { display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; margin-bottom: 1.6rem; }
.account-identity { display: flex; align-items: center; gap: 1.15rem; min-width: 0; }
.account-identity-copy { min-width: 0; }
.account-identity-copy .sec { margin: .3rem 0 .55rem; }
.account-identity-copy .page-lead { margin: 0; }
.account-hero-actions { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }
.dash-avatar.sm { width: 44px; height: 44px; font-size: 1.05rem; }
.dash-avatar.xs { width: 36px; height: 36px; font-size: .9rem; }

.stat-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .8rem; margin-bottom: 1.4rem; }
.stat-tile { position: relative; display: flex; flex-direction: column; gap: .1rem; padding: 1rem 1.1rem; border: 1px solid var(--faint); border-radius: 14px; background: var(--glass); color: #fff; text-decoration: none; transition: border-color .2s, transform .2s, background .2s; }
a.stat-tile:hover { border-color: rgba(255,255,255,.38); background: rgba(255,255,255,.045); transform: translateY(-2px); }
.stat-tile-icon { position: absolute; top: .9rem; right: 1rem; color: #6f6f6f; font-size: 1rem; }
.stat-tile-k { color: #8a8a8a; font-size: .72rem; text-transform: uppercase; letter-spacing: .09em; }
.stat-tile-v { font-size: 1.8rem; line-height: 1.1; letter-spacing: -.04em; }
.stat-tile-v.sm { font-size: 1.05rem; letter-spacing: -.01em; margin-top: .3rem; }
.stat-tile-meta { color: #6f6f6f; font-size: .76rem; }

.dash-layout { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(260px, .75fr); gap: 1rem; align-items: start; }
.dash-main, .dash-side { display: flex; flex-direction: column; gap: 1rem; min-width: 0; }
.dash-side { position: sticky; top: 6.5rem; }
.panel { padding: 1.35rem; border: 1px solid var(--faint); border-radius: 16px; background: var(--glass); }
.panel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.panel-head h2 { margin: .15rem 0 0; font-size: 1.16rem; letter-spacing: -.02em; }
.panel-head.compact { align-items: center; margin-bottom: .7rem; }
.panel-head.compact h2 { font-size: 1.5rem; }
.panel-link { color: #a8a8a8; font-size: .82rem; text-decoration: none; white-space: nowrap; }
.panel-link:hover { color: #fff; }
.panel-note { margin: 0 0 1rem; color: #8a8a8a; font-size: .87rem; line-height: 1.6; }
.panel .btn-block { width: 100%; margin-top: .8rem; }

.mini-tool-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .55rem; }
.mini-tool { display: flex; align-items: center; gap: .7rem; min-width: 0; padding: .7rem .75rem; border: 1px solid var(--faint); border-radius: 11px; background: rgba(255,255,255,.02); color: #fff; text-decoration: none; transition: border-color .2s, background .2s; }
.mini-tool:hover { border-color: rgba(255,255,255,.35); background: rgba(255,255,255,.05); }
.mini-tool-link { display: flex; align-items: center; gap: .7rem; min-width: 0; flex: 1; color: inherit; text-decoration: none; }
.mini-tool-icon { display: grid; place-items: center; width: 34px; height: 34px; flex: none; border: 1px solid rgba(255,255,255,.16); border-radius: 9px; font-size: .72rem; font-weight: 700; }
.mini-tool-copy { min-width: 0; }
.mini-tool-copy b { display: block; font-size: .86rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mini-tool-copy small { display: block; color: #7c7c7c; font-size: .7rem; }
.mini-tool-remove { display: grid; place-items: center; width: 25px; height: 25px; flex: none; border: 1px solid transparent; border-radius: 7px; background: transparent; color: #7c7c7c; font-size: 1rem; line-height: 1; cursor: pointer; }
.mini-tool-remove:hover { color: #fca5a5; border-color: rgba(239,68,68,.35); background: rgba(239,68,68,.08); }
.empty-state { display: flex; flex-direction: column; align-items: center; gap: .4rem; padding: 2.2rem 1rem; border: 1px dashed rgba(255,255,255,.18); border-radius: 13px; text-align: center; }
.empty-state-icon { font-size: 1.7rem; color: #7c7c7c; }
.empty-state b { font-size: 1rem; }
.empty-state p { max-width: 38ch; margin: 0 0 .5rem; color: #8a8a8a; font-size: .86rem; line-height: 1.55; }
.suggested-tools { margin-top: 1.1rem; padding-top: 1rem; border-top: 1px solid var(--faint); }
.suggested-head { display: flex; align-items: baseline; justify-content: space-between; gap: .8rem; margin-bottom: .6rem; }
.suggested-head b { font-size: .86rem; }
.suggested-head span { color: #6f6f6f; font-size: .74rem; }

.event-list { list-style: none; display: flex; flex-direction: column; gap: .1rem; margin: 0; padding: 0; }
.event-item { display: flex; align-items: flex-start; gap: .7rem; padding: .62rem 0; border-bottom: 1px solid var(--faint); }
.event-item:last-child { border-bottom: 0; padding-bottom: 0; }
.event-dot { width: 7px; height: 7px; flex: none; margin-top: .45rem; border-radius: 50%; background: #6f6f6f; box-shadow: 0 0 0 4px rgba(255,255,255,.04); }
.event-copy { min-width: 0; flex: 1; }
.event-copy b { display: block; font-size: .86rem; font-weight: 600; }
.event-copy small { display: block; color: #7c7c7c; font-size: .76rem; line-height: 1.4; overflow-wrap: anywhere; }
.event-item time { flex: none; color: #6f6f6f; font-size: .72rem; white-space: nowrap; padding-top: .15rem; }

.quick-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .55rem; }
.quick-card { display: flex; flex-direction: column; gap: .15rem; padding: .8rem; border: 1px solid var(--faint); border-radius: 11px; color: #fff; text-decoration: none; background: rgba(255,255,255,.02); transition: border-color .2s, background .2s; }
.quick-card:hover { border-color: rgba(255,255,255,.35); background: rgba(255,255,255,.05); }
.quick-card span { color: #8a8a8a; font-size: 1rem; }
.quick-card b { font-size: .84rem; }
.quick-card small { color: #6f6f6f; font-size: .7rem; line-height: 1.35; }

/* Popular tools grid */
.popular-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .75rem; }
.popular-tool { display: flex; align-items: center; gap: .65rem; min-width: 0; padding: .8rem .85rem; border: 1px solid var(--faint); border-radius: 11px; background: rgba(255,255,255,.02); color: #fff; text-decoration: none; transition: border-color .2s, background .2s, transform .2s; }
.popular-tool:hover { border-color: rgba(255,255,255,.35); background: rgba(255,255,255,.05); transform: translateY(-1px); }
.popular-tool-icon { display: grid; place-items: center; width: 34px; height: 34px; flex: none; border: 1px solid rgba(255,255,255,.16); border-radius: 9px; font-size: .68rem; font-weight: 700; }
.popular-tool-copy { min-width: 0; flex: 1; }
.popular-tool-copy b { display: block; font-size: .8rem; line-height: 1.3; }
.popular-tool-copy small { display: block; color: #7c7c7c; font-size: .68rem; }
.popular-tool-arrow { flex: none; color: #6f6f6f; font-size: .8rem; transition: transform .2s, color .2s; }
.popular-tool:hover .popular-tool-arrow { color: #fff; transform: translateX(2px); }

/* Dashboard: roomier cards and a grid that only sits behind the card area. */
.dash-layout { gap: 1.35rem; }
.dash-main, .dash-side { gap: 1.3rem; }
.stat-strip { gap: 1rem; margin-bottom: 1.6rem; }
.mini-tool-grid { gap: .7rem; }
.quick-grid { gap: .7rem; }
.tl-page-dash .tl-bg::before { opacity: 0; }
.tl-page-dash .stat-strip,
.tl-page-dash .dash-layout { position: relative; }
.tl-page-dash .stat-strip::before,
.tl-page-dash .dash-layout::before {
  content: "";
  position: absolute;
  inset: -1.15rem;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(255,255,255,.055) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,.055) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: radial-gradient(78% 88% at 50% 45%, #000 22%, rgba(0,0,0,.45) 62%, transparent 100%);
  mask-image: radial-gradient(78% 88% at 50% 45%, #000 22%, rgba(0,0,0,.45) 62%, transparent 100%);
}
.tl-page-dash .stat-strip > *,
.tl-page-dash .dash-layout > * { position: relative; z-index: 1; }

/* One-time gloss sweep used on dashboard and tool cards. */
.tl-sheen { position: relative; overflow: hidden; }
.tl-sheen::after {
  content: "";
  position: absolute;
  top: -25%;
  bottom: -25%;
  left: -70%;
  width: 42%;
  z-index: 6;
  pointer-events: none;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.09) 42%, rgba(255,255,255,.17) 50%, rgba(255,255,255,.09) 58%, transparent);
  transform: skewX(-18deg);
  animation: tlSheen 1.05s ease forwards;
  animation-delay: var(--sheen-delay, 0ms);
}
@keyframes tlSheen {
  0% { left: -70%; opacity: 0; }
  18% { opacity: 1; }
  100% { left: 140%; opacity: 0; }
}

/* Tools skeleton */
.tool-skeleton { position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 1rem; padding: 1.25rem .25rem 1.5rem; border-top: 1px solid var(--faint); }
.tool-skeleton::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgba(255,255,255,.075) 50%, transparent 70%); animation: tlShimmer 1.15s ease-in-out infinite; pointer-events: none; }
.sk-badge { display: block; width: 54px; height: 10px; border-radius: 999px; background: rgba(255,255,255,.09); }
.sk-row { display: flex; gap: .9rem; }
.sk-icon { width: 38px; height: 38px; flex: none; border-radius: 10px; background: rgba(255,255,255,.09); }
.sk-copy { display: flex; flex-direction: column; gap: .45rem; flex: 1; }
.sk-line { display: block; height: 9px; border-radius: 999px; background: rgba(255,255,255,.08); }
.sk-line.w70 { width: 70%; }
.sk-line.w95 { width: 95%; }
.sk-line.w55 { width: 55%; }
@keyframes tlShimmer { from { transform: translateX(-100%); } to { transform: translateX(200%); } }

.side-profile { display: flex; align-items: center; gap: .7rem; margin-bottom: 1rem; }
.side-profile b { display: block; font-size: .92rem; }
.side-profile small { display: block; color: #7c7c7c; font-size: .76rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 170px; }
.side-kv { display: flex; flex-direction: column; gap: .45rem; }
.side-kv > div { display: flex; align-items: baseline; justify-content: space-between; gap: .8rem; padding-bottom: .45rem; border-bottom: 1px solid var(--faint); }
.side-kv span { color: #8a8a8a; font-size: .78rem; }
.side-kv b { font-size: .8rem; font-weight: 600; text-align: right; }
.security-meter { height: 5px; border-radius: 99px; background: rgba(255,255,255,.08); overflow: hidden; margin-bottom: .8rem; }
.security-meter span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #7c7c7c, #fff); }
.check-list { list-style: none; display: flex; flex-direction: column; gap: .4rem; margin: 0; padding: 0; }
.check-list li { display: flex; align-items: center; gap: .5rem; color: #8a8a8a; font-size: .82rem; }
.check-list li span { display: grid; place-items: center; width: 18px; height: 18px; border: 1px solid var(--faint); border-radius: 50%; font-size: .65rem; }
.check-list li.done { color: #d8d8d8; }
.check-list li.done span { color: #86efac; border-color: rgba(34,197,94,.35); background: rgba(34,197,94,.08); }

/* Account page */
.acct-layout { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 1.2rem; align-items: start; }
.acct-nav { position: sticky; top: 6.5rem; }
.acct-nav-card { padding: 1rem; border: 1px solid var(--faint); border-radius: 15px; background: var(--glass); }
.acct-nav-user { display: flex; align-items: center; gap: .6rem; padding-bottom: .9rem; margin-bottom: .7rem; border-bottom: 1px solid var(--faint); min-width: 0; }
.acct-nav-user b { display: block; font-size: .84rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acct-nav-user small { display: block; color: #7c7c7c; font-size: .7rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acct-nav-links { display: flex; flex-direction: column; gap: .1rem; }
.acct-nav-links a { display: flex; align-items: center; gap: .55rem; padding: .5rem .55rem; border-radius: 8px; color: #a8a8a8; font-size: .82rem; text-decoration: none; transition: color .2s, background .2s; }
.acct-nav-links a span { width: 20px; color: #6f6f6f; font-size: .65rem; font-variant-numeric: tabular-nums; }
.acct-nav-links a:hover { color: #fff; background: rgba(255,255,255,.055); }
.acct-nav-links a.danger-link { margin-top: .35rem; color: #fca5a5; }
.acct-nav-links a.danger-link span { color: #fca5a5; }
.acct-nav-foot { display: flex; flex-direction: column; gap: .55rem; margin-top: .9rem; padding-top: .9rem; border-top: 1px solid var(--faint); }
.acct-nav-foot .badge { align-self: flex-start; }
.acct-main { display: flex; flex-direction: column; gap: 1rem; min-width: 0; }
.acct-main .panel { scroll-margin-top: 7rem; }
.acct-form { display: flex; flex-direction: column; gap: .9rem; }
.acct-form .tool-fields { gap: .8rem; }
.acct-form-foot { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.acct-form-foot .tool-hint { max-width: 46ch; margin: 0; }
.acct-subsection { margin-top: 1.25rem; padding-top: 1.1rem; border-top: 1px solid var(--faint); }
.acct-subhead { display: flex; align-items: flex-start; justify-content: space-between; gap: .8rem; margin-bottom: .7rem; }
.acct-subhead b { display: block; font-size: .9rem; }
.acct-subhead small { display: block; color: #7c7c7c; font-size: .76rem; line-height: 1.45; }
.acct-email-row { display: flex; align-items: center; justify-content: space-between; gap: .8rem; padding: .65rem .75rem; border: 1px solid var(--faint); border-radius: 10px; background: rgba(255,255,255,.02); font-size: .9rem; }
.acct-email-row span { overflow-wrap: anywhere; }
.acct-code-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .55rem; align-items: center; }
.method-main { display: flex; align-items: center; gap: .65rem; min-width: 0; }
.method-main b { display: block; font-size: .88rem; }
.method-main small { display: block; color: #7c7c7c; font-size: .74rem; }
.method-ico { display: grid; place-items: center; width: 32px; height: 32px; flex: none; border: 1px solid rgba(255,255,255,.16); border-radius: 8px; font-size: .68rem; font-weight: 700; }
.method { padding: .65rem .75rem; }
.session-list { display: flex; flex-direction: column; gap: .5rem; }
.session-item { display: flex; align-items: center; gap: .7rem; padding: .7rem .8rem; border: 1px solid var(--faint); border-radius: 11px; background: rgba(255,255,255,.02); }
.session-ico { color: #86efac; font-size: .6rem; flex: none; }
.session-meta { min-width: 0; flex: 1; }
.session-meta b { display: block; font-size: .85rem; }
.session-meta small { display: block; color: #7c7c7c; font-size: .73rem; line-height: 1.4; overflow-wrap: anywhere; }
.danger-panel { border-color: rgba(239,68,68,.24); background: rgba(239,68,68,.035); }
.danger-panel .eyebrow { color: #fca5a5; }
.btn-danger { background: rgba(239,68,68,.12); border-color: rgba(239,68,68,.4); color: #fca5a5; }
.btn-danger:hover { background: rgba(239,68,68,.2); border-color: rgba(239,68,68,.7); color: #fecaca; }
.btn.is-disabled, .btn-line.is-disabled, .btn-solid.is-disabled { opacity: .5; cursor: default; pointer-events: none; transform: none; box-shadow: none; }

/* Subscription page */
.sub-layout { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(260px, .75fr); gap: 1rem; align-items: start; }
.sub-main, .sub-side { display: flex; flex-direction: column; gap: 1rem; min-width: 0; }
.sub-side { position: sticky; top: 6.5rem; }
.sub-stats .stat-tile-v.sm { margin-top: .35rem; }
.plan-panel[data-plan="pro"], .plan-panel[data-plan="lifetime"] { border-color: rgba(255,255,255,.2); background: linear-gradient(150deg, rgba(255,255,255,.065), rgba(255,255,255,.02) 55%, transparent); }
.plan-hero { display: flex; align-items: flex-end; gap: 1.5rem; flex-wrap: wrap; padding-bottom: 1.1rem; margin-bottom: 1.1rem; border-bottom: 1px solid var(--faint); }
.plan-hero-price b { display: block; font-size: clamp(2.5rem, 5vw, 3.4rem); line-height: .95; letter-spacing: -.055em; }
.plan-hero-price small { display: block; margin-top: .3rem; color: #8a8a8a; font-size: .8rem; }
.plan-hero p { margin: 0 0 .25rem; max-width: 46ch; color: var(--dim); font-size: .9rem; line-height: 1.6; }
.plan-features { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .55rem 1rem; margin: 0 0 1.25rem; padding: 0; }
.plan-features li { display: flex; align-items: flex-start; gap: .5rem; color: #d4d4d4; font-size: .86rem; line-height: 1.4; }
.plan-features .ic { width: 16px; height: 16px; flex: none; margin-top: .08rem; color: #86efac; }
.plan-actions { display: flex; gap: .6rem; flex-wrap: wrap; }
.pay-badges { display: flex; gap: .4rem; flex-wrap: wrap; }
.pay-badges span { padding: .3rem .55rem; border: 1px solid var(--faint); border-radius: 7px; background: rgba(255,255,255,.03); color: #bdbdbd; font-size: .72rem; }
.order-table-wrap { overflow-x: auto; }
.order-table { width: 100%; border-collapse: collapse; font-size: .84rem; }
.order-table th { padding: .55rem .6rem; border-bottom: 1px solid var(--faint); color: #7c7c7c; font-size: .68rem; font-weight: 600; letter-spacing: .08em; text-align: left; text-transform: uppercase; white-space: nowrap; }
.order-table td { padding: .7rem .6rem; border-bottom: 1px solid var(--faint); color: #d4d4d4; white-space: nowrap; }
.order-table tr:last-child td { border-bottom: 0; }
.order-table .order-action { text-align: right; }
.order-table .order-action a { color: #fff; font-size: .78rem; text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.3); }
.order-table .order-action a:hover { border-bottom-color: #fff; }
.order-status { display: inline-flex; padding: .18rem .5rem; border: 1px solid var(--faint); border-radius: 999px; color: #a8a8a8; font-size: .7rem; font-weight: 600; }
.order-status.paid { color: #86efac; border-color: rgba(34,197,94,.35); background: rgba(34,197,94,.08); }
.order-status.pending, .order-status.open { color: #fbbf24; border-color: rgba(234,179,8,.35); background: rgba(234,179,8,.08); }
.order-status.failed, .order-status.canceled, .order-status.cancelled, .order-status.expired { color: #fca5a5; border-color: rgba(239,68,68,.35); background: rgba(239,68,68,.08); }

/* Checkout */
.checkout-head { max-width: 1040px; margin: 0 auto 1.7rem; }
.checkout-head .sec { margin: .35rem 0 .55rem; }
.checkout-head .page-lead { max-width: 56ch; }
.checkout-layout { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(300px, .8fr); gap: 1.1rem; align-items: start; max-width: 1040px; margin: 0 auto; }
.checkout-main { display: flex; flex-direction: column; gap: 1rem; min-width: 0; }
.checkout-side { position: sticky; top: 6.5rem; min-width: 0; }
.checkout-block { padding: 1.35rem; }
.checkout-step { display: flex; align-items: flex-start; gap: .75rem; margin-bottom: 1rem; }
.checkout-step > span { display: grid; place-items: center; width: 28px; height: 28px; flex: none; border: 1px solid rgba(255,255,255,.2); border-radius: 8px; color: #a8a8a8; font-size: .68rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.checkout-step b { display: block; font-size: .96rem; letter-spacing: -.01em; }
.checkout-step small { display: block; margin-top: .15rem; color: #7c7c7c; font-size: .78rem; line-height: 1.45; }
.checkout-plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .65rem; }
.checkout-plan { position: relative; display: flex; flex-direction: column; gap: .4rem; padding: 1rem 1.05rem; border: 1px solid var(--faint); border-radius: 13px; background: rgba(255,255,255,.02); cursor: pointer; transition: border-color .2s, background .2s, transform .2s; }
.checkout-plan:hover { border-color: rgba(255,255,255,.3); background: rgba(255,255,255,.045); }
.checkout-plan.selected { border-color: rgba(255,255,255,.55); background: rgba(255,255,255,.07); box-shadow: inset 0 0 0 1px rgba(255,255,255,.14); }
.checkout-plan.disabled { opacity: .45; cursor: not-allowed; }
.checkout-plan > input { position: absolute; opacity: 0; pointer-events: none; }
.checkout-plan-top { display: flex; align-items: center; gap: .45rem; flex-wrap: wrap; padding-right: 1.5rem; }
.checkout-plan-name { font-size: .9rem; font-weight: 600; }
.checkout-plan-tag { padding: .1rem .45rem; border: 1px solid rgba(255,255,255,.3); border-radius: 999px; color: #fff; font-size: .62rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.checkout-plan-tag.muted { border-color: var(--faint); color: #8a8a8a; }
.checkout-plan-price b { font-size: 1.45rem; letter-spacing: -.04em; }
.checkout-plan-price small { margin-left: .3rem; color: #8a8a8a; font-size: .74rem; }
.checkout-plan-desc { color: #7c7c7c; font-size: .76rem; line-height: 1.45; }
.checkout-plan-radio { position: absolute; top: 1rem; right: 1rem; width: 16px; height: 16px; border: 1px solid rgba(255,255,255,.3); border-radius: 50%; }
.checkout-plan.selected .checkout-plan-radio { border-color: #fff; background: #fff; box-shadow: inset 0 0 0 4px #111; }
.pay-methods { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .55rem; }
.pay-method { display: flex; align-items: center; gap: .65rem; padding: .7rem .8rem; border: 1px solid var(--faint); border-radius: 11px; background: rgba(255,255,255,.02); cursor: pointer; transition: border-color .2s, background .2s; }
.pay-method:hover { border-color: rgba(255,255,255,.3); background: rgba(255,255,255,.045); }
.pay-method.selected { border-color: rgba(255,255,255,.55); background: rgba(255,255,255,.07); }
.pay-method input { position: absolute; opacity: 0; pointer-events: none; }
.pay-method-badge { display: grid; place-items: center; width: 34px; height: 30px; flex: none; border: 1px solid rgba(255,255,255,.16); border-radius: 7px; background: rgba(255,255,255,.04); font-size: .62rem; font-weight: 700; letter-spacing: .02em; }
.pay-method-copy { min-width: 0; flex: 1; }
.pay-method-copy b { display: block; font-size: .84rem; }
.pay-method-copy small { display: block; color: #7c7c7c; font-size: .7rem; }
.pay-method-dot { width: 14px; height: 14px; flex: none; border: 1px solid rgba(255,255,255,.3); border-radius: 50%; }
.pay-method.selected .pay-method-dot { border-color: #fff; background: #fff; box-shadow: inset 0 0 0 3px #111; }
.checkout-test-note { margin: 1rem 0 0; padding: .65rem .75rem; border: 1px dashed rgba(250,204,21,.32); border-radius: 9px; background: rgba(250,204,21,.07); color: #fde68a; font-size: .78rem; line-height: 1.5; }
.checkout-trust { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.trust-row { display: flex; align-items: flex-start; gap: .65rem; }
.trust-row > span { display: grid; place-items: center; width: 30px; height: 30px; flex: none; border: 1px solid rgba(255,255,255,.16); border-radius: 8px; color: #bdbdbd; font-size: .85rem; }
.trust-row b { display: block; font-size: .84rem; }
.trust-row small { display: block; margin-top: .1rem; color: #7c7c7c; font-size: .74rem; line-height: 1.45; }
.checkout-summary { padding: 1.35rem; }
.checkout-features { list-style: none; display: flex; flex-direction: column; gap: .45rem; margin: 0 0 1.1rem; padding: 0 0 1.1rem; border-bottom: 1px solid var(--faint); }
.checkout-features li { display: flex; align-items: flex-start; gap: .5rem; color: #cfcfcf; font-size: .8rem; line-height: 1.4; }
.checkout-features .ic { width: 15px; height: 15px; flex: none; margin-top: .08rem; color: #86efac; }
.checkout-totals { display: flex; flex-direction: column; gap: .45rem; margin-bottom: 1rem; }
.checkout-totals > div { display: flex; align-items: baseline; justify-content: space-between; gap: .8rem; color: #8a8a8a; font-size: .8rem; }
.checkout-totals b { color: #d4d4d4; font-size: .82rem; font-weight: 600; }
.checkout-totals .checkout-total { margin-top: .2rem; padding-top: .65rem; border-top: 1px solid var(--faint); color: #fff; font-size: .88rem; }
.checkout-totals .checkout-total b { color: #fff; font-size: 1.15rem; letter-spacing: -.03em; }
.checkout-pay { width: 100%; min-height: 46px; }
.checkout-pay[disabled] { opacity: .65; cursor: wait; }
.checkout-terms { margin: .65rem 0 0; color: #6f6f6f; font-size: .7rem; line-height: 1.5; text-align: center; }
.checkout-terms a { color: #a8a8a8; text-decoration: underline; text-underline-offset: 2px; }
.checkout-secure { display: flex; align-items: center; gap: .6rem; margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--faint); }
.checkout-secure-lock { display: grid; place-items: center; width: 30px; height: 30px; flex: none; border: 1px solid rgba(34,197,94,.3); border-radius: 8px; background: rgba(34,197,94,.07); color: #86efac; font-size: .85rem; }
.checkout-secure b { display: block; font-size: .78rem; }
.checkout-secure small { display: block; color: #6f6f6f; font-size: .68rem; line-height: 1.4; }

/* Checkout receipt */
.checkout-receipt { max-width: 580px; margin: 0 auto; }
.receipt-card { padding: clamp(1.6rem, 4vw, 2.5rem); border: 1px solid rgba(255,255,255,.14); border-radius: 22px; background: linear-gradient(160deg, rgba(255,255,255,.055), rgba(255,255,255,.015) 55%, transparent); text-align: center; }
.receipt-icon { margin-bottom: 1rem; }
.receipt-card .eyebrow { display: block; margin-bottom: .55rem; }
.receipt-card .sec { margin: 0 0 .65rem; }
.receipt-card .page-lead { margin: 0 auto 1.5rem; max-width: 46ch; }
.receipt-lines { display: flex; flex-direction: column; gap: .1rem; margin: 0 0 1.5rem; padding: 1rem 1.1rem; border: 1px solid var(--faint); border-radius: 13px; background: rgba(0,0,0,.22); text-align: left; }
.receipt-lines > div { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; padding: .42rem 0; border-bottom: 1px solid var(--faint); font-size: .84rem; }
.receipt-lines > div:last-child { border-bottom: 0; }
.receipt-lines span { color: #8a8a8a; }
.receipt-lines b { text-align: right; font-weight: 600; }
.ok-text { color: #86efac; }
.warn-text { color: #fbbf24; }
.err-text { color: #fca5a5; }
.receipt-actions { display: flex; justify-content: center; gap: .6rem; flex-wrap: wrap; }
.receipt-note { margin: 1.1rem 0 0; color: #6f6f6f; font-size: .76rem; line-height: 1.55; }
.receipt-note a { color: #bdbdbd; text-decoration: underline; text-underline-offset: 2px; }
.receipt-spinner { width: 54px; height: 54px; margin: 0 auto 1rem; border: 2px solid rgba(255,255,255,.12); border-top-color: #fff; border-radius: 50%; animation: receipt-spin 1s linear infinite; }
@keyframes receipt-spin { to { transform: rotate(360deg); } }

@media (max-width: 900px) {
  .sub-layout, .checkout-layout { grid-template-columns: 1fr; }
  .sub-side, .checkout-side { position: static; }
  .plan-features { grid-template-columns: 1fr; }
  .checkout-plans, .pay-methods, .checkout-trust { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .sub-layout .stat-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .plan-actions .btn, .receipt-actions .btn { width: 100%; }
  .receipt-card { padding: 1.4rem 1.1rem; }
  .receipt-lines > div { flex-direction: column; gap: .15rem; }
  .receipt-lines b { text-align: left; }
  .order-table th:nth-child(2), .order-table td:nth-child(2) { display: none; }
}

/* ================= NEW TOOL COMPONENTS ================= */
.tool-palette-head { display: flex; align-items: center; justify-content: space-between; gap: .8rem; margin-bottom: .6rem; }
.tool-palette { display: grid; grid-template-columns: repeat(auto-fit, minmax(88px, 1fr)); gap: .5rem; }
.tool-swatch { display: flex; flex-direction: column; justify-content: flex-end; min-height: 72px; padding: .45rem; border: 1px solid rgba(255,255,255,.2); border-radius: 9px; color: #fff; cursor: pointer; text-shadow: 0 1px 3px rgba(0,0,0,.7); }
.tool-swatch span { font-size: .68rem; font-weight: 700; letter-spacing: .02em; }
.pixel-layout { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(240px, .85fr); gap: 1.2rem; align-items: start; }
.pixel-board { display: flex; flex-direction: column; gap: .6rem; align-items: center; }
.pixel-canvas { display: block; width: 100%; max-width: 560px; aspect-ratio: 1; image-rendering: pixelated; border: 1px solid var(--faint); border-radius: 10px; background: repeating-conic-gradient(#171717 0% 25%, #0d0d0d 0% 50%) 50% / 20px 20px; cursor: crosshair; touch-action: none; }
.pixel-side { display: flex; flex-direction: column; gap: .8rem; }
.pixel-tools { display: flex; flex-wrap: wrap; gap: .4rem; }
.pixel-tools .btn-mini.on { background: #fff; color: #000; border-color: #fff; }
.pixel-palette { display: grid; grid-template-columns: repeat(8, 1fr); gap: .35rem; }
.pixel-swatch { aspect-ratio: 1; border: 1px solid rgba(255,255,255,.2); border-radius: 6px; cursor: pointer; }
.pixel-swatch.on { outline: 2px solid #fff; outline-offset: 1px; }
.pixel-preview-wrap { display: flex; flex-direction: column; gap: .35rem; }
.pixel-preview { width: 100%; max-width: 190px; aspect-ratio: 1; image-rendering: pixelated; border: 1px solid var(--faint); border-radius: 8px; background: #0d0d0d; }

.preview-builder { gap: .8rem; }
.preview-toolbar { display: flex; align-items: center; justify-content: space-between; gap: .8rem; flex-wrap: wrap; }
.preview-tabs { display: flex; gap: .35rem; flex-wrap: wrap; }
.preview-tabs .btn-mini.on { background: #fff; color: #000; border-color: #fff; }
.preview-actions { display: flex; gap: .4rem; flex-wrap: wrap; }
.preview-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: .9rem; align-items: stretch; }
.preview-editors { min-width: 0; }
.preview-pane { display: flex; flex-direction: column; gap: .4rem; }
.code-editor { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .82rem; line-height: 1.55; resize: vertical; min-height: 12rem; }
.preview-output { min-width: 0; display: flex; }
.preview-output .tool-preview-frame { min-height: 100%; }
.website-preview-frame { min-height: 430px; }
.markdown-preview { line-height: 1.65; font-size: .94rem; }
.markdown-preview h1, .markdown-preview h2, .markdown-preview h3 { margin: 1.2em 0 .45em; line-height: 1.2; }
.markdown-preview h1 { font-size: 1.7rem; }
.markdown-preview h2 { font-size: 1.35rem; border-bottom: 1px solid var(--faint); padding-bottom: .25rem; }
.markdown-preview h3 { font-size: 1.1rem; }
.markdown-preview p { margin: 0 0 .85em; }
.markdown-preview ul, .markdown-preview ol { margin: 0 0 .85em; padding-left: 1.4rem; }
.markdown-preview blockquote { margin: .8em 0; padding: .2em 1em; border-left: 3px solid rgba(255,255,255,.3); color: #bdbdbd; }
.markdown-preview code { padding: .12em .35em; border-radius: 4px; background: rgba(255,255,255,.08); font-size: .88em; }
.markdown-preview pre { padding: .9rem; border: 1px solid var(--faint); border-radius: 9px; background: rgba(0,0,0,.35); overflow: auto; }
.markdown-preview pre code { padding: 0; background: none; }
.markdown-preview table { width: 100%; border-collapse: collapse; margin: .8em 0; }
.markdown-preview th, .markdown-preview td { border: 1px solid var(--faint); padding: .45rem .55rem; text-align: left; }
.markdown-preview img { max-width: 100%; height: auto; border-radius: 8px; }
.md-table-wrap { overflow: auto; }

.pdf-list { list-style: none; display: flex; flex-direction: column; gap: .45rem; margin: 0; padding: 0; }
.pdf-item { display: flex; align-items: center; gap: .65rem; padding: .6rem .7rem; border: 1px solid var(--faint); border-radius: 10px; background: rgba(255,255,255,.02); }
.pdf-num { display: grid; place-items: center; width: 25px; height: 25px; flex: none; border: 1px solid var(--faint); border-radius: 7px; color: #8a8a8a; font-size: .72rem; }
.pdf-meta { min-width: 0; flex: 1; }
.pdf-meta b { display: block; font-size: .84rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pdf-meta small { display: block; color: #7c7c7c; font-size: .72rem; }
.pdf-controls { display: flex; gap: .3rem; flex-wrap: wrap; justify-content: flex-end; }

.zip-progress { height: 7px; border-radius: 99px; background: rgba(255,255,255,.08); overflow: hidden; }
.zip-progress-bar { height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, #7c7c7c, #fff); transition: width .2s; }

.browser-tool { gap: .6rem; }
.browser-bar { display: flex; align-items: center; gap: .4rem; flex-wrap: wrap; }
.browser-address { flex: 1; min-width: 200px; }
.browser-meta { display: flex; align-items: center; justify-content: space-between; gap: .6rem; flex-wrap: wrap; }
.browser-quick { display: flex; gap: .35rem; flex-wrap: wrap; }
.browser-frame { width: 100%; min-height: 480px; border: 1px solid var(--faint); border-radius: 10px; background: #fff; }

@media (max-width: 900px) {
  .dash-layout { grid-template-columns: 1fr; }
  .dash-side { position: static; }
  .acct-layout { grid-template-columns: 1fr; }
  .acct-nav { position: static; }
  .acct-nav-links { flex-direction: row; flex-wrap: wrap; }
  .acct-nav-links a { flex: 1 1 auto; }
  .acct-nav-foot { flex-direction: row; align-items: center; justify-content: space-between; }
  .acct-nav-foot .btn { width: auto; }
  .preview-split, .pixel-layout { grid-template-columns: 1fr; }
  .pixel-preview { max-width: 140px; }
}
@media (max-width: 700px) {
  .stat-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .quick-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .popular-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mini-tool-grid { grid-template-columns: 1fr; }
  .account-hero { align-items: flex-start; }
  .account-hero-actions { width: 100%; }
  .account-hero-actions .btn { flex: 1; }
  .panel { padding: 1.1rem; }
  .panel-head { flex-direction: column; gap: .45rem; }
  .acct-form-foot { align-items: flex-start; flex-direction: column; }
  .acct-form-foot .btn { width: 100%; }
  .acct-email-row { align-items: flex-start; flex-direction: column; }
  .acct-code-row { grid-template-columns: 1fr; }
  .session-item { flex-wrap: wrap; }
  .session-item .btn { margin-left: auto; }
  .browser-frame { min-height: 360px; }
}
@media (max-width: 430px) {
  .stat-tile-v { font-size: 1.5rem; }
  .stat-tile-v.sm { font-size: .95rem; }
  .account-identity { align-items: flex-start; }
  .account-identity-copy .sec { font-size: clamp(1.6rem, 8vw, 2.1rem); }
  .quick-grid { grid-template-columns: 1fr; }
  .popular-grid { grid-template-columns: 1fr; }
  .pixel-palette { grid-template-columns: repeat(6, 1fr); }
}
