@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,400..800&family=Manrope:wght@400..800&display=swap');

/* ============ tokens (Tailwind v4 / Starwind) ============ */
:root {
  --background: #f4f8fb;
  --foreground: #0b1a24;
  --card: #ffffff;
  --card-foreground: #0b1a24;
  --popover: #ffffff;
  --popover-foreground: #0b1a24;
  --primary: #0099d6;
  --primary-foreground: #ffffff;
  --primary-accent: #00b0f1;
  --muted: #e7eef3;
  --muted-foreground: #5c7380;
  --accent: #e2ebf1;
  --accent-foreground: #0b1a24;
  --border: rgba(11, 26, 36, 0.12);
  --input: rgba(11, 26, 36, 0.16);
  --outline: #7c94a1;
  --error: #e11d48;
  --sidebar: #ffffff;
  --sidebar-foreground: #0b1a24;
  --sidebar-accent: #eef4f8;
  --sidebar-accent-foreground: #0b1a24;
  --sidebar-border: #dbe5ec;
  --sidebar-outline: #7c94a1;
  --sidebar-primary: #0099d6;
  --sidebar-primary-foreground: #ffffff;
  --radius: 0.75rem;
  --sidebar-width: 16rem;
  --sidebar-width-icon: 4.5rem;
  --sidebar-margin: 0.75rem;
  --font-display: "Bricolage Grotesque", "Manrope", ui-sans-serif, system-ui, sans-serif;
}
.dark {
  --background: #07090c;
  --foreground: #eaf2f7;
  --card: #101318;
  --card-foreground: #eaf2f7;
  --popover: #141a20;
  --popover-foreground: #eaf2f7;
  --primary: #00b0f1;
  --primary-foreground: #041017;
  --primary-accent: #4cc5ff;
  --muted: #151a20;
  --muted-foreground: #8ea1ad;
  --accent: #18242c;
  --accent-foreground: #eaf2f7;
  --border: rgba(234, 242, 247, 0.08);
  --input: rgba(234, 242, 247, 0.12);
  --outline: #556974;
  --error: #ff5470;
  --sidebar: #0a0e13;
  --sidebar-foreground: #eaf2f7;
  --sidebar-accent: #12171d;
  --sidebar-accent-foreground: #eaf2f7;
  --sidebar-border: rgba(234, 242, 247, 0.07);
  --sidebar-outline: #556974;
  --sidebar-primary: #00b0f1;
  --sidebar-primary-foreground: #041017;
}

* { margin: 0; padding: 0; box-sizing: border-box; border-color: var(--border); }
html { -webkit-text-size-adjust: 100%; }
body {
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E"),
    radial-gradient(1300px 760px at 50% -14%, color-mix(in oklab, var(--foreground) 5%, transparent), transparent 62%),
    var(--background);
  background-attachment: fixed;
  color: var(--foreground);
  font-family: "Manrope", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: inherit; }
img, svg, video { display: block; vertical-align: middle; }
img { max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; background: none; }
button { cursor: pointer; }
::selection { background: var(--primary); color: var(--primary-foreground); }

/* ============ display / position ============ */
.block { display: block; }
.hidden { display: none; }
.inline-flex { display: inline-flex; }
.flex { display: flex; }
.grid { display: grid; }
.contents { display: contents; }
.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }
.sticky { position: sticky; }
.inset-0 { inset: 0; }
.inset-x-0 { left: 0; right: 0; }
.inset-y-0 { top: 0; bottom: 0; }
.top-0 { top: 0; }
.bottom-0 { bottom: 0; }
.left-0 { left: 0; }
.right-0 { right: 0; }
.z-10 { z-index: 10; }
.z-20 { z-index: 20; }
.z-40 { z-index: 40; }
.z-50 { z-index: 50; }

/* ============ flex / grid ============ */
.flex-row { flex-direction: row; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.flex-nowrap { flex-wrap: nowrap; }
.flex-1 { flex: 1 1 0%; }
.flex-none { flex: none; }
.grow { flex-grow: 1; }
.shrink-0 { flex-shrink: 0; }
.min-w-0 { min-width: 0; }
.min-w-fit { min-width: fit-content; }
.min-w-8 { min-width: 2rem; }
.min-h-0 { min-height: 0; }
.min-h-svh { min-height: 100svh; }
.w-full { width: 100%; }
.w-fit { width: fit-content; }
.w-max { width: max-content; }
.h-full { height: 100%; }
.h-svh { height: 100svh; }
.h-4 { height: 1rem; }
.h-10 { height: 2.5rem; }
.h-11 { height: 2.75rem; }
.h-14 { height: 3.5rem; }
.h-16 { height: 4rem; }
.h-8 { height: 2rem; }
.size-3\.5 { width: 0.875rem; height: 0.875rem; }
.size-4 { width: 1rem; height: 1rem; }
.size-4\.5 { width: 1.125rem; height: 1.125rem; }
.size-7 { width: 1.75rem; height: 1.75rem; }
.size-8 { width: 2rem; height: 2rem; }
.size-9 { width: 2.25rem; height: 2.25rem; }
.size-\[1\.2rem\] { width: 1.2rem; height: 1.2rem; }
.aspect-square { aspect-ratio: 1 / 1; }
.aspect-3\/4 { aspect-ratio: 3 / 4; }
.aspect-3\/1 { aspect-ratio: 3 / 1; }
.aspect-video { aspect-ratio: 16 / 9; }

.items-start { align-items: flex-start; }
.items-end { align-items: flex-end; }
.items-center { align-items: center; }
.items-baseline { align-items: baseline; }
.justify-start { justify-content: flex-start; }
.justify-end { justify-content: flex-end; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.self-start { align-self: flex-start; }
.self-end { align-self: flex-end; }

.gap-0\.5 { gap: 0.125rem; }
.gap-1 { gap: 0.25rem; }
.gap-1\.5 { gap: 0.375rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-x-8 { column-gap: 2rem; }
.gap-y-4 { row-gap: 1rem; }

.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.grid-cols-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.grid-cols-7 { grid-template-columns: repeat(7, minmax(0, 1fr)); }

/* ============ spacing ============ */
.p-0\.5 { padding: 0.125rem; }
.p-1 { padding: 0.25rem; }
.p-1\.5 { padding: 0.375rem; }
.p-2 { padding: 0.5rem; }
.p-2\.5 { padding: 0.625rem; }
.p-3 { padding: 0.75rem; }
.p-4 { padding: 1rem; }
.px-1\.5 { padding-left: 0.375rem; padding-right: 0.375rem; }
.px-2 { padding-left: 0.5rem; padding-right: 0.5rem; }
.px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-5 { padding-left: 1.25rem; padding-right: 1.25rem; }
.py-0\.5 { padding-top: 0.125rem; padding-bottom: 0.125rem; }
.py-1 { padding-top: 0.25rem; padding-bottom: 0.25rem; }
.py-1\.5 { padding-top: 0.375rem; padding-bottom: 0.375rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.pt-6 { padding-top: 1.5rem; }
.pb-2 { padding-bottom: 0.5rem; }
.pr-2 { padding-right: 0.5rem; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mb-1\.5 { margin-bottom: 0.375rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mr-2 { margin-right: 0.5rem; }
.ml-2 { margin-left: 0.5rem; }
.-ml-1 { margin-left: -0.25rem; }
.-mx-4 { margin-left: -1rem; margin-right: -1rem; }
.-mt-4 { margin-top: -1rem; }
.ms-auto { margin-inline-start: auto; }

/* ============ typography ============ */
.text-\[10px\] { font-size: 10px; }
.text-\[11px\] { font-size: 11px; }
.text-xs { font-size: 0.75rem; line-height: 1rem; }
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.text-base { font-size: 1rem; line-height: 1.5rem; }
.text-md { font-size: 1rem; line-height: 1.5rem; }
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.text-xl { font-size: 1.25rem; line-height: 1.75rem; }
.text-2xl { font-size: 1.5rem; line-height: 2rem; }
.font-normal { font-weight: 400; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.leading-tight { line-height: 1.25; }
.leading-snug { line-height: 1.375; }
.leading-none { line-height: 1; }
.tracking-tight { letter-spacing: -0.025em; }
.text-left { text-align: left; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.whitespace-nowrap { white-space: nowrap; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.line-clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.underline { text-decoration-line: underline; }
.uppercase { text-transform: uppercase; }
.tabular-nums { font-variant-numeric: tabular-nums; }
.break-words { overflow-wrap: break-word; }
.wrap-break-word { overflow-wrap: break-word; }

/* ============ colors ============ */
.bg-background { background-color: var(--background); }
.bg-foreground { background-color: var(--foreground); }
.bg-card { background-color: var(--card); }
.bg-popover { background-color: var(--popover); }
.bg-primary { background-color: var(--primary); }
.bg-muted { background-color: var(--muted); }
.bg-accent { background-color: var(--accent); }
.bg-border { background-color: var(--border); }
.bg-sidebar { background-color: var(--sidebar); }
.bg-sidebar-accent { background-color: var(--sidebar-accent); }
.bg-transparent { background-color: transparent; }
.bg-black { background-color: #000; }
.bg-white { background-color: #fff; }
.bg-\[#01adee\] { background-color: #01adee; }
.bg-\[#ff424d\] { background-color: #ff424d; }
.bg-muted\/30 { background-color: color-mix(in oklab, var(--muted) 30%, transparent); }
.bg-muted\/50 { background-color: color-mix(in oklab, var(--muted) 50%, transparent); }
.bg-background\/80 { background-color: color-mix(in oklab, var(--background) 80%, transparent); }
.bg-input\/30 { background-color: color-mix(in oklab, var(--input) 30%, transparent); }
.bg-linear-to-t { background-image: linear-gradient(to top, var(--tw-gradient-stops)); }
.from-black\/80 { --tw-gradient-from: rgb(0 0 0 / 0.8); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgb(0 0 0 / 0)); }
.to-transparent { --tw-gradient-to: transparent; }

.text-foreground { color: var(--foreground); }
.text-background { color: var(--background); }
.text-muted-foreground { color: var(--muted-foreground); }
.text-primary { color: var(--primary); }
.text-primary-foreground { color: var(--primary-foreground); }
.text-accent-foreground { color: var(--accent-foreground); }
.text-sidebar-foreground { color: var(--sidebar-foreground); }
.text-sidebar-accent-foreground { color: var(--sidebar-accent-foreground); }
.text-sidebar-primary-foreground { color: var(--sidebar-primary-foreground); }
.text-white { color: #fff; }
.text-black { color: #000; }
.text-white\/70 { color: rgb(255 255 255 / 0.7); }
.text-white\/80 { color: rgb(255 255 255 / 0.8); }
.text-white\/90 { color: rgb(255 255 255 / 0.9); }
.text-sidebar-foreground\/70 { color: color-mix(in oklab, var(--sidebar-foreground) 70%, transparent); }

/* ============ borders / radius ============ */
.border { border-width: 1px; border-style: solid; }
.border-0 { border-width: 0; }
.border-t { border-top-width: 1px; }
.border-b { border-bottom-width: 1px; }
.border-l { border-left-width: 1px; }
.border-r { border-right-width: 1px; }
.border-border { border-color: var(--border); }
.border-input { border-color: var(--input); }
.border-primary { border-color: var(--primary); }
.border-error { border-color: var(--error); }
.rounded { border-radius: var(--radius); }
.rounded-sm { border-radius: calc(var(--radius) - 6px); }
.rounded-md { border-radius: calc(var(--radius) - 4px); }
.rounded-lg { border-radius: calc(var(--radius) - 2px); }
.rounded-xl { border-radius: calc(var(--radius) + 4px); }
.rounded-full { border-radius: 9999px; }

/* ============ effects ============ */
.overflow-hidden { overflow: hidden; }
.overflow-auto { overflow: auto; }
.overflow-x-auto { overflow-x: auto; }
.overflow-y-auto { overflow-y: auto; }
.\[overflow-anchor\:none\] { overflow-anchor: none; }
.shadow { box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1); }
.shadow-xs { box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05); }
.ring-2 { box-shadow: 0 0 0 2px var(--tw-ring-color, currentColor); }
.ring-white\/20 { --tw-ring-color: rgb(255 255 255 / 0.2); }
.backdrop-blur-sm { backdrop-filter: blur(4px); }
.opacity-30 { opacity: 0.3; }
.opacity-50 { opacity: 0.5; }
.opacity-70 { opacity: 0.7; }
.opacity-100 { opacity: 1; }
.pointer-events-none { pointer-events: none; }
.cursor-not-allowed { cursor: not-allowed; }
.cursor-default { cursor: default; }
.select-none { user-select: none; }
.scale-100 { transform: scale(1); }
.scale-0 { transform: scale(0); }
.rotate-0 { transform: rotate(0deg); }
.rotate-90 { transform: rotate(90deg); }
.rotate-180 { transform: rotate(180deg); }
.-rotate-90 { transform: rotate(-90deg); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border-width: 0; }

/* ============ transitions ============ */
.transition-all { transition-property: all; transition-timing-function: cubic-bezier(0.4,0,0.2,1); transition-duration: 150ms; }
.transition-colors { transition-property: color, background-color, border-color; transition-timing-function: cubic-bezier(0.4,0,0.2,1); transition-duration: 150ms; }
.transition-opacity { transition-property: opacity; transition-timing-function: cubic-bezier(0.4,0,0.2,1); transition-duration: 150ms; }
.transition-transform { transition-property: transform; transition-timing-function: cubic-bezier(0.4,0,0.2,1); transition-duration: 150ms; }
.transition-\[color\,box-shadow\] { transition-property: color, box-shadow; transition-timing-function: cubic-bezier(0.4,0,0.2,1); transition-duration: 150ms; }
.transition-\[width\,height\,padding\] { transition-property: width, height, padding; transition-duration: 300ms; transition-timing-function: var(--ease-sidebar, cubic-bezier(0.32,0.72,0,1)); }
.transition-\[width\] { transition-property: width; transition-duration: 300ms; transition-timing-function: var(--ease-sidebar, cubic-bezier(0.32,0.72,0,1)); }
.duration-200 { transition-duration: 200ms; }
.duration-300 { transition-duration: 300ms; }

/* ============ hover / active states ============ */
.hover\:bg-muted:hover { background-color: var(--muted); }
.hover\:bg-sidebar-accent:hover { background-color: var(--sidebar-accent); }
.hover\:bg-input\/50:hover { background-color: color-mix(in oklab, var(--input) 50%, transparent); }
.hover\:text-foreground:hover { color: var(--foreground); }
.hover\:text-sidebar-accent-foreground:hover { color: var(--sidebar-accent-foreground); }
.hover\:opacity-100:hover { opacity: 1; }
.hover\:-translate-y-0\.5:hover { transform: translateY(-0.125rem); }
.active\:translate-y-0:active { transform: translateY(0); }
.active\:bg-sidebar-accent:active { background-color: var(--sidebar-accent); }
.active\:text-sidebar-accent-foreground:active { color: var(--sidebar-accent-foreground); }
.disabled\:opacity-30:disabled { opacity: 0.3; }
.disabled\:opacity-50:disabled { opacity: 0.5; }
.disabled\:pointer-events-none:disabled { pointer-events: none; }
.data-\[active\=true\]\:bg-sidebar-accent[data-active="true"] { background-color: var(--sidebar-accent); }
.data-\[active\=true\]\:text-sidebar-accent-foreground[data-active="true"] { color: var(--sidebar-accent-foreground); }
.data-\[active\=true\]\:font-medium[data-active="true"] { font-weight: 500; }

/* ============ dark variants (only under .dark) ============ */
.dark .dark\:border-input { border-color: var(--input); }
.dark .dark\:bg-input\/30 { background-color: color-mix(in oklab, var(--input) 30%, transparent); }
.dark .dark\:hover\:bg-input\/50:hover { background-color: color-mix(in oklab, var(--input) 50%, transparent); }
.dark .dark\:scale-0 { transform: scale(0); }
.dark .dark\:scale-100 { transform: scale(1); }
.dark .dark\:rotate-0 { transform: rotate(0deg); }
.dark .dark\:-rotate-90 { transform: rotate(-90deg); }

/* ============ supplemental utilities ============ */
.size-3 { width: 0.75rem; height: 0.75rem; }
.size-20 { width: 5rem; height: 5rem; }
.size-full { width: 100%; height: 100%; }
.h-9 { height: 2.25rem; }
.h-48 { height: 12rem; }
.object-cover { object-fit: cover; }
.object-contain { object-fit: contain; }
.accent-primary { accent-color: var(--primary); }
.ring-background { --tw-ring-color: var(--background); }
.ring-offset-background { --tw-ring-offset-color: var(--background); }
.outline-none { outline: none; }
.max-w-xs { max-width: 20rem; }
.opacity-60 { opacity: 0.6; }
.px-2\.5 { padding-left: 0.625rem; padding-right: 0.625rem; }
.dark .dark\:opacity-45 { opacity: 0.45; }
.cv-lock { display: flex; align-items: center; justify-content: center; background: var(--muted); }

/* ============ profile / post-detail utilities ============ */
.size-5 { width: 1.25rem; height: 1.25rem; }
.size-10 { width: 2.5rem; height: 2.5rem; }
.size-16 { width: 4rem; height: 4rem; }
.size-24 { width: 6rem; height: 6rem; }
.rounded-2xl { border-radius: calc(var(--radius) + 6px); }
.ring-4 { box-shadow: 0 0 0 4px var(--tw-ring-color, currentColor); }
.-mt-16 { margin-top: -4rem; }
.mt-6 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: 0.25rem; }
.pb-4 { padding-bottom: 1rem; }
.pb-6 { padding-bottom: 1.5rem; }
.pr-10 { padding-right: 2.5rem; }
.gap-x-3 { column-gap: 0.75rem; }
.gap-x-4 { column-gap: 1rem; }
.gap-y-2 { row-gap: 0.5rem; }
.space-y-2 > * + * { margin-top: 0.5rem; }
.leading-relaxed { line-height: 1.625; }
.opacity-40 { opacity: 0.4; }
.bg-black\/40 { background-color: rgb(0 0 0 / 0.4); }
.bg-black\/60 { background-color: rgb(0 0 0 / 0.6); }
.bg-black\/70 { background-color: rgb(0 0 0 / 0.7); }
.hover\:bg-black\/60:hover { background-color: rgb(0 0 0 / 0.6); }
.backdrop-blur { backdrop-filter: blur(8px); }
.right-1\.5 { right: 0.375rem; }
.right-2 { right: 0.5rem; }
.top-1\.5 { top: 0.375rem; }
.top-2 { top: 0.5rem; }
.top-7 { top: 1.75rem; }
.top-1\/2 { top: 50%; }
.-translate-y-1\/2 { transform: translateY(-50%); }
.translate-x-0\.5 { transform: translateX(0.125rem); }
.max-w-full { max-width: 100%; }
.max-h-full { max-height: 100%; }
.max-w-\[10rem\] { max-width: 10rem; }
.shrink { flex-shrink: 1; }
.snap-x { scroll-snap-type: x var(--tw-scroll-snap-strictness, proximity); }
.snap-mandatory { --tw-scroll-snap-strictness: mandatory; }
.snap-start { scroll-snap-align: start; }
.scroll-smooth { scroll-behavior: smooth; }
.cursor-grab { cursor: grab; }
.items-stretch { align-items: stretch; }
.\[scrollbar-width\:none\] { scrollbar-width: none; }
.\[overflow-anchor\:none\] { overflow-anchor: none; }
.focus\:border-foreground\/30:focus { border-color: color-mix(in oklab, var(--foreground) 30%, transparent); }
.placeholder\:text-muted-foreground::placeholder { color: var(--muted-foreground); }
.group:hover .group-hover\:scale-105 { transform: scale(1.05); }

/* ============ sidebar shell (floating glass) ============ */
.starwind-sidebar-provider { display: flex; min-height: 100svh; width: 100%; }
.starwind-sidebar { color: var(--sidebar-foreground); font-family: "Manrope", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; }
.sidebar-gap { width: calc(var(--sidebar-width) + 2 * var(--sidebar-margin)); background: transparent; }
.sidebar-container {
  position: fixed; top: var(--sidebar-margin); bottom: var(--sidebar-margin); left: var(--sidebar-margin);
  z-index: 40; width: var(--sidebar-width);
  border-radius: 1.5rem; overflow: hidden;
  border: 1px solid var(--sidebar-border);
  background: var(--sidebar);
  box-shadow: 0 24px 48px -24px rgb(0 0 0 / 0.5);
  backdrop-filter: blur(24px) saturate(1.3);
  -webkit-backdrop-filter: blur(24px) saturate(1.3);
  transition: width 300ms cubic-bezier(0.32, 0.72, 0, 1), left 300ms cubic-bezier(0.32, 0.72, 0, 1);
}
.sidebar-inner { height: 100%; width: 100%; display: flex; flex-direction: column; padding: 0.75rem; gap: 0.5rem; }
.sidebar-content {
  min-height: 0; flex: 1 1 0%; display: flex; flex-direction: column; gap: 0.875rem;
  overflow-y: auto; overflow-x: hidden; padding: 0 0.25rem; scrollbar-width: none;
}
.sidebar-content::-webkit-scrollbar { display: none; }

/* header / brand */
.sb-header { display: flex; align-items: center; gap: 0.5rem; padding: 0.375rem 0.25rem 0.75rem; }
.sb-brand { display: flex; align-items: center; gap: 0.5rem; flex: 1 1 0%; min-width: 0; }
.sb-logo-wide { display: block; width: 100%; height: auto; max-width: 100%; }
.sb-logo-dark { display: none; }
.dark .sb-logo-dark { display: block; }
.dark .sb-logo-light { display: none; }
.sb-logo-mark { display: none; width: 2.25rem; height: 2.25rem; flex-shrink: 0; }
.sb-logo-icon { width: 2rem; height: 2rem; flex-shrink: 0; }
.sb-logo-text { font-size: 1.25rem; font-weight: 700; color: var(--sidebar-foreground); white-space: nowrap; }

/* search */
.sb-search { position: relative; margin: 0 0.25rem; }
.sb-search input {
  width: 100%; height: 2.5rem; padding: 0 3.5rem 0 2.25rem;
  border-radius: 0.75rem; font-size: 0.875rem;
  background: var(--sidebar-accent); color: var(--sidebar-foreground);
  border: 1px solid var(--sidebar-border); outline: none;
  transition: border-color 150ms, background 150ms, box-shadow 150ms;
}
.sb-search input::placeholder { color: var(--sidebar-accent-foreground); opacity: 0.55; }
.sb-search input:focus {
  border-color: var(--sidebar-primary); background: transparent;
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--sidebar-primary) 18%, transparent);
}
.sb-search-icon { position: absolute; left: 0.75rem; top: 50%; transform: translateY(-50%); width: 0.9375rem; height: 0.9375rem; opacity: 0.55; pointer-events: none; }
.sb-kbd {
  position: absolute; right: 0.5rem; top: 50%; transform: translateY(-50%);
  display: inline-flex; align-items: center; justify-content: center;
  height: 1.25rem; padding: 0 0.375rem;
  font-size: 0.625rem; font-weight: 600; border-radius: 0.375rem;
  color: var(--sidebar-accent-foreground); opacity: 0.6;
  border: 1px solid var(--sidebar-border); background: var(--sidebar); white-space: nowrap;
}

/* group */
.sb-group { display: flex; flex-direction: column; gap: 0.25rem; }
.group-label {
  display: flex; align-items: center; height: 1.75rem; padding: 0 0.75rem;
  font-family: var(--font-display);
  font-size: 0.625rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: color-mix(in oklab, var(--sidebar-foreground) 40%, transparent);
  transition: opacity 300ms, height 300ms, margin 300ms;
}
.sb-menu { display: flex; flex-direction: column; gap: 0.125rem; list-style: none; }

/* menu button */
.menu-button {
  position: relative; display: flex; width: 100%; align-items: center; gap: 0.75rem;
  border-radius: 0.625rem; padding: 0 0.75rem; height: 2.5rem;
  font-size: 0.875rem; font-weight: 500;
  color: color-mix(in oklab, var(--sidebar-foreground) 82%, transparent);
  transition: background 150ms, color 150ms, transform 150ms, width 300ms, height 300ms, padding 300ms;
}
.menu-button:hover { background: var(--sidebar-accent); color: var(--sidebar-foreground); transform: translateX(2px); }
.menu-button:hover > svg { color: var(--sidebar-primary); }
.menu-button > svg { width: 1.125rem; height: 1.125rem; flex-shrink: 0; opacity: 0.85; transition: transform 150ms, opacity 150ms, color 150ms; }
.menu-button > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.menu-button[data-active="true"] {
  background: var(--sidebar-primary);
  color: var(--sidebar-primary-foreground); font-weight: 700;
  box-shadow: 0 4px 14px -6px color-mix(in oklab, var(--sidebar-primary) 45%, transparent);
}
.menu-button[data-active="true"] > svg { opacity: 1; color: var(--sidebar-primary-foreground); }

/* footer / status */
.sb-footer { padding: 0.5rem 0.25rem 0.25rem; border-top: 1px solid var(--sidebar-border); }
.sb-status { display: flex; align-items: center; gap: 0.5rem; font-size: 0.75rem; color: color-mix(in oklab, var(--sidebar-foreground) 64%, transparent); padding: 0 0.375rem; white-space: nowrap; text-decoration: none; transition: color 150ms; }
.sb-status:hover { color: var(--sidebar-foreground); }
.sb-status svg { width: 0.875rem; height: 0.875rem; flex-shrink: 0; }
.sb-dot { width: 0.5rem; height: 0.5rem; border-radius: 999px; background: #22c55e; flex-shrink: 0; animation: sb-pulse 2.4s ease-in-out infinite; }
@keyframes sb-pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgb(34 197 94 / 0.18); }
  50% { box-shadow: 0 0 0 6px rgb(34 197 94 / 0.08); }
}

/* collapse to icon mode */
.starwind-sidebar.collapsed .sidebar-container { width: var(--sidebar-width-icon); }
.starwind-sidebar.collapsed .sidebar-gap { width: calc(var(--sidebar-width-icon) + 2 * var(--sidebar-margin)); }
.starwind-sidebar.collapsed .sidebar-inner { padding: 0.75rem 0.625rem; }
.starwind-sidebar.collapsed .sb-logo-wide { display: none; }
.starwind-sidebar.collapsed .sb-logo-mark { display: block; }
.starwind-sidebar.collapsed .sb-header { justify-content: center; }
.starwind-sidebar.collapsed .theme-toggle { display: none; }
.starwind-sidebar.collapsed .sb-search { display: none; }
.starwind-sidebar.collapsed .group-label { height: 0.75rem; overflow: hidden; opacity: 0; margin: 0; }
.starwind-sidebar.collapsed .menu-button { justify-content: center; padding: 0; gap: 0; }
.starwind-sidebar.collapsed .menu-button > span { display: none; }
.starwind-sidebar.collapsed .sb-status { justify-content: center; padding: 0; }
.starwind-sidebar.collapsed .sb-status > span:last-child { display: none; }

/* ============ header ============ */
.theme-toggle {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.375rem;
  border-radius: 0.375rem; font-weight: 500; white-space: nowrap;
  border: 1px solid var(--sidebar-border); box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  width: 2.25rem; height: 2.25rem; margin-inline-start: auto;
  transition: opacity 300ms;
  background: var(--sidebar);
  color: var(--sidebar-foreground);
}
.dark .theme-toggle { background: var(--sidebar-accent); border-color: var(--sidebar-border); }
.theme-toggle:hover { background: var(--sidebar-accent); color: var(--sidebar-foreground); }
.dark .theme-toggle:hover { background: color-mix(in oklab, var(--sidebar-accent) 70%, transparent); }
.theme-toggle .sun { display: block; }
.theme-toggle .moon { display: none; position: absolute; }
.dark .theme-toggle .sun { display: none; }
.dark .theme-toggle .moon { display: block; position: static; }



/* ============ input / select ============ */
.input {
  display: flex; width: 100%; height: 2.75rem; padding: 0 0.75rem;
  font-size: 1rem; border: 1px solid var(--input); border-radius: calc(var(--radius) - 4px);
  background: transparent; color: var(--foreground); box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  transition: color 150ms, box-shadow 150ms;
}
.input::placeholder { color: var(--muted-foreground); }
.input:focus-visible { outline: none; border-color: var(--outline); box-shadow: 0 0 0 3px color-mix(in oklab, var(--outline) 50%, transparent); }
.dark .input { background: color-mix(in oklab, var(--input) 30%, transparent); border-color: var(--input); }
select.input { appearance: none; background-image: none; background-color: var(--background); color: var(--foreground); }
.dark select.input { background-color: var(--card); border-color: var(--input); }
select.input option { background-color: var(--background); color: var(--foreground); }
.dark select.input option { background-color: var(--card); color: var(--foreground); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  border-radius: calc(var(--radius) - 4px); font-weight: 500; white-space: nowrap;
  border: 1px solid var(--border); box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  background: var(--background); height: 2.75rem; padding: 0 1.25rem; font-size: 1rem;
  transition: all 150ms; flex-shrink: 0;
}
.dark .btn { background: color-mix(in oklab, var(--input) 30%, transparent); border-color: var(--input); }
.btn:hover { background: var(--muted); color: var(--foreground); }
.dark .btn:hover { background: color-mix(in oklab, var(--input) 50%, transparent); }
.btn svg { width: 1.125rem; height: 1.125rem; }
.btn.has-svg { padding: 0 1rem; }

/* ============ filter panel ============ */
.filter-panel-section h3 {
  margin-bottom: 0.75rem; display: flex; align-items: center; gap: 0.375rem;
  border-bottom: 1px solid var(--border); padding-bottom: 0.5rem;
  font-size: 0.875rem; font-weight: 600;
}
.filter-panel-section h3 svg { width: 1rem; height: 1rem; color: var(--muted-foreground); }
.filter-label { margin-bottom: 0.375rem; display: block; font-size: 0.75rem; font-weight: 500; color: var(--muted-foreground); }
.select-wrap { position: relative; }
.select-wrap .chev { position: absolute; right: 0.75rem; top: 50%; transform: translateY(-50%); width: 1rem; height: 1rem; opacity: 0.5; pointer-events: none; }
.select-wrap select { padding-right: 2.25rem; }
.checkbox-row { display: flex; align-items: center; gap: 0.5rem; height: 2.75rem; font-size: 0.875rem; }

/* ============ grid + cards ============ */
.posts-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.5rem;
  overflow-anchor: none;
}
.creators-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.5rem;
}
.tags-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.5rem; }

/* cv-cell — post card (exact cum.st Svelte component) */
.cv-cell {
  content-visibility: auto;
  contain-intrinsic-size: auto 240px;
  position: relative; display: block; aspect-ratio: 3 / 4;
  overflow: hidden; border-radius: calc(var(--radius) - 2px);
  background: var(--muted);
  background-size: cover; background-position: center;
}
.cv-cell .cv-badge {
  background: #01adee; color: #fff; border-radius: 4px;
  padding: 0.125rem 0.375rem; font-size: 10px; font-weight: 600;
  line-height: 1.25; box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
}
.cv-cell .cv-badge.patreon { background: #ff424d; }
.cv-cell .cv-badge.fansly { background: #e83e8c; }
.cv-cell .cv-scrim {
  background-image: linear-gradient(to top, rgb(0 0 0 / 0.8), transparent);
}
.cv-cell .cv-caption p { display: inline; }
.cv-cell .cv-caption a { pointer-events: none; cursor: default; }
.cv-cell .cv-caption img { display: none; }
.cv-cell .cv-caption figure { display: none; }
.cv-cell .cv-lock {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: var(--muted);
}
.cv-cell .cv-lock svg { width: 3rem; height: 3rem; color: var(--muted-foreground); }

/* cv-row — creator card (exact cum.st Svelte component) */
.cv-row {
  --scrim-near: 0.6; --scrim-far: 0.4;
  border-radius: calc(var(--radius) + 4px);
  border: 1px solid var(--border);
  position: relative; display: block; overflow: hidden;
  aspect-ratio: 3 / 1; padding-right: 0.5rem;
  transition: transform 200ms; container-type: inline-size;
}
.dark .cv-row { --scrim-near: 0.7; --scrim-far: 0.5; }
.cv-row .card-bg { position: absolute; inset: 0; opacity: 0.7; background-size: cover; background-position: center; }
.dark .cv-row .card-bg { opacity: 0.45; }
.cv-row .card-scrim { position: absolute; inset: 0; background: linear-gradient(to right, rgb(0 0 0 / var(--scrim-near)) 0%, rgb(0 0 0 / var(--scrim-far)) 55%, transparent 85%); }
.cv-row .card-blue { position: absolute; inset: 0; opacity: 0; background: linear-gradient(to right, rgba(1,173,238,0.5) 0%, transparent 60%); transition: opacity 240ms ease; }
.cv-row.svc-fansly .card-blue { background: linear-gradient(to right, rgba(232,62,140,0.5) 0%, transparent 60%); }
.cv-row.svc-patreon .card-blue { background: linear-gradient(to right, rgba(255,66,77,0.5) 0%, transparent 60%); }
.cv-row:hover .card-blue { opacity: 1; }
.cv-row .card-content { position: absolute; inset: 0; display: flex; align-items: center; gap: 0.75rem; padding-inline: 0.75rem; }
.cv-row .card-avatar { width: 3rem; height: 3rem; border-radius: calc(var(--radius) + 4px); overflow: hidden; box-shadow: 0 0 0 2px rgb(255 255 255 / 0.2); flex-shrink: 0; }
.cv-row .card-avatar img { width: 100%; height: 100%; object-fit: cover; }
.cv-row .card-text { min-width: 0; flex: 1 1 0%; display: flex; flex-direction: column; gap: 0.125rem; }
.cv-row .card-text span:not(.card-badge) { text-shadow: 0 1px 2px #000000f2, 0 0 6px #000c; }
.cv-row .card-badge { background: #01adee; color: #fff; align-self: flex-start; border-radius: 4px; padding: 0.125rem 0.375rem; font-size: 10px; font-weight: 600; line-height: 1.25; }
.cv-row .card-badge.patreon { background: #ff424d; }
.cv-row .card-badge.fansly { background: #e83e8c; }
.cv-row .card-name { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; color: #fff; font-size: 0.875rem; }
.cv-row .card-bookmarks { font-size: 0.75rem; }
.cv-row .card-updated { font-size: 0.625rem; }
.cv-row .card-stats { display: flex; gap: 0.5rem; font-size: 0.75rem; }
.cv-row .card-stats svg { width: 1em; height: 1em; }
@container (width>=380px) {
  .cv-row .card-content { gap: 1rem; padding-inline: 1rem; }
  .cv-row .card-avatar { width: 4rem; height: 4rem; }
  .cv-row .card-text { gap: 0.25rem; }
  .cv-row .card-badge { font-size: 11px; }
  .cv-row .card-name { font-size: 1.125rem; }
  .cv-row .card-bookmarks, .cv-row .card-stats { font-size: 0.875rem; }
  .cv-row .card-updated { font-size: 0.75rem; }
}
@container (width>=520px) {
  .cv-row .card-content { gap: 1.25rem; padding-inline: 1.25rem; }
  .cv-row .card-avatar { width: 5.5rem; height: 5.5rem; }
  .cv-row .card-text { gap: 0.375rem; }
  .cv-row .card-badge { font-size: 11px; }
  .cv-row .card-name { font-size: 1.25rem; }
  .cv-row .card-bookmarks, .cv-row .card-stats { font-size: 1rem; }
  .cv-row .card-updated { font-size: 0.75rem; }
}
@container (width>=680px) {
  .cv-row .card-content { gap: 1.5rem; padding-inline: 1.5rem; }
  .cv-row .card-avatar { width: 7rem; height: 7rem; }
  .cv-row .card-text { gap: 0.5rem; }
  .cv-row .card-badge { font-size: 12px; }
  .cv-row .card-name { font-size: 1.5rem; }
  .cv-row .card-bookmarks, .cv-row .card-stats { font-size: 1.125rem; }
}

/* ============ tags ============ */
.tag-cell {
  display: flex; align-items: center; justify-content: space-between; gap: 0.5rem;
  padding: 0.75rem 0.875rem; border-radius: calc(var(--radius) - 2px);
  background: var(--card); border: 1px solid var(--border);
  transition: border-color 150ms, background 150ms;
}
.tag-cell:hover { border-color: var(--outline); background: var(--muted); }
.tag-cell .t-label { font-size: 0.875rem; font-weight: 600; }
.tag-cell .t-count { font-size: 0.75rem; color: var(--muted-foreground); }

/* ============ post detail ============ */
.post-wrap { max-width: 980px; margin: 0 auto; }
.post-media { position: relative; width: 100%; border-radius: var(--radius); overflow: hidden; background: #000; border: 1px solid var(--border); margin-bottom: 1.25rem; }
.post-media video { width: 100%; max-height: 80vh; display: block; background: #000; }
.post-media img.single { width: 100%; max-height: 80vh; object-fit: contain; background: #000; }
.post-title { font-size: 1.5rem; font-weight: 700; line-height: 1.3; }
.post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.625rem; margin-top: 0.75rem; font-size: 0.8125rem; color: var(--muted-foreground); }
.post-meta a.chip { display: inline-flex; align-items: center; gap: 0.375rem; padding: 0.3125rem 0.75rem; font-size: 0.75rem; font-weight: 600; color: var(--primary); background: color-mix(in oklab, var(--primary) 14%, transparent); border-radius: 9999px; }
.post-meta .bm { display: inline-flex; align-items: center; gap: 0.3125rem; font-weight: 600; color: var(--foreground); }
.media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 0.5rem; margin-top: 1rem; }
.media-grid img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: calc(var(--radius) - 4px); border: 1px solid var(--border); transition: transform 200ms; }
.media-grid img:hover { transform: scale(1.03); }
.src-tabs { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0.75rem 0; }
.src-tab { padding: 0.4375rem 0.875rem; font-size: 0.8125rem; font-weight: 600; background: var(--card); border: 1px solid var(--border); border-radius: calc(var(--radius) - 4px); }
.src-tab.active { background: color-mix(in oklab, var(--primary) 16%, transparent); border-color: var(--primary); color: var(--primary); }
.section-head { display: flex; align-items: baseline; gap: 0.75rem; margin: 1.5rem 0 0.75rem; }
.section-head h2 { font-size: 1rem; font-weight: 700; }

/* ============ empty / spinner ============ */
.empty { display: flex; flex-direction: column; align-items: center; gap: 0.75rem; padding: 100px 20px; text-align: center; color: var(--muted-foreground); }
.empty h3 { font-size: 1rem; font-weight: 600; color: var(--foreground); }
.empty p { font-size: 0.8125rem; max-width: 420px; line-height: 1.6; }
.spinner {
  width: 28px;
  height: 28px;
  border: 3px solid var(--muted);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  flex-shrink: 0;
}
[style*="grid-column"] > .spinner,
.spinner[style*="grid-column"] {
  margin: 60px auto;
}
.spinner:not([style*="grid-column"]) {
  margin: 28px auto;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ============ responsive ============ */
@media (min-width: 640px) {
  .sm\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sm\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sm\:inline { display: inline; }
  .sm\:col-span-2 { grid-column: span 2 / span 2; }
  .sm\:gap-2 { gap: 0.5rem; }
  .sm\:p-4 { padding: 1rem; }
  .sm\:px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
  .sm\:ml-auto { margin-left: auto; }
  .sm\:max-w-none { max-width: none; }
  .posts-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .creators-grid, .tags-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 768px) {
  .md\:block { display: block; }
  .md\:flex { display: flex; }
  .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .md\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .posts-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .creators-grid, .tags-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
  .lg\:grid-cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .posts-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .creators-grid, .tags-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
@media (min-width: 1280px) {
  .xl\:grid-cols-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .posts-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .creators-grid, .tags-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}
@media (min-width: 1536px) {
  .\32xl\:grid-cols-7 { grid-template-columns: repeat(7, minmax(0, 1fr)); }
  .posts-grid { grid-template-columns: repeat(7, minmax(0, 1fr)); }
}

@media (max-width: 767px) {
  .sidebar-gap {
    display: none !important;
    width: 0 !important;
    min-width: 0 !important;
  }
  .starwind-sidebar {
    position: fixed !important;
    left: -100% !important;
    top: 0 !important;
    bottom: 0 !important;
    height: 100vh !important;
    height: 100dvh !important;
    z-index: 200 !important;
    width: 280px !important;
    display: block !important;
    transition: left 0.3s ease !important;
    overflow: hidden !important;
  }
  .starwind-sidebar.mobile-open {
    left: 0 !important;
  }
  .sidebar-container {
    display: flex !important;
    width: 100% !important;
    height: 100% !important;
    left: 0 !important;
    top: 0 !important;
    bottom: 0 !important;
    border-radius: 0 !important;
    margin: 0 !important;
    position: relative !important;
  }
  .sidebar-inner {
    height: 100% !important;
    max-height: 100% !important;
    overflow-y: auto !important;
  }
  .starwind-sidebar-provider {
    display: block !important;
  }
  #app {
    width: 100% !important;
    max-width: 100% !important;
  }
}

/* Mobile menu button */
.mobile-menu-btn {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 3.5rem;
  height: 3.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  cursor: pointer;
  z-index: 150;
}
@media (min-width: 768px) {
  .mobile-menu-btn {
    display: none;
  }
}
.mobile-menu-btn:active {
  transform: scale(0.95);
}

/* Mobile overlay */
.mobile-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 199;
}
.mobile-overlay.show {
  display: block;
}

/* ============ OnlyHaven redesign (main content) ============ */
h1, h2, h3, h4 { font-family: var(--font-display); letter-spacing: -0.02em; font-weight: 700; }
.card-name { font-family: var(--font-display); font-weight: 700; }
.post-title { font-family: var(--font-display); font-weight: 600; }

/* Creator profile banner */
.creator-banner img {
  filter: brightness(0.9);
}
.creator-banner + div h1 {
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Creator profile badge (same as card-badge) */
.creator-badge {
  background: #01adee;
  color: #fff;
  align-self: flex-start;
  border-radius: 4px;
  padding: 0.125rem 0.375rem;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.25;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.creator-badge.patreon { background: #ff424d; }
.creator-badge.fansly { background: #e83e8c; }

/* ============ FuckTok ============ */
.fucktok-setup {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 80vh;
  padding: 2rem 1rem;
  text-align: center;
}
.fucktok-logo {
  width: 5rem;
  height: 5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #ff0050, #00f2ea);
  border-radius: 1.5rem;
  color: white;
  margin-bottom: 1.5rem;
}
.fucktok-title {
  font-size: 2.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, #ff0050, #00f2ea);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
}
.fucktok-subtitle {
  color: var(--muted-foreground);
  font-size: 1rem;
  margin-bottom: 2rem;
}
.fucktok-filters {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
  max-width: 20rem;
}
.fucktok-filter-row {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  text-align: left;
}
.fucktok-filter-row label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--muted-foreground);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.fucktok-filter-row select,
.fucktok-filter-row input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  background: var(--muted);
  color: var(--foreground);
  font-size: 1rem;
}
.fucktok-filter-row select:focus,
.fucktok-filter-row input:focus {
  outline: none;
  border-color: var(--primary);
}
.fucktok-start-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1rem;
  padding: 1rem 2rem;
  background: linear-gradient(135deg, #ff0050, #00f2ea);
  color: white;
  font-size: 1rem;
  font-weight: 700;
  border: none;
  border-radius: 9999px;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}
.fucktok-start-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 24px rgba(255, 0, 80, 0.4);
}
.fucktok-container {
  position: fixed;
  inset: 0;
  background: #000;
  z-index: 100;
  overflow: hidden;
}
.fucktok-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.fucktok-media {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}
.fucktok-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.5rem;
  padding-bottom: max(1.5rem, env(safe-area-inset-bottom));
  background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 100%);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
}
.fucktok-creator {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: white;
  text-decoration: none;
}
.fucktok-avatar {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff0050, #00f2ea);
}
.fucktok-name {
  font-weight: 600;
  font-size: 1rem;
}
.fucktok-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}
.fucktok-action {
  width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.15);
  border: none;
  border-radius: 50%;
  color: white;
  cursor: pointer;
  transition: background 0.2s;
}
.fucktok-action:hover {
  background: rgba(255,255,255,0.25);
}
.fucktok-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  color: white;
  font-size: 0.75rem;
  font-weight: 600;
}
.fucktok-back {
  position: fixed;
  top: max(1rem, env(safe-area-inset-top));
  left: 1rem;
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.5);
  border: none;
  border-radius: 50%;
  color: white;
  cursor: pointer;
  z-index: 101;
}
.fucktok-loading {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
}

main > header {
  background: color-mix(in oklab, var(--background) 78%, transparent);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border-bottom: 1px solid color-mix(in oklab, var(--primary) 20%, var(--border));
}
#breadcrumb li[aria-current="page"] { color: var(--primary); font-weight: 600; }
#breadcrumb a { transition: color 150ms; }



#scrape-progress-fill {
  background:
    repeating-linear-gradient(-45deg, rgb(255 255 255 / 0.14) 0 6px, transparent 6px 12px),
    linear-gradient(90deg, var(--primary), var(--primary-accent));
}

/* gallery breathing room */
#posts-grid, #creator-grid, #creator-dms-grid, #dms-grid { gap: 0.75rem; }
#creators-grid { gap: 0.875rem; }

/* post / DM cards — framed, glow hover */
.cv-cell {
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) - 2px);
  background: var(--muted);
  box-shadow: 0 1px 2px rgb(0 0 0 / 0.3);
  transition: transform 220ms cubic-bezier(0.16, 1, 0.3, 1), box-shadow 220ms, border-color 220ms;
}
.cv-cell::after {
  content: "";
  position: absolute; inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.03);
  pointer-events: none;
}
.cv-cell:hover {
  transform: translate(-2px, -2px);
  border-color: color-mix(in oklab, var(--primary) 70%, transparent);
  box-shadow: 4px 4px 0 color-mix(in oklab, var(--primary) 28%, transparent), 0 16px 30px -16px rgb(0 0 0 / 0.7);
}
.cv-cell .cv-caption {
  background: linear-gradient(to top, rgb(3 11 16 / 0.94), rgb(3 11 16 / 0.5) 50%, transparent);
}
.cv-cell .cv-creator {
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: rgb(255 255 255 / 0.85);
  margin-bottom: 0.125rem;
}

/* creator cards */
.cv-row {
  border-radius: calc(var(--radius) + 4px);
  box-shadow: 0 2px 6px rgb(0 0 0 / 0.35);
}
.cv-row .card-name { letter-spacing: -0.01em; }
.cv-row .card-stats, .cv-row .card-bookmarks { font-variant-numeric: tabular-nums; }

/* service marking — top hairline + colored hard offset */
.cv-cell::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  z-index: 5;
  pointer-events: none;
}
.cv-row::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  z-index: 5;
  pointer-events: none;
}
.cv-cell.svc-onlyfans::before, .cv-row.svc-onlyfans::before { background: #01adee; }
.cv-cell.svc-fansly::before,   .cv-row.svc-fansly::before   { background: #e83e8c; }
.cv-cell.svc-patreon::before,  .cv-row.svc-patreon::before  { background: #ff424d; }

.cv-cell.svc-onlyfans:hover { border-color: #01adee; box-shadow: 4px 4px 0 rgb(1 173 238 / 0.32), 0 16px 30px -16px rgb(0 0 0 / 0.7); }
.cv-cell.svc-fansly:hover   { border-color: #e83e8c; box-shadow: 4px 4px 0 rgb(232 62 140 / 0.32), 0 16px 30px -16px rgb(0 0 0 / 0.7); }
.cv-cell.svc-patreon:hover  { border-color: #ff424d; box-shadow: 4px 4px 0 rgb(255 66 77 / 0.32), 0 16px 30px -16px rgb(0 0 0 / 0.7); }

/* tags */
.tag-cell { border-radius: calc(var(--radius) - 2px); transition: border-color 150ms, transform 150ms, box-shadow 150ms; }
.tag-cell:hover { border-color: var(--primary); transform: translate(-1px, -1px); box-shadow: 2px 2px 0 color-mix(in oklab, var(--primary) 28%, transparent); }
.tag-cell .t-label { font-family: var(--font-display); font-weight: 600; }

/* controls */
input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--primary) 24%, transparent);
}
.input:focus-visible { border-color: var(--primary); box-shadow: 0 0 0 3px color-mix(in oklab, var(--primary) 24%, transparent); }
.btn { transition: all 150ms, transform 100ms; }
.btn:active { transform: translateY(1px); }

/* scrollbar */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: color-mix(in oklab, var(--muted-foreground) 28%, transparent);
  border-radius: 999px; border: 2px solid transparent; background-clip: padding-box;
}
::-webkit-scrollbar-thumb:hover {
  background: color-mix(in oklab, var(--muted-foreground) 45%, transparent);
  border: 2px solid transparent; background-clip: padding-box;
}

/* creator hover preview popup */
.creator-preview {
  position: fixed;
  z-index: 100;
  width: 320px;
  background: #18181b;
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 6px);
  box-shadow: 0 24px 48px -20px rgb(0 0 0 / 0.7), 0 0 0 1px rgb(255 255 255 / 0.04);
  overflow: hidden;
  opacity: 0;
  transform: translateY(6px) scale(0.98);
  pointer-events: none;
  transition: opacity 170ms ease, transform 170ms cubic-bezier(0.16, 1, 0.3, 1);
}
.creator-preview.show { opacity: 1; transform: translateY(0) scale(1); }
.creator-preview .cp-banner {
  position: relative;
  height: 88px;
  background-color: #0e0e11;
  background-size: cover;
  background-position: center;
}
.creator-preview .cp-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgb(0 0 0 / 0.05) 0%, rgb(24 24 27 / 0.92) 100%);
}
.creator-preview .cp-body { position: relative; padding: 0 1rem 0.85rem; margin-top: -22px; }
.creator-preview .cp-head { display: flex; gap: 0.75rem; align-items: flex-end; }
.creator-preview .cp-avatar {
  width: 48px; height: 48px;
  border-radius: calc(var(--radius) + 4px);
  overflow: hidden; background: #0e0e11; flex-shrink: 0;
  box-shadow: 0 0 0 2px rgb(255 255 255 / 0.2);
}
.creator-preview .cp-avatar img { width: 100%; height: 100%; object-fit: cover; }
.creator-preview .cp-avatar.of      { box-shadow: 0 0 0 2px rgb(1 173 238 / 0.9); }
.creator-preview .cp-avatar.fansly  { box-shadow: 0 0 0 2px rgb(232 62 140 / 0.9); }
.creator-preview .cp-avatar.patreon { box-shadow: 0 0 0 2px rgb(255 66 77 / 0.9); }
.creator-preview .cp-title { min-width: 0; flex: 1; padding-bottom: 2px; }
.creator-preview .cp-name {
  font-weight: 700; color: #fff; font-size: 1rem; line-height: 1.2;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.creator-preview .cp-sub { font-size: 0.75rem; color: var(--muted-foreground); margin-top: 2px; }
.creator-preview .cp-badge {
  display: inline-block; font-size: 10px; font-weight: 600; color: #fff;
  border-radius: 4px; padding: 0.125rem 0.375rem; line-height: 1.25;
}
.creator-preview .cp-badge.of      { background: #01adee; }
.creator-preview .cp-badge.fansly  { background: #e83e8c; }
.creator-preview .cp-badge.patreon { background: #ff424d; }
.creator-preview .cp-stats {
  display: flex; flex-wrap: wrap; gap: 0.4rem 0.9rem;
  margin-top: 0.65rem; font-size: 0.75rem; color: var(--muted-foreground);
}
.creator-preview .cp-stats b { color: var(--foreground); font-weight: 600; }
.creator-preview .cp-thumbs {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 4px;
  margin-top: 0.75rem; height: 42px;
}
.creator-preview .cp-thumbs img {
  width: 100%; height: 42px; object-fit: cover; border-radius: 4px; background: #0e0e11;
}