/* ==========================================================================
   NEON GIF ENGINE — output.css (hand-compiled fallback build)
   ==========================================================================
   This stylesheet is a hand-written equivalent of the Tailwind build so the
   project renders perfectly BEFORE your first CLI compile. It covers every
   utility used across the templates, admin views and JS card factory.

   After editing templates, regenerate the canonical build with the
   standalone CLI (no npm/Node needed):

       tailwindcss-windows-x64.exe -i ./assets/css/input.css ^
                                   -o ./assets/css/output.css --minify
   ========================================================================== */

/* ------------------------- Design tokens ------------------------- */
:root {
  --ink-900: #1A1A2E;
  --ink-850: #1A1A2E;
  --ink-800: #12141C;
  --ink-750: #1A1A2E;
  --line:    #26293B;
  --vio:     #E89A3C;
  --cyan:    #E89A3C;
  --primary: #F3F4F6;
  --secondary: #9CA3AF;
  --grad: linear-gradient(90deg, var(--vio), var(--cyan));
  --grad-135: linear-gradient(135deg, var(--vio), var(--cyan));
}

/* ------------------------- Preflight (lite) ------------------------- */
*, ::before, ::after { box-sizing: border-box; border-width: 0; border-style: solid; border-color: var(--line); }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif; }
body { margin: 0; line-height: 1.5; }
h1, h2, h3, p, figure, blockquote, ul, ol { margin: 0; }
ul, ol { list-style: none; padding: 0; }
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; margin: 0; padding: 0; background: none; }
button { cursor: pointer; }
[type="checkbox"] { accent-color: var(--vio); }
table { border-collapse: collapse; width: 100%; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .875em; }
summary { list-style: none; }
[x-cloak] { display: none !important; }

/* ------------------------- Base ------------------------- */
body { background-color: var(--ink-900); color: var(--primary); -webkit-font-smoothing: antialiased; }
::selection { background: rgb(139 92 246 / .35); }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--ink-900); }
::-webkit-scrollbar-thumb { background: var(--ink-750); border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: #232739; }

/* ==========================================================================
   COMPONENTS
   ========================================================================== */

/* Layout shell */
.site-shell { max-width: 80rem; margin-left: auto; margin-right: auto; padding-left: 1rem; padding-right: 1rem; }

/* Glassmorphism header */
.glass {
  background-color: rgb(9 10 15 / .82);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

/* Brand */
.gradient-text {
  background-image: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.logo-mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2rem; height: 2rem; border-radius: .5rem;
  font-size: .875rem; font-weight: 800; color: #fff;
  background-image: var(--grad-135);
}

/* Nav / drawer */
.nav-link {
  padding: .375rem .75rem; border-radius: 9999px;
  font-size: .875rem; font-weight: 500; color: var(--secondary);
  transition: color .15s, background-color .15s; white-space: nowrap;
}
.nav-link:hover { color: #fff; background-color: var(--ink-750); }
.drawer-panel { background-color: var(--ink-850); border-right: 1px solid var(--line); box-shadow: 0 25px 50px -12px rgb(0 0 0 / .5); }
.drawer-link {
  display: block; padding: .625rem .75rem; border-radius: .5rem;
  font-size: .875rem; font-weight: 500; color: var(--secondary);
  transition: color .15s, background-color .15s;
}
.drawer-link:hover { color: #fff; background-color: var(--ink-800); }
.drawer-heading { padding: 1rem .75rem .25rem; font-size: 11px; text-transform: uppercase; letter-spacing: .1em; font-weight: 600; color: rgb(156 163 175 / .7); }
.icon-btn { padding: .5rem; border-radius: .5rem; color: var(--secondary); transition: color .15s, background-color .15s; }
.icon-btn:hover { color: #fff; background-color: var(--ink-800); }

/* Search */
.search-wrap { flex: 1 1 0%; max-width: 28rem; margin-left: auto; }
.search-input { padding-left: 2.25rem; }
.search-ico { position: absolute; left: .75rem; top: 50%; transform: translateY(-50%); color: var(--secondary); pointer-events: none; }
.search-drop {
  position: absolute; z-index: 50; margin-top: .5rem; width: 100%;
  max-height: 24rem; overflow-y: auto; border-radius: .75rem;
  border: 1px solid var(--line); background-color: var(--ink-800);
  box-shadow: 0 25px 50px -12px rgb(0 0 0 / .5);
}
.search-hit { display: flex; align-items: center; gap: .75rem; padding: .5rem .75rem; transition: background-color .15s; }
.search-hit:hover, .search-hit.is-active { background-color: var(--ink-750); }
.search-hit-thumb { width: 3rem; height: 2.25rem; object-fit: cover; border-radius: .375rem; background-color: var(--ink-750); }
.search-hit-title { font-size: .875rem; color: var(--primary); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Forms */
.input {
  width: 100%; border-radius: .5rem; background-color: var(--ink-800);
  border: 1px solid var(--line); padding: .5rem .75rem;
  font-size: .875rem; color: var(--primary); outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.input::placeholder { color: rgb(156 163 175 / .6); }
.input:focus { border-color: var(--vio); box-shadow: 0 0 0 3px rgb(139 92 246 / .3); }
.label { display: block; font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--secondary); margin-bottom: .375rem; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  border-radius: .5rem; padding: .5rem 1rem; font-size: .875rem; font-weight: 600;
  transition: filter .15s, color .15s, border-color .15s, background-color .15s;
  cursor: pointer;
}
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-primary { color: #fff; background-image: var(--grad-135); }
.btn-primary:hover { filter: brightness(1.12); }
.btn-ghost { border: 1px solid var(--line); color: var(--secondary); }
.btn-ghost:hover { color: #fff; border-color: var(--vio); }
.btn-danger { background-color: rgb(239 68 68 / .9); color: #fff; }
.btn-danger:hover { background-color: rgb(239 68 68); }
.btn-sm { padding: .25rem .625rem; font-size: .75rem; border-radius: .375rem; }

/* GIF feed cards */
.feed-grid { display: grid; gap: 1rem; margin-top: 1.5rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 560px) and (max-width: 899.9px) { .feed-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 900px) { .feed-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* Virtual mode: the JS pool takes over with absolute positioning. */
.feed-virtual { position: relative; display: block; }
.feed-sentinel { width: 100%; height: 1px; }

.gif-card {
  border-radius: 1rem; overflow: hidden; background-color: var(--ink-800);
  border: 1px solid rgb(38 41 59 / .7);
  transition: box-shadow .2s, border-color .2s, transform .2s;
}
.gif-card:hover {
  border-color: rgb(139 92 246 / .5);
  transform: translateY(-2px);
  box-shadow: 0 0 24px rgb(139 92 246 / .22), 0 8px 24px rgb(0 0 0 / .45);
}
.card-link { display: block; }
.thumb-wrap { position: relative; width: 100%; overflow: hidden; background-color: var(--ink-750); }
.gif-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.card-title {
  padding: .5rem .75rem .5rem; font-size: 13px; line-height: 20px;
  font-weight: 500; color: var(--primary); white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis;
  height: 48px; /* must match CAPTION_H in virtual-scroll.js */
}

/* Chips over thumbnails */
.chip {
  position: absolute; display: inline-flex; align-items: center; gap: .25rem;
  border-radius: .375rem; padding: .125rem .375rem; font-size: 10px; font-weight: 700;
  color: rgb(255 255 255 / .95); pointer-events: none;
  background: rgb(9 10 15 / .65); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
}
.chip-gif { top: .5rem; left: .5rem; color: var(--cyan); }
.chip-views { top: .5rem; right: .5rem; }

/* Detail (view) page */
.view-layout { display: grid; grid-template-columns: 1fr; gap: 1.5rem; margin-top: 1rem; }
@media (min-width: 1024px) { .view-layout { grid-template-columns: 1fr 300px; } }
.viewer { border-radius: 1rem; overflow: hidden; border: 1px solid var(--line); background-color: var(--ink-800); }
.viewer-stage { width: 100%; max-height: 78vh; }
.viewer-img { position: relative; object-fit: contain; }
.viewer-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; padding: .75rem 1rem; font-size: .875rem; color: var(--secondary); border-top: 1px solid var(--line); }
.view-side > * + * { margin-top: 1rem; }
.side-block { border-radius: 1rem; border: 1px solid var(--line); background-color: var(--ink-800); padding: 1rem; }
.side-heading { font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; color: var(--secondary); margin-bottom: .75rem; }
.cat-chip {
  display: inline-flex; align-items: center; border-radius: 9999px;
  border: 1px solid var(--line); padding: .25rem .75rem;
  font-size: .75rem; font-weight: 600; color: var(--secondary);
  transition: color .15s, border-color .15s;
}
.cat-chip:hover { color: #fff; border-color: var(--vio); }
.section-heading { font-size: 1.125rem; font-weight: 700; margin-top: 2.5rem; margin-bottom: .25rem; }
.related-grid { margin-top: 1rem; }

/* Hero / headers / breadcrumbs */
.hero { padding: 2rem 0; border-bottom: 1px solid rgb(38 41 59 / .6); }
.cat-header { margin-top: 1rem; }
.breadcrumbs { display: flex; align-items: center; gap: .5rem; font-size: .875rem; color: var(--secondary); padding-top: 1rem; }
.breadcrumbs a { transition: color .15s; }
.breadcrumbs a:hover { color: #fff; }
.bc-sep { color: rgb(156 163 175 / .5); }
.prose-dark p { line-height: 1.625; }
.prose-dark h2, .prose-dark h3, .prose-dark h4 { color: var(--primary); font-weight: 700; margin-top: 1rem; }
.prose-dark a { color: #22d3ee; }
.prose-dark a:hover { text-decoration: underline; }
.empty-state { grid-column: 1 / -1; text-align: center; padding: 4rem 0; }

/* Feed status */
.feed-status { text-align: center; padding: 2rem 0; font-size: .875rem; color: var(--secondary); }

/* ------------------------- AD UNITS ------------------------- */
.ad-slot {
  position: relative; border-radius: 1rem;
  border: 1px solid rgb(38 41 59 / .7); background-color: rgb(18 20 28 / .6);
  overflow: hidden; contain: content;   /* isolation: third-party layout damage stops here */
}
.ad-body { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; padding: .5rem; }
.ad-badge {
  position: absolute; top: .375rem; right: .5rem; z-index: 10;
  border-radius: .25rem; padding: .125rem .375rem;
  font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em;
  color: rgb(156 163 175 / .9); border: 1px solid rgb(38 41 59 / .8);
  background: rgb(9 10 15 / .7);
}
.ad-responsive { display: block; }
.ad-hidden { display: none !important; }
.mobile-only { display: block; }
.desktop-only { display: none; }
@media (min-width: 768px) {
  .mobile-only { display: none; }
  .desktop-only { display: block; }
}
.ad-card { height: 100%; }

/* Sticky bottom anchor */
.sticky-anchor { position: fixed; bottom: 0; left: 0; right: 0; z-index: 40; margin-left: auto; margin-right: auto; max-width: 48rem; padding: 0 .75rem .75rem; }
.sticky-anchor .ad-slot { box-shadow: 0 25px 50px -12px rgb(0 0 0 / .5); background-color: rgb(11 12 16 / .95); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.sticky-close {
  position: absolute; top: -1.75rem; right: .5rem; z-index: 20;
  width: 1.5rem; height: 1.5rem; border-radius: .375rem; font-size: .75rem;
  color: rgb(255 255 255 / .8); background-color: var(--ink-800); border: 1px solid var(--line);
}
.sticky-close:hover { color: #fff; }

/* ------------------------- ADMIN SHELL ------------------------- */
.admin-side { position: fixed; top: 0; bottom: 0; left: 0; width: 15rem; background-color: var(--ink-850); border-right: 1px solid var(--line); display: none; z-index: 40; flex-direction: column; padding: 1rem 0; }
@media (min-width: 1024px) { .admin-side { display: flex; } }
.admin-side-link {
  display: flex; align-items: center; gap: .625rem;
  margin-left: .75rem; margin-right: .75rem; padding: .625rem 1rem;
  border-radius: .5rem; font-size: .875rem; font-weight: 500; color: var(--secondary);
  transition: color .15s, background-color .15s;
}
.admin-side-link:hover { color: #fff; background-color: var(--ink-800); }
.admin-side-link.is-active { color: #fff; background-color: var(--ink-800); }
.admin-topbar { height: 3.5rem; display: flex; align-items: center; gap: .75rem; padding: 0 1rem; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 30; }
@media (min-width: 1024px) { .admin-topbar { padding: 0 2rem; } }
.admin-main { min-height: 100vh; display: flex; flex-direction: column; }
@media (min-width: 1024px) { .admin-main { padding-left: 15rem; } }
.card-panel { border-radius: 1rem; border: 1px solid var(--line); background-color: var(--ink-800); padding: 1.25rem; }
.stat-card { border-radius: 1rem; border: 1px solid var(--line); background-color: var(--ink-800); padding: 1rem; }
.stat-num { font-size: 1.5rem; font-weight: 800; }
.table-row { border-bottom: 1px solid rgb(38 41 59 / .6); transition: background-color .15s; }
.table-row:hover { background-color: rgb(24 26 36 / .5); }
.flash { border-radius: .5rem; border: 1px solid; padding: .75rem 1rem; font-size: .875rem; margin-bottom: 1rem; }
.flash-success { border-color: rgb(16 185 129 / .4); background-color: rgb(16 185 129 / .1); color: #6ee7b7; }
.flash-error { border-color: rgb(239 68 68 / .4); background-color: rgb(239 68 68 / .1); color: #fca5a5; }
.flash-info { border-color: rgb(139 92 246 / .4); background-color: rgb(139 92 246 / .1); color: #c4b5fd; }

/* ==========================================================================
   UTILITIES (subset actually used by the templates)
   ========================================================================== */

/* Display */
.block { display: block; } .inline-block { display: inline-block; } .inline { display: inline; }
.hidden { display: none; } .grid { display: grid; } .flex { display: flex; }
@media (min-width: 1024px) { .lg\:flex { display: flex; } .lg\:hidden { display: none; } .lg\:block { display: block; } }

/* Position */
.relative { position: relative; } .absolute { position: absolute; } .fixed { position: fixed; } .sticky { position: sticky; }
.top-0 { top: 0; } .right-0 { right: 0; } .left-0 { left: 0; }
.inset-0 { inset: 0; } .inset-x-0 { left: 0; right: 0; } .inset-y-0 { top: 0; bottom: 0; }
.z-30 { z-index: 30; } .z-40 { z-index: 40; } .z-50 { z-index: 50; }
.z-\[60\] { z-index: 60; }

/* Flex / grid plumbing */
.flex-1 { flex: 1 1 0%; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.shrink-0 { flex-shrink: 0; }
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 640px) { .sm\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) {
  .lg\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lg\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .lg\:grid-cols-\[1fr_1fr\] { grid-template-columns: 1fr 1fr; }
  .lg\:grid-cols-\[1fr_320px\] { grid-template-columns: 1fr 320px; }
  .lg\:px-8 { padding-left: 2rem; padding-right: 2rem; }
}
.col-span-2 { grid-column: span 2 / span 2; }

/* Gap */
.gap-1 { gap: .25rem; } .gap-2 { gap: .5rem; } .gap-3 { gap: .75rem; } .gap-4 { gap: 1rem; } .gap-6 { gap: 1.5rem; }
.gap-x-6 { column-gap: 1.5rem; } .gap-y-1 { row-gap: .25rem; } .gap-y-2 { row-gap: .5rem; }

/* Spacing */
.p-2 { padding: .5rem; } .p-3 { padding: .75rem; } .p-4 { padding: 1rem; }
.px-3 { padding-left: .75rem; padding-right: .75rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.py-1 { padding-top: .25rem; padding-bottom: .25rem; }
.py-1\.5 { padding-top: .375rem; padding-bottom: .375rem; }
.py-2 { padding-top: .5rem; padding-bottom: .5rem; }
.py-2\.5 { padding-top: .625rem; padding-bottom: .625rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-6 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }
.pt-2 { padding-top: .5rem; } .pt-4 { padding-top: 1rem; } .pt-6 { padding-top: 1.5rem; }
.pt-16 { padding-top: 4rem; } .pt-24 { padding-top: 6rem; }
.pb-1 { padding-bottom: .25rem; } .pb-2 { padding-bottom: .5rem; } .pb-24 { padding-bottom: 6rem; }
.pr-1 { padding-right: .25rem; } .pr-3 { padding-right: .75rem; }
.pl-9 { padding-left: 2.25rem; }
.mt-0\.5 { margin-top: .125rem; }
.mt-1 { margin-top: .25rem; } .mt-2 { margin-top: .5rem; } .mt-3 { margin-top: .75rem; }
.mt-4 { margin-top: 1rem; } .mt-6 { margin-top: 1.5rem; } .mt-8 { margin-top: 2rem; }
.mb-1 { margin-bottom: .25rem; } .mb-2 { margin-bottom: .5rem; } .mb-3 { margin-bottom: .75rem; }
.mb-4 { margin-bottom: 1rem; } .mb-6 { margin-bottom: 1.5rem; } .mb-8 { margin-bottom: 2rem; }
.my-3 { margin-top: .75rem; margin-bottom: .75rem; }
.my-4 { margin-top: 1rem; margin-bottom: 1rem; }
.mx-auto { margin-left: auto; margin-right: auto; }
.ml-auto { margin-left: auto; }
.mb-0\.5 { margin-bottom: .125rem; }

/* Sizing */
.w-full { width: 100%; } .h-16 { height: 4rem; } .h-full { height: 100%; }
.w-44 { width: 11rem; } .w-56 { width: 14rem; } .w-72 { width: 18rem; }
.min-h-screen { min-height: 100vh; }
.max-w-sm { max-width: 24rem; } .max-w-xs { max-width: 20rem; }
.max-w-2xl { max-width: 42rem; } .max-w-md { max-width: 28rem; }
.max-w-3xl { max-width: 48rem; }
.max-w-56 { max-width: 14rem; }
.max-h-56 { max-height: 14rem; }
.max-h-\[78vh\] { max-height: 78vh; }
.max-w-\[85vw\] { max-width: 85vw; }
.min-w-56 { min-width: 14rem; }

/* Typography */
.text-xs { font-size: .75rem; line-height: 1rem; }
.text-sm { font-size: .875rem; line-height: 1.25rem; }
.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; }
.text-7xl { font-size: 4.5rem; line-height: 1; }
@media (min-width: 768px) { .md\:text-3xl { font-size: 1.875rem; line-height: 2.25rem; } }
.font-medium { font-weight: 500; } .font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; } .font-extrabold { font-weight: 800; }
.font-mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.text-center { text-align: center; }
.text-left { text-align: left; } .text-right { text-align: right; }
.uppercase { text-transform: uppercase; }
.tracking-tight { letter-spacing: -.025em; }
.tracking-wider { letter-spacing: .05em; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.leading-relaxed { line-height: 1.625; }
.list-disc { list-style-type: disc; }
.list-inside { list-style-position: inside; }
.list-none { list-style: none; }

/* Color utilities (palette-scoped) */
.text-primary { color: var(--primary); }
.text-secondary { color: var(--secondary); }
.text-white { color: #fff; }
.text-emerald-300 { color: #6ee7b7; }
.text-red-200 { color: #fecaca; }
.text-red-300 { color: #fca5a5; }
.text-red-400 { color: #f87171; }
.text-cyan-400 { color: #22d3ee; }
.text-violet-300 { color: #c4b5fd; }
.bg-ink-750 { background-color: var(--ink-750); }
.bg-ink-800 { background-color: var(--ink-800); }
.bg-ink-850 { background-color: var(--ink-850); }
.bg-ink-900 { background-color: var(--ink-900); }
.bg-black\/70 { background-color: rgb(0 0 0 / .7); }
.border-line { border-color: var(--line); }
.border { border-width: 1px; }
.border-t { border-top-width: 1px; }
.border-b { border-bottom-width: 1px; }
.border-r { border-right-width: 1px; }

/* Effects */
.rounded-lg { border-radius: .5rem; } .rounded-xl { border-radius: .75rem; }
.rounded-2xl { border-radius: 1rem; } .rounded-md { border-radius: .375rem; }
.rounded-full { border-radius: 9999px; }
.shadow-2xl { box-shadow: 0 25px 50px -12px rgb(0 0 0 / .5); }
.backdrop-blur-sm { -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.overflow-hidden { overflow: hidden; }
.overflow-x-auto { overflow-x: auto; }
.overflow-y-auto { overflow-y: auto; }
.whitespace-nowrap { white-space: nowrap; }
.object-cover { object-fit: cover; }
.align-top { vertical-align: top; }
.cursor-pointer { cursor: pointer; }
.antialiased { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
.divide-y > * + * { border-top-width: 1px; border-top-color: rgb(38 41 59 / .6); }
.w-8 { width: 2rem; } .h-8 { height: 2rem; } .h-9 { height: 2.25rem; } .w-12 { width: 3rem; }
.-translate-x-full { transform: translateX(-100%); }
.translate-x-0 { transform: translateX(0); }
.-translate-y-0\.5 { transform: translateY(-2px); }
.transition { transition-property: color, background-color, border-color, opacity, transform, box-shadow, filter; transition-duration: .15s; }
.transition-colors { transition-property: color, background-color, border-color; transition-duration: .15s; }
.duration-200 { transition-duration: .2s; }
.ease-out { transition-timing-function: cubic-bezier(0, 0, .2, 1); }
.opacity-50 { opacity: .5; }
.pointer-events-none { pointer-events: none; }

/* Vertical rhythm (space-y-N) — used across admin forms & panels */
.space-y-1 > * + * { margin-top: .25rem; }
.space-y-1\.5 > * + * { margin-top: .375rem; }
.space-y-2 > * + * { margin-top: .5rem; }
.space-y-3 > * + * { margin-top: .75rem; }
.space-y-4 > * + * { margin-top: 1rem; }
.space-y-5 > * + * { margin-top: 1.25rem; }

.hover\:text-red-200:hover { color: #fecaca; }

/* Focus rings */
.focus\:ring-2:focus { box-shadow: 0 0 0 3px rgb(139 92 246 / .3); }

/* --- end of output.css --- */
.feed-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 16px;
}

.cookie-banner {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 9999;
  padding: 1rem;
  background: rgba(15, 15, 18, 0.92);
  backdrop-filter: blur(12px);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.45);
  color: #e7e7ea;
  font-family:
    system-ui,
    -apple-system,
    'Segoe UI',
    sans-serif;
  animation: cookie-slide-up 0.28s ease-out;
}

.cookie-banner[hidden] {
  display: none;
}

@keyframes cookie-slide-up {
  from {
    transform: translateY(100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.cookie-banner__content {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.cookie-banner__text {
  flex: 1 1 320px;
  min-width: 0;
}

.cookie-banner__title {
  margin: 0 0 0.25rem;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: #fff;
}

.cookie-banner__desc {
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.5;
  color: #a0a0ab;
}

.cookie-banner__link {
  color: #8ab4ff;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cookie-banner__actions {
  display: flex;
  gap: 0.5rem;
  flex-shrink: 0;
}

.cookie-btn {
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.6rem 1.15rem;
  border-radius: 8px;
  cursor: pointer;
  transition:
    background 0.15s ease,
    border-color 0.15s ease,
    transform 0.1s ease;
}

.cookie-btn:active {
  transform: translateY(1px);
}

.cookie-btn:focus-visible {
  outline: 2px solid #8ab4ff;
  outline-offset: 2px;
}

.cookie-btn--ghost {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #c8c8d0;
}

.cookie-btn--ghost:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.3);
}

.cookie-btn--primary {
  background: #f4f4f6;
  border: 1px solid #f4f4f6;
  color: #17171b;
}

.cookie-btn--primary:hover {
  background: #fff;
}

@media (max-width: 560px) {
  .cookie-banner__actions {
    width: 100%;
  }

  .cookie-btn {
    flex: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cookie-banner {
    animation: none;
  }
}