/* =========================================================================
   NovelArc theme stylesheet
   Ported 1:1 from src/app/globals.css (Next.js version)
   Plus hand-rolled utilities to match Tailwind classes used in templates.
   ========================================================================= */

/* Google Font import fallback (also enqueued via functions.php) */
@import url('https://fonts.googleapis.com/css2?family=Geist:wght@400;500;600;700;800;900&display=swap');

/* ---------------------------------------------------------------------- */
/*  CSS Variables (color tokens)                                          */
/* ---------------------------------------------------------------------- */
:root {
	--radius: 0.5rem;
	--background: oklch(0.99 0.004 15);
	--foreground: oklch(0.18 0.02 15);
	--card: oklch(1 0 0);
	--card-foreground: oklch(0.18 0.02 15);
	--popover: oklch(1 0 0);
	--popover-foreground: oklch(0.18 0.02 15);
	--primary: oklch(0.62 0.23 12);
	--primary-foreground: oklch(0.98 0.01 12);
	--secondary: oklch(0.96 0.01 15);
	--secondary-foreground: oklch(0.25 0.02 15);
	--muted: oklch(0.96 0.006 15);
	--muted-foreground: oklch(0.52 0.02 15);
	--accent: oklch(0.95 0.02 12);
	--accent-foreground: oklch(0.3 0.1 12);
	--destructive: oklch(0.58 0.24 27);
	--destructive-foreground: oklch(0.98 0.01 12);
	--border: oklch(0.9 0.01 15);
	--input: oklch(0.9 0.01 15);
	--ring: oklch(0.62 0.23 12);
	--chart-1: oklch(0.62 0.23 12);
	--chart-2: oklch(0.7 0.18 160);
	--chart-3: oklch(0.75 0.18 70);
	--chart-4: oklch(0.6 0.22 300);
	--chart-5: oklch(0.7 0.18 200);
	--sidebar: oklch(0.985 0.004 15);
	--sidebar-foreground: oklch(0.18 0.02 15);
	--sidebar-primary: oklch(0.62 0.23 12);
	--sidebar-primary-foreground: oklch(0.98 0.01 12);
	--sidebar-accent: oklch(0.95 0.02 12);
	--sidebar-accent-foreground: oklch(0.3 0.1 12);
	--sidebar-border: oklch(0.9 0.01 15);
	--sidebar-ring: oklch(0.62 0.23 12);
}

/* Dark mode */
.dark {
	--background: oklch(0.16 0.012 15);
	--foreground: oklch(0.96 0.005 15);
	--card: oklch(0.2 0.014 15);
	--card-foreground: oklch(0.96 0.005 15);
	--popover: oklch(0.2 0.014 15);
	--popover-foreground: oklch(0.96 0.005 15);
	--primary: oklch(0.68 0.22 12);
	--primary-foreground: oklch(0.16 0.02 12);
	--secondary: oklch(0.26 0.014 15);
	--secondary-foreground: oklch(0.96 0.005 15);
	--muted: oklch(0.26 0.014 15);
	--muted-foreground: oklch(0.7 0.02 15);
	--accent: oklch(0.3 0.06 12);
	--accent-foreground: oklch(0.96 0.005 15);
	--destructive: oklch(0.7 0.19 22);
	--destructive-foreground: oklch(0.98 0.01 12);
	--border: oklch(1 0 0 / 10%);
	--input: oklch(1 0 0 / 12%);
	--ring: oklch(0.68 0.22 12);
	--chart-1: oklch(0.68 0.22 12);
	--chart-2: oklch(0.7 0.18 160);
	--chart-3: oklch(0.75 0.18 70);
	--chart-4: oklch(0.65 0.22 300);
	--chart-5: oklch(0.7 0.18 200);
	--sidebar: oklch(0.2 0.014 15);
	--sidebar-foreground: oklch(0.96 0.005 15);
	--sidebar-primary: oklch(0.68 0.22 12);
	--sidebar-primary-foreground: oklch(0.16 0.02 12);
	--sidebar-accent: oklch(0.3 0.06 12);
	--sidebar-accent-foreground: oklch(0.96 0.005 15);
	--sidebar-border: oklch(1 0 0 / 10%);
	--sidebar-ring: oklch(0.68 0.22 12);
}

/* ---------------------------------------------------------------------- */
/*  Color theme variants                                                  */
/* ---------------------------------------------------------------------- */
[data-color="rose"] {
	--primary: oklch(0.62 0.23 12);
	--primary-foreground: oklch(0.98 0.01 12);
	--ring: oklch(0.62 0.23 12);
	--accent: oklch(0.95 0.02 12);
	--accent-foreground: oklch(0.3 0.1 12);
	--sidebar-primary: oklch(0.62 0.23 12);
	--chart-1: oklch(0.62 0.23 12);
}
.dark[data-color="rose"] {
	--primary: oklch(0.68 0.22 12);
	--primary-foreground: oklch(0.16 0.02 12);
	--ring: oklch(0.68 0.22 12);
	--accent: oklch(0.3 0.06 12);
	--sidebar-primary: oklch(0.68 0.22 12);
	--chart-1: oklch(0.68 0.22 12);
}

[data-color="emerald"] {
	--primary: oklch(0.6 0.13 160);
	--primary-foreground: oklch(0.98 0.02 160);
	--ring: oklch(0.6 0.13 160);
	--accent: oklch(0.95 0.03 160);
	--accent-foreground: oklch(0.28 0.06 160);
	--sidebar-primary: oklch(0.6 0.13 160);
	--chart-1: oklch(0.6 0.13 160);
}
.dark[data-color="emerald"] {
	--primary: oklch(0.7 0.15 160);
	--primary-foreground: oklch(0.16 0.03 160);
	--ring: oklch(0.7 0.15 160);
	--accent: oklch(0.3 0.05 160);
	--sidebar-primary: oklch(0.7 0.15 160);
	--chart-1: oklch(0.7 0.15 160);
}

[data-color="amber"] {
	--primary: oklch(0.7 0.16 70);
	--primary-foreground: oklch(0.18 0.03 70);
	--ring: oklch(0.7 0.16 70);
	--accent: oklch(0.95 0.04 70);
	--accent-foreground: oklch(0.3 0.08 70);
	--sidebar-primary: oklch(0.7 0.16 70);
	--chart-1: oklch(0.7 0.16 70);
}
.dark[data-color="amber"] {
	--primary: oklch(0.78 0.16 70);
	--primary-foreground: oklch(0.18 0.03 70);
	--ring: oklch(0.78 0.16 70);
	--accent: oklch(0.32 0.06 70);
	--sidebar-primary: oklch(0.78 0.16 70);
	--chart-1: oklch(0.78 0.16 70);
}

[data-color="violet"] {
	--primary: oklch(0.58 0.22 300);
	--primary-foreground: oklch(0.98 0.01 300);
	--ring: oklch(0.58 0.22 300);
	--accent: oklch(0.95 0.03 300);
	--accent-foreground: oklch(0.3 0.1 300);
	--sidebar-primary: oklch(0.58 0.22 300);
	--chart-1: oklch(0.58 0.22 300);
}
.dark[data-color="violet"] {
	--primary: oklch(0.66 0.22 300);
	--primary-foreground: oklch(0.16 0.03 300);
	--ring: oklch(0.66 0.22 300);
	--accent: oklch(0.32 0.07 300);
	--sidebar-primary: oklch(0.66 0.22 300);
	--chart-1: oklch(0.66 0.22 300);
}

[data-color="teal"] {
	--primary: oklch(0.6 0.11 200);
	--primary-foreground: oklch(0.98 0.02 200);
	--ring: oklch(0.6 0.11 200);
	--accent: oklch(0.95 0.03 200);
	--accent-foreground: oklch(0.28 0.05 200);
	--sidebar-primary: oklch(0.6 0.11 200);
	--chart-1: oklch(0.6 0.11 200);
}
.dark[data-color="teal"] {
	--primary: oklch(0.7 0.12 200);
	--primary-foreground: oklch(0.16 0.03 200);
	--ring: oklch(0.7 0.12 200);
	--accent: oklch(0.32 0.06 200);
	--sidebar-primary: oklch(0.7 0.12 200);
	--chart-1: oklch(0.7 0.12 200);
}

/* ---------------------------------------------------------------------- */
/*  Reset & base                                                          */
/* ---------------------------------------------------------------------- */
*, *::before, *::after {
	box-sizing: border-box;
	border-color: var(--border);
	outline-color: color-mix(in oklch, var(--ring) 50%, transparent);
}

html {
	scroll-behavior: smooth;
	-webkit-text-size-adjust: 100%;
}

body {
	margin: 0;
	background: var(--background);
	color: var(--foreground);
	font-family: 'Geist', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
	font-size: 14px;
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	min-height: 100vh;
}

a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: none; padding: 0; cursor: pointer; }
input, textarea, select { font: inherit; color: inherit; }
ul, ol { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4, h5, h6 { margin: 0; font-weight: 700; }

/* ---------------------------------------------------------------------- */
/*  Utility classes (mirror Tailwind usage)                              */
/* ---------------------------------------------------------------------- */
.mx-auto { margin-inline: auto; }
.max-w-7xl { max-width: 80rem; }
.max-w-6xl { max-width: 72rem; }
.max-w-5xl { max-width: 64rem; }
.max-w-4xl { max-width: 56rem; }
.max-w-3xl { max-width: 48rem; }
.max-w-2xl { max-width: 42rem; }
.max-w-xl { max-width: 36rem; }
.max-w-md { max-width: 28rem; }
.max-w-sm { max-width: 24rem; }
.max-w-xs { max-width: 20rem; }

.w-full { width: 100%; }
.min-w-0 { min-width: 0; }
.h-full { height: 100%; }
.w-fit { width: fit-content; }
.w-9 { width: 2.25rem; }
.h-9 { height: 2.25rem; }
.h-16 { height: 4rem; }
.h-10 { height: 2.5rem; }
.h-8 { height: 2rem; }
.h-7 { height: 1.75rem; }

.flex { display: flex; }
.inline-flex { display: inline-flex; }
.grid { display: grid; }
.block { display: block; }
.inline-block { display: inline-block; }
.hidden { display: none; }
.contents { display: contents; }

.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.flex-1 { flex: 1 1 0%; }
.shrink-0 { flex-shrink: 0; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-end { justify-content: 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-2\.5 { gap: 0.625rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-5 { gap: 1.25rem; }
.gap-6 { gap: 1.5rem; }

.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }
.sticky { position: sticky; }
.top-0 { top: 0; }
.top-16 { top: 4rem; }
.top-20 { top: 5rem; }
.bottom-0 { bottom: 0; }
.left-0 { left: 0; }
.right-0 { right: 0; }
.inset-0 { inset: 0; }
.inset-x-0 { inset-inline: 0; }
.-left-2 { left: -0.5rem; }
.-right-4 { right: -1rem; }
.-top-4 { top: -1rem; }
.-bottom-4 { bottom: -1rem; }
.-bottom-10 { bottom: -2.5rem; }
.-left-10 { left: -2.5rem; }
.z-10 { z-index: 10; }
.z-20 { z-index: 20; }
.z-30 { z-index: 30; }
.z-40 { z-index: 40; }
.z-50 { z-index: 50; }

.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; }
.p-5 { padding: 1.25rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }
.px-1 { padding-inline: 0.25rem; }
.px-1\.5 { padding-inline: 0.375rem; }
.px-2 { padding-inline: 0.5rem; }
.px-3 { padding-inline: 0.75rem; }
.px-3\.5 { padding-inline: 0.875rem; }
.px-4 { padding-inline: 1rem; }
.px-5 { padding-inline: 1.25rem; }
.px-6 { padding-inline: 1.5rem; }
.py-0\.5 { padding-block: 0.125rem; }
.py-1 { padding-block: 0.25rem; }
.py-1\.5 { padding-block: 0.375rem; }
.py-2 { padding-block: 0.5rem; }
.py-2\.5 { padding-block: 0.625rem; }
.py-3 { padding-block: 0.75rem; }
.py-4 { padding-block: 1rem; }
.py-5 { padding-block: 1.25rem; }
.py-6 { padding-block: 1.5rem; }
.py-8 { padding-block: 2rem; }
.pt-3 { padding-top: 0.75rem; }
.pb-2 { padding-bottom: 0.5rem; }
.pb-2\.5 { padding-bottom: 0.625rem; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-1\.5 { margin-bottom: 0.375rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-2\.5 { margin-bottom: 0.625rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-5 { margin-bottom: 1.25rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mt-1 { margin-top: 0.25rem; }
.mt-1\.5 { margin-top: 0.375rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mt-5 { margin-top: 1.25rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-auto { margin-top: auto; }
.ml-auto { margin-left: auto; }
.ml-0\.5 { margin-left: 0.125rem; }
.ml-2 { margin-left: 0.5rem; }

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.text-justify { text-align: justify; }

.text-\[0\.55rem\] { font-size: 0.55rem; }
.text-\[0\.6rem\] { font-size: 0.6rem; }
.text-\[0\.65rem\] { font-size: 0.65rem; }
.text-\[0\.7rem\] { font-size: 0.7rem; }
.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-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-3xl { font-size: 1.875rem; line-height: 2.25rem; }
.text-4xl { font-size: 2.25rem; line-height: 2.5rem; }

.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.font-black { font-weight: 900; }

.tracking-tight { letter-spacing: -0.025em; }
.tracking-widest { letter-spacing: 0.1em; }
.uppercase { text-transform: uppercase; }
.italic { font-style: italic; }

.leading-snug { line-height: 1.375; }
.leading-tight { line-height: 1.25; }
.leading-relaxed { line-height: 1.625; }

.rounded { border-radius: 0.25rem; }
.rounded-md { border-radius: calc(var(--radius) - 2px); }
.rounded-lg { border-radius: var(--radius); }
.rounded-xl { border-radius: calc(var(--radius) + 4px); }
.rounded-2xl { border-radius: 1rem; }
.rounded-full { border-radius: 9999px; }
.rounded-t { border-top-left-radius: var(--radius); border-top-right-radius: var(--radius); }
.rounded-b { border-bottom-left-radius: var(--radius); border-bottom-right-radius: var(--radius); }

.border { border-width: 1px; border-style: solid; border-color: var(--border); }
.border-0 { border: 0; }
.border-t { border-top-width: 1px; border-style: solid; border-color: var(--border); }
.border-b { border-bottom-width: 1px; border-style: solid; border-color: var(--border); }
.border-l { border-left-width: 4px; border-style: solid; border-color: var(--primary); }
.border-dashed { border-style: dashed; }
.border-border { border-color: var(--border); }
.border-border\/70 { border-color: color-mix(in oklch, var(--border) 70%, transparent); }
.border-primary { border-color: var(--primary); }
.border-primary\/40 { border-color: color-mix(in oklch, var(--primary) 40%, transparent); }

.bg-background { background-color: var(--background); }
.bg-background\/90 { background-color: color-mix(in oklch, var(--background) 90%, transparent); }
.bg-background\/70 { background-color: color-mix(in oklch, var(--background) 70%, transparent); }
.bg-card { background-color: var(--card); }
.bg-card\/40 { background-color: color-mix(in oklch, var(--card) 40%, transparent); }
.bg-card\/60 { background-color: color-mix(in oklch, var(--card) 60%, transparent); }
.bg-muted { background-color: var(--muted); }
.bg-muted\/30 { background-color: color-mix(in oklch, var(--muted) 30%, transparent); }
.bg-muted\/60 { background-color: color-mix(in oklch, var(--muted) 60%, transparent); }
.bg-muted\/80 { background-color: color-mix(in oklch, var(--muted) 80%, transparent); }
.bg-primary { background-color: var(--primary); }
.bg-primary\/5 { background-color: color-mix(in oklch, var(--primary) 5%, transparent); }
.bg-primary\/10 { background-color: color-mix(in oklch, var(--primary) 10%, transparent); }
.bg-primary\/15 { background-color: color-mix(in oklch, var(--primary) 15%, transparent); }
.bg-primary\/20 { background-color: color-mix(in oklch, var(--primary) 20%, transparent); }
.bg-secondary { background-color: var(--secondary); }
.bg-secondary\/50 { background-color: color-mix(in oklch, var(--secondary) 50%, transparent); }
.bg-accent { background-color: var(--accent); }
.bg-accent\/60 { background-color: color-mix(in oklch, var(--accent) 60%, transparent); }
.bg-destructive { background-color: var(--destructive); }
.bg-black\/70 { background-color: rgba(0,0,0,0.7); }
.bg-black\/50 { background-color: rgba(0,0,0,0.5); }
.bg-zinc-900 { background-color: #18181b; }
.bg-emerald-600\/90 { background-color: rgba(5,150,105,0.9); }
.bg-amber-500\/90 { background-color: rgba(245,158,11,0.9); }
.bg-amber-500\/10 { background-color: rgba(245,158,11,0.1); }
.bg-emerald-500\/10 { background-color: rgba(16,185,129,0.1); }
.bg-sky-500\/10 { background-color: rgba(14,165,233,0.1); }
.bg-violet-500\/10 { background-color: rgba(139,92,246,0.1); }
.bg-rose-500\/10 { background-color: rgba(244,63,94,0.1); }

.text-primary { color: var(--primary); }
.text-primary-foreground { color: var(--primary-foreground); }
.text-foreground { color: var(--foreground); }
.text-muted-foreground { color: var(--muted-foreground); }
.text-secondary-foreground { color: var(--secondary-foreground); }
.text-accent-foreground { color: var(--accent-foreground); }
.text-destructive { color: var(--destructive); }
.text-white { color: #fff; }
.text-amber-300 { color: #fcd34d; }
.text-amber-400 { color: #fbbf24; }
.text-amber-500 { color: #f59e0b; }
.text-emerald-500 { color: #10b981; }
.text-emerald-600 { color: #059669; }
.text-sky-500 { color: #0ea5e9; }
.text-violet-500 { color: #8b5cf6; }
.text-rose-500 { color: #f43f5e; }
.text-zinc-400 { color: #a1a1aa; }
.text-zinc-500 { color: #71717a; }
.text-zinc-600 { color: #52525b; }
.text-\[\#5865F2\] { color: #5865F2; }

.fill-amber-300 { fill: #fcd34d; }
.fill-amber-500 { fill: #f59e0b; }

.backdrop-blur { backdrop-filter: blur(8px); }
.backdrop-blur-sm { backdrop-filter: blur(4px); }
.backdrop-blur-md { backdrop-filter: blur(12px); }

.shadow-sm { box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05); }
.shadow { box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1); }
.shadow-md { box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1); }
.shadow-lg { box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1); }
.shadow-primary\/10 { box-shadow: 0 4px 6px -1px color-mix(in oklch, var(--primary) 10%, transparent); }
.shadow-primary\/20 { box-shadow: 0 4px 6px -1px color-mix(in oklch, var(--primary) 20%, transparent); }
.shadow-primary\/30 { box-shadow: 0 4px 6px -1px color-mix(in oklch, var(--primary) 30%, transparent); }

.transition { transition: all 0.15s; }
.transition-all { transition: all 0.15s; }
.transition-colors { transition: color 0.15s, background-color 0.15s, border-color 0.15s; }
.transition-opacity { transition: opacity 0.15s; }
.transition-transform { transition: transform 0.15s; }
.duration-200 { transition-duration: 200ms; }
.duration-300 { transition-duration: 300ms; }
.duration-500 { transition-duration: 500ms; }

.hover\:bg-accent:hover { background-color: var(--accent); }
.hover\:bg-accent\/60:hover { background-color: color-mix(in oklch, var(--accent) 60%, transparent); }
.hover\:bg-accent\/80:hover { background-color: color-mix(in oklch, var(--accent) 80%, transparent); }
.hover\:bg-primary:hover { background-color: var(--primary); }
.hover\:bg-secondary:hover { background-color: var(--secondary); }
.hover\:bg-muted:hover { background-color: var(--muted); }
.hover\:bg-background:hover { background-color: var(--background); }
.hover\:bg-destructive:hover { background-color: var(--destructive); }
.hover\:text-foreground:hover { color: var(--foreground); }
.hover\:text-primary:hover { color: var(--primary); }
.hover\:text-primary-foreground:hover { color: var(--primary-foreground); }
.hover\:text-white:hover { color: #fff; }
.hover\:border-primary\/40:hover { border-color: color-mix(in oklch, var(--primary) 40%, transparent); }
.hover\:shadow-md:hover { box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1); }
.hover\:shadow-lg:hover { box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1); }
.hover\:shadow-primary\/10:hover { box-shadow: 0 4px 6px -1px color-mix(in oklch, var(--primary) 10%, transparent); }
.hover\:-translate-y-1:hover { transform: translateY(-0.25rem); }
.hover\:-translate-y-0\.5:hover { transform: translateY(-0.125rem); }
.hover\:scale-110:hover { transform: scale(1.1); }
.hover\:opacity-100:hover { opacity: 1; }

.group:hover .group-hover\:text-primary { color: var(--primary); }
.group:hover .group-hover\:opacity-100 { opacity: 1; }
.group:hover .group-hover\:translate-y-0 { transform: translateY(0); }
.group:hover .group-hover\:bg-primary\/15 { background-color: color-mix(in oklch, var(--primary) 15%, transparent); }
.group:hover .group-hover\:bg-primary { background-color: var(--primary); }
.group:hover .group-hover\:text-primary-foreground { color: var(--primary-foreground); }
.group:hover .group-hover\:scale-110 { transform: scale(1.1); }
.group:hover .zoom-img { transform: scale(1.06); }

.opacity-0 { opacity: 0; }
.opacity-50 { opacity: 0.5; }
.opacity-70 { opacity: 0.7; }
.opacity-100 { opacity: 1; }

.translate-y-1 { transform: translateY(0.25rem); }
.scale-110 { transform: scale(1.1); }

.cursor-pointer { cursor: pointer; }
.pointer-events-none { pointer-events: none; }

.overflow-hidden { overflow: hidden; }
.overflow-auto { overflow: auto; }
.overflow-x-auto { overflow-x: auto; }
.overflow-y-auto { overflow-y: auto; }

.line-clamp-1 { display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.line-clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.line-clamp-3 { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.line-clamp-4 { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }

.aspect-\[2\/3\] { aspect-ratio: 2 / 3; }
.aspect-square { aspect-ratio: 1 / 1; }
.aspect-video { aspect-ratio: 16 / 9; }

.object-cover { object-fit: cover; }
.object-center { object-position: center; }

.min-h-screen { min-height: 100vh; }
.min-h-\[90px\] { min-height: 90px; }
.max-h-\[28rem\] { max-height: 28rem; }
.max-h-80 { max-height: 20rem; }
.max-h-\[80vh\] { max-height: 80vh; }

.divide-y > * + * { border-top-width: 1px; border-style: solid; border-color: var(--border); }

/* ---------------------------------------------------------------------- */
/*  Component classes                                                     */
/* ---------------------------------------------------------------------- */

/* Buttons */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	white-space: nowrap;
	border-radius: calc(var(--radius) - 2px);
	font-size: 0.875rem;
	font-weight: 500;
	padding: 0.5rem 1rem;
	transition: all 0.15s;
	cursor: pointer;
	border: 1px solid transparent;
	background: var(--primary);
	color: var(--primary-foreground);
	height: 2.5rem;
}
.btn:hover { background: color-mix(in oklch, var(--primary) 90%, black); }
.btn-primary { background: var(--primary); color: var(--primary-foreground); }
.btn-secondary { background: var(--secondary); color: var(--secondary-foreground); }
.btn-secondary:hover { background: color-mix(in oklch, var(--secondary) 80%, var(--foreground)); }
.btn-outline { background: transparent; border-color: var(--border); color: var(--foreground); }
.btn-outline:hover { background: var(--accent); color: var(--accent-foreground); }
.btn-ghost { background: transparent; color: var(--foreground); }
.btn-ghost:hover { background: var(--accent); color: var(--accent-foreground); }
.btn-destructive { background: var(--destructive); color: var(--destructive-foreground); }
.btn-sm { height: 2rem; padding: 0.25rem 0.75rem; font-size: 0.75rem; border-radius: calc(var(--radius) - 4px); }
.btn-lg { height: 3rem; padding: 0.75rem 1.5rem; font-size: 1rem; }
.btn-icon { width: 2.5rem; padding: 0; }
.btn-icon.btn-sm { width: 2rem; }
.btn:disabled { opacity: 0.5; pointer-events: none; }
.btn-block { width: 100%; }

/* Card */
.card {
	background: var(--card);
	color: var(--card-foreground);
	border: 1px solid var(--border);
	border-radius: var(--radius);
}
.card-header { padding: 1rem 1rem 0.5rem; }
.card-body { padding: 1rem; }
.card-footer { padding: 0.5rem 1rem 1rem; }
.card-title { font-size: 1rem; font-weight: 600; }

/* Badge */
.badge {
	display: inline-flex;
	align-items: center;
	gap: 0.25rem;
	border-radius: 9999px;
	border: 1px solid transparent;
	padding: 0.125rem 0.625rem;
	font-size: 0.75rem;
	font-weight: 600;
	line-height: 1;
	transition: color 0.15s, background-color 0.15s;
}
.badge-default { background: var(--primary); color: var(--primary-foreground); }
.badge-secondary { background: var(--secondary); color: var(--secondary-foreground); }
.badge-outline { background: transparent; border-color: var(--border); color: var(--foreground); }
.badge-destructive { background: var(--destructive); color: var(--destructive-foreground); }
.badge:hover.badge-secondary { background: var(--primary); color: var(--primary-foreground); }

/* Input */
.input {
	display: flex;
	width: 100%;
	border-radius: calc(var(--radius) - 2px);
	border: 1px solid var(--input);
	background: var(--background);
	padding: 0.5rem 0.75rem;
	font-size: 0.875rem;
	height: 2.5rem;
	transition: border-color 0.15s, box-shadow 0.15s;
}
.input:focus { outline: none; border-color: var(--ring); box-shadow: 0 0 0 3px color-mix(in oklch, var(--ring) 20%, transparent); }
.input-sm { height: 2rem; font-size: 0.75rem; padding: 0.25rem 0.5rem; }
.input-lg { height: 3rem; font-size: 1rem; }
textarea.input { height: auto; min-height: 5rem; }

/* Select */
.select {
	appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
	background-position: right 0.5rem center;
	background-repeat: no-repeat;
	background-size: 1rem;
	padding-right: 2rem;
}

/* Tabs */
.tabs { display: inline-flex; align-items: center; gap: 0.25rem; background: var(--muted); padding: 0.125rem; border-radius: calc(var(--radius) - 4px); }
.tab {
	padding: 0.25rem 0.75rem;
	border-radius: calc(var(--radius) - 4px);
	font-size: 0.75rem;
	font-weight: 500;
	color: var(--muted-foreground);
	cursor: pointer;
	transition: all 0.15s;
}
.tab.active { background: var(--background); color: var(--foreground); box-shadow: 0 1px 2px rgb(0 0 0 / 0.05); }

/* Sheet / drawer (mobile menu) */
.sheet-backdrop {
	position: fixed;
	inset: 0;
	background: rgba(0,0,0,0.5);
	z-index: 100;
	opacity: 0;
	transition: opacity 0.2s;
	pointer-events: none;
}
.sheet-backdrop.open { opacity: 1; pointer-events: auto; }
.sheet {
	position: fixed;
	top: 0;
	left: 0;
	height: 100%;
	width: 18rem;
	background: var(--background);
	z-index: 101;
	transform: translateX(-100%);
	transition: transform 0.25s;
	overflow-y: auto;
	box-shadow: 0 10px 30px rgb(0 0 0 / 0.3);
}
.sheet.open { transform: translateX(0); }
.sheet-right { left: auto; right: 0; transform: translateX(100%); }
.sheet-right.open { transform: translateX(0); }

/* Dropdown */
.dropdown { position: relative; }
.dropdown-menu {
	position: absolute;
	top: calc(100% + 4px);
	right: 0;
	min-width: 10rem;
	background: var(--popover);
	color: var(--popover-foreground);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1);
	padding: 0.25rem;
	z-index: 50;
	opacity: 0;
	pointer-events: none;
	transform: translateY(-4px);
	transition: all 0.15s;
}
.dropdown.open .dropdown-menu { opacity: 1; pointer-events: auto; transform: translateY(0); }
.dropdown-item {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.5rem 0.75rem;
	border-radius: calc(var(--radius) - 4px);
	font-size: 0.875rem;
	cursor: pointer;
	color: var(--foreground);
}
.dropdown-item:hover { background: var(--accent); }
.dropdown-label { padding: 0.5rem 0.75rem; font-size: 0.75rem; font-weight: 600; color: var(--muted-foreground); }
.dropdown-separator { height: 1px; background: var(--border); margin: 0.25rem 0; }

/* Skeleton */
.skeleton {
	display: block;
	background: color-mix(in oklch, var(--muted) 60%, transparent);
	border-radius: var(--radius);
	animation: shimmer 1.6s ease-in-out infinite;
	background-image: linear-gradient(90deg, transparent 0%, color-mix(in oklch, var(--muted) 90%, transparent) 50%, transparent 100%);
	background-size: 200% 100%;
}
@keyframes shimmer {
	0% { background-position: 200% 0; }
	100% { background-position: -200% 0; }
}

/* Dialog */
.dialog-backdrop {
	position: fixed;
	inset: 0;
	background: rgba(0,0,0,0.6);
	z-index: 100;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1rem;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.2s;
}
.dialog-backdrop.open { opacity: 1; pointer-events: auto; }
.dialog {
	background: var(--background);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	max-width: 32rem;
	width: 100%;
	box-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.25);
	transform: scale(0.96);
	transition: transform 0.2s;
	max-height: 90vh;
	overflow-y: auto;
}
.dialog-backdrop.open .dialog { transform: scale(1); }

/* Avatar */
.avatar {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 9999px;
	font-weight: 700;
	color: #fff;
	flex-shrink: 0;
	text-transform: uppercase;
	box-shadow: 0 0 0 2px var(--background);
}

/* ---------------------------------------------------------------------- */
/*  Custom utilities (port from globals.css)                             */
/* ---------------------------------------------------------------------- */
.custom-scroll {
	scrollbar-width: thin;
	scrollbar-color: var(--ring) transparent;
}
.custom-scroll::-webkit-scrollbar { width: 8px; height: 8px; }
.custom-scroll::-webkit-scrollbar-track { background: transparent; }
.custom-scroll::-webkit-scrollbar-thumb {
	background: color-mix(in oklch, var(--ring) 60%, transparent);
	border-radius: 9999px;
}
.custom-scroll::-webkit-scrollbar-thumb:hover { background: var(--ring); }

.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

.reader-content p {
	margin-bottom: 1.25em;
	line-height: 1.9;
}
.reader-content p:last-child { margin-bottom: 0; }

.press {
	transition: transform 0.12s, box-shadow 0.2s, background-color 0.2s, color 0.2s, border-color 0.2s;
}
.press:active { transform: scale(0.96); }

.lift {
	transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}
.lift:hover { transform: translateY(-4px); }

.zoom-img { transition: transform 0.4s; }

/* Animations */
.animate-fade-in-up {
	animation: fadeInUp 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}
.animate-fade-in { animation: fadeIn 0.35s ease; }
.animate-scale-in { animation: scaleIn 0.3s ease; }

@keyframes fadeInUp {
	from { opacity: 0; transform: translateY(12px); }
	to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
	from { opacity: 0; }
	to { opacity: 1; }
}
@keyframes scaleIn {
	from { opacity: 0; transform: scale(0.96); }
	to { opacity: 1; transform: scale(1); }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after {
		animation-duration: 0.01ms !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}
}

/* ---------------------------------------------------------------------- */
/*  Component: Novel Cover                                                */
/* ---------------------------------------------------------------------- */
.novel-cover {
	position: relative;
	height: 100%;
	width: 100%;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	padding: 0.625rem;
	color: #fff;
}
.novel-cover img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.novel-cover-initial {
	font-family: Georgia, serif;
	font-size: 1.875rem;
	font-weight: 900;
	line-height: 1;
	text-shadow: 0 1px 2px rgb(0 0 0 / 0.2);
}
.novel-cover-title {
	font-family: Georgia, serif;
	font-size: 0.75rem;
	font-weight: 700;
	line-height: 1.2;
	text-shadow: 0 1px 2px rgb(0 0 0 / 0.2);
}
.novel-cover-author {
	margin-top: 0.25rem;
	font-size: 0.55rem;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	opacity: 0.7;
}

/* ---------------------------------------------------------------------- */
/*  Component: Site header                                                */
/* ---------------------------------------------------------------------- */
.site-header {
	position: sticky;
	top: 0;
	z-index: 40;
	border-bottom: 1px solid color-mix(in oklch, var(--border) 70%, transparent);
	background: color-mix(in oklch, var(--background) 90%, transparent);
	backdrop-filter: blur(8px);
}
.site-header-inner {
	margin-inline: auto;
	display: flex;
	align-items: center;
	gap: 0.75rem;
	height: 4rem;
	max-width: 80rem;
	padding-inline: 0.75rem;
}
@media (min-width: 640px) {
	.site-header-inner { padding-inline: 1rem; }
}
@media (min-width: 1024px) {
	.site-header-inner { padding-inline: 1.5rem; }
}

.brand-logo {
	display: flex;
	align-items: center;
	gap: 0.5rem;
}
.brand-square {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.25rem;
	height: 2.25rem;
	border-radius: var(--radius);
	background: var(--primary);
	color: var(--primary-foreground);
	box-shadow: 0 1px 2px rgb(0 0 0 / 0.05);
}
.brand-name {
	font-size: 1.125rem;
	font-weight: 900;
	letter-spacing: -0.025em;
}
.brand-name span { color: var(--primary); }

/* Desktop nav */
.desktop-nav { display: none; align-items: center; gap: 0.125rem; margin-left: 0.5rem; }
@media (min-width: 1024px) {
	.desktop-nav { display: flex; }
}
.nav-item {
	display: inline-flex;
	align-items: center;
	gap: 0.375rem;
	border-radius: var(--radius);
	padding: 0.5rem 0.75rem;
	font-size: 0.875rem;
	font-weight: 500;
	color: var(--muted-foreground);
	transition: background 0.15s, color 0.15s;
	cursor: pointer;
}
.nav-item:hover { background: color-mix(in oklch, var(--accent) 60%, transparent); color: var(--foreground); }
.nav-item.active { background: var(--accent); color: var(--accent-foreground); }

/* Mobile menu trigger */
.mobile-menu-btn { display: inline-flex; }
@media (min-width: 1024px) {
	.mobile-menu-btn { display: none; }
}

/* Search box */
.search-box {
	position: relative;
	width: 100%;
}
.search-box input {
	width: 100%;
	border-radius: 9999px;
	border: 1px solid var(--input);
	background: var(--background);
	padding: 0.5rem 2.25rem 0.5rem 2.25rem;
	font-size: 0.875rem;
	height: 2.25rem;
	transition: border-color 0.15s, box-shadow 0.15s;
}
.search-box input:focus {
	outline: none;
	border-color: var(--ring);
	box-shadow: 0 0 0 3px color-mix(in oklch, var(--ring) 20%, transparent);
}
.search-box-icon {
	position: absolute;
	left: 0.75rem;
	top: 50%;
	transform: translateY(-50%);
	color: var(--muted-foreground);
	pointer-events: none;
}
.search-box-clear {
	position: absolute;
	right: 0.5rem;
	top: 50%;
	transform: translateY(-50%);
	color: var(--muted-foreground);
	display: none;
}
.search-box-clear.visible { display: inline-flex; }

.search-dropdown {
	position: absolute;
	top: calc(100% + 4px);
	left: 0;
	right: 0;
	background: var(--popover);
	color: var(--popover-foreground);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1);
	max-height: 24rem;
	overflow-y: auto;
	z-index: 50;
}
.search-result-row {
	display: flex;
	gap: 0.5rem;
	padding: 0.5rem 0.75rem;
	border-radius: calc(var(--radius) - 4px);
	cursor: pointer;
	transition: background 0.1s;
}
.search-result-row:hover, .search-result-row.active { background: var(--accent); }

/* ---------------------------------------------------------------------- */
/*  Layout grids                                                          */
/* ---------------------------------------------------------------------- */
.layout-grid {
	display: grid;
	gap: 1.5rem;
}
@media (min-width: 1024px) {
	.layout-grid { grid-template-columns: 1fr 300px; }
	.layout-grid.with-sidebar > :first-child { min-width: 0; }
}

.novels-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 0.75rem;
}
@media (min-width: 640px) { .novels-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 768px) { .novels-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .novels-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
@media (min-width: 1280px) { .novels-grid { grid-template-columns: repeat(8, minmax(0, 1fr)); } }

.novels-list-grid {
	display: grid;
	gap: 0.5rem;
	grid-template-columns: 1fr;
}
@media (min-width: 640px) { .novels-list-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .novels-list-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* Footer cards grid */
.footer-cards {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0.5rem;
}
@media (min-width: 640px) { .footer-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .footer-cards { grid-template-columns: repeat(6, minmax(0, 1fr)); } }

/* ---------------------------------------------------------------------- */
/*  Section header bar                                                    */
/* ---------------------------------------------------------------------- */
.section-header {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	margin-bottom: 0.875rem;
}
.section-header-bar {
	width: 0.25rem;
	height: 1.25rem;
	border-radius: 9999px;
	background: var(--primary);
}
.section-header h2 {
	font-size: 1.125rem;
	font-weight: 700;
}
@media (min-width: 640px) {
	.section-header h2 { font-size: 1.25rem; }
}

/* ---------------------------------------------------------------------- */
/*  Feature slider                                                        */
/* ---------------------------------------------------------------------- */
.feature-slider {
	position: relative;
	overflow: hidden;
	border-radius: var(--radius);
}
.feature-slide {
	background: #18181b;
	color: #fff;
	border: 1px solid rgba(255,255,255,0.1);
	border-radius: var(--radius);
	display: flex;
	overflow: hidden;
}
.feature-slide-cover {
	width: 6rem;
	flex-shrink: 0;
}
@media (min-width: 640px) {
	.feature-slide-cover { width: 7rem; }
}
.feature-slide-content {
	flex: 1;
	padding: 0.75rem;
	display: flex;
	flex-direction: column;
	justify-content: center;
	min-width: 0;
}

.slider-dots {
	display: flex;
	gap: 0.25rem;
	justify-content: center;
	margin-top: 0.5rem;
}
.slider-dot {
	width: 0.375rem;
	height: 0.375rem;
	border-radius: 9999px;
	background: var(--border);
	border: 0;
	cursor: pointer;
	transition: all 0.2s;
}
.slider-dot.active {
	width: 1.25rem;
	background: var(--primary);
}

/* ---------------------------------------------------------------------- */
/*  Chapter reader                                                        */
/* ---------------------------------------------------------------------- */
.chapter-reader {
	min-height: 100vh;
}
.chapter-progress {
	position: fixed;
	top: 0;
	left: 0;
	height: 0.125rem;
	background: var(--primary);
	z-index: 60;
	transition: width 0.1s;
}
.chapter-toolbar {
	position: sticky;
	top: 0;
	z-index: 50;
	display: flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.5rem 0.75rem;
	background: color-mix(in oklch, var(--background) 90%, transparent);
	backdrop-filter: blur(8px);
	border-bottom: 1px solid var(--border);
}
.reader-content {
	font-family: Georgia, 'Times New Roman', serif;
}
.reader-content p {
	margin-bottom: 1.25em;
}
.reader-settings-section {
	border-top: 1px solid var(--border);
	padding-top: 0.75rem;
	margin-top: 0.75rem;
}
.reader-settings-section:first-child { border-top: 0; margin-top: 0; padding-top: 0; }

.reader-theme-btn {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.25rem;
	padding: 0.5rem 0.25rem;
	border-radius: calc(var(--radius) - 4px);
	border: 1px solid var(--border);
	cursor: pointer;
	transition: all 0.15s;
}
.reader-theme-btn.active { border-color: var(--primary); box-shadow: 0 0 0 2px color-mix(in oklch, var(--primary) 30%, transparent); }
.reader-theme-btn-swatch {
	width: 100%;
	height: 2rem;
	border-radius: calc(var(--radius) - 4px);
	border: 1px solid var(--border);
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 700;
	font-size: 0.75rem;
}

/* ---------------------------------------------------------------------- */
/*  Star rating                                                           */
/* ---------------------------------------------------------------------- */
.star-rating { display: inline-flex; gap: 0.125rem; }
.star-rating button {
	color: var(--muted-foreground);
	transition: transform 0.1s, color 0.1s;
	cursor: pointer;
	padding: 0.125rem;
	background: transparent;
	border: 0;
}
.star-rating button:hover { transform: scale(1.1); }
.star-rating button.filled { color: #fbbf24; }

/* ---------------------------------------------------------------------- */
/*  Comments                                                              */
/* ---------------------------------------------------------------------- */
.comment-item {
	padding: 0.75rem;
	border-radius: var(--radius);
	border: 1px solid var(--border);
	background: var(--card);
}
.comment-replies { margin-left: 1rem; padding-left: 1rem; border-left: 2px solid var(--border); margin-top: 0.5rem; }

/* ---------------------------------------------------------------------- */
/*  Sidebar widgets                                                       */
/* ---------------------------------------------------------------------- */
.widget-shell {
	background: var(--card);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	overflow: hidden;
}
.widget-header {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.75rem 1rem;
	border-bottom: 1px solid var(--border);
	font-size: 0.875rem;
	font-weight: 600;
}
.widget-body { padding: 0.75rem; }

.popular-rank {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 1.25rem;
	height: 1.5rem;
	font-size: 0.75rem;
	font-weight: 700;
	color: var(--primary);
}
.popular-rank.rank-1 { color: #f59e0b; }
.popular-rank.rank-2 { color: #71717a; }
.popular-rank.rank-3 { color: #f97316; }

/* ---------------------------------------------------------------------- */
/*  Forms                                                                 */
/* ---------------------------------------------------------------------- */
.form-label {
	display: block;
	font-size: 0.875rem;
	font-weight: 500;
	margin-bottom: 0.375rem;
}
.form-help {
	font-size: 0.75rem;
	color: var(--muted-foreground);
	margin-top: 0.25rem;
}
.form-error {
	font-size: 0.75rem;
	color: var(--destructive);
	margin-top: 0.25rem;
}

/* ---------------------------------------------------------------------- */
/*  Pagination                                                            */
/* ---------------------------------------------------------------------- */
.pagination {
	display: flex;
	align-items: center;
	gap: 0.25rem;
	justify-content: center;
	margin-top: 1.5rem;
}
.pagination a, .pagination span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 2rem;
	height: 2rem;
	padding: 0 0.5rem;
	border: 1px solid var(--border);
	border-radius: calc(var(--radius) - 4px);
	font-size: 0.875rem;
	font-weight: 500;
	color: var(--foreground);
	transition: background 0.15s, color 0.15s;
}
.pagination a:hover { background: var(--accent); }
.pagination .current { background: var(--primary); color: var(--primary-foreground); border-color: var(--primary); }
.pagination .dots { border: 0; }

/* ---------------------------------------------------------------------- */
/*  Responsive visibility                                                 */
/* ---------------------------------------------------------------------- */
.lg\:block { display: block; }
.lg\:hidden { display: none; }
@media (min-width: 1024px) {
	.lg\:block { display: block; }
	.lg\:hidden { display: none; }
	.lg\:flex { display: flex; }
	.lg\:sticky { position: sticky; }
	.lg\:top-20 { top: 5rem; }
	.lg\:self-start { align-self: flex-start; }
	.lg\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.lg\:grid-cols-\[1fr_300px\] { grid-template-columns: 1fr 300px; }
	.lg\:grid-cols-\[220px_1fr\] { grid-template-columns: 220px 1fr; }
	.lg\:col-span-2 { grid-column: span 2 / span 2; }
	.lg\:px-6 { padding-inline: 1.5rem; }
	.lg\:px-8 { padding-inline: 2rem; }
}
@media (min-width: 640px) {
	.sm\:block { display: block; }
	.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\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	.sm\:px-4 { padding-inline: 1rem; }
	.sm\:px-6 { padding-inline: 1.5rem; }
	.sm\:text-xl { font-size: 1.25rem; }
}
@media (min-width: 768px) {
	.md\:flex { display: flex; }
	.md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.md\:grid-cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
@media (min-width: 1280px) {
	.xl\:grid-cols-8 { grid-template-columns: repeat(8, minmax(0, 1fr)); }
}

/* ---------------------------------------------------------------------- */
/*  WordPress core overrides                                              */
/* ---------------------------------------------------------------------- */
.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	padding: 0; margin: -1px;
	overflow: hidden;
	clip: rect(0,0,0,0);
	white-space: nowrap;
	border: 0;
}
.aligncenter { display: block; margin-inline: auto; }
.alignleft { float: left; margin-right: 1rem; }
.alignright { float: right; margin-left: 1rem; }

/* Admin bar fix */
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) {
	.admin-bar .site-header { top: 46px; }
}

/* ---------------------------------------------------------------------- */
/*  Notification toast                                                    */
/* ---------------------------------------------------------------------- */
.toast-container {
	position: fixed;
	bottom: 1rem;
	right: 1rem;
	z-index: 200;
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	pointer-events: none;
}
.toast {
	background: var(--card);
	color: var(--card-foreground);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	padding: 0.75rem 1rem;
	box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1);
	font-size: 0.875rem;
	min-width: 16rem;
	max-width: 24rem;
	display: flex;
	align-items: center;
	gap: 0.5rem;
	pointer-events: auto;
	animation: fadeInUp 0.25s ease;
}
.toast.success { border-left: 3px solid var(--primary); }
.toast.error { border-left: 3px solid var(--destructive); }
.toast.info { border-left: 3px solid #0ea5e9; }

/* ---------------------------------------------------------------------- */
/*  Lucide icon sizing                                                    */
/* ---------------------------------------------------------------------- */
.icon-xs { width: 0.75rem; height: 0.75rem; }
.icon-sm { width: 0.875rem; height: 0.875rem; }
.icon-md { width: 1rem; height: 1rem; }
.icon-lg { width: 1.25rem; height: 1.25rem; }
.icon-xl { width: 1.5rem; height: 1.5rem; }

/* ---------------------------------------------------------------------- */
/*  Print                                                                 */
/* ---------------------------------------------------------------------- */
@media print {
	.site-header, .site-footer, .sidebar, .ad-banner { display: none !important; }
}
