        :root {
          --maxw: 1080px;
          --bg: linear-gradient(to right, #cb6bcf, #3b5dd0);
          --mc: #3b5dd0;
          --sc: #5728a1;
          --countit: #6b7280;
          --lbgc: #ffffff;
          --radius: 15px;
          --gap: 15px;
          font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
        }

        * {
          box-sizing: border-box
        }

        html,
        body {
          height: 100%
        }

        body {
          margin: 0;
          background: #f1f1f1;
          -webkit-font-smoothing: antialiased;
          -moz-osx-font-smoothing: grayscale;
          color: #111827;
          padding-bottom: 36px;
          line-height: 1.5;
        }

        .fAr,
        .Afr {
          display: none;
        }

        header {
          background: var(--bg);
          color: #fff;
          padding: 5px 0 10px;
          box-shadow: 0 6px 6px 0 rgb(0 0 0 / 35%);
        }

        header .inner {
          max-width: var(--maxw);
          margin: 0 auto;
          padding: 0 16px;
          display: flex;
          flex-direction: column;
        }

        .brand h1 {
          margin: 0;
          font-size: 2.4rem;
          letter-spacing: 0.2px;
          opacity: 0.8;
        }

        .brand p {
          margin: 4px;
          font-size: 1rem;
          opacity: 0.8;
        }



        nav {
          display: flex;
          gap: 8px;
          overflow-x: auto;
          -webkit-overflow-scrolling: touch;
          scroll-snap-type: x mandatory;
          padding: 2px;
          align-items: center;
          background: #00000012;
        }

        nav a,
        #menusec a,
        .floatmenu a {
          scroll-snap-align: start;
          display: inline-block;
          white-space: nowrap;
          padding: 4px 10px;
          border-radius: 20px;
          text-decoration: none;
          margin: 3px;
          background: #fff;
          color: #ffffff93;
          border: 1px solid transparent;
          font-size: 1rem;
        }

        nav a:hover,
        #menusec a:hover,
        .floatmenu a:hover {
          border-color: var(--sc);
          color: var(--sc);
          box-shadow: 0px 1px 3px -1px rgba(0, 0, 0, 0.5);
        }

        #results {
          width: 100%;
        }


        .font-list h2:first-of-type {
          margin-top: 0;
        }

        #fMN {
          overflow: scroll;
        }

        .floatmenu {
          height: 100%;
          text-align: right;
          display: inline-block;
          margin-top: 10%;
          overflow: scroll;
          padding-right: 30px;
        }

        .floatmenu a {
          color: #000;
          font-size: 1.2rem;
        }


        #menusec a {
          margin-top: 8px;
          color: #444;
          font-size: 1.1rem;
          padding: 10px;
          box-shadow: none;
          background: #ffffff45;
        }


        .container {
          max-width: var(--maxw);
          margin: 0 auto;
        }

        /* Input area */
        .input-section {
          margin-bottom: 10px;
          position: sticky;
          top: 0;
          z-index: 40;
          border-radius: 0 0 25px 25px;
          box-shadow: 0 2px 2px 0 rgb(0 0 0 / 35%);
          background: #fff;
        }

        .input-section div {
          width: 100%;
          position: relative;
          display: flex;
          padding: 7px;
          align-items: baseline;
          justify-content: center;
        }


        button#menu {
          font-size: 2rem;
          height: 45px;
          width: 45px;

        }

        .input-section input {
          flex: 1;
          width: 100%;
          padding: 17px;
          font-size: 1.2rem;
          border: none;
          outline: none;
          background: #f1f1f1;
          border-radius: 25px;

          /* 🔥 Inside shadow */
          box-shadow:
            inset 0 2px 4px rgba(0, 0, 0, 0.15),
            inset 0 -1px 2px rgba(255, 255, 255, 0.6);

          transition: box-shadow .12s ease, transform .12s ease;
        }

        /* Focus state */
        .input-section input:focus {
          box-shadow:
            inset 0 3px 6px rgba(0, 0, 0, 0.18),
            0 0 0 2px rgba(0, 0, 0, 0.15);
        }

        /* Optional hover polish */
        .input-section input:hover {
          transform: translateY(-1px);
        }


        #randomcloud {
          display: inline-block;
          text-align: center;
          margin: 0;
          margin-top: 5px;
          padding: 0;
          width: 100%;
          height: 150px;
          overflow: scroll;
        }

        #randomcloud li {
          display: inline-block;
        }

        #randomcloud div {
          color: #333;
          font-size: 16px;
          padding: 5px;
          border-radius: 15px;
          margin: 3px;
          cursor: pointer;
        }

        #randomcloud div:hover {
          color: #000;
          background: #f1f1f1;
        }

        #randomcloud #item1 div {
          font-size: 10px;
        }

        #randomcloud #item2 div {
          font-size: 13px;
        }

        #randomcloud #item3 div {
          font-size: 17px;
        }

        #randomcloud #item4 div {
          font-size: 22px;
        }

        #randomcloud #item5 div {
          font-size: 28px;
        }

        .font-size-controller {
          width: 270px;
          display: flex;
          align-items: center;
          margin: 5px 0;
        }

        .font-size-controller label {
          font-size: 14px;
          font-weight: 600;
          color: #333;
          width: 100px;
          text-transform: uppercase;
        }

        .font-size-controller input[type="range"] {
          width: 200px;
          height: 6px;
          background: linear-gradient(to right, #111, #555);
          border-radius: 10px;
          outline: none;
          appearance: none;
          -webkit-appearance: none;
          cursor: pointer;
        }

        /* Chrome / Edge / Safari thumb */
        .font-size-controller input[type="range"]::-webkit-slider-thumb {
          appearance: none;
          -webkit-appearance: none;
          width: 18px;
          height: 18px;
          background: #111;
          border-radius: 50%;
          box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
          transition: transform 0.15s ease;
        }

        .font-size-controller input[type="range"]::-webkit-slider-thumb:hover {
          transform: scale(1.1);
        }

        /* Firefox thumb */
        .font-size-controller input[type="range"]::-moz-range-thumb {
          width: 18px;
          height: 18px;
          background: #111;
          border-radius: 50%;
          border: none;
          cursor: pointer;
        }

        /* Firefox track */
        .font-size-controller input[type="range"]::-moz-range-track {
          height: 6px;
          background: #555;
          border-radius: 10px;
        }

        /* Value text */
        #fontSizeValue {
          font-weight: 700;
          color: #000;
        }


        /* Overlay clear button styles */
        .clear-overlay {
          position: absolute;
          right: 10px;
          top: 50%;
          background: #ffffff75;
          transform: translateY(-50%);
          display: inline-flex;
          align-items: center;
          gap: 8px;
          padding: 8px 10px;
          height: 40px;
          width: 40px;
          border-radius: 20px;
          cursor: pointer;
          font-weight: 700;
          color: var(--mc);
          z-index: 10;
        }

        .clear-overlay:hover {
          transform: translateY(-50%) translateY(-2px);
          box-shadow: 0 12px 30px rgba(11, 116, 222, 0.12);
        }

        .share-section {
          position: relative;
          display: flex;
          justify-content: flex-end;
          align-items: center;
        }

        .share-section span {
          color: #444;
          margin-right: 5px;
          text-transform: uppercase;
          font-size: 13px;
        }

        .share-options {
          display: flex;
          gap: 4px;
          flex-wrap: wrap;
        }



        .btn {
          padding: 12px 16px;
          width: auto;
          color: #fff;
          background: #fff;
          position: relative;
          border-radius: 10px;
          border: 0;
          cursor: pointer;
          font-weight: 600;
          box-shadow: 0 8px 22px rgba(11, 116, 222, 0.12);
          transition: transform .12s ease, box-shadow .12s ease;
        }

        .btn:hover {
          transform: translateY(-3px);
          box-shadow: 0 12px 30px rgba(11, 116, 222, 0.14);
        }

        .btn.secondary {
          background: transparent;
          border: 1px solid rgba(11, 116, 222, 0.16);
          color: var(--mc);
          box-shadow: none;
        }

        .btn.closeit {
          color: #c40707;
          border: 2px solid #c40707;

        }

        .btn.copyit {
          color: #19b454;
          border: 2px solid #19b454;

        }

        .result-card {
          margin-top: 6px;
          padding: 18px 0;
          display: flex;
          flex-direction: column;
          gap: 12px;
        }

        .grid ul {
          display: grid;
          grid-template-columns: repeat(2, 1fr);
          gap: var(--gap);
          margin: 0;
          padding: 0;
        }

        .count {
          position: absolute;
          top: -10px;
          left: -15px;
          z-index: 2;
          display: flex;
          align-items: baseline;
        }

        .count span {
          font-size: 1.2rem;
          color: var(--sc);
          background: #050505;
          color: #fff;
          width: 35px;
          height: 35px;
          border-radius: 50%;
          padding: 4px;
          display: inline-block;
          text-align: center;
        }

        .count p {
          font-size: 0.7rem;
          color: #777;
          margin: 0 7px;
          padding: 0;
        }

        .opt div {
          display: block;
          padding: 10px;
          cursor: pointer;
          color: #555;
          font-size: 1.1rem;
        }

        .repeat:hover,
        .share:hover {
          color: var(--sc);
          scale: 1.1;
        }

        .fontcopy {
          display: flex;
          gap: 5px;
        }





        .stylishfonts li {
          list-style: none;
          position: relative;
        }

        .stylishfonts li .font {
          border-radius: 20px;
          padding: 15px;
          font-size: 1.5rem;
          border: 1px solid transparent;
          cursor: pointer;
          user-select: none;
          width: 100%;
          overflow: scroll;
          position: relative;
          background: #fff;
          color: #000;
          box-shadow: 0px 1px 3px -1px rgba(0, 0, 0, 0.5);
          resize: none;
          font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
        }

        /* Hover / focus effect (visible and large for touch-friendly feel) */
        .stylishfonts li .font:hover,
        .stylishfonts li .font:focus {
          border-color: var(--sc);
          background: var(--lbgc);
          outline: none;
        }



        .buttons {
          display: flex;
          position: fixed;
          right: 0;
          bottom: 20%;
          flex-direction: column-reverse;
          background: #fff;
          border-radius: 20px 0 0 20px;
          box-shadow: 0px 1px 3px -1px rgba(0, 0, 0, 0.5);
          z-index: 9999;
        }

        .buttons button:hover {
          scale: 1.1;
        }

        #bulbBtn svg {
          stroke: #f97304;

        }

        button,
        #othertools a {
          display: inline-flex;
          align-items: center;
          justify-content: center;
          width: 45px;
          height: 45px;
          border: none;
          background: transparent;
          cursor: pointer;
          font-size: 18px;
          line-height: 1;
          touch-action: manipulation;
          -webkit-tap-highlight-color: transparent;
        }

        button:hover {
          opacity: 0.8;
        }

        #othertools a {
          width: auto;
          margin: 5px;
          padding: 10px;
          text-decoration: none;
          background: #444;
          color: #f1f1f1;
        }

        #othertools a:hover {
          background: #000;
          color: #fff;
        }

        svg {
          width: 20px;
          height: 20px;
          stroke: #555;
          stroke-width: 1.6;
          fill: none;
        }

        footer {
          margin-top: 28px;
          background: var(--mc);
          color: #fff;
          padding: 18px 0;
        }

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

        footer a {
          color: rgba(255, 255, 255, 0.95);
          text-decoration: underline
        }

        .text-repeater {
          position: fixed;
          top: 0;
          width: 100%;
          height: 100%;
          background: #ffffffcf;
          align-items: center;
          transition: right 0.3s;
          z-index: 9999;
          display: none;
        }

        .text-repeater .content-sec {
          background: #ffff;
          padding: 12px;
          border-radius: 20px;
          position: relative;
          box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
          margin: auto;
          width: 90%;
          margin-top: 15%;
        }

        .content-sec h3 {
          margin: 3px;
        }

        .close-button {
          top: 10px;
          position: fixed;
          right: 10px;
          padding: 8px 16px;
          font-size: 30px;
          border: none;
          border-radius: 20px;
          color: #444;
          background: #fff;
        }



        .text-repeater #outputtwo,
        .text-repeater #inputRepeat {
          width: 100%;
          border: 2px solid #e3dddd;
          border-radius: 10px;
          min-height: 50px;
          padding: 10px;
          font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
          font-size: 1.1rem;

        }

        .text-repeater #outputtwo {
          min-height: 150px;
        }

        .text-repeater #submit {
          width: 120px;
          background: #00934e;
          color: #fff;
          border-radius: 10px;
        }

        .text-repeater label {
          padding: 5px 0;
          color: #777;
          display: inline-block;
          font-size: 1.1rem;
        }

        input#max-quantity {
          font-size: 1.2rem;
          border: none;
          border-radius: 10px;
          text-align: center;
          padding: 10px;
          margin: 5px;
          background: #e2e6eb;
        }

        .sharebts {
          display: flex;
          justify-content: flex-end;
          gap: 10px;
        }

        .sharebts .btn {
          margin-top: 5px;
        }

        button#submit:hover {
          background: #f3f4f6;
          color: #000;
          box-shadow: 0 6px 16px rgba(0, 0, 0, .08);
        }

        button#submit:active {
          transform: translateY(1px);
          box-shadow: 0 3px 10px rgba(0, 0, 0, .10);
        }

        button#submit:focus-visible {
          outline: none;
          box-shadow: 0 0 0 3px rgba(99, 102, 241, .35), 0 6px 16px rgba(0, 0, 0, .08);
          border-color: #6366f1;
        }

        .copied-info {
          position: absolute;
          bottom: 8px;
          left: 10px;
          background: #e1a100;
          color: #000;
          font-size: 12px;
          padding: 4px 8px;
          border-radius: 12px;
          opacity: 0.9;
          pointer-events: none;
          animation: fadeInOut 0.5s ease;
        }

        @keyframes fadeInOut {
          from {
            opacity: 0;
            transform: translateY(4px);
          }

          to {
            opacity: 0.9;
            transform: translateY(0);
          }
        }

        .copied {
          background: #000;
          opacity: 0.9;
          color: #fff;
          display: block;
          width: 220px;
          padding: 15px 0 15px 15px;
          position: fixed;
          border-radius: 20px 0 0 20px;
          top: 10%;
          right: 0;
          z-index: 999;
          box-shadow: 0 6px 6px 0 rgb(0 0 0 / 35%);
        }

        .copied p {
          margin: 0;
          max-height: 100px;
          overflow: scroll;
        }

        .ads {
          display: block;
          width: 100%;
          margin: 7px 0;
          height: auto;
          clear: both;
        }

        /* HTML:<div class=loader></div>*/
        .loader {
          position: fixed;
          bottom: 15%;
          left: 10%;
          width: 120px;
          height: 20px;
          background: linear-gradient(#000 50%, #0000 0), linear-gradient(#0000 50%, #000 0), linear-gradient(#000 50%, #0000 0), linear-gradient(#0000 50%, #000 0), linear-gradient(#000 50%, #0000 0), linear-gradient(#0000 50%, #000 0) #ddd;
          background-size: calc(100%/6 + 1px) 200%;
          background-repeat: no-repeat;
          animation: l12 2s infinite;
        }

        @keyframes l12 {
          0% {
            background-position: calc(0*100%/5) 100%, calc(1*100%/5) 0%, calc(2*100%/5) 100%, calc(3*100%/5) 0%, calc(4*100%/5) 100%, calc(5*100%/5) 0%
          }

          16.67% {
            background-position: calc(0*100%/5) 0%, calc(1*100%/5) 0%, calc(2*100%/5) 100%, calc(3*100%/5) 0%, calc(4*100%/5) 100%, calc(5*100%/5) 0%
          }

          33.33% {
            background-position: calc(0*100%/5) 0%, calc(1*100%/5) 100%, calc(2*100%/5) 100%, calc(3*100%/5) 0%, calc(4*100%/5) 100%, calc(5*100%/5) 0%
          }

          50% {
            background-position: calc(0*100%/5) 0%, calc(1*100%/5) 100%, calc(2*100%/5) 0%, calc(3*100%/5) 0%, calc(4*100%/5) 100%, calc(5*100%/5) 0%
          }

          66.67% {
            background-position: calc(0*100%/5) 0%, calc(1*100%/5) 100%, calc(2*100%/5) 0%, calc(3*100%/5) 100%, calc(4*100%/5) 100%, calc(5*100%/5) 0%
          }

          83.33% {
            background-position: calc(0*100%/5) 0%, calc(1*100%/5) 100%, calc(2*100%/5) 0%, calc(3*100%/5) 100%, calc(4*100%/5) 0%, calc(5*100%/5) 0%
          }

          100% {
            background-position: calc(0*100%/5) 0%, calc(1*100%/5) 100%, calc(2*100%/5) 0%, calc(3*100%/5) 100%, calc(4*100%/5) 0%, calc(5*100%/5) 100%
          }
        }

        .page-load-status,
        .aryapage {
          display: none;
          align-items: center;
          width: 100%;
        }

        .loadmore {
          text-align: center;
        }

        #randombutton {
          width: auto;
          border-radius: 20px;
          padding: 25px;
          margin-top: 10px;
          background: var(--mc);
          color: white;
        }

        .info-text img {
          max-width: 100%;
        }

        .f-m-q,
        .f-m {
          position: fixed;
          top: 0;
          width: 100%;
          height: 100%;
          background: var(--bg);
          align-items: center;
          transition: right 0.3s;
          z-index: 9999;
          display: none;
        }

        .info-text ul {
          overflow: scroll;
        }

        /* Responsive */
        @media (max-width:920px) {
          .brand h1 {
            font-size: 1.5rem
          }

          .font-size-controller {
            margin-left: 20px;
          }

          .font-list {
            padding: 0 2%;
          }

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


        }



        @media (min-width:720px) {

          nav a,
          #menusec a,
          .floatmenu a {
            padding: 10px;
          }

          #randomcloud {
            height: 90px;
          }

          ul#randomcloud {
            margin-top: 10px;
          }


        }