        @import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&family=DM+Serif+Display:ital@0;1&family=DM+Mono:ital,wght@0,400;0,500;1,400&display=swap');

        /* ══════════════════════════════════════════════════════════
   DESIGN TOKENS — Luminary Theme
   Cool indigo × clean white × precise typography
══════════════════════════════════════════════════════════ */
        :root {
            --maxw: 1200px;

            /* ── Core palette ── */
            --indigo-950: #0f0d2e;
            --indigo-900: #1e1b4b;
            --indigo-800: #2d2a6e;
            --indigo-700: #3730a3;
            --indigo-600: #4f46e5;
            --indigo-500: #6366f1;
            --indigo-400: #818cf8;
            --indigo-100: #e0e7ff;
            --indigo-50: #eef2ff;

            /* ── Accent — electric violet ── */
            --ac: #5b4df3;
            --ac-light: #7c6ff7;
            --ac-soft: #ede9fe;
            --ac-glow: rgba(91, 77, 243, 0.18);
            --ac-ring: rgba(91, 77, 243, 0.28);

            /* ── Teal highlight ── */
            --teal: #0891b2;
            --teal-light: #22d3ee;

            /* ── Surfaces ── */
            --bg: #f8f9ff;
            --surface: #ffffff;
            --surface-2: #f2f4fd;
            --surface-3: #e8ecf9;
            --surface-glass: rgba(255, 255, 255, 0.72);

            /* ── Text ── */
            --text-primary: #0f0d2e;
            --text-secondary: #4a4b72;
            --text-muted: #9395b4;

            /* ── Borders ── */
            --border: rgba(91, 77, 243, 0.10);
            --border-soft: rgba(91, 77, 243, 0.07);
            --border-mid: rgba(91, 77, 243, 0.18);
            --border-px: rgba(91, 77, 243, 0.24);

            /* ── Shadows ── */
            --shadow-xs: 0 1px 3px rgba(15, 13, 46, 0.06), 0 1px 2px rgba(15, 13, 46, 0.04);
            --shadow-sm: 0 2px 10px rgba(15, 13, 46, 0.07), 0 1px 4px rgba(15, 13, 46, 0.05);
            --shadow-md: 0 8px 28px rgba(15, 13, 46, 0.10), 0 2px 8px rgba(15, 13, 46, 0.06);
            --shadow-lg: 0 20px 56px rgba(15, 13, 46, 0.13), 0 6px 18px rgba(15, 13, 46, 0.08);
            --shadow-xl: 0 32px 72px rgba(15, 13, 46, 0.18), 0 8px 24px rgba(15, 13, 46, 0.10);
            --shadow-ac: 0 6px 28px rgba(91, 77, 243, 0.32), 0 2px 8px rgba(91, 77, 243, 0.18);
            --shadow-in: inset 0 1px 3px rgba(15, 13, 46, 0.06);

            /* ── Radii ── */
            --radius-xs: 4px;
            --radius-sm: 8px;
            --radius-md: 14px;
            --radius-lg: 20px;
            --radius-xl: 28px;
            --radius-pill: 999px;

            /* ── Typography ── */
            --ftfamily: 'DM Sans', system-ui, sans-serif;
            --display: 'DM Serif Display', Georgia, serif;
            --mono: 'DM Mono', 'Cascadia Code', monospace;
            --pfont: 'DM Sans', system-ui, sans-serif;

            /* ── Easings ── */
            --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
            --ease-out: cubic-bezier(0.16, 1, 0.30, 1);
            --ease-in-out: cubic-bezier(0.45, 0, 0.55, 1);
            --ease-bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);

            /* ── Gradients ── */
            --gradient-hero: linear-gradient(135deg, #0f0d2e 0%, #1e1b4b 45%, #2d2a6e 100%);
            --gradient-ac: linear-gradient(135deg, #5b4df3 0%, #7c6ff7 100%);
            --gradient-mesh: radial-gradient(ellipse at 20% 50%, rgba(91, 77, 243, 0.08) 0%, transparent 60%),
                radial-gradient(ellipse at 80% 20%, rgba(8, 145, 178, 0.06) 0%, transparent 55%),
                radial-gradient(ellipse at 60% 80%, rgba(91, 77, 243, 0.05) 0%, transparent 50%);
        }

        /* ══════════════════════════════════════════════════════════
   DARK MODE TOKENS
══════════════════════════════════════════════════════════ */
        .dark {
            --bg: #0a0918;
            --surface: #13112a;
            --surface-2: #1c1a38;
            --surface-3: #262449;
            --surface-glass: rgba(19, 17, 42, 0.80);

            --text-primary: #edeef8;
            --text-secondary: #9093b8;
            --text-muted: #5c5f84;

            --border: rgba(129, 140, 248, 0.10);
            --border-soft: rgba(129, 140, 248, 0.07);
            --border-mid: rgba(129, 140, 248, 0.18);
            --border-px: rgba(129, 140, 248, 0.26);

            --shadow-xs: 0 1px 3px rgba(0, 0, 0, 0.28);
            --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.36), 0 1px 4px rgba(0, 0, 0, 0.24);
            --shadow-md: 0 8px 28px rgba(0, 0, 0, 0.50), 0 2px 8px rgba(0, 0, 0, 0.30);
            --shadow-lg: 0 20px 56px rgba(0, 0, 0, 0.62), 0 6px 18px rgba(0, 0, 0, 0.38);
            --shadow-xl: 0 32px 72px rgba(0, 0, 0, 0.72), 0 8px 24px rgba(0, 0, 0, 0.42);
            --shadow-ac: 0 6px 28px rgba(91, 77, 243, 0.44), 0 2px 8px rgba(91, 77, 243, 0.26);

            --gradient-mesh: radial-gradient(ellipse at 20% 50%, rgba(91, 77, 243, 0.14) 0%, transparent 60%),
                radial-gradient(ellipse at 80% 20%, rgba(8, 145, 178, 0.10) 0%, transparent 55%),
                radial-gradient(ellipse at 60% 80%, rgba(91, 77, 243, 0.08) 0%, transparent 50%);
        }

        /* ══════════════════════════════════════════════════════════
   GLOBAL RESET
══════════════════════════════════════════════════════════ */
        *,
        *::before,
        *::after {
            box-sizing: border-box;
            margin: 0;
            padding: 0;
        }

        html,
        body {
            height: 100%;
        }

        a {
            text-decoration: none;
        }

        /* ══════════════════════════════════════════════════════════
   THEME TRANSITION
══════════════════════════════════════════════════════════ */
        *,
        *::before,
        *::after {
            transition:
                background-color 0.22s ease,
                border-color 0.22s ease,
                color 0.14s ease,
                box-shadow 0.22s ease;
        }

        .loader,
        .loader * {
            transition: none !important;
        }

        /* ══════════════════════════════════════════════════════════
   BODY & BASE TYPOGRAPHY
══════════════════════════════════════════════════════════ */
        body {
            font-family: var(--ftfamily);
            font-size: 15px;
            line-height: 1.65;
            color: var(--text-primary);
            background-color: var(--bg);
            background-image: var(--gradient-mesh);
            background-attachment: fixed;
            -webkit-font-smoothing: antialiased;
            -moz-osx-font-smoothing: grayscale;
            padding-bottom: 100px;
        }

        h1 {
            font-family: var(--display);
            font-size: 2.2rem;
            font-weight: 400;
            font-style: italic;
            color: var(--text-primary);
            line-height: 1.2;
            letter-spacing: -0.02em;
            margin: 0;
        }

        h2 {
            font-family: var(--ftfamily);
            font-size: 0.72rem;
            font-weight: 700;
            color: var(--text-muted);
            letter-spacing: 0.10em;
            text-transform: uppercase;
        }

        h3 {
            font-family: var(--ftfamily);
            font-weight: 600;
            color: var(--text-secondary);
        }

        /* ══════════════════════════════════════════════════════════
   HEADER
══════════════════════════════════════════════════════════ */
        header {
            background: var(--gradient-hero);
            position: relative;
            z-index: 50;
            box-shadow: 0 4px 32px rgba(15, 13, 46, 0.28);
        }

        /* Glowing bottom line */
        header::after {
            content: '';
            display: block;
            height: 1px;
            width: 100%;
            background: linear-gradient(90deg,
                    transparent 0%,
                    rgba(91, 77, 243, 0.6) 25%,
                    rgba(129, 140, 248, 0.9) 50%,
                    rgba(91, 77, 243, 0.6) 75%,
                    transparent 100%);
            position: absolute;
            bottom: 0;
            left: 0;
        }

        header .inner {
            max-width: var(--maxw);
            margin: 0 auto;
            padding: 0 24px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            gap: 8px;
            height: 60px;
        }

        header a {
            color: rgba(224, 231, 255, 0.55);
            padding: 6px 13px;
            font-size: 0.75rem;
            font-weight: 500;
            letter-spacing: 0.07em;
            text-transform: uppercase;
            transition: color 0.18s, background 0.18s;
            cursor: pointer;
            border-radius: var(--radius-sm);
        }

        header a:hover {
            color: #fff;
            background: rgba(255, 255, 255, 0.08);
        }

        .entry-header {
            width: 100%;
            text-align: center;
            padding: 10px 0 2px;
        }

        .entry-header p {
            color: #4a4b72;
        }

        /* ══════════════════════════════════════════════════════════
   THEME TOGGLE
══════════════════════════════════════════════════════════ */
        #themeToggle {
            display: inline-flex;
            align-items: center;
            gap: 7px;
            padding: 7px 15px;
            border-radius: var(--radius-pill);
            border: 1px solid rgba(255, 255, 255, 0.15);
            background: rgba(255, 255, 255, 0.08);
            backdrop-filter: blur(10px);
            color: rgba(224, 231, 255, 0.75);
            font-family: var(--ftfamily);
            font-size: 0.70rem;
            font-weight: 600;
            letter-spacing: 0.08em;
            text-transform: uppercase;
            cursor: pointer;
            transition: all 0.22s var(--ease-out);
            white-space: nowrap;
            flex-shrink: 0;
        }

        #themeToggle:hover {
            background: rgba(91, 77, 243, 0.5);
            border-color: rgba(91, 77, 243, 0.7);
            color: #fff;
            box-shadow: 0 4px 18px rgba(91, 77, 243, 0.35);
        }

        #themeToggle .icon-sun,
        #themeToggle .icon-moon {
            font-size: 13px;
            line-height: 1;
        }

        /* Light mode: show moon */
        #themeToggle .icon-moon {
            display: inline;
        }

        #themeToggle .icon-sun {
            display: none;
        }

        #themeToggle .label-dark {
            display: inline;
        }

        #themeToggle .label-light {
            display: none;
        }

        /* Dark mode: show sun */
        .dark #themeToggle .icon-moon {
            display: none;
        }

        .dark #themeToggle .icon-sun {
            display: inline;
        }

        .dark #themeToggle .label-dark {
            display: none;
        }

        .dark #themeToggle .label-light {
            display: inline;
        }

        /* ══════════════════════════════════════════════════════════
   CONTAINER
══════════════════════════════════════════════════════════ */
        .container {
            max-width: var(--maxw);
            margin: 0 auto;
            padding: 0 24px;
        }

        /* ══════════════════════════════════════════════════════════
   TOP MENU — Category Pills
══════════════════════════════════════════════════════════ */
        #topMenu {
            display: flex;
            align-items: center;
            gap: 6px;
            padding: 16px 0;
            overflow-x: auto;
            overflow-y: hidden;
            white-space: nowrap;
            scroll-behavior: smooth;
            scrollbar-width: none;
        }

        #topMenu::-webkit-scrollbar {
            display: none;
        }

        #topMenu a {
            display: inline-flex;
            align-items: center;
            padding: 7px 16px;
            border-radius: var(--radius-pill);
            font-size: 0.72rem;
            font-weight: 600;
            letter-spacing: 0.06em;
            text-transform: uppercase;
            color: var(--text-secondary);
            border: 1px solid var(--border-mid);
            background: var(--surface);
            transition: all 0.2s var(--ease-out);
            white-space: nowrap;
            box-shadow: var(--shadow-xs);
        }

        #topMenu a:hover {
            color: var(--ac);
            background: var(--ac-soft);
            border-color: var(--ac);
            transform: translateY(-1px);
            box-shadow: 0 4px 14px var(--ac-glow);
        }

        #topMenu a.active {
            color: #fff;
            background: var(--gradient-ac);
            border-color: transparent;
            box-shadow: var(--shadow-ac);
        }

        #topMenu h3 {
            font-size: 0.60rem;
            font-weight: 700;
            color: var(--text-muted);
            text-transform: uppercase;
            letter-spacing: 0.18em;
            margin: 0 6px;
            white-space: nowrap;
            opacity: 0.65;
        }

        /* Dark overrides — top menu */
        .dark #topMenu a {
            background: var(--surface);
            border-color: var(--border-mid);
            color: var(--text-secondary);
        }

        .dark #topMenu a:hover {
            color: var(--ac-light);
            background: rgba(91, 77, 243, 0.14);
            border-color: rgba(91, 77, 243, 0.45);
        }

        .dark #topMenu a.active {
            color: #fff;
            background: var(--gradient-ac);
            border-color: transparent;
        }

        /* ══════════════════════════════════════════════════════════
   INPUT SECTION — Sticky Search Bar
══════════════════════════════════════════════════════════ */
        .input-section {
            display: flex;
            position: sticky;
            top: 0;
            z-index: 40;
            padding: 14px 0 16px;
            gap: 10px;
            align-items: center;
            border-radius: 10px;
            background: var(--surface-glass);
            backdrop-filter: blur(20px) saturate(1.6);
            -webkit-backdrop-filter: blur(20px) saturate(1.6);
            border-bottom: 1px solid var(--border);
            margin-left: -24px;
            margin-right: -24px;
            padding-left: 24px;
            padding-right: 24px;
        }

        .input-section div {
            width: 100%;
            position: relative;
        }

        .input-section input {
            width: 100%;
            padding: 14px 52px 14px 22px;
            border-radius: var(--radius-pill);
            border: 1.5px solid var(--border-mid);
            background: var(--surface);
            font-family: var(--ftfamily);
            font-size: 1rem;
            font-weight: 400;
            color: var(--text-primary);
            outline: none;
            box-shadow: var(--shadow-sm), var(--shadow-in);
            letter-spacing: 0.01em;
            transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
        }

        .input-section input::placeholder {
            color: var(--text-muted);
            font-weight: 400;
        }

        .input-section input:focus {
            border-color: var(--ac);
            box-shadow: 0 0 0 4px var(--ac-ring), var(--shadow-sm);
            transform: translateY(-1px);
        }

        #input-count {
            position: absolute;
            right: 24px;
            bottom: 3px;
            font-size: 9px;
            font-weight: 700;
            color: var(--text-muted);
            letter-spacing: 0.06em;
            opacity: 0.6;
        }

        .clear-overlay {
            position: absolute;
            right: 5px;
            top: 50%;
            transform: translateY(-50%);
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 36px;
            height: 36px;
            border-radius: 50%;
            cursor: pointer;
            color: var(--text-muted);
            z-index: 10;
            transition: color 0.18s, background 0.18s;
        }

        .clear-overlay:hover {
            color: var(--ac);
            background: var(--ac-soft);
        }

        /* Dark overrides — input */
        .dark .input-section {
            background: rgba(10, 9, 24, 0.80);
            border-color: var(--border);
        }

        .dark .input-section input {
            background: var(--surface);
            color: var(--text-primary);
            border-color: var(--border-mid);
        }

        .dark .input-section input:focus {
            border-color: var(--ac-light);
            box-shadow: 0 0 0 4px rgba(91, 77, 243, 0.22), var(--shadow-sm);
        }

        /* ══════════════════════════════════════════════════════════
   BUTTONS
══════════════════════════════════════════════════════════ */
        button,
        #othertools a {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            border: none;
            cursor: pointer;
            background: transparent;
            font-size: 16px;
            line-height: 1;
            touch-action: manipulation;
            -webkit-tap-highlight-color: transparent;
            font-family: var(--ftfamily);
        }

        button:hover {
            opacity: 0.90;
        }

        /* Primary button */
        .btn {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 7px;
            padding: 12px 26px;
            border-radius: var(--radius-pill);
            border: 1.5px solid transparent;
            font-family: var(--ftfamily);
            font-size: 0.72rem;
            font-weight: 700;
            letter-spacing: 0.08em;
            text-transform: uppercase;
            cursor: pointer;
            background: var(--gradient-ac);
            color: #fff;
            box-shadow: var(--shadow-ac);
            white-space: nowrap;
            transition: transform 0.2s var(--ease-spring), box-shadow 0.2s, opacity 0.18s;
        }

        .btn:hover {
            transform: translateY(-2px) scale(1.015);
            box-shadow: 0 10px 36px rgba(91, 77, 243, 0.40), 0 4px 12px rgba(91, 77, 243, 0.22);
            opacity: 1;
        }

        .btn:active {
            transform: scale(0.97);
        }

        /* Secondary button */
        .btn.secondary {
            background: var(--surface);
            color: var(--text-secondary);
            border-color: var(--border-mid);
            box-shadow: var(--shadow-xs);
        }

        .btn.secondary:hover {
            border-color: var(--ac);
            color: var(--ac);
            background: var(--ac-soft);
            box-shadow: 0 4px 14px var(--ac-glow);
        }

        /* Close/danger button */
        button.btn.closeit {
            background: #1a0033;
            color: #ff82b2;
            border-color: rgba(255, 130, 178, 0.25);
        }

        /* Menu toggle button */
        button#menu {
            font-size: 1.2rem;
            height: 42px;
            width: 42px;
            border-radius: var(--radius-md);
            border: 1.5px solid var(--border-mid);
            background: var(--surface);
            box-shadow: var(--shadow-xs);
            color: var(--text-secondary);
            transition: all 0.2s var(--ease-out);
        }

        button#menu:hover {
            border-color: var(--ac);
            background: var(--ac-soft);
            color: var(--ac);
            box-shadow: 0 4px 14px var(--ac-glow);
        }

        /* Dark overrides — buttons */
        .dark .btn {
            background: var(--gradient-ac);
            color: #fff;
        }

        .dark .btn:hover {
            box-shadow: 0 10px 36px rgba(91, 77, 243, 0.52);
        }

        .dark .btn.secondary {
            background: var(--surface);
            color: var(--text-secondary);
            border-color: var(--border-mid);
        }

        .dark .btn.secondary:hover {
            background: rgba(91, 77, 243, 0.14);
            color: var(--ac-light);
            border-color: rgba(91, 77, 243, 0.4);
        }

        .dark button#menu {
            background: var(--surface);
            border-color: var(--border-mid);
            color: var(--text-secondary);
        }

        .dark button#menu:hover {
            background: rgba(91, 77, 243, 0.14);
            border-color: rgba(91, 77, 243, 0.4);
            color: var(--ac-light);
        }

        /* ══════════════════════════════════════════════════════════
   OTHER TOOLS LINKS
══════════════════════════════════════════════════════════ */
        #othertools a {
            padding: 8px 16px;
            background: var(--surface);
            color: var(--text-secondary);
            border-radius: var(--radius-sm);
            font-size: 0.78rem;
            font-weight: 600;
            border: 1px solid var(--border-soft);
            letter-spacing: 0.04em;
            text-transform: uppercase;
            transition: all 0.2s var(--ease-out);
            box-shadow: var(--shadow-xs);
        }

        #othertools a:hover {
            background: var(--gradient-ac);
            color: #fff;
            border-color: transparent;
            transform: translateY(-1px);
            box-shadow: var(--shadow-ac);
        }

        .dark #othertools a {
            background: var(--surface);
            color: var(--text-secondary);
            border-color: var(--border-soft);
        }

        .dark #othertools a:hover {
            background: var(--gradient-ac);
            color: #fff;
            border-color: transparent;
        }

        /* ══════════════════════════════════════════════════════════
   SVG ICONS
══════════════════════════════════════════════════════════ */
        svg {
            width: 20px;
            height: 20px;
            stroke: currentColor;
            stroke-width: 1.8;
            fill: none;
        }

        .material-symbols-outlined {
            font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
        }

        /* ══════════════════════════════════════════════════════════
   RANDOM CLOUD
══════════════════════════════════════════════════════════ */
        #randomcloud {
            text-align: center;
            width: 100%;
            overflow: auto;
            scrollbar-width: none;
        }

        #randomcloud::-webkit-scrollbar {
            display: none;
        }

        #randomcloud li {
            background: transparent;
            border: none;
            box-shadow: none;
        }

        #randomcloud p {
            color: var(--text-secondary);
            background: transparent;
            text-align: center;
            border: none;
            font-size: 26px !important;
            padding: 10px 0 0;
            margin: 0;
            cursor: pointer;
            font-family: var(--pfont);
            transition: color 0.18s, transform 0.22s var(--ease-spring);
        }

        #randomcloud p:hover {
            color: var(--ac);
            transform: scale(1.12);
        }

        .dark #randomcloud p {
            color: var(--text-secondary);
        }

        .dark #randomcloud p:hover {
            color: var(--ac-light);
        }

        /* Random button */
        #randombutton {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            border-radius: var(--radius-pill);
            padding: 13px 30px;
            margin-top: 12px;
            background: var(--gradient-ac);
            color: #fff;
            font-family: var(--display);
            font-weight: 400;
            font-style: italic;
            font-size: 1.05rem;
            border: none;
            cursor: pointer;
            box-shadow: var(--shadow-ac);
            transition: transform 0.2s var(--ease-spring), box-shadow 0.2s;
        }

        #randombutton:hover {
            transform: translateY(-3px) scale(1.02);
            box-shadow: 0 14px 42px rgba(91, 77, 243, 0.44);
        }

        /* ══════════════════════════════════════════════════════════
   FONT SIZE CONTROLLER
══════════════════════════════════════════════════════════ */
        .font-size-controller {
            display: flex;
            align-items: center;
            gap: 14px;
            justify-content: flex-end;
            padding: 10px 0;
        }

        .font-size-controller label {
            font-size: 0.64rem;
            font-weight: 700;
            color: var(--text-muted);
            text-transform: uppercase;
            letter-spacing: 0.12em;
        }

        .font-size-controller input[type="range"] {
            width: 200px;
            height: 4px;
            background: #5b4df3;
            border-radius: var(--radius-pill);
            outline: none;
            appearance: none;
            -webkit-appearance: none;
            cursor: pointer;
            border: none;
        }

        .font-size-controller input[type="range"]::-webkit-slider-thumb {
            appearance: none;
            width: 18px;
            height: 18px;
            background: var(--surface);
            border: 2.5px solid var(--ac);
            border-radius: 50%;
            box-shadow: 0 2px 8px rgba(91, 77, 243, 0.30);
            cursor: grab;
            transition: transform 0.15s var(--ease-spring), box-shadow 0.15s;
        }

        .font-size-controller input[type="range"]::-webkit-slider-thumb:hover {
            transform: scale(1.3);
            box-shadow: 0 4px 16px rgba(91, 77, 243, 0.40);
        }

        /* ══════════════════════════════════════════════════════════
   RESULTS GRID — Font Cards
══════════════════════════════════════════════════════════ */
        #results {
            width: 100%;
        }

        .grid ul {
            display: grid;
            margin: 0;
            padding: 0;
            gap: 10px;
            grid-template-columns: repeat(3, 1fr);
            list-style: none;
        }

        /* ── Font card ── */
        .stylishfontslist li {
            display: flex;
            align-items: stretch;
            position: relative;
            border-radius: var(--radius-md);
            overflow: hidden;
            border: 1px solid var(--border);
            background: var(--surface);
            box-shadow: var(--shadow-xs);
            transition:
                transform 0.22s var(--ease-spring),
                box-shadow 0.22s,
                border-color 0.18s;
        }

        .stylishfontslist li:hover {
            border-color: var(--ac);
            transform: translateY(-4px);
            box-shadow: var(--shadow-md), 0 0 0 1px var(--ac), 0 8px 32px var(--ac-glow);
        }

        .stylishfontslist li p {
            background: transparent;
            padding: 16px 0 28px 16px;
            margin: 0;
            color: var(--text-primary);
            cursor: pointer;
            user-select: none;
            text-align: left;
            width: 100%;
            position: relative;
            white-space: normal;
            word-break: break-word;
            font-family: var(--pfont);
            overflow: hidden;
            border: none;
            line-height: 1.55;
            transition: background 0.18s;
        }

        .stylishfontslist li p:hover,
        .stylishfontslist li p:focus {
            outline: none;
            background: var(--surface-2);
        }

        /* Card label (font name) */
        .stylishfontslist li i,
        #flourishList li i {
            position: absolute;
            bottom: 5px;
            left: 16px;
            font-size: 10px;
            font-weight: 700;
            color: var(--text-muted);
            z-index: 2;
            display: flex;
            align-items: baseline;
            gap: 4px;
            letter-spacing: 0.06em;
            text-transform: uppercase;
            font-style: normal;
            font-family: var(--ftfamily);
            opacity: 0.65;
        }

        /* Copy button inside card */
        .stylishfontslist li button {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
            font-size: 10px;
            font-weight: 700;
            padding: 8px 14px 8px 10px;
            gap: 4px;
            color: var(--text-muted);
            background: var(--surface-2);
            border: none;
            border-left: 1px solid var(--border);
            cursor: pointer;
            font-family: var(--ftfamily);
            letter-spacing: 0.08em;
            text-transform: uppercase;
            transition: background 0.18s, color 0.18s;
        }

        .stylishfontslist li button:hover {
            background: var(--gradient-ac);
            color: #fff;
        }

        /* Dark overrides — cards */
        .dark .stylishfontslist li {
            background: var(--surface);
            border-color: var(--border);
        }

        .dark .stylishfontslist li:hover {
            border-color: var(--ac-light);
            box-shadow: var(--shadow-md), 0 0 0 1px var(--ac-light), 0 8px 32px rgba(91, 77, 243, 0.20);
        }

        .dark .stylishfontslist li p {
            background: var(--surface);
        }

        .dark .stylishfontslist li p:hover,
        .dark .stylishfontslist li p:focus {
            background: var(--surface-2);
        }

        .dark .stylishfonts li button {
            background: var(--surface-2);
            color: var(--text-muted);
            border-color: var(--border-soft);
        }

        .dark .stylishfonts li button:hover {
            background: var(--gradient-ac);
            color: #fff;
        }

        .stylishfontslist {
            margin-bottom: 32px;
        }

        .stylishfontslist h2 {
            color: var(--text-muted);
            margin-bottom: 12px;
            font-size: 0.70rem;
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .stylishfontslist h2::after {
            content: '';
            flex: 1;
            height: 1px;
            background: var(--border);
        }

        /* ══════════════════════════════════════════════════════════
   FLOATING ACTION BUTTONS
══════════════════════════════════════════════════════════ */
        .buttons {
            position: fixed;
            right: 18px;
            bottom: 80px;
            z-index: 99;
            display: flex;
            flex-direction: column-reverse;
            gap: 8px;
        }

        .buttons button {
            width: 48px;
            height: 48px;
            border-radius: var(--radius-md);
            background: var(--surface);
            border: 1px solid var(--border-mid);
            box-shadow: var(--shadow-md);
            display: inline-flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            color: var(--text-secondary);
            transition: all 0.2s var(--ease-spring);
        }

        .buttons button:hover {
            background: var(--gradient-ac);
            color: #fff;
            border-color: transparent;
            transform: scale(1.10) translateY(-2px);
            box-shadow: var(--shadow-ac);
        }

        #bulbBtn svg {
            stroke: var(--ac);
        }

        #bulbBtn:hover svg {
            stroke: #fff;
        }

        /* Dark overrides — floating buttons */
        .dark .buttons button {
            background: var(--surface-2);
            color: var(--text-secondary);
            border-color: rgb(91 77 243);
        }

        .dark .buttons button:hover {
            background: var(--gradient-ac);
            color: #fff;
            border-color: transparent;
        }

        /* ══════════════════════════════════════════════════════════
   SIDE DRAWER (Float Menu)
══════════════════════════════════════════════════════════ */
        .f-m {
            position: fixed;
            top: 0;
            right: 0;
            width: 300px;
            height: 100%;
            background: var(--surface);
            border-left: 1px solid var(--border-mid);
            box-shadow: -16px 0 64px rgba(15, 13, 46, 0.15);
            z-index: 9999;
            display: none;
            overflow-y: auto;
            padding: 24px 20px;
        }

        .floatmenu h3 {
            color: var(--text-muted);
            font-size: 0.60rem;
            text-transform: uppercase;
            letter-spacing: 0.18em;
            font-weight: 700;
            margin-bottom: 8px;
        }

        .floatmenu a,
        .right-menu a {
            display: inline-block;
            padding: 7px 14px;
            border-radius: var(--radius-sm);
            font-size: 0.82rem;
            font-weight: 500;
            color: var(--text-secondary);
            background: var(--surface-2);
            border: 1px solid var(--border-soft);
            margin: 3px;
            font-family: var(--ftfamily);
            white-space: nowrap;
            transition: all 0.18s var(--ease-out);
        }

        .floatmenu a:hover,
        .right-menu a:hover {
            color: var(--ac);
            background: var(--ac-soft);
            border-color: var(--ac);
            transform: translateY(-1px);
            box-shadow: 0 4px 12px var(--ac-glow);
        }

        /* Dark overrides — drawer */
        .dark .f-m {
            background: var(--surface);
            border-color: var(--border-mid);
            box-shadow: -16px 0 64px rgba(0, 0, 0, 0.40);
        }

        .dark .floatmenu a,
        .dark .right-menu a {
            background: var(--surface-2);
            color: var(--text-secondary);
            border-color: var(--border-soft);
        }

        .dark .floatmenu a:hover,
        .dark .right-menu a:hover {
            background: rgba(91, 77, 243, 0.14);
            color: var(--ac-light);
            border-color: rgba(91, 77, 243, 0.35);
        }

        #fMN {
            overflow: auto;
        }

        .fAr {
            display: none;
        }

        #menu {
            color: var(--text-secondary);
        }

        /* ══════════════════════════════════════════════════════════
   CLOSE BUTTON (drawer)
══════════════════════════════════════════════════════════ */
        .close-button {
            position: fixed;
            top: 12px;
            right: 12px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 40px;
            height: 40px;
            font-size: 16px;
            border: 1px solid var(--border-mid);
            border-radius: var(--radius-md);
            color: var(--text-secondary);
            background: var(--surface);
            box-shadow: var(--shadow-sm);
            cursor: pointer;
            z-index: 10000;
            padding: 0;
            transition: all 0.18s var(--ease-out);
        }

        .close-button:hover {
            border-color: var(--ac);
            background: var(--ac-soft);
            color: var(--ac);
            box-shadow: 0 4px 14px var(--ac-glow);
        }

        .dark .close-button {
            background: var(--surface);
            border-color: var(--border-mid);
            color: var(--text-secondary);
        }

        .dark .close-button:hover {
            background: rgba(91, 77, 243, 0.14);
            color: var(--ac-light);
            border-color: rgba(91, 77, 243, 0.4);
        }

        /* ══════════════════════════════════════════════════════════
   COPIED TOAST
══════════════════════════════════════════════════════════ */
        .copied {
            display: flex;
            flex-direction: column;
            gap: 4px;
            padding: 14px 16px;
            position: fixed;
            top: 12%;
            right: 0;
            z-index: 9999;
            width: 210px;
            background: var(--indigo-950);
            color: #c4b9ff;
            border-radius: var(--radius-lg) 0 0 var(--radius-lg);
            border: 1px solid rgba(91, 77, 243, 0.30);
            border-right: none;
            box-shadow: -8px 8px 40px rgba(15, 13, 46, 0.35);
            animation: slideIn 0.28s var(--ease-spring);
        }

        @keyframes slideIn {
            from {
                transform: translateX(110%);
                opacity: 0;
            }

            to {
                transform: translateX(0);
                opacity: 1;
            }
        }

        .copied textarea {
            background: transparent;
            border: none;
            color: rgba(196, 185, 255, 0.78);
            font-family: var(--mono);
            font-size: 0.78rem;
            resize: none;
            outline: none;
            padding: 6px;
        }

        .copied-btn {
            position: absolute;
            top: 8px;
            left: 10px;
            background: var(--gradient-ac);
            color: #fff;
            border-radius: var(--radius-pill);
            padding: 3px 10px;
            font-size: 0.66rem;
            font-weight: 700;
            border: none;
            cursor: default;
            letter-spacing: 0.09em;
            text-transform: uppercase;
            box-shadow: 0 2px 10px rgba(91, 77, 243, 0.35);
        }

        /* ══════════════════════════════════════════════════════════
   LOADER
══════════════════════════════════════════════════════════ */
        .loader {
            width: 36px;
            height: 36px;
            border: 2px solid var(--surface-3);
            border-top-color: var(--ac);
            border-radius: 50%;
            animation: spin 0.65s linear infinite;
        }

        @keyframes spin {
            to {
                transform: rotate(360deg);
            }
        }

        .page-load-status,
        .aryapage {
            display: none;
            align-items: center;
            justify-content: center;
            width: 100%;
            margin: 24px 0;
        }

        .loadmore {
            text-align: center;
            padding: 16px 0;
        }

        /* ══════════════════════════════════════════════════════════
   POPUP MODAL — Glassmorphism
══════════════════════════════════════════════════════════ */
        .flourish-popup {
            position: fixed;
            inset: 0;
            background: rgba(15, 13, 46, 0.55);
            backdrop-filter: blur(12px);
            -webkit-backdrop-filter: blur(12px);
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 999;
            animation: fadeIn 0.2s ease;
        }

        @keyframes fadeIn {
            from {
                opacity: 0;
            }

            to {
                opacity: 1;
            }
        }

        .flourish-popup.hidden {
            display: none;
        }

        .popup-box {
            background: var(--surface);
            width: 92%;
            max-width: 460px;
            max-height: 72vh;
            border-radius: var(--radius-xl);
            overflow: hidden;
            display: flex;
            flex-direction: column;
            box-shadow: var(--shadow-xl), 0 0 0 1px var(--border-mid);
            animation: popIn 0.28s var(--ease-spring);
        }

        /* Gradient accent bar at top */
        .popup-box::before {
            content: '';
            display: block;
            height: 3px;
            background: var(--gradient-ac);
            flex-shrink: 0;
        }

        @keyframes popIn {
            from {
                transform: scale(0.92) translateY(16px);
                opacity: 0;
            }

            to {
                transform: scale(1) translateY(0);
                opacity: 1;
            }
        }

        .popup-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            background: var(--surface-2);
            border-bottom: 1px solid var(--border);
            padding: 4px 16px;
        }

        .popup-header h3 {
            font-family: var(--display);
            font-size: 1.1rem;
            font-weight: 400;
            font-style: italic;
            color: var(--text-primary);
            padding: 12px 0;
            margin: 0;
        }

        .popup-header button {
            background: none;
            border: none;
            color: var(--text-muted);
            cursor: pointer;
            font-size: 16px;
            padding: 14px;
            border-radius: var(--radius-sm);
            transition: background 0.18s, color 0.18s;
        }

        .popup-header button:hover {
            background: var(--ac-soft);
            color: var(--ac);
        }

        /* Dark overrides — popup */
        .dark .popup-box {
            background: var(--surface);
            box-shadow: var(--shadow-xl), 0 0 0 1px var(--border-mid);
        }

        .dark .popup-header {
            background: var(--surface-2);
            border-color: var(--border);
        }

        .dark .popup-header h3 {
            color: var(--text-primary);
        }

        .dark .popup-header button:hover {
            background: rgba(91, 77, 243, 0.14);
            color: var(--ac-light);
        }

        /* ══════════════════════════════════════════════════════════
   FLOURISH LIST (inside popup)
══════════════════════════════════════════════════════════ */
        #flourishList {
            padding: 14px;
            overflow-y: auto;
            list-style: none;
            flex: 1;
        }

        #flourishList li {
            margin-bottom: 8px;
            position: relative;
            border-radius: var(--radius-md);
            overflow: hidden;
            border: 1px solid var(--border-soft);
            background: var(--surface-2);
            transition: transform 0.18s var(--ease-spring), border-color 0.18s, box-shadow 0.18s;
        }

        #flourishList li:hover {
            border-color: var(--ac);
            transform: translateY(-2px);
            box-shadow: 0 6px 20px var(--ac-glow);
        }

        #flourishList .count {
            display: flex;
            justify-content: flex-end;
            font-size: 9px;
            color: var(--text-muted);
            padding: 2px 8px;
            font-weight: 700;
            letter-spacing: 0.07em;
            text-transform: uppercase;
        }

        #flourishList li p {
            font-size: 1rem !important;
            color: var(--text-primary);
            border-radius: 0;
            border: none;
            background: transparent;
            text-align: center;
            padding: 12px;
            font-family: var(--pfont);
            cursor: pointer;
            transition: color 0.15s;
        }

        #flourishList li:hover p {
            color: var(--ac);
        }

        /* Dark overrides — flourish list */
        .dark #flourishList li {
            background: var(--surface-2);
            border-color: var(--border-soft);
        }

        .dark #flourishList li:hover {
            border-color: var(--ac-light);
            box-shadow: 0 6px 20px rgba(91, 77, 243, 0.22);
        }

        .dark #flourishList li p {
            color: var(--text-primary);
        }

        .dark #flourishList li:hover p {
            color: var(--ac-light);
        }

        /* ══════════════════════════════════════════════════════════
   FLOURISH FOOTER (popup)
══════════════════════════════════════════════════════════ */
        .flourishit {
            padding: 14px 18px;
            text-align: center;
            border-top: 1px solid var(--border);
            background: var(--surface-2);
        }

        .dark .flourishit {
            background: var(--surface-2);
            border-color: var(--border);
        }

        .select-flourish {
            display: flex;
            align-items: center;
            gap: 10px;
            margin-bottom: 10px;
            flex-wrap: wrap;
            justify-content: center;
        }

        .select-flourish label {
            font-size: 0.72rem;
            font-weight: 700;
            color: var(--text-secondary);
            letter-spacing: 0.06em;
            text-transform: uppercase;
        }

        #flourishSelect {
            appearance: none;
            padding: 9px 28px 9px 14px;
            font-size: 0.84rem;
            font-family: var(--ftfamily);
            font-weight: 500;
            border-radius: var(--radius-pill);
            border: 1.5px solid var(--border-mid);
            background: var(--surface);
            color: var(--text-primary);
            cursor: pointer;
            outline: none;
            transition: border-color 0.18s, box-shadow 0.18s;
        }

        #flourishSelect:focus {
            border-color: var(--ac);
            box-shadow: 0 0 0 3px var(--ac-ring);
        }

        .dark #flourishSelect {
            background: var(--surface);
            color: var(--text-primary);
            border-color: var(--border-mid);
        }

        #flourishRegenerate {
            padding: 12px 28px;
            border-radius: var(--radius-pill);
            background: var(--gradient-ac);
            color: #fff;
            font-family: var(--display);
            font-weight: 400;
            font-style: italic;
            font-size: 1.05rem;
            border: none;
            cursor: pointer;
            box-shadow: var(--shadow-ac);
            transition: transform 0.2s var(--ease-spring), box-shadow 0.2s;
        }

        #flourishRegenerate:hover {
            transform: translateY(-2px) scale(1.02);
            box-shadow: 0 10px 32px rgba(91, 77, 243, 0.44);
        }

        #flourishRegenerate:active {
            transform: scale(0.97);
        }

        /* ══════════════════════════════════════════════════════════
   ADS PLACEHOLDER
══════════════════════════════════════════════════════════ */
        .ads {
            grid-column: 1 / -1;
            display: block;
            width: 100%;
            margin: 14px 0;
            border-radius: var(--radius-md);
            background: var(--surface-2);
            border: 1.5px dashed var(--border-mid);
            overflow: hidden;
        }

        .dark .ads {
            background: var(--surface-2);
            border-color: var(--border-mid);
        }

        /* ══════════════════════════════════════════════════════════
   FOOTER
══════════════════════════════════════════════════════════ */
        footer {
            margin-top: 72px;
            background: var(--gradient-hero);
            padding: 32px 0;
            position: relative;
        }

        footer::before {
            content: '';
            display: block;
            height: 1px;
            background: linear-gradient(90deg,
                    transparent 0%,
                    rgba(91, 77, 243, 0.5) 25%,
                    rgba(129, 140, 248, 0.85) 50%,
                    rgba(91, 77, 243, 0.5) 75%,
                    transparent 100%);
            width: 100%;
            position: absolute;
            top: 0;
            left: 0;
        }

        footer .inner {
            max-width: var(--maxw);
            margin: 0 auto;
            padding: 0 24px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            gap: 12px;
            flex-wrap: wrap;
        }

        footer a {
            color: var(--indigo-400);
            font-family: var(--display);
            font-style: italic;
            font-weight: 400;
            font-size: 1.05rem;
            transition: color 0.18s;
        }

        footer a:hover {
            color: #fff;
        }

        footer p,
        footer span {
            color: rgba(224, 231, 255, 0.38);
            font-size: 0.78rem;
            letter-spacing: 0.04em;
        }

        /* ══════════════════════════════════════════════════════════
   INFO TEXT BLOCK — Article / SEO Content
══════════════════════════════════════════════════════════ */
        .info-text {
            font-family: var(--ftfamily);
            line-height: 1.82;
            color: var(--text-secondary);
            padding: 52px 48px;
            background: var(--surface);
            margin-top: 32px;
            border-radius: var(--radius-xl);
            border: 1px solid var(--border-soft);
            box-shadow: var(--shadow-sm);
            white-space: normal;
            word-break: break-word;
        }

        .info-text h1 {
            font-family: var(--display);
            font-size: 2.5rem;
            font-style: italic;
            font-weight: 400;
            color: var(--text-primary);
            text-align: center;
            margin-bottom: 36px;
            padding-bottom: 24px;
            border-bottom: 1px solid var(--border);
            letter-spacing: -0.01em;
            background: none;
            -webkit-text-fill-color: var(--text-primary);
            line-height: 1.2;
        }

        .info-text h2 {
            font-family: var(--ftfamily);
            font-size: 1.35rem;
            font-weight: 700;
            color: var(--text-primary);
            margin-top: 48px;
            margin-bottom: 14px;
            letter-spacing: -0.02em;
            text-transform: none;
            font-style: normal;
            position: relative;
            padding-left: 18px;
        }

        .info-text h2::before {
            content: '';
            position: absolute;
            left: 0;
            top: 6px;
            bottom: 6px;
            width: 3px;
            background: var(--gradient-ac);
            border-radius: 3px;
        }

        .info-text h3 {
            font-family: var(--ftfamily);
            font-size: 1.05rem;
            font-weight: 600;
            color: var(--text-primary);
            margin-top: 28px;
            margin-bottom: 8px;
            font-style: normal;
        }

        .info-text p {
            font-size: 1rem;
            margin-bottom: 18px;
            text-align: justify;
            color: var(--text-secondary);
        }

        .info-text ul,
        .info-text ol {
            margin-bottom: 24px;
            padding-left: 22px;
        }

        .info-text li {
            font-size: 1rem;
            margin-bottom: 8px;
        }

        .info-text strong {
            color: var(--text-primary);
            font-weight: 600;
        }

        .info-text code {
            background: var(--surface-2);
            color: var(--ac);
            padding: 2px 8px;
            border-radius: var(--radius-xs);
            font-family: var(--mono);
            font-size: 0.87rem;
            word-break: break-all;
            display: inline-block;
            margin: 1px;
            border: 1px solid var(--border-soft);
        }

        .info-text img {
            max-width: 100%;
            border-radius: var(--radius-md);
        }

        .info-text ul {
            overflow: auto;
        }

        .info-text .example-box {
            background: var(--surface-2);
            border-left: 3px solid var(--ac);
            border-radius: var(--radius-md);
            padding: 20px 24px;
            margin: 24px 0;
            box-shadow: 0 2px 12px rgba(91, 77, 243, 0.06);
        }

        .info-text .example-title {
            font-weight: 700;
            font-size: 0.72rem;
            color: var(--ac);
            margin-top: 14px;
            margin-bottom: 8px;
            letter-spacing: 0.12em;
            font-style: normal;
            text-transform: uppercase;
        }

        .info-text .example-title:first-child {
            margin-top: 0;
        }

        .info-text .example-box ol {
            list-style-type: decimal;
            margin-bottom: 12px;
        }

        .info-text .example-box li {
            font-size: 1.05rem;
            letter-spacing: 0.02em;
            color: var(--text-primary);
            background: var(--surface);
            padding: 9px 14px;
            margin-bottom: 5px;
            border-radius: var(--radius-sm);
            border: 1px solid var(--border-soft);
        }
        .copyright-area {
            color: #fff;
        }

        /* Dark overrides — info text */
        .dark .info-text {
            background: var(--surface);
            border-color: var(--border-soft);
        }

        .dark .info-text h1 {
            color: var(--text-primary);
            -webkit-text-fill-color: var(--text-primary);
            border-color: var(--border);
        }

        .dark .entry-header p {
            background: var(--surface);
            border-color: var(--border-mid);
            color: var(--text-secondary);
        }

        .dark .info-text h2 {
            color: var(--text-primary);
        }

        .dark .info-text h3 {
            color: var(--text-secondary);
        }

        .dark .info-text p {
            color: var(--text-secondary);
        }

        .dark .info-text strong {
            color: var(--text-primary);
        }

        .dark .info-text code {
            background: var(--surface-3);
            color: var(--ac-light);
            border-color: var(--border-soft);
        }

        .dark .info-text .example-box {
            background: var(--surface-2);
        }

        .dark .info-text .example-box li {
            background: var(--surface-3);
            border-color: var(--border-soft);
            color: var(--text-primary);
        }

        /* ══════════════════════════════════════════════════════════
   DARK HEADER OVERRIDE
══════════════════════════════════════════════════════════ */
        .dark header {
            background: linear-gradient(135deg, #060513 0%, #0f0d2e 50%, #13112a 100%);
        }

        /* ══════════════════════════════════════════════════════════
   RESPONSIVE — Tablet
══════════════════════════════════════════════════════════ */
        @media (max-width: 940px) {
            .grid ul {
                grid-template-columns: repeat(2, 1fr);
            }
        }

        /* ══════════════════════════════════════════════════════════
   RESPONSIVE — Mobile
══════════════════════════════════════════════════════════ */
        @media (max-width: 640px) {
            h1 {
                font-size: 1.65rem;
            }

            .container {
                padding: 0 16px;
                max-width: 100%;
            }

            .input-section {
                margin-left: -16px;
                margin-right: -16px;
                padding-left: 16px;
                padding-right: 16px;
            }

            .f-m {
                width: 100%;
            }

            .font-size-controller input[type="range"] {
                width: 130px;
            }

            .grid ul {
                grid-template-columns: 1fr;
            }

            .info-text {
                padding: 28px 20px;
                border-radius: var(--radius-lg);
            }

            .info-text h1 {
                font-size: 1.8rem;
            }

            .floatmenu a {
                display: block;
            }

            .info-text h2 {
                font-size: 1.2rem;
            }
        }

        /* ══════════════════════════════════════════════════════════
   ACCESSIBILITY — Reduce Motion
══════════════════════════════════════════════════════════ */
        @media (prefers-reduced-motion: reduce) {

            *,
            *::before,
            *::after {
                animation-duration: 0.01ms !important;
                animation-iteration-count: 1 !important;
                transition-duration: 0.01ms !important;
            }
        }