    @import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;500;600;700;800&family=Manrope:wght@300;400;500;600;700&family=JetBrains+Mono:ital,wght@0,400;0,500;1,400&display=swap');

    /* 1. DESIGN TOKENS */
    :root {
      /* Layout */
      --max-w: 1200px;
      --gutter: 32px;

      /* Core palette — Light (default) */
      --bg: #F5F7FF;
      --bg-alt: #EEF1FB;
      --surface: #FFFFFF;
      --surface-2: #F8F9FE;
      --surface-3: #EEF0FA;
      --overlay: rgba(245, 247, 255, 0.82);

      /* Accent — Electric Indigo */
      --ac: #4F46E5;
      --ac-2: #6366F1;
      --ac-hover: #4338CA;
      --ac-soft: #EEF2FF;
      --ac-pale: #F5F3FF;
      --ac-glow: rgba(79, 70, 229, 0.15);
      --ac-ring: rgba(79, 70, 229, 0.25);

      /* Teal secondary */
      --tl: #0EA5E9;
      --tl-soft: #E0F2FE;

      /* Text */
      --text-1: #0F0F1A;
      --text-2: #4B5268;
      --text-3: #9499B0;
      --text-inv: #FFFFFF;

      /* Borders */
      --line: rgba(79, 70, 229, 0.08);
      --line-mid: rgba(79, 70, 229, 0.13);
      --line-strong: rgba(79, 70, 229, 0.22);

      /* Shadows — cool blue-tinted */
      --sh-xs: 0 1px 3px rgba(15, 15, 26, 0.05);
      --sh-sm: 0 2px 12px rgba(15, 15, 26, 0.07), 0 1px 3px rgba(15, 15, 26, 0.04);
      --sh-md: 0 6px 28px rgba(15, 15, 26, 0.09), 0 2px 8px rgba(15, 15, 26, 0.05);
      --sh-lg: 0 16px 52px rgba(15, 15, 26, 0.11), 0 4px 16px rgba(15, 15, 26, 0.06);
      --sh-xl: 0 28px 72px rgba(15, 15, 26, 0.14), 0 8px 24px rgba(15, 15, 26, 0.08);
      --sh-ac: 0 6px 28px rgba(79, 70, 229, 0.30), 0 2px 8px rgba(79, 70, 229, 0.16);

      /* Radii */
      --r-xs: 4px;
      --r-sm: 8px;
      --r-md: 12px;
      --r-lg: 18px;
      --r-xl: 24px;
      --r-pill: 999px;

      /* Typography */
      --font-ui: 'Manrope', system-ui, sans-serif;
      --font-display: 'Syne', system-ui, sans-serif;
      --font-mono: 'JetBrains Mono', 'Cascadia Code', monospace;

      /* Easings */
      --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
      --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
      --ease-snappy: cubic-bezier(0.22, 1, 0.36, 1);

      /* Gradients */
      --grad-header: linear-gradient(135deg, #0F0F1A 0%, #1A1A2E 50%, #16213E 100%);
      --grad-ac: linear-gradient(135deg, #4F46E5 0%, #6366F1 50%, #7C3AED 100%);
      --grad-subtle: linear-gradient(180deg, #F5F7FF 0%, #EEF1FB 100%);
      --grad-mesh: radial-gradient(ellipse at 20% 50%, rgba(99, 102, 241, 0.06) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 20%, rgba(14, 165, 233, 0.05) 0%, transparent 55%);
    }

    /* Dark mode tokens */
    .dark {
      --bg: #0A0A12;
      --bg-alt: #10101C;
      --surface: #13131F;
      --surface-2: #1A1A28;
      --surface-3: #222233;
      --overlay: rgba(10, 10, 18, 0.85);

      --ac-soft: rgba(79, 70, 229, 0.16);
      --ac-pale: rgba(79, 70, 229, 0.10);
      --ac-glow: rgba(99, 102, 241, 0.22);
      --ac-ring: rgba(99, 102, 241, 0.30);

      --text-1: #E8E8F5;
      --text-2: #8B8FA8;
      --text-3: #52566A;

      --line: rgba(232, 232, 245, 0.07);
      --line-mid: rgba(232, 232, 245, 0.11);
      --line-strong: rgba(232, 232, 245, 0.18);

      --sh-xs: 0 1px 3px rgba(0, 0, 0, 0.30);
      --sh-sm: 0 2px 12px rgba(0, 0, 0, 0.38), 0 1px 3px rgba(0, 0, 0, 0.22);
      --sh-md: 0 6px 28px rgba(0, 0, 0, 0.46), 0 2px 8px rgba(0, 0, 0, 0.26);
      --sh-lg: 0 16px 52px rgba(0, 0, 0, 0.56), 0 4px 16px rgba(0, 0, 0, 0.30);
      --sh-xl: 0 28px 72px rgba(0, 0, 0, 0.66), 0 8px 24px rgba(0, 0, 0, 0.36);
      --sh-ac: 0 6px 28px rgba(79, 70, 229, 0.38), 0 2px 8px rgba(79, 70, 229, 0.22);

      --grad-header: linear-gradient(135deg, #05050D 0%, #0A0A18 50%, #0D0D1F 100%);
      --grad-subtle: linear-gradient(180deg, #0A0A12 0%, #10101C 100%);
      --grad-mesh: radial-gradient(ellipse at 20% 50%, rgba(79, 70, 229, 0.08) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 20%, rgba(14, 165, 233, 0.06) 0%, transparent 55%);
    }


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

    html,
    body {
      height: 100%;
    }

    a {
      text-decoration: none;
      color: inherit;
    }

    img {
      max-width: 100%;
      display: block;
    }

    ul {
      list-style: none;
    }


    /* 3. THEME TRANSITIONS */
    body,
    header,
    footer,
    .surface-transition {
      transition:
        background-color 0.30s var(--ease-snappy),
        border-color 0.30s var(--ease-snappy),
        color 0.20s var(--ease-snappy);
    }

    /* Never animate the loader */
    .loader,
    .loader * {
      transition: none !important;
    }


    /* 4. BODY & BASE TYPOGRAPHY */
    body {
      font-family: var(--font-ui);
      font-size: 15px;
      line-height: 1.7;
      color: var(--text-1);
      background-color: var(--bg);
      background-image: var(--grad-mesh);
      -webkit-font-smoothing: antialiased;
      -moz-osx-font-smoothing: grayscale;
      padding-bottom: 120px;
    }

    /* Heading scale */
    h1 {
      font-family: var(--font-display);
      font-size: clamp(1.8rem, 4vw, 2.5rem);
      font-weight: 800;
      line-height: 1.15;
      letter-spacing: -0.03em;
      color: var(--text-1);
      margin: 0;
    }

    h2 {
      font-family: var(--font-display);
      font-size: 0.65rem;
      font-weight: 700;
      letter-spacing: 0.16em;
      text-transform: uppercase;
      color: var(--text-3);
    }

    h3 {
      font-family: var(--font-ui);
      font-size: 0.88rem;
      font-weight: 600;
      color: var(--text-2);
    }


    /* 5. LAYOUT CONTAINER */
    .container {
      max-width: var(--max-w);
      margin: 0 auto;
      padding: 0 var(--gutter);
    }


    /* 6. HEADER */
    header {
      background: var(--grad-header);
      position: relative;
      z-index: 50;
      box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04), 0 8px 40px rgba(0, 0, 0, 0.28);
    }

    /* Indigo shimmer bar at bottom */
    header::after {
      content: '';
      display: block;
      position: absolute;
      bottom: 0;
      left: 0;
      right: 0;
      height: 1px;
      background: linear-gradient(90deg,
          transparent 0%,
          rgba(99, 102, 241, 0.6) 25%,
          rgba(139, 92, 246, 0.9) 50%,
          rgba(99, 102, 241, 0.6) 75%,
          transparent 100%);
    }

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

    header a {
      font-family: var(--font-display);
      font-size: 0.68rem;
      font-weight: 700;
      letter-spacing: 0.10em;
      text-transform: uppercase;
      color: rgba(255, 255, 255, 0.45);
      padding: 6px 12px;
      border-radius: var(--r-sm);
      transition: color 0.18s, background 0.18s;
    }

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

    /* Entry header below hero nav */
    .entry-header {
      width: 100%;
      text-align: center;
      padding: 14px 0 6px;
    }

    .entry-header p {
      color: var(--text-3);
      font-size: 0.85rem;
      font-weight: 500;
    }


    /* 7. THEME TOGGLE */
    #themeToggle {
      display: inline-flex;
      align-items: center;
      gap: 7px;
      padding: 7px 18px;
      border-radius: var(--r-pill);
      border: 1px solid rgba(255, 255, 255, 0.12);
      background: rgba(255, 255, 255, 0.07);
      color: rgba(255, 255, 255, 0.75);
      font-family: var(--font-display);
      font-size: 0.65rem;
      font-weight: 700;
      letter-spacing: 0.10em;
      text-transform: uppercase;
      cursor: pointer;
      white-space: nowrap;
      flex-shrink: 0;
      backdrop-filter: blur(8px);
      -webkit-backdrop-filter: blur(8px);
      transition: background 0.2s, border-color 0.2s, color 0.2s, box-shadow 0.2s;
    }

    #themeToggle:hover {
      background: rgba(99, 102, 241, 0.35);
      border-color: rgba(99, 102, 241, 0.55);
      color: #fff;
      box-shadow: 0 4px 20px rgba(79, 70, 229, 0.28);
    }

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

    #themeToggle .icon-moon {
      display: inline;
    }

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

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

    .dark #themeToggle .icon-moon {
      display: none;
    }

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

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

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


    /* 8. TOP MENU — Category Pills */
    #topMenu {
      display: flex;
      align-items: center;
      gap: 6px;
      padding: 20px 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 17px;
      border-radius: var(--r-pill);
      font-family: var(--font-display);
      font-size: 0.67rem;
      font-weight: 700;
      letter-spacing: 0.09em;
      text-transform: uppercase;
      color: var(--text-2);
      border: 1px solid var(--line-mid);
      background: var(--surface);
      white-space: nowrap;
      box-shadow: var(--sh-xs);
      transition:
        color 0.18s,
        background 0.18s,
        border-color 0.18s,
        transform 0.22s var(--ease-spring),
        box-shadow 0.18s;
    }

    #topMenu a:hover {
      color: var(--ac);
      background: var(--ac-pale);
      border-color: rgba(79, 70, 229, 0.30);
      transform: translateY(-2px);
      box-shadow: 0 4px 16px var(--ac-glow);
    }

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

    #topMenu h3 {
      font-family: var(--font-display);
      font-size: 0.56rem;
      font-weight: 700;
      color: var(--text-3);
      text-transform: uppercase;
      letter-spacing: 0.20em;
      white-space: nowrap;
      margin: 0 4px;
      opacity: 0.55;
    }

    .dark #topMenu a {
      background: var(--surface);
      border-color: var(--line-mid);
      color: var(--text-2);
    }

    .dark #topMenu a:hover {
      color: var(--ac-2);
      background: rgba(99, 102, 241, 0.12);
      border-color: rgba(99, 102, 241, 0.32);
    }

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


    /* 9. STICKY SEARCH BAR */
    .input-section {
      display: flex;
      align-items: center;
      gap: 10px;
      position: sticky;
      top: 0;
      z-index: 40;
      padding: 14px 0 16px;
      margin-left: calc(-1 * var(--gutter));
      margin-right: calc(-1 * var(--gutter));
      padding-left: var(--gutter);
      padding-right: var(--gutter);
      background: var(--overlay);
      backdrop-filter: blur(20px) saturate(1.8);
      -webkit-backdrop-filter: blur(20px) saturate(1.8);
      border-bottom: 1px solid var(--line);
    }

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

    .input-section input {
      width: 100%;
      padding: 14px 52px 14px 24px;
      border-radius: var(--r-pill);
      border: 1.5px solid var(--line-mid);
      background: var(--surface);
      font-family: var(--font-ui);
      font-size: 1rem;
      font-weight: 400;
      color: var(--text-1);
      outline: none;
      box-shadow: var(--sh-sm), inset 0 1px 3px rgba(15, 15, 26, 0.03);
      transition:
        border-color 0.22s,
        box-shadow 0.22s,
        transform 0.22s var(--ease-spring);
    }

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

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

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

    .clear-overlay {
      position: absolute;
      right: 4px;
      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-3);
      z-index: 10;
      transition: color 0.18s, background 0.18s;
    }

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

    .dark .input-section {
      background: rgba(10, 10, 18, 0.86);
      border-color: var(--line);
    }

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

    .dark .input-section input:focus {
      border-color: var(--ac-2);
      box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.22), var(--sh-sm);
    }


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

    button:hover {
      opacity: 0.92;
    }


    /* 11. BUTTON VARIANTS  */

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

    .btn:hover {
      transform: translateY(-2px) scale(1.015);
      box-shadow: 0 12px 36px rgba(79, 70, 229, 0.44), 0 4px 14px rgba(79, 70, 229, 0.22);
      opacity: 1;
    }

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

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

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

    /* Close / danger variant */
    button.btn.closeit {
      background: rgba(239, 68, 68, 0.08);
      color: #EF4444;
      border-color: rgba(239, 68, 68, 0.22);
    }

    /* Hamburger / menu toggle */
    button#menu {
      height: 42px;
      width: 42px;
      border-radius: var(--r-md);
      border: 1.5px solid var(--line-mid);
      background: var(--surface);
      box-shadow: var(--sh-xs);
      color: var(--text-2);
      font-size: 1.2rem;
      transition:
        border-color 0.2s,
        background 0.2s,
        color 0.2s,
        box-shadow 0.2s;
    }

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

    /* Dark variants */
    .dark .btn {
      background: var(--grad-ac);
      color: #fff;
    }

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

    .dark .btn.secondary:hover {
      background: rgba(99, 102, 241, 0.14);
      color: var(--ac-2);
      border-color: rgba(99, 102, 241, 0.36);
    }

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

    .dark button#menu:hover {
      background: rgba(99, 102, 241, 0.14);
      border-color: rgba(99, 102, 241, 0.36);
      color: var(--ac-2);
    }


    /* 12. OTHER TOOLS LINKS  */
    #othertools a {
      padding: 8px 16px;
      background: var(--surface);
      color: var(--text-2);
      border-radius: var(--r-sm);
      font-family: var(--font-display);
      font-size: 0.72rem;
      font-weight: 700;
      border: 1px solid var(--line);
      letter-spacing: 0.07em;
      text-transform: uppercase;
      box-shadow: var(--sh-xs);
      transition:
        background 0.2s,
        color 0.2s,
        border-color 0.2s,
        transform 0.22s var(--ease-spring),
        box-shadow 0.2s;
    }

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

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

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


    /* 13. SVG ICONS */
    svg {
      width: 20px;
      height: 20px;
      stroke: currentColor;
      stroke-width: 1.8;
      fill: none;
      flex-shrink: 0;
    }

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


    /* 14. 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 {
      background: transparent;
      border: none;
      color: var(--text-2);
      font-family: var(--font-display);
      font-size: 28px !important;
      font-weight: 700;
      padding: 10px 0 0;
      margin: 0;
      cursor: pointer;
      text-align: center;
      transition: color 0.2s, transform 0.26s var(--ease-spring);
    }

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

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

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

    /* Random button */
    #randombutton {
      display: inline-flex;
      align-items: center;
      gap: 9px;
      border-radius: var(--r-pill);
      padding: 13px 34px;
      margin-top: 16px;
      background: var(--grad-ac);
      color: #fff;
      font-family: var(--font-display);
      font-weight: 700;
      font-size: 0.88rem;
      letter-spacing: 0.07em;
      text-transform: uppercase;
      border: none;
      cursor: pointer;
      box-shadow: var(--sh-ac);
      transition:
        transform 0.22s var(--ease-spring),
        box-shadow 0.2s;
    }

    #randombutton:hover {
      transform: translateY(-3px) scale(1.02);
      box-shadow: 0 16px 44px rgba(79, 70, 229, 0.44);
    }


    /* 15. 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-family: var(--font-display);
      font-size: 0.60rem;
      font-weight: 700;
      color: var(--text-3);
      text-transform: uppercase;
      letter-spacing: 0.15em;
    }

    .font-size-controller input[type="range"] {
      width: 200px;
      height: 4px;
      appearance: none;
      -webkit-appearance: none;
      background: linear-gradient(90deg, var(--ac), var(--ac-2));
      border-radius: var(--r-pill);
      outline: none;
      border: none;
      cursor: pointer;
    }

    .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 10px rgba(79, 70, 229, 0.30);
      cursor: grab;
      transition: transform 0.18s var(--ease-spring), box-shadow 0.18s;
    }

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


    /* 16. RESULTS GRID */
    #results {
      width: 100%;
    }

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

    /*  Font Card Section  */
    .letrasdiferenteslist {
      margin-bottom: 40px;
    }

    .letrasdiferenteslist h2 {
      color: var(--text-3);
      margin-bottom: 16px;
      font-size: 0.63rem;
      display: flex;
      align-items: center;
      gap: 14px;
    }

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

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

    .letrasdiferenteslist li:hover {
      border-color: rgba(79, 70, 229, 0.35);
      transform: translateY(-4px) scale(1.005);
      box-shadow: var(--sh-md), 0 0 0 1px rgba(79, 70, 229, 0.20), 0 8px 32px var(--ac-glow);
    }

    .letrasdiferenteslist li p {
      background: transparent;
      padding: 18px 0 30px 18px;
      margin: 0;
      color: var(--text-1);
      cursor: pointer;
      user-select: none;
      text-align: left;
      width: 100%;
      position: relative;
      white-space: normal;
      word-break: break-word;
      font-family: var(--font-ui);
      overflow: hidden;
      border: none;
      line-height: 1.55;
      transition: background 0.16s;
    }

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

    /* Card label (font name) */
    .letrasdiferenteslist li i,
    #flourishList li i {
      position: absolute;
      bottom: 6px;
      left: 18px;
      font-size: 9px;
      font-weight: 700;
      color: var(--text-3);
      z-index: 2;
      display: flex;
      align-items: baseline;
      gap: 4px;
      letter-spacing: 0.09em;
      text-transform: uppercase;
      font-style: normal;
      font-family: var(--font-display);
      opacity: 0.55;
    }

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

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

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

    .dark .letrasdiferenteslist li:hover {
      border-color: rgba(99, 102, 241, 0.38);
      box-shadow: var(--sh-md), 0 0 0 1px rgba(99, 102, 241, 0.25), 0 8px 32px rgba(79, 70, 229, 0.20);
    }

    .dark .letrasdiferenteslist li p {
      background: var(--surface);
      color: var(--text-1);
    }

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

    .dark .letrasdiferenteslist li button {
      background: var(--surface-2);
      color: var(--text-3);
      border-color: var(--line);
    }

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


    /* 17. 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(--r-md);
      background: var(--surface);
      border: 1px solid var(--line-mid);
      box-shadow: var(--sh-md);
      display: inline-flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      color: var(--text-2);
      transition:
        background 0.2s,
        color 0.2s,
        border-color 0.2s,
        transform 0.22s var(--ease-spring),
        box-shadow 0.2s;
    }

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

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

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

    .dark .buttons button {
      background: var(--surface-2);
      color: var(--text-2);
      border-color: var(--line-mid);
    }

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


    /* 18. SIDE DRAWER ─*/
    .f-m {
      position: fixed;
      top: 0;
      right: 0;
      width: 300px;
      height: 100%;
      background: var(--surface);
      border-left: 1px solid var(--line-mid);
      box-shadow: -20px 0 60px rgba(15, 15, 26, 0.12);
      z-index: 9999;
      display: none;
      overflow-y: auto;
      padding: 24px 20px;
    }

    .floatmenu h3 {
      color: var(--text-3);
      font-family: var(--font-display);
      font-size: 0.56rem;
      text-transform: uppercase;
      letter-spacing: 0.20em;
      font-weight: 700;
      margin-bottom: 10px;
    }

    .floatmenu a,
    .right-menu a {
      display: inline-block;
      padding: 7px 14px;
      border-radius: var(--r-sm);
      font-family: var(--font-ui);
      font-size: 0.80rem;
      font-weight: 500;
      color: var(--text-2);
      background: var(--surface-2);
      border: 1px solid var(--line);
      margin: 3px;
      white-space: nowrap;
      transition:
        color 0.18s,
        background 0.18s,
        border-color 0.18s,
        transform 0.2s var(--ease-spring),
        box-shadow 0.18s;
    }

    .floatmenu a:hover,
    .right-menu a:hover {
      color: var(--ac);
      background: var(--ac-pale);
      border-color: rgba(79, 70, 229, 0.30);
      transform: translateY(-1px);
      box-shadow: 0 4px 14px var(--ac-glow);
    }

    .dark .f-m {
      background: var(--surface);
      border-color: var(--line-mid);
      box-shadow: -20px 0 60px rgba(0, 0, 0, 0.42);
    }

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

    .dark .floatmenu a:hover,
    .dark .right-menu a:hover {
      background: rgba(99, 102, 241, 0.12);
      color: var(--ac-2);
      border-color: rgba(99, 102, 241, 0.32);
    }

    #fMN {
      overflow: auto;
    }

    .fAr {
      display: none;
    }

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


    /* 19. 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(--line-mid);
      border-radius: var(--r-md);
      color: var(--text-2);
      background: var(--surface);
      box-shadow: var(--sh-sm);
      cursor: pointer;
      z-index: 10000;
      padding: 0;
      transition:
        border-color 0.18s,
        background 0.18s,
        color 0.18s,
        box-shadow 0.18s;
    }

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

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

    .dark .close-button:hover {
      background: rgba(99, 102, 241, 0.14);
      color: var(--ac-2);
      border-color: rgba(99, 102, 241, 0.36);
    }


    /* 20. COPIED TOAST */
    .copied {
      display: flex;
      flex-direction: column;
      gap: 4px;
      padding: 14px 16px;
      position: fixed;
      top: 12%;
      right: 0;
      z-index: 9999;
      width: 220px;
      background: var(--text-1);
      color: var(--ac-2);
      border-radius: var(--r-lg) 0 0 var(--r-lg);
      border: 1px solid rgba(232, 232, 245, 0.08);
      border-right: none;
      box-shadow: -8px 8px 40px rgba(15, 15, 26, 0.38);
      animation: slideIn 0.30s var(--ease-spring);
    }

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

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

    .copied textarea {
      background: transparent;
      border: none;
      color: var(--ac-2);
      font-family: var(--font-mono);
      font-size: 0.78rem;
      resize: none;
      outline: none;
      padding: 6px;
    }

    .copied-btn {
      position: absolute;
      top: 8px;
      left: 10px;
      background: var(--grad-ac);
      color: #fff;
      border-radius: var(--r-pill);
      padding: 3px 10px;
      font-family: var(--font-display);
      font-size: 0.62rem;
      font-weight: 700;
      border: none;
      cursor: default;
      letter-spacing: 0.11em;
      text-transform: uppercase;
      box-shadow: 0 2px 10px rgba(79, 70, 229, 0.38);
    }


    /* 21. LOADER */
    .loader {
      width: 36px;
      height: 36px;
      border: 2.5px 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;
    }


    /* 22. POPUP MODAL ─*/
    .flourish-popup {
      position: fixed;
      inset: 0;
      background: rgba(15, 15, 26, 0.50);
      backdrop-filter: blur(16px);
      -webkit-backdrop-filter: blur(16px);
      display: flex;
      align-items: center;
      justify-content: center;
      z-index: 999;
      animation: fadeIn 0.22s 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(--r-xl);
      overflow: hidden;
      display: flex;
      flex-direction: column;
      box-shadow: var(--sh-xl), 0 0 0 1px var(--line-mid);
      animation: popIn 0.30s var(--ease-spring);
    }

    .popup-box::before {
      content: '';
      display: block;
      height: 3px;
      background: var(--grad-ac);
      flex-shrink: 0;
    }

    @keyframes popIn {
      from {
        transform: scale(0.90) translateY(20px);
        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(--line);
      padding: 4px 16px;
    }

    .popup-header h3 {
      font-family: var(--font-display);
      font-size: 1.05rem;
      font-weight: 700;
      color: var(--text-1);
      padding: 12px 0;
      margin: 0;
      letter-spacing: -0.01em;
    }

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

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

    .dark .popup-box {
      background: var(--surface);
      box-shadow: var(--sh-xl), 0 0 0 1px var(--line-mid);
    }

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

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

    .dark .popup-header button:hover {
      background: rgba(99, 102, 241, 0.14);
      color: var(--ac-2);
    }


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

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

    #flourishList li:hover {
      border-color: rgba(79, 70, 229, 0.35);
      transform: translateY(-2px);
      box-shadow: 0 6px 22px var(--ac-glow);
    }

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

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

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

    .dark #flourishList li {
      background: var(--surface-2);
      border-color: var(--line);
    }

    .dark #flourishList li:hover {
      border-color: rgba(99, 102, 241, 0.38);
      box-shadow: 0 6px 22px rgba(79, 70, 229, 0.22);
    }

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

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


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

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

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

    .select-flourish label {
      font-family: var(--font-display);
      font-size: 0.68rem;
      font-weight: 700;
      color: var(--text-2);
      letter-spacing: 0.08em;
      text-transform: uppercase;
    }

    #flourishSelect {
      appearance: none;
      padding: 9px 28px 9px 14px;
      font-size: 0.84rem;
      font-family: var(--font-ui);
      font-weight: 500;
      border-radius: var(--r-pill);
      border: 1.5px solid var(--line-mid);
      background: var(--surface);
      color: var(--text-1);
      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-1);
      border-color: var(--line-mid);
    }

    #flourishRegenerate {
      padding: 12px 30px;
      border-radius: var(--r-pill);
      background: var(--grad-ac);
      color: #fff;
      font-family: var(--font-display);
      font-weight: 700;
      font-size: 0.80rem;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      border: none;
      cursor: pointer;
      box-shadow: var(--sh-ac);
      transition:
        transform 0.22s var(--ease-spring),
        box-shadow 0.2s;
    }

    #flourishRegenerate:hover {
      transform: translateY(-2px) scale(1.02);
      box-shadow: 0 12px 32px rgba(79, 70, 229, 0.48);
    }

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


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

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


    /* 26. FOOTER */
    footer {
      margin-top: 80px;
      background: var(--grad-header);
      padding: 40px 0;
      position: relative;
    }

    footer::before {
      content: '';
      display: block;
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      height: 1px;
      background: linear-gradient(90deg,
          transparent 0%,
          rgba(99, 102, 241, 0.55) 25%,
          rgba(139, 92, 246, 0.90) 50%,
          rgba(99, 102, 241, 0.55) 75%,
          transparent 100%);
    }

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

    footer a {
      font-family: var(--font-display);
      font-size: 0.90rem;
      font-weight: 600;
      color: rgba(255, 255, 255, 0.50);
      transition: color 0.18s;
    }

    footer a:hover {
      color: #fff;
    }

    footer p,
    footer span {
      color: rgba(255, 255, 255, 0.28);
      font-size: 0.76rem;
      letter-spacing: 0.04em;
    }

    .copyright-area {
      color: #fff;
    }


    /* 27. INFO / SEO TEXT BLOCK */
    .info-text {
      font-family: var(--font-ui);
      line-height: 1.84;
      color: var(--text-2);
      padding: 56px 56px;
      background: var(--surface);
      margin-top: 40px;
      border-radius: var(--r-xl);
      border: 1px solid var(--line);
      box-shadow: var(--sh-sm);
      white-space: normal;
      word-break: break-word;
    }

    .info-text h1 {
      font-family: var(--font-display);
      font-size: clamp(1.9rem, 4vw, 2.8rem);
      font-weight: 800;
      color: var(--text-1);
      text-align: center;
      margin-bottom: 44px;
      padding-bottom: 32px;
      border-bottom: 1px solid var(--line);
      letter-spacing: -0.03em;
      background: none;
      -webkit-text-fill-color: var(--text-1);
      line-height: 1.15;
    }

    .info-text h2 {
      font-family: var(--font-display);
      font-size: 1.25rem;
      font-weight: 700;
      color: var(--text-1);
      margin-top: 52px;
      margin-bottom: 14px;
      letter-spacing: -0.02em;
      text-transform: none;
      font-style: normal;
      position: relative;
      padding-left: 20px;
    }

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

    .info-text h3 {
      font-family: var(--font-display);
      font-size: 1.02rem;
      font-weight: 700;
      color: var(--text-1);
      margin-top: 28px;
      margin-bottom: 8px;
      font-style: normal;
      letter-spacing: -0.01em;
    }

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

    .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-1);
      font-weight: 600;
    }

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

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

    .info-text ul {
      overflow: auto;
    }

    .info-text .example-box {
      background: var(--surface-2);
      border-left: 3px solid var(--ac);
      border-radius: var(--r-md);
      padding: 20px 24px;
      margin: 24px 0;
      box-shadow: 0 2px 14px var(--ac-glow);
    }

    .info-text .example-title {
      font-family: var(--font-display);
      font-weight: 700;
      font-size: 0.68rem;
      color: var(--ac);
      margin-top: 14px;
      margin-bottom: 8px;
      letter-spacing: 0.15em;
      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.01em;
      color: var(--text-1);
      background: var(--surface);
      padding: 9px 14px;
      margin-bottom: 5px;
      border-radius: var(--r-sm);
      border: 1px solid var(--line);
    }

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

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

    .dark .entry-header p {
      color: var(--text-2);
    }

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

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

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

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

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

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

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


    /* 28. DARK HEADER OVERRIDE */
    .dark header {
      background: linear-gradient(135deg, #030308 0%, #070712 50%, #0A0A1C 100%);
    }


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


    /* 30. RESPONSIVE — Mobile */
    @media (max-width: 640px) {
      :root {
        --gutter: 16px;
      }

      h1 {
        font-size: 1.6rem;
      }

      .container {
        padding: 0 var(--gutter);
        max-width: 100%;
      }

      .input-section {
        margin-left: calc(-1 * var(--gutter));
        margin-right: calc(-1 * var(--gutter));
        padding-left: var(--gutter);
        padding-right: var(--gutter);
      }

      .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(--r-lg);
      }

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

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

      .floatmenu a {
        display: block;
      }
    }


    /* 31. 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;
        scroll-behavior: auto !important;
      }
    }