@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&family=Inter:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');
:root {
  --maxw: 1200px;
  --neon-cyan:    #00BFFF;
  --neon-violet:  #7C3AED;
  --neon-pink:    #DB2777;
  --neon-cyan-lg: linear-gradient(135deg, #00BFFF 0%, #0080FF 100%);
  --neon-vio-lg:  linear-gradient(135deg, #7C3AED 0%, #A855F7 100%);
  --neon-dual-lg: linear-gradient(135deg, #00BFFF 0%, #7C3AED 60%, #A855F7 100%);
  --ac:           #0099E6;
  --ac-light:     #33BBFF;
  --ac-soft:      rgba(0, 153, 230, 0.08);
  --ac-ring:      rgba(0, 153, 230, 0.22);
  --ac-glow:      0 0 20px rgba(0, 191, 255, 0.30), 0 0 6px rgba(0, 191, 255, 0.18);
  --bg:           #F2F5FC;
  --surface:      #FFFFFF;
  --surface-2:    #EEF2FB;
  --surface-3:    #E2E8F5;
  --surface-card: rgba(255, 255, 255, 0.98);
  --glass:        rgba(242, 245, 252, 0.82);
  --glass-card:   rgba(255, 255, 255, 0.72);
  --tx-1:  #0D1117;
  --tx-2:  #3D4A62;
  --tx-3:  #8A96B0;
  --tx-inv: #FFFFFF;
  --bd:       rgba(99, 120, 170, 0.12);
  --bd-mid:   rgba(99, 120, 170, 0.20);
  --bd-soft:  rgba(99, 120, 170, 0.07);
  --bd-neon:  rgba(0, 191, 255, 0.30);
  --sh-xs: 0 1px 3px rgba(13, 30, 70, 0.06);
  --sh-sm: 0 2px 10px rgba(13, 30, 70, 0.08), 0 1px 3px rgba(13, 30, 70, 0.04);
  --sh-md: 0 6px 24px rgba(13, 30, 70, 0.10), 0 2px 6px rgba(13, 30, 70, 0.05);
  --sh-lg: 0 16px 56px rgba(13, 30, 70, 0.13), 0 4px 12px rgba(13, 30, 70, 0.06);
  --sh-ac: 0 4px 18px rgba(0, 153, 230, 0.28), 0 1px 4px rgba(0, 153, 230, 0.14);
  --r-xs:   4px;
  --r-sm:   8px;
  --r-md:   14px;
  --r-lg:   20px;
  --r-xl:   28px;
  --r-pill: 999px;
  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-sans:    'Inter', system-ui, -apple-system, sans-serif;
  --font-mono:    'JetBrains Mono', 'Fira Code', monospace;
  --ease-out:    cubic-bezier(0.16, 1, 0.30, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-smooth: cubic-bezier(0.45, 0.00, 0.55, 1);
  --grad-header: linear-gradient(135deg, #060B18 0%, #0D1830 50%, #0A1228 100%);
}
.dark {
  --bg:           #060B18;
  --surface:      #0D1525;
  --surface-2:    #131D30;
  --surface-3:    #1A2540;
  --surface-card: rgba(13, 21, 37, 0.96);
  --glass:        rgba(6, 11, 24, 0.88);
  --glass-card:   rgba(13, 21, 37, 0.75);
  --tx-1:  #E8EDF8;
  --tx-2:  #8A9AB8;
  --tx-3:  #4A5870;
  --bd:      rgba(100, 140, 220, 0.10);
  --bd-mid:  rgba(100, 140, 220, 0.17);
  --bd-soft: rgba(100, 140, 220, 0.06);
  --bd-neon: rgba(0, 191, 255, 0.25);
  --sh-xs: 0 1px 3px rgba(0, 0, 0, 0.40);
  --sh-sm: 0 2px 12px rgba(0, 0, 0, 0.50), 0 1px 3px rgba(0, 0, 0, 0.30);
  --sh-md: 0 6px 26px rgba(0, 0, 0, 0.58), 0 2px 6px rgba(0, 0, 0, 0.35);
  --sh-lg: 0 16px 60px rgba(0, 0, 0, 0.70), 0 4px 14px rgba(0, 0, 0, 0.42);
  --sh-ac: 0 4px 22px rgba(0, 191, 255, 0.32), 0 1px 6px rgba(0, 191, 255, 0.18);
  --ac:       #00BFFF;
  --ac-light: #33CCFF;
  --ac-soft:  rgba(0, 191, 255, 0.10);
  --ac-ring:  rgba(0, 191, 255, 0.24);
  --ac-glow:  0 0 28px rgba(0, 191, 255, 0.40), 0 0 8px rgba(0, 191, 255, 0.22);
}
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  height: 100%;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
body {
  height: 100%;
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.7;
  color: var(--tx-1);
  background-color: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  padding-bottom: 100px;
  background-image:
    radial-gradient(ellipse at 15% 0%, rgba(0, 191, 255, 0.05) 0%, transparent 55%),
    radial-gradient(ellipse at 85% 100%, rgba(124, 58, 237, 0.05) 0%, transparent 50%);
}
a {
  text-decoration: none;
  color: inherit;
}
img {
  max-width: 100%;
  display: block;
}
ul,
ol {
  list-style: none;
}
*,
*::before,
*::after {
  transition:
    background-color 0.24s ease,
    border-color 0.24s ease,
    color 0.18s ease,
    box-shadow 0.24s ease;
}
.loader,
.loader * {
  transition: none !important;
}
h1 {
  font-family: var(--font-display);
  font-size: 2.1rem;
  font-weight: 700;
  color: var(--tx-1);
  line-height: 1.2;
  letter-spacing: -0.03em;
  margin: 0;
}
h2 {
  font-family: var(--font-sans);
  font-size: 0.60rem;
  font-weight: 600;
  color: var(--tx-3);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
h3 {
  font-family: var(--font-sans);
  font-weight: 600;
  color: var(--tx-2);
}
header {
  background: var(--grad-header);
  position: relative;
  z-index: 50;
  box-shadow: 0 1px 0 rgba(0, 191, 255, 0.12), 0 8px 40px rgba(0, 0, 0, 0.30);
}
header::after {
  content: '';
  display: block;
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(0, 191, 255, 0.50) 25%,
    rgba(124, 58, 237, 0.90) 50%,
    rgba(0, 191, 255, 0.50) 75%,
    transparent 100%
  );
}
header .inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  height: 60px;
}
header a {
  color: rgba(255, 255, 255, 0.45);
  padding: 5px 13px;
  font-family: var(--font-sans);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: var(--r-pill);
  transition: color 0.18s, background 0.18s;
  cursor: pointer;
}
header a:hover {
  color: rgba(255, 255, 255, 0.95);
  background: rgba(0, 191, 255, 0.12);
}
.entry-header {
  width: 100%;
  text-align: center;
  padding: 16px 0 8px;
}
.entry-header p {
  color: var(--tx-3);
  font-size: 0.86rem;
  font-family: var(--font-sans);
  font-weight: 400;
  letter-spacing: 0.01em;
}
#themeToggle {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 16px;
  border-radius: var(--r-pill);
  border: 1px solid rgba(0, 191, 255, 0.22);
  background: rgba(0, 191, 255, 0.07);
  color: rgba(255, 255, 255, 0.60);
  font-family: var(--font-sans);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: all 0.22s var(--ease-out);
}
#themeToggle:hover {
  background: rgba(0, 191, 255, 0.16);
  border-color: rgba(0, 191, 255, 0.50);
  color: rgba(255, 255, 255, 0.95);
  box-shadow: 0 0 16px rgba(0, 191, 255, 0.22);
}
#themeToggle .icon-moon  { display: inline; }
#themeToggle .icon-sun   { display: none; }
#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; }
.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 28px;
}
.input-section-wrapper,
.search-wrapper,
.top-search-card {
  background: var(--surface);
  border-radius: var(--r-lg);
  border: 1px solid var(--bd);
  box-shadow: var(--sh-sm);
  padding: 16px 18px 12px;
  margin-bottom: 4px;
}
.dark .input-section-wrapper,
.dark .search-wrapper,
.dark .top-search-card {
  background: var(--surface);
  border-color: var(--bd-mid);
  box-shadow: var(--sh-md);
}
#topMenu {
  display: flex;
  align-items: center;
  gap: 7px;
  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: 6px 18px;
  border-radius: var(--r-pill);
  font-family: var(--font-sans);
  font-size: 0.63rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--tx-2);
  border: 1px solid var(--bd-mid);
  background: var(--surface);
  box-shadow: var(--sh-xs);
  transition: all 0.20s var(--ease-out);
  white-space: nowrap;
}
#topMenu a:hover {
  color: var(--ac);
  background: var(--ac-soft);
  border-color: var(--ac);
  transform: translateY(-1px);
  box-shadow: var(--sh-ac);
}
#topMenu a.active {
  color: #fff;
  background: var(--neon-cyan-lg);
  border-color: transparent;
  box-shadow: var(--sh-ac);
}
#topMenu h3 {
  font-size: 0.52rem;
  font-weight: 700;
  color: var(--tx-3);
  text-transform: uppercase;
  letter-spacing: 0.20em;
  margin: 0 4px;
  white-space: nowrap;
  opacity: 0.50;
}
.dark #topMenu a {
  background: var(--surface);
  border-color: var(--bd-mid);
  color: var(--tx-2);
}
.dark #topMenu a:hover {
  color: var(--ac);
  background: var(--ac-soft);
  border-color: var(--ac);
}
.dark #topMenu a.active {
  color: #fff;
  background: var(--neon-cyan-lg);
  border-color: transparent;
}
.input-section {
  display: flex;
  position: sticky;
  top: 0;
  z-index: 40;
  padding: 12px 0 14px;
  gap: 10px;
  align-items: center;
  background: var(--glass);
  backdrop-filter: blur(20px) saturate(1.8);
  -webkit-backdrop-filter: blur(20px) saturate(1.8);
  border-bottom: 1px solid var(--bd);
  margin-left: -28px;
  margin-right: -28px;
  padding-left: 28px;
  padding-right: 28px;
}
.dark .input-section {
  background: rgba(6, 11, 24, 0.88);
  border-color: var(--bd-mid);
}
.input-section div {
  width: 100%;
  position: relative;
}
.input-section input {
  width: 100%;
  padding: 13px 52px 13px 20px;
  border-radius: var(--r-md);
  border: 1.5px solid var(--bd-mid);
  background: var(--surface);
  font-family: var(--font-sans);
  font-size: 0.94rem;
  font-weight: 400;
  color: var(--tx-1);
  outline: none;
  box-shadow: var(--sh-xs), inset 0 1px 3px rgba(13, 30, 70, 0.04);
  transition: border-color 0.20s, box-shadow 0.20s;
}
.input-section input::placeholder {
  color: var(--tx-3);
}
.input-section input:focus {
  border-color: var(--ac);
  box-shadow:
    0 0 0 3px var(--ac-ring),
    var(--ac-glow),
    var(--sh-sm);
}
.dark .input-section input {
  background: var(--surface);
  color: var(--tx-1);
  border-color: var(--bd-mid);
}
.dark .input-section input:focus {
  border-color: var(--ac);
  box-shadow: 0 0 0 3px var(--ac-ring), var(--ac-glow);
}
#input-count {
  position: absolute;
  right: 20px;
  bottom: 4px;
  font-size: 9px;
  font-family: var(--font-mono);
  color: var(--tx-3);
  letter-spacing: 0.04em;
  opacity: 0.50;
}
.clear-overlay {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  cursor: pointer;
  color: var(--tx-3);
  z-index: 10;
  transition: color 0.18s, background 0.18s;
}
.clear-overlay:hover {
  color: var(--ac);
  background: var(--ac-soft);
}
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(--font-sans);
}
/* Primary button */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 11px 26px;
  border-radius: var(--r-pill);
  border: none;
  font-family: var(--font-sans);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  cursor: pointer;
  background: var(--neon-cyan-lg);
  color: #fff;
  box-shadow: var(--sh-ac);
  white-space: nowrap;
  transition:
    transform 0.22s var(--ease-spring),
    box-shadow 0.22s;
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow:
    0 8px 30px rgba(0, 153, 230, 0.42),
    0 0 20px rgba(0, 191, 255, 0.24),
    0 2px 8px rgba(0, 153, 230, 0.18);
}
.btn:active {
  transform: scale(0.97);
}
.btn.secondary {
  background: var(--surface);
  color: var(--tx-2);
  border: 1.5px solid var(--bd-mid);
  box-shadow: var(--sh-xs);
}
.btn.secondary:hover {
  border-color: var(--ac);
  color: var(--ac);
  background: var(--ac-soft);
  box-shadow: var(--sh-sm);
}
button.btn.closeit {
  background: rgba(219, 39, 119, 0.07);
  color: #DB2777;
  border: 1.5px solid rgba(219, 39, 119, 0.20);
}
button#menu {
  font-size: 1rem;
  height: 40px;
  width: 40px;
  border-radius: var(--r-md);
  border: 1.5px solid var(--bd-mid);
  background: var(--surface);
  box-shadow: var(--sh-xs);
  color: var(--tx-2);
  transition: all 0.20s var(--ease-out);
}
button#menu:hover {
  border-color: var(--ac);
  background: var(--ac-soft);
  color: var(--ac);
  box-shadow: 0 0 12px rgba(0, 191, 255, 0.20);
}
.dark .btn.secondary {
  background: var(--surface);
  color: var(--tx-2);
  border-color: var(--bd-mid);
}
.dark .btn.secondary:hover {
  background: var(--ac-soft);
  color: var(--ac);
  border-color: var(--ac);
}
.dark button#menu {
  background: var(--surface);
  border-color: var(--bd-mid);
  color: var(--tx-2);
}
.dark button#menu:hover {
  background: var(--ac-soft);
  border-color: var(--ac);
  color: var(--ac);
}
#othertools a {
  padding: 7px 14px;
  background: var(--surface);
  color: var(--tx-2);
  border-radius: var(--r-sm);
  font-family: var(--font-sans);
  font-size: 0.64rem;
  font-weight: 600;
  border: 1px solid var(--bd);
  letter-spacing: 0.07em;
  text-transform: uppercase;
  transition: all 0.20s var(--ease-out);
  box-shadow: var(--sh-xs);
}
#othertools a:hover {
  background: var(--neon-cyan-lg);
  color: #fff;
  border-color: transparent;
  transform: translateY(-1px);
  box-shadow: var(--sh-ac);
}
.dark #othertools a {
  background: var(--surface);
  color: var(--tx-2);
  border-color: var(--bd);
}
.dark #othertools a:hover {
  background: var(--neon-cyan-lg);
  color: #fff;
  border-color: transparent;
}
svg {
  width: 18px;
  height: 18px;
  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;
}
#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(--tx-2);
  background: transparent;
  text-align: center;
  border: none;
  font-size: 26px !important;
  padding: 10px 0 0;
  margin: 0;
  cursor: pointer;
  font-family: var(--font-sans);
  transition: color 0.20s, transform 0.24s var(--ease-spring);
}
#randomcloud p:hover {
  color: var(--ac);
  transform: scale(1.14);
  text-shadow: 0 0 20px rgba(0, 191, 255, 0.45);
}
.dark #randomcloud p {
  color: var(--tx-2);
}
.dark #randomcloud p:hover {
  color: var(--ac);
}
#randombutton {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border-radius: var(--r-pill);
  padding: 13px 32px;
  margin-top: 14px;
  background: var(--neon-dual-lg);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.96rem;
  letter-spacing: -0.01em;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(0, 153, 230, 0.32), 0 0 30px rgba(124, 58, 237, 0.20);
  transition: transform 0.22s var(--ease-spring), box-shadow 0.22s;
}
#randombutton:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0, 153, 230, 0.44), 0 0 50px rgba(124, 58, 237, 0.30);
}
.font-size-controller {
  display: flex;
  align-items: center;
  gap: 14px;
  justify-content: flex-end;
  padding: 10px 0;
}
.font-size-controller label {
  font-size: 0.59rem;
  font-family: var(--font-sans);
  font-weight: 600;
  color: var(--tx-3);
  text-transform: uppercase;
  letter-spacing: 0.14em;
}
.font-size-controller input[type="range"] {
  width: 200px;
  height: 3px;
  background: var(--surface-3);
  border-radius: var(--r-pill);
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  border: none;
}
.font-size-controller input[type="range"]::-webkit-slider-runnable-track {
  background: var(--neon-cyan-lg);
  height: 3px;
  border-radius: var(--r-pill);
}
.font-size-controller input[type="range"]::-webkit-slider-thumb {
  appearance: none;
  -webkit-appearance: none;
  width: 17px;
  height: 17px;
  background: var(--surface);
  border: 2px solid var(--ac);
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(0, 191, 255, 0.32);
  cursor: grab;
  margin-top: -7px;
  transition: transform 0.16s var(--ease-spring), box-shadow 0.16s;
}
.font-size-controller input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.32);
  box-shadow: 0 0 18px rgba(0, 191, 255, 0.52);
}
#results {
  width: 100%;
}
.grid ul {
  display: grid;
  margin: 0;
  padding: 0;
  gap: 10px;
  grid-template-columns: repeat(3, 1fr);
  list-style: none;
}
.convertidor-de-letraslist li {
  display: flex;
  align-items: stretch;
  position: relative;
  border-radius: var(--r-md);
  overflow: hidden;
  border: 1px solid var(--bd);
  background: var(--glass-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--sh-xs);
  transition:
    transform 0.22s var(--ease-out),
    box-shadow 0.22s,
    border-color 0.20s;
}
.convertidor-de-letraslist li::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--neon-dual-lg);
  opacity: 0;
  transition: opacity 0.22s;
}
.convertidor-de-letraslist li:hover::before {
  opacity: 1;
}
.convertidor-de-letraslist li:hover {
  border-color: var(--bd-neon);
  transform: translateY(-3px);
  box-shadow:
    var(--sh-md),
    0 0 0 1px var(--ac-ring),
    0 0 20px rgba(0, 191, 255, 0.10);
}
.convertidor-de-letraslist li p {
  background: transparent;
  padding: 16px 0 28px 16px;
  margin: 0;
  color: var(--tx-1);
  cursor: pointer;
  user-select: none;
  text-align: left;
  width: 100%;
  position: relative;
  white-space: normal;
  word-break: break-word;
  font-family: var(--font-sans);
  overflow: hidden;
  border: none;
  line-height: 1.6;
  transition: background 0.18s;
}
.convertidor-de-letraslist li p:hover,
.convertidor-de-letraslist li p:focus {
  outline: none;
  background: var(--ac-soft);
}
.convertidor-de-letraslist li i,
#flourishList li i {
  position: absolute;
  bottom: 6px;
  left: 16px;
  font-family: var(--font-mono);
  font-size: 8.5px;
  font-weight: 500;
  color: var(--tx-3);
  z-index: 2;
  display: flex;
  align-items: baseline;
  gap: 4px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  font-style: normal;
  opacity: 0.50;
}
.convertidor-de-letraslist li button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-family: var(--font-sans);
  font-size: 8.5px;
  font-weight: 700;
  padding: 8px 13px 8px 10px;
  gap: 4px;
  color: var(--tx-3);
  background: var(--surface-2);
  border: none;
  border-left: 1px solid var(--bd);
  cursor: pointer;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  transition: background 0.18s, color 0.18s;
}
.convertidor-de-letraslist li button:hover {
  background: var(--neon-cyan-lg);
  color: #fff;
}
.dark .convertidor-de-letraslist li {
  background: var(--glass-card);
  border-color: var(--bd);
}
.dark .convertidor-de-letraslist li:hover {
  border-color: var(--bd-neon);
  box-shadow: var(--sh-md), 0 0 0 1px var(--ac-ring), 0 0 28px rgba(0, 191, 255, 0.14);
}
.dark .convertidor-de-letraslist li p {
  color: var(--tx-1);
}
.dark .convertidor-de-letraslist li p:hover,
.dark .convertidor-de-letraslist li p:focus {
  background: var(--ac-soft);
}
.dark .convertidor-de-letraslist li button {
  background: var(--surface-2);
  color: var(--tx-3);
  border-color: var(--bd-soft);
}
.dark .convertidor-de-letraslist li button:hover {
  background: var(--neon-cyan-lg);
  color: #fff;
}
.convertidor-de-letraslist {
  margin-bottom: 34px;
}
.convertidor-de-letraslist h2 {
  color: var(--tx-3);
  margin-bottom: 12px;
  font-size: 0.59rem;
  display: flex;
  align-items: center;
  gap: 12px;
  letter-spacing: 0.18em;
}
.convertidor-de-letraslist h2::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, var(--bd-mid), transparent);
}
.buttons {
  position: fixed;
  right: 18px;
  bottom: 90px;
  z-index: 99;
  display: flex;
  flex-direction: column-reverse;
  gap: 8px;
}
.buttons button {
  width: 46px;
  height: 46px;
  border-radius: var(--r-md);
  background: var(--surface);
  border: 1.5px solid var(--bd-mid);
  box-shadow: var(--sh-md);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--tx-2);
  transition: all 0.22s var(--ease-spring);
}
.buttons button:hover {
  background: var(--neon-cyan-lg);
  color: #fff;
  border-color: transparent;
  transform: scale(1.12) translateY(-2px);
  box-shadow: var(--sh-ac), var(--ac-glow);
}
#bulbBtn svg {
  stroke: var(--ac);
}
#bulbBtn:hover svg {
  stroke: #fff;
}
.dark .buttons button {
  background: var(--surface-2);
  color: var(--tx-2);
  border-color: var(--bd-mid);
}
.dark .buttons button:hover {
  background: var(--neon-cyan-lg);
  color: #fff;
  border-color: transparent;
  box-shadow: var(--sh-ac), var(--ac-glow);
}
.f-m {
  position: fixed;
  top: 0;
  right: 0;
  width: 290px;
  height: 100%;
  background: var(--surface);
  border-left: 1px solid var(--bd-mid);
  box-shadow: -16px 0 60px rgba(0, 30, 80, 0.14);
  z-index: 9999;
  display: none;
  overflow-y: auto;
  padding: 22px 18px;
}
.floatmenu h3 {
  font-family: var(--font-sans);
  color: var(--tx-3);
  font-size: 0.54rem;
  text-transform: uppercase;
  letter-spacing: 0.20em;
  font-weight: 700;
  margin-bottom: 8px;
}
.floatmenu a,
.right-menu a {
  display: inline-block;
  padding: 6px 13px;
  border-radius: var(--r-sm);
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--tx-2);
  background: var(--surface-2);
  border: 1px solid var(--bd-soft);
  margin: 3px;
  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);
}
.dark .f-m {
  background: var(--surface);
  border-color: var(--bd-mid);
  box-shadow: -16px 0 60px rgba(0, 0, 0, 0.60);
}
.dark .floatmenu a,
.dark .right-menu a {
  background: var(--surface-2);
  color: var(--tx-2);
  border-color: var(--bd-soft);
}
.dark .floatmenu a:hover,
.dark .right-menu a:hover {
  color: var(--ac);
  background: var(--ac-soft);
  border-color: var(--ac);
}
#fMN { overflow: auto; }
.fAr { display: none; }
#menu { color: var(--tx-2); }
.close-button {
  position: fixed;
  top: 12px;
  right: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  font-size: 15px;
  border: 1.5px solid var(--bd-mid);
  border-radius: var(--r-md);
  color: var(--tx-2);
  background: var(--surface);
  box-shadow: var(--sh-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 0 14px rgba(0, 191, 255, 0.24);
}
.dark .close-button {
  background: var(--surface);
  border-color: var(--bd-mid);
  color: var(--tx-2);
}
.dark .close-button:hover {
  background: var(--ac-soft);
  color: var(--ac);
  border-color: var(--ac);
}
.copied {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 16px;
  position: fixed;
  top: 12%;
  right: 0;
  z-index: 9999;
  width: 210px;
  background: linear-gradient(135deg, #060B18 0%, #0D1830 100%);
  color: rgba(255, 255, 255, 0.80);
  border-radius: var(--r-lg) 0 0 var(--r-lg);
  border: 1px solid rgba(0, 191, 255, 0.22);
  border-right: none;
  box-shadow: var(--sh-lg), 0 0 24px rgba(0, 191, 255, 0.20);
  animation: slideIn 0.26s 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(255, 255, 255, 0.50);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  resize: none;
  outline: none;
  padding: 6px;
}
.copied-btn {
  position: absolute;
  top: 8px;
  left: 10px;
  background: var(--neon-cyan-lg);
  color: #fff;
  border-radius: var(--r-pill);
  padding: 3px 10px;
  font-family: var(--font-sans);
  font-size: 0.59rem;
  font-weight: 700;
  border: none;
  cursor: default;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  box-shadow: var(--sh-ac);
}
.loader {
  width: 32px;
  height: 32px;
  border: 2px solid var(--surface-3);
  border-top-color: var(--ac);
  border-radius: 50%;
  animation: spin 0.70s linear infinite;
  box-shadow: 0 0 12px rgba(0, 191, 255, 0.20);
}
@keyframes spin {
  to { transform: rotate(360deg); }
}
.page-load-status,
.aryapage {
  display: none;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin: 22px 0;
}
.loadmore {
  text-align: center;
  padding: 16px 0;
}
.flourish-popup {
  position: fixed;
  inset: 0;
  background: rgba(6, 11, 24, 0.56);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
  animation: fadeIn 0.20s ease;
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.flourish-popup.hidden {
  display: none;
}
.popup-box {
  background: var(--surface);
  width: 92%;
  max-width: 440px;
  max-height: 70vh;
  border-radius: var(--r-xl);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--sh-lg), 0 0 0 1px var(--bd-neon), 0 0 50px rgba(0, 191, 255, 0.14);
  animation: popIn 0.28s var(--ease-spring);
}
.popup-box::before {
  content: '';
  display: block;
  height: 2px;
  background: var(--neon-dual-lg);
  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(--bd);
  padding: 4px 16px;
}
.popup-header h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--tx-1);
  padding: 12px 0;
  margin: 0;
  letter-spacing: -0.01em;
}
.popup-header button {
  background: none;
  border: none;
  color: var(--tx-3);
  cursor: pointer;
  font-size: 15px;
  padding: 12px;
  border-radius: var(--r-sm);
  transition: background 0.16s, color 0.16s;
}
.popup-header button:hover {
  background: var(--ac-soft);
  color: var(--ac);
}
.dark .popup-box {
  background: var(--surface);
  box-shadow: var(--sh-lg), 0 0 0 1px var(--bd-neon), 0 0 60px rgba(0, 191, 255, 0.18);
}
.dark .popup-header {
  background: var(--surface-2);
  border-color: var(--bd);
}
.dark .popup-header h3 {
  color: var(--tx-1);
}
.dark .popup-header button:hover {
  background: var(--ac-soft);
  color: var(--ac);
}
#flourishList {
  padding: 12px;
  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(--bd-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: var(--sh-sm), 0 0 0 1px var(--ac-ring), 0 0 16px rgba(0, 191, 255, 0.14);
}
#flourishList .count {
  display: flex;
  justify-content: flex-end;
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--tx-3);
  padding: 2px 8px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
#flourishList li p {
  font-size: 1rem !important;
  color: var(--tx-1);
  border-radius: 0;
  border: none;
  background: transparent;
  text-align: center;
  padding: 12px;
  font-family: var(--font-sans);
  cursor: pointer;
  transition: color 0.16s;
}
#flourishList li:hover p {
  color: var(--ac);
}
.dark #flourishList li {
  background: var(--surface-2);
  border-color: var(--bd-soft);
}
.dark #flourishList li:hover {
  border-color: var(--ac);
}
.dark #flourishList li p {
  color: var(--tx-1);
}
.dark #flourishList li:hover p {
  color: var(--ac);
}
.flourishit {
  padding: 14px 16px;
  text-align: center;
  border-top: 1px solid var(--bd);
  background: var(--surface-2);
}
.dark .flourishit {
  background: var(--surface-2);
  border-color: var(--bd);
}
.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-sans);
  font-size: 0.64rem;
  font-weight: 600;
  color: var(--tx-2);
  letter-spacing: 0.09em;
  text-transform: uppercase;
}
#flourishSelect {
  appearance: none;
  padding: 8px 26px 8px 13px;
  font-size: 0.82rem;
  font-family: var(--font-sans);
  font-weight: 500;
  border-radius: var(--r-pill);
  border: 1.5px solid var(--bd-mid);
  background: var(--surface);
  color: var(--tx-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), 0 0 14px rgba(0, 191, 255, 0.18);
}
.dark #flourishSelect {
  background: var(--surface);
  color: var(--tx-1);
  border-color: var(--bd-mid);
}
#flourishRegenerate {
  padding: 10px 26px;
  border-radius: var(--r-pill);
  background: var(--neon-dual-lg);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.94rem;
  letter-spacing: -0.01em;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(0, 153, 230, 0.32);
  transition: transform 0.22s var(--ease-spring), box-shadow 0.22s;
}
#flourishRegenerate:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 36px rgba(0, 153, 230, 0.44), 0 0 40px rgba(124, 58, 237, 0.24);
}
#flourishRegenerate:active {
  transform: scale(0.97);
}
.ads {
  grid-column: 1 / -1;
  display: block;
  width: 100%;
  margin: 14px 0;
  border-radius: var(--r-md);
  background: var(--surface-2);
  border: 1px dashed var(--bd-mid);
  overflow: hidden;
}
.dark .ads {
  background: var(--surface-2);
  border-color: var(--bd-mid);
}
footer {
  margin-top: 64px;
  background: var(--grad-header);
  padding: 28px 0;
  position: relative;
}
footer::before {
  content: '';
  display: block;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(0, 191, 255, 0.40) 25%,
    rgba(124, 58, 237, 0.80) 50%,
    rgba(0, 191, 255, 0.40) 75%,
    transparent 100%
  );
  width: 100%;
  position: absolute;
  top: 0;
  left: 0;
}
footer .inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
footer a {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.50);
  letter-spacing: -0.01em;
  transition: color 0.18s;
}
footer a:hover {
  color: rgba(255, 255, 255, 0.95);
}
footer p,
footer span {
  color: rgba(255, 255, 255, 0.24);
  font-size: 0.74rem;
  letter-spacing: 0.04em;
}
.info-text {
  font-family: var(--font-sans);
  line-height: 1.82;
  color: var(--tx-2);
  padding: 52px 48px;
  background: var(--surface);
  margin-top: 32px;
  border-radius: var(--r-xl);
  border: 1px solid var(--bd-soft);
  box-shadow: var(--sh-sm);
  white-space: normal;
  word-break: break-word;
  position: relative;
  overflow: hidden;
}
.info-text::after {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 300px;
  height: 300px;
  background: radial-gradient(ellipse, rgba(0, 191, 255, 0.06) 0%, transparent 70%);
  pointer-events: none;
}
.info-text h1 {
  font-family: var(--font-display);
  font-size: 2.3rem;
  font-weight: 700;
  color: var(--tx-1);
  text-align: center;
  margin-bottom: 32px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--bd);
  letter-spacing: -0.02em;
  background: none;
  -webkit-text-fill-color: var(--tx-1);
  line-height: 1.18;
}
.info-text h2 {
  font-family: var(--font-sans);
  font-size: 1.22rem;
  font-weight: 700;
  color: var(--tx-1);
  margin-top: 44px;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
  text-transform: none;
  font-style: normal;
  position: relative;
  padding-left: 16px;
}
.info-text h2::before {
  content: '';
  position: absolute;
  left: 0;
  top: 3px;
  bottom: 3px;
  width: 3px;
  background: var(--neon-cyan-lg);
  border-radius: 3px;
  box-shadow: 0 0 10px rgba(0, 191, 255, 0.40);
}
.info-text h3 {
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  color: var(--tx-1);
  margin-top: 24px;
  margin-bottom: 8px;
  font-style: normal;
}
.info-text p {
  font-size: 0.97rem;
  margin-bottom: 16px;
  color: var(--tx-2);
  text-align: left;
}
.info-text ul,
.info-text ol {
  margin-bottom: 22px;
  padding-left: 20px;
}
.info-text li {
  font-size: 0.97rem;
  margin-bottom: 7px;
}
.info-text strong {
  color: var(--tx-1);
  font-weight: 600;
}
.info-text code {
  background: var(--surface-2);
  color: var(--ac);
  padding: 2px 7px;
  border-radius: var(--r-xs);
  font-family: var(--font-mono);
  font-size: 0.84rem;
  word-break: break-all;
  display: inline-block;
  margin: 1px;
  border: 1px solid var(--bd-soft);
}
.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: 18px 22px;
  margin: 22px 0;
  box-shadow: inset 0 0 20px rgba(0, 191, 255, 0.04);
}
.info-text .example-title {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 0.62rem;
  color: var(--ac);
  margin-top: 12px;
  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: 10px;
}
.info-text .example-box li {
  font-size: 1rem;
  letter-spacing: 0.02em;
  color: var(--tx-1);
  background: var(--surface);
  padding: 8px 12px;
  margin-bottom: 4px;
  border-radius: var(--r-sm);
  border: 1px solid var(--bd-soft);
}
.copyright-area {
  color: #fff;
}
.dark .info-text {
  background: var(--surface);
  border-color: var(--bd-soft);
}
.dark .info-text h1 {
  color: var(--tx-1);
  -webkit-text-fill-color: var(--tx-1);
  border-color: var(--bd);
}
.dark .info-text h2,
.dark .info-text h3 {
  color: var(--tx-1);
}
.dark .info-text p {
  color: var(--tx-2);
}
.dark .info-text strong {
  color: var(--tx-1);
}
.dark .info-text code {
  background: var(--surface-3);
  color: var(--ac);
  border-color: var(--bd-soft);
}
.dark .info-text .example-box {
  background: var(--surface-2);
}
.dark .info-text .example-box li {
  background: var(--surface-3);
  border-color: var(--bd-soft);
  color: var(--tx-1);
}
@media (max-width: 940px) {
  .grid ul {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 640px) {
  h1 {
    font-size: 1.55rem;
  }
  .container {
    padding: 0 14px;
    max-width: 100%;
  }
  .input-section {
    margin-left: -14px;
    margin-right: -14px;
    padding-left: 14px;
    padding-right: 14px;
  }
  header .inner {
    padding: 0 14px;
    height: 52px;
  }
  footer .inner {
    padding: 0 14px;
  }
  .f-m {
    width: 100%;
  }
  .font-size-controller input[type="range"] {
    width: 120px;
  }
  .grid ul {
    grid-template-columns: 1fr;
  }
  .info-text {
    padding: 24px 18px;
    border-radius: var(--r-lg);
  }
  .info-text h1 {
    font-size: 1.70rem;
  }
  .info-text h2 {
    font-size: 1.10rem;
  }
  .floatmenu a {
    display: block;
  }
  .info-text img {
  max-width: 100% !important;
  border-radius: var(--r-md);
}
}
:focus-visible {
  outline: 2px solid var(--ac);
  outline-offset: 2px;
  border-radius: var(--r-xs);
  box-shadow: 0 0 0 4px var(--ac-ring);
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}