    :root {
      /* 🌟 THE FOXIX PREMIUM ORANGE BRAND PALETTE */
      --primary-color: #ff7300;
      /* Core Fierce Thunder Orange */
      --primary-dark: #cc5c00;
      /* Deep Shadow Amber Hover */
      --primary-light: #ff8c33;
      /* Balanced Soft Bright Accent */
      --secondary-color: #ff9c26;
      /* Light Sun Secondary Accent */
      --accent-color: #ffa842;
      /* Radiant Highlight Tone */

      /* Default Light Mode Base Surfaces */
      --bg-primary: #fdf0e0;
      /* Soft Premium Bone White background */
      --bg-secondary: #fef5ec;
      /* Structural card background layer */
      --bg-tertiary: #e5e7eb;
      /* Tool inner wells / blocks */
      --text-primary: #0f172a;
      /* Deep slate charcoal text (super crisp) */
      --text-secondary: #475569;
      /* Classy slate secondary text descriptions */
      --text-tertiary: #94a3b8;
      /* Subtle utility details / placeholders */
      --border-color: #e2e8f0;
      /* Clean hairline separation borders */

      /* Glass Panels - Light Mode Accent Tones */
      --glass-bg: rgba(255, 255, 255, 0.8);
      --glass-border: rgba(255, 115, 0, 0.08);

      --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05);
      --shadow-md: 0 4px 6px rgba(15, 23, 42, 0.08);
      --shadow-lg: 0 10px 25px rgba(255, 115, 0, 0.06);
      --shadow-xl: 0 20px 40px rgba(15, 23, 42, 0.12);

      /* Spacing (Untouched) */
      --spacing-xs: 0.25rem;
      --spacing-sm: 0.5rem;
      --spacing-md: 1rem;
      --spacing-lg: 1.5rem;
      --spacing-xl: 2rem;
      --spacing-2xl: 3rem;
      --spacing-3xl: 4rem;

      /* Border Radius (Untouched) */
      --radius-sm: 0.375rem;
      --radius-md: 0.5rem;
      --radius-lg: 0.75rem;
      --radius-xl: 1rem;
      --radius-2xl: 1.5rem;

      /* Transitions (Untouched) */
      --transition-fast: 0.2s ease-in-out;
      --transition-normal: 0.3s ease-in-out;
      --transition-slow: 0.5s ease-in-out;

      /* Font (Untouched) */
      --font-size-xs: 0.75rem;
      --font-size-sm: 0.875rem;
      --font-size-base: 1rem;
      --font-size-lg: 1.125rem;
      --font-size-xl: 1.25rem;
      --font-size-2xl: 1.5rem;
      --font-size-3xl: 1.875rem;
      --font-size-4xl: 2.25rem;
    }

    /* 🌙 Premium Space Dark Mode Override */
    body.dark-mode {
      --bg-primary: #0b0f17;
      /* High-end Deep Cyber Space Black */
      --bg-secondary: #09101F;
      /* Sleek card containers panels */
      --bg-tertiary: #1e293b;
      /* Focused dark active tabs / inner fields */
      --text-primary: #f8fafc;
      /* Clear high-contrast clean ice white */
      --text-secondary: #94a3b8;
      /* Clean soft description details text */
      --text-tertiary: #64748b;
      /* Understated muted tags / shortcuts labels */
      --border-color: #1e293b;
      /* Midnight slate element divider borders */

      /* Glass Panels - Dark Mode Accent Glows */
      --glass-bg: rgba(11, 15, 23, 0.8);
      --glass-border: rgba(255, 115, 0, 0.15);

      --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
      --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.4);
      --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.5);
      --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.6);
    }

    /* ============================================================
   2. GLOBAL STYLES
   ============================================================ */

    * {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
    }

    html {
      scroll-behavior: smooth;
    }

    body {
      font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
      background-color: var(--bg-primary);
      color: var(--text-primary);
      transition: background-color var(--transition-normal), color var(--transition-normal);
      overflow-x: hidden;
    }

    /* Prevent layout shift on scrollbar */
    html {
      overflow-y: scroll;
    }

    .container {
      max-width: 1200px;
      margin: 0 auto;
      padding: 0 var(--spacing-lg);
    }

    /* ============================================================
   3. TYPOGRAPHY
   ============================================================ */

    h1,
    h2,
    h3,
    h4,
    h5,
    h6 {
      font-weight: 700;
      line-height: 1.2;
      margin-bottom: var(--spacing-md);
    }

    h1 {
      font-size: var(--font-size-4xl);
    }

    h2 {
      font-size: var(--font-size-3xl);
    }

    h3 {
      font-size: var(--font-size-2xl);
    }

    h4 {
      font-size: var(--font-size-xl);
    }

    p {
      line-height: 1.6;
      color: var(--text-secondary);
    }

    a {
      color: var(--primary-color);
      text-decoration: none;
      transition: color var(--transition-fast);
    }

    a:hover {
      color: var(--primary-dark);
    }

    /* ============================================================
   4. BUTTONS
   ============================================================ */

    .btn {
      padding: var(--spacing-sm) var(--spacing-lg);
      border: none;
      border-radius: var(--radius-lg);
      font-size: var(--font-size-base);
      font-weight: 600;
      cursor: pointer;
      transition: all var(--transition-normal);
      display: inline-block;
      text-align: center;
    }

    .btn-primary {
      background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
      color: white;
      box-shadow: 0 4px 15px rgba(255, 115, 0, 0.3);
    }

    .btn-primary:hover {
      transform: translateY(-2px);
      box-shadow: 0 6px 20px rgba(255, 115, 0, 0.4);
    }

    .btn-secondary {
      background-color: transparent;
      color: var(--primary-color);
      border: 2px solid var(--primary-color);
    }

    .btn-secondary:hover {
      background-color: var(--primary-color);
      color: white;
    }

    .btn-card {
      background-color: var(--primary-color);
      color: white;
      width: 100%;
      padding: var(--spacing-sm) var(--spacing-md);
      border-radius: var(--radius-lg);
    }

    .btn-card:hover {
      background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    }

    #sub-btn {
      padding: var(--spacing-sm) var(--spacing-lg);
      border: none;
      border-radius: var(--radius-lg);
      font-size: var(--font-size-base);
      font-weight: 600;
      cursor: pointer;
      transition: all var(--transition-normal);
      display: inline-block;
      text-align: center;
    }

    /* ============================================================
   5. NAVBAR
   ============================================================ */

    .navbar {
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      background-color: var(--glass-bg);
      backdrop-filter: blur(10px);
      border-bottom: 1px solid var(--glass-border);
      z-index: 1000;
      transition: all var(--transition-fast);
    }

    .navbar-content {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: var(--spacing-md) 0;
    }

    .logo {
      display: flex;
      align-items: center;
      gap: var(--spacing-sm);
      font-size: var(--font-size-xl);
      font-weight: 800;
      background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      background-clip: text;
    }

    .logo-img {
      height: 40px;
      /* Sets a perfect, clean size inside the navbar */
      width: auto;
      /* Maintains your logo's exact aspect ratio */
      object-fit: contain;
      display: block;
    }

    .logo-icon {
      font-size: var(--font-size-2xl);
    }

    .nav-links {
      display: flex;
      gap: var(--spacing-2xl);
      align-items: center;
    }

    .nav-link {
      color: var(--text-secondary);
      font-weight: 500;
      position: relative;
      transition: color var(--transition-fast);
    }

    .nav-link:hover {
      color: var(--primary-color);
    }

    .nav-link::after {
      content: '';
      position: absolute;
      bottom: -4px;
      left: 0;
      width: 0;
      height: 2px;
      background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
      transition: width var(--transition-normal);
    }

    .nav-link:hover::after {
      width: 100%;
    }

    .navbar-actions {
      display: flex;
      gap: var(--spacing-md);
      align-items: center;
    }

    .theme-toggle {
      background: none;
      border: none;
      cursor: pointer;
      font-size: var(--font-size-xl);
      transition: transform var(--transition-normal);
    }

    .theme-toggle:hover {
      transform: rotate(20deg) scale(1.1);
    }

    .tool-search {
      padding: var(--spacing-sm) var(--spacing-md);
      border: 1px solid var(--border-color);
      border-radius: var(--radius-lg);
      background-color: var(--bg-primary);
      color: var(--text-primary);
      width: 200px;
      transition: all var(--transition-normal);
    }

    .tool-search:focus {
      outline: none;
      border-color: var(--primary-color);
      box-shadow: 0 0 0 3px rgba(255, 115, 0, 0.1);
    }

    .hamburger {
      display: none;
      flex-direction: column;
      background: none;
      border: none;
      cursor: pointer;
      gap: var(--spacing-xs);
    }

    .hamburger span {
      width: 25px;
      height: 3px;
      background-color: var(--text-primary);
      border-radius: var(--radius-sm);
      transition: all var(--transition-normal);
    }

    /* ============================================================
   10. FAQ SECTION
   ============================================================ */

    .faq {
      padding: var(--spacing-3xl) 0;
      background-color: var(--bg-secondary);
    }

    .faq-container {
      max-width: 700px;
      margin: 0 auto;
    }

    .faq-item {
      background: var(--glass-bg);
      backdrop-filter: blur(10px);
      border: 1px solid var(--glass-border);
      border-radius: var(--radius-lg);
      margin-bottom: var(--spacing-lg);
      overflow: hidden;
      transition: all var(--transition-normal);
    }

    .faq-item:hover {
      border-color: var(--primary-color);
    }

    .faq-question {
      width: 100%;
      padding: var(--spacing-lg);
      background: none;
      border: none;
      color: var(--text-primary);
      font-size: var(--font-size-base);
      font-weight: 600;
      cursor: pointer;
      display: flex;
      justify-content: space-between;
      align-items: center;
      transition: all var(--transition-normal);
    }

    .faq-question:hover {
      color: var(--primary-color);
    }

    .faq-icon {
      display: flex;
      align-items: center;
      justify-content: center;
      width: 30px;
      height: 30px;
      background: var(--primary-color);
      color: white;
      border-radius: 50%;
      transition: transform var(--transition-normal);
    }

    .faq-item.active .faq-icon {
      transform: rotate(45deg);
    }

    .faq-answer {
      padding: 0 var(--spacing-lg) var(--spacing-lg);
      max-height: 0;
      overflow: hidden;
      transition: max-height var(--transition-normal);
      margin-bottom: 20px;
    }

    .faq-item.active .faq-answer {
      max-height: 500px;
    }

    .faq-answer p {
      margin: 0;
    }

    /* ============================================================
   11. BLOG SECTION
   ============================================================ */

    .section-header {
      text-align: center;
      margin-bottom: var(--spacing-2xl);
    }

    .section-header h2 {
      margin-bottom: 10px;
    }

    .section-header p {
      text-align: center;
      color: var(--text-secondary);
    }

    .blog {
      padding: var(--spacing-3xl) 0;
    }

    .blog-grid {
      display: grid;
      grid-template-columns: 350px 1fr;
      gap: var(--spacing-3xl);
      width: 100%;
      margin-top: var(--spacing-xl);
      /* 🌐 Fix: Prevents the left box from stretching vertically */
      align-items: start;
    }

    @media (max-width: 900px) {
      .blog-grid {
        grid-template-columns: 1fr;
      }

      .blog-card,
      .main-blog {
        max-width: 100%;
        width: 100%;
      }

      .main-blog {
        height: auto;
        max-height: none;
      }
    }

    .blog-card {
      background: var(--glass-bg);
      backdrop-filter: blur(10px);
      border: 1px solid var(--glass-border);
      border-radius: var(--radius-2xl);
      padding: var(--spacing-2xl);
      transition: all var(--transition-normal);
      cursor: pointer;

      /* 🌐 Fix: Structural Sizing Locks */
      width: 100%;
      /* Allows it to completely fill its 350px grid track */
      max-width: 350px;
      /* Hard-locks its horizontal growth ceiling */
      height: auto;
      /* Snaps its height perfectly around its text content */
    }

    .blog-card:hover {
      transform: translateY(-8px);
      box-shadow: var(--shadow-lg);
      border-color: var(--primary-color);
    }

    .blog-image {
      font-size: 3rem;
      margin-bottom: var(--spacing-lg);
    }

    .blog-card h3 {
      margin-bottom: var(--spacing-md);
      color: var(--text-primary);
    }

    .blog-card p {
      margin-bottom: var(--spacing-lg);
    }

    .blog-meta {
      display: flex;
      justify-content: space-between;
      font-size: var(--font-size-sm);
      color: var(--text-secondary);
    }

    .blog-date {
      font-weight: 500;
    }

    .blog-category {
      background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      background-clip: text;
      font-weight: 600;
    }

    /* ============================================================
   MAIN BLOG CONTAINER
   ============================================================ */

    .main-blog {
      background: var(--glass-bg);
      backdrop-filter: blur(10px);
      border: 1px solid var(--glass-border);
      border-radius: var(--radius-2xl);
      padding: var(--spacing-2xl);
      transition: all var(--transition-normal);

      width: 100%;

      /* Scrollable Blog */
      height: 500px;
      overflow-y: auto;
      overflow-x: hidden;
    }

    /* ============================================================
   SCROLLBAR
   ============================================================ */

    .main-blog::-webkit-scrollbar {
      width: 8px;
    }

    .main-blog::-webkit-scrollbar-track {
      background: var(--bg-secondary);
      border-radius: 10px;
    }

    .main-blog::-webkit-scrollbar-thumb {
      background: var(--primary-color);
      border-radius: 10px;
    }

    .main-blog::-webkit-scrollbar-thumb:hover {
      background: var(--primary-dark);
    }

    /* ============================================================
   BLOG TYPOGRAPHY
   ============================================================ */

    .main-blog h2 {
      margin-bottom: 25px;
      line-height: 1.4;
    }

    .main-blog h3 {
      margin-top: 35px;
      margin-bottom: 18px;
      line-height: 1.4;
    }

    .main-blog h4 {
      margin-top: 25px;
      margin-bottom: 12px;
      line-height: 1.4;
    }

    .main-blog p {
      margin-bottom: 18px;
      line-height: 1.9;
    }

    .main-blog ul {
      margin: 18px 0 25px 30px;
    }

    .main-blog li {
      margin-bottom: 10px;
      line-height: 1.8;
    }

    .main-blog strong {
      color: var(--text-primary);
    }

    .main-blog a {
      color: var(--primary-color);
    }

    .main-blog a:hover {
      color: var(--primary-dark);
    }

    /* ============================================================
   12. NEWSLETTER SECTION
   ============================================================ */

    .newsletter {
      padding: var(--spacing-3xl) 0;
      background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
      color: white;
    }

    .newsletter-content {
      max-width: 500px;
      margin: 0 auto;
      text-align: center;
    }

    .newsletter-content h2 {
      color: white;
      margin-bottom: var(--spacing-md);
    }

    .newsletter-content p {
      color: rgba(255, 255, 255, 0.8);
      margin-bottom: var(--spacing-2xl);
    }

    .newsletter-form {
      display: flex;
      gap: var(--spacing-md);
      margin-bottom: var(--spacing-lg);
    }

    .newsletter-form input {
      flex: 1;
      padding: var(--spacing-md) var(--spacing-lg);
      border: none;
      border-radius: var(--radius-lg);
      font-size: var(--font-size-base);
    }

    .newsletter-form button {
      padding: var(--spacing-md) var(--spacing-2xl);
      background-color: white;
      color: var(--primary-color);
      font-weight: 600;
      border-radius: var(--radius-lg);
      cursor: pointer;
      transition: all var(--transition-normal);
    }

    .newsletter-form button:hover {
      transform: scale(1.05);
    }

    .form-message {
      font-size: var(--font-size-sm);
      opacity: 0;
      transition: opacity var(--transition-normal);
    }

    .form-message.show {
      opacity: 1;
    }

    /* ============================================================
   13. FOOTER
   ============================================================ */

    .footer {
      background-color: var(--bg-secondary);
      border-top: 1px solid var(--border-color);
      padding: var(--spacing-3xl) 0 var(--spacing-2xl);
    }

    .footer-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
      gap: var(--spacing-2xl);
      margin-bottom: var(--spacing-3xl);
    }

    .footer-section h4 {
      margin-bottom: var(--spacing-lg);
      color: var(--text-primary);
    }

    .footer-section p {
      margin-bottom: var(--spacing-lg);
      line-height: 1.6;
    }

    .footer-section ul {
      list-style: none;
    }

    .footer-section ul li {
      margin-bottom: var(--spacing-md);
    }

    .footer-section a {
      color: var(--text-secondary);
      transition: color var(--transition-fast);
    }

    .footer-section a:hover {
      color: var(--primary-color);
    }

    .social-links {
      display: flex;
      gap: var(--spacing-md);
      margin-top: var(--spacing-lg);
    }

    /* Ensure the link container handles the inline SVG properly */
    .social-links a.insta-link {
      display: inline-flex;
      align-items: center;
      justify-content: center;
    }

    /* Match the exact vector stroke to your white text color */
    .insta-icon {
      width: 18px;
      /* Micro-adjusted to match the visual height of text icons */
      height: 18px;
      stroke: currentColor;
      /* Automatically forces the SVG color to match 'white' from your parent class */
      transition: transform var(--transition-normal);
    }

    .social-links a {
      width: 40px;
      height: 40px;
      display: flex;
      align-items: center;
      justify-content: center;
      background: var(--primary-color);
      color: white;
      border-radius: 50%;
      transition: all var(--transition-normal);
    }

    .social-links a:hover {
      transform: translateY(-3px);
      background: var(--primary-dark);
    }

    .footer-bottom {
      text-align: center;
      border-top: 1px solid var(--border-color);
      padding-top: var(--spacing-2xl);
    }

    .footer-bottom p {
      margin: var(--spacing-md) 0;
      color: var(--text-secondary);
      font-size: var(--font-size-sm);
    }

    /* header */
    .hero-panel {
      width: 100%;
      padding: 40px;
      border-radius: 28px;
      margin-bottom: 35px;
      display: flex;
      justify-content: center;
    }

    .section-title {
      font-size: var(--font-size-4xl);
      font-weight: 700;
      background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      background-clip: text;
      margin-bottom: var(--spacing-md);
    }

    .section-subtitle {
      font-size: var(--font-size-base);
      color: var(--text-secondary);
      text-align: center;
      max-width: 700px;
      margin: 0 auto;
    }

    .tool-header {
      padding: 35px 40px 25px 40px;
      text-align: center;
      width: 100%;
      text-align: center;
    }

    .tool-header .section-subtitle {
      max-width: 850px;
      margin: 0 auto;
    }

    .hero-panel h1 {
      font-size: 3rem;
      margin-bottom: 14px;
      background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
      background-clip: text;
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      text-align: center;
    }

    .hero-panel p {
      color: var(--text-secondary);

      line-height: 1.8;

      font-size: 1rem;
      text-align: center;
    }


    button,
    textarea {
      font: inherit;
    }

    button {
      border: 0;
    }

    .site-header {
      position: sticky;
      top: 0;
      z-index: 20;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 1rem;
      padding: 1rem clamp(1rem, 4vw, 4rem);
      border-bottom: 1px solid rgba(219, 228, 238, 0.7);
      background: rgba(255, 255, 255, 0.82);
      backdrop-filter: blur(18px);
    }

    body.dark .site-header {
      border-color: rgba(44, 55, 68, 0.85);
      background: rgba(16, 20, 24, 0.82);
    }

    .brand {
      display: inline-flex;
      align-items: center;
      gap: 0.75rem;
      color: var(--text);
      text-decoration: none;
    }

    .brand-mark {
      display: grid;
      width: 2.75rem;
      height: 2.75rem;
      place-items: center;
      border-radius: var(--radius);
      color: #ffffff;
      background: linear-gradient(135deg, var(--primary), #0f8bd1);
      font-weight: 800;
      box-shadow: 0 12px 30px rgba(24, 160, 88, 0.24);
    }

    .brand strong,
    .brand small {
      display: block;
    }

    .brand small {
      margin-top: 0.12rem;
      color: var(--muted);
      font-size: 0.78rem;
    }

    .theme-toggle {
      position: relative;
      width: 3.45rem;
      height: 1.9rem;
      border: 1px solid var(--border);
      border-radius: 999px;
      background: var(--surface-soft);
      cursor: pointer;
    }

    .toggle-icon {
      position: absolute;
      top: 0.25rem;
      left: 0.25rem;
      width: 1.32rem;
      height: 1.32rem;
      border-radius: 50%;
      background: var(--primary);
      box-shadow: 0 4px 12px rgba(24, 160, 88, 0.3);
      transition: transform 0.25s ease;
    }

    body.dark .toggle-icon {
      transform: translateX(1.55rem);
    }

    main {
      width: min(1180px, calc(100% - 2rem));
      margin: 0 auto;
    }

    .hero {
      display: grid;
      min-height: 24rem;
      align-items: center;
      padding: clamp(3rem, 7vw, 5.5rem) 0 2rem;
    }

    .hero-copy {
      width: min(760px, 100%);
    }

    .eyebrow {
      margin: 0 0 0.75rem;
      color: var(--primary-dark);
      font-weight: 800;
      letter-spacing: 0;
      text-transform: uppercase;
      font-size: 0.78rem;
    }

    body.dark .eyebrow {
      color: var(--primary);
    }

    h1,
    h2,
    p {
      margin-top: 0;
    }

    h1 {
      margin-bottom: 1rem;
      color: var(--text);
      font-size: clamp(2.45rem, 6vw, 5rem);
      line-height: 1;
      letter-spacing: 0;
    }

    .hero p:last-child {
      max-width: 44rem;
      color: var(--muted);
      font-size: clamp(1rem, 2vw, 1.2rem);
      line-height: 1.7;
    }

    .tool-shell {
      position: relative;
      margin-bottom: 3rem;
    }

    .editor-grid {
      display: grid;
      grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
      gap: 1.25rem;
    }

    .panel {
      display: flex;
      min-height: 33rem;
      flex-direction: column;
      padding: clamp(1rem, 2vw, 1.5rem);
      border: 1px solid var(--border);
      border-radius: var(--radius);
      background: var(--surface);
      box-shadow: var(--shadow);
    }

    .panel-header {
      display: flex;
      align-items: flex-start;
      justify-content: space-between;
      gap: 1rem;
      margin-bottom: 1rem;
    }

    .panel h2 {
      margin-bottom: 0.35rem;
      font-size: 1.1rem;
    }

    .panel p {
      margin-bottom: 0;
      color: var(--muted);
      font-size: 0.92rem;
    }

    .stats {
      display: flex;
      flex-wrap: wrap;
      justify-content: flex-end;
      gap: 0.45rem;
      color: var(--muted);
      font-size: 0.82rem;
    }

    .stats span {
      padding: 0.45rem 0.6rem;
      border: 1px solid var(--border);
      border-radius: 999px;
      background: var(--surface-soft);
      white-space: nowrap;
    }

    textarea,
    .output-box {
      width: 100%;
      flex: 1;
      min-height: 20rem;
      padding: 1rem;
      border: 1px solid var(--border);
      border-radius: var(--radius);
      color: var(--text);
      background: var(--surface-soft);
      line-height: 1.7;
      outline: none;
    }

    textarea {
      resize: none;
      transition: border-color 0.2s ease, box-shadow 0.2s ease;
    }

    textarea:focus,
    .output-box:focus {
      border-color: var(--primary);
      box-shadow: 0 0 0 4px rgba(24, 160, 88, 0.14);
    }

    .output-box {
      overflow-y: auto;
      white-space: pre-wrap;
    }

    .actions {
      display: flex;
      flex-wrap: wrap;
      gap: 0.75rem;
      margin-top: 1rem;
    }

    .button {
      display: inline-flex;
      min-height: 2.85rem;
      align-items: center;
      justify-content: center;
      padding: 0.8rem 1.1rem;
      border-radius: var(--radius);
      cursor: pointer;
      font-weight: 800;
      transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    }

    .button:hover {
      transform: translateY(-1px);
    }

    .button:focus-visible {
      outline: 3px solid rgba(24, 160, 88, 0.35);
      outline-offset: 2px;
    }

    .primary {
      color: #ffffff;
      background: var(--primary);
      box-shadow: 0 12px 26px rgba(24, 160, 88, 0.28);
    }

    .primary:hover {
      background: var(--primary-dark);
    }

    .secondary {
      color: var(--primary-dark);
      background: var(--primary-soft);
    }

    body.dark .secondary {
      color: var(--primary);
    }

    .ghost {
      color: var(--muted);
      background: transparent;
      border: 1px solid var(--border);
    }

    .issue-list {
      display: grid;
      gap: 0.65rem;
      max-height: 11rem;
      overflow-y: auto;
      margin-top: 1rem;
    }

    .issue-card {
      padding: 0.8rem;
      border: 1px solid var(--border);
      border-radius: var(--radius);
      background: var(--surface-soft);
    }

    .issue-card strong {
      display: block;
      margin-bottom: 0.2rem;
      color: var(--warning);
      font-size: 0.85rem;
    }

    .issue-card p {
      color: var(--text);
      line-height: 1.5;
    }

    .message {
      min-height: 2rem;
      margin-top: 1rem;
      color: var(--muted);
      font-weight: 700;
    }

    .message.error {
      color: var(--danger);
    }

    .message.success {
      color: var(--primary-dark);
    }

    body.dark .message.success {
      color: var(--primary);
    }

    .loader {
      position: fixed;
      inset: 0;
      z-index: 30;
      display: none;
      align-items: center;
      justify-content: center;
      gap: 0.8rem;
      color: #ffffff;
      background: rgba(10, 15, 20, 0.75);
      backdrop-filter: blur(6px);
      font-weight: 800;
    }

    .loader.active {
      display: flex;
    }

    .spinner {
      width: 2rem;
      height: 2rem;
      border: 3px solid rgba(255, 255, 255, 0.35);
      border-top-color: var(--primary);
      border-radius: 50%;
      animation: spin 0.8s linear infinite;
    }

    .site-footer {
      width: min(1180px, calc(100% - 2rem));
      margin: 0 auto;
      padding: 0 0 2rem;
      color: var(--muted);
      text-align: center;
    }

    .sr-only {
      position: absolute;
      width: 1px;
      height: 1px;
      overflow: hidden;
      clip: rect(0, 0, 0, 0);
      white-space: nowrap;
    }

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

    @media (max-width: 900px) {
      .editor-grid {
        grid-template-columns: 1fr;
      }

      .panel {
        min-height: auto;
      }
    }

    @media (max-width: 640px) {
      .site-header {
        padding: 0.85rem 1rem;
      }

      .brand small {
        display: none;
      }

      .hero {
        min-height: auto;
        padding-top: 2.2rem;
      }

      h1 {
        font-size: 2.45rem;
      }

      .panel-header {
        flex-direction: column;
      }

      .stats {
        justify-content: flex-start;
      }

      .actions {
        display: grid;
        grid-template-columns: 1fr;
      }

      .button {
        width: 100%;
      }
    }

    /* ============================================================
   AI GRAMMAR FIXER MAIN SECTION
   SAME DESIGN AS TEXT REVERSE TOOL
============================================================ */

    .page-shell {
      max-width: 1300px;
      margin: 50px auto 60px;
      padding: 0 20px;
    }

    .hero-panel {
      width: 100%;
      padding: 40px;
      border-radius: 28px;
      margin-bottom: 35px;
      display: flex;
      justify-content: center;
    }

    .tool-header {
      padding: 35px 40px 25px 40px;
      text-align: center;
      width: 100%;
    }

    .section-title {
      font-size: var(--font-size-4xl);
      font-weight: 700;
      background: linear-gradient(135deg,
          var(--primary-color),
          var(--secondary-color));
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      background-clip: text;
      margin-bottom: var(--spacing-md);
    }

    .section-subtitle {
      font-size: var(--font-size-base);
      color: var(--text-secondary);
      text-align: center;
      max-width: 850px;
      margin: 0 auto;
    }

    .tool-shell {
      width: 100%;
    }

    .editor-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 30px;
    }

    /* Cards */

    .panel {
      background: var(--glass-bg);
      backdrop-filter: blur(10px);
      border: 1px solid var(--border-color);
      border-radius: 28px;
      padding: 30px;
      box-shadow: var(--shadow-xl);
    }

    .panel-header {
      display: flex;
      justify-content: space-between;
      align-items: flex-start;
      gap: 20px;
      margin-bottom: 25px;
    }

    .panel-header h2 {
      margin-bottom: 8px;
      font-size: 1.5rem;
      color: var(--text-primary);
    }

    .panel-header p {
      color: var(--text-secondary);
      line-height: 1.7;
      font-size: 0.95rem;
    }

    /* Stats */

    .stats {
      display: flex;
      gap: 16px;
      flex-wrap: wrap;
    }

    .stats span {
      background: var(--bg-secondary);
      border: 1px solid var(--border-color);
      padding: 8px 14px;
      border-radius: 12px;
      color: var(--text-secondary);
      font-size: 0.9rem;
    }

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

    /* Textarea */

    #inputText {
      width: 100%;
      min-height: 420px;
      padding: 20px;
      border-radius: 22px;
      border: 2px solid var(--border-color);
      background: var(--bg-secondary);
      color: var(--text-primary);
      resize: vertical;
      font-size: 1rem;
      line-height: 1.8;
      transition: 0.3s ease;
    }

    #inputText:focus {
      outline: none;
      border-color: var(--primary-color);
      box-shadow: 0 0 0 4px rgba(255, 115, 0, 0.1);
    }

    /* Output */

    .output-box {
      min-height: 420px;
      border-radius: 22px;
      border: 2px dashed var(--primary-color);
      background: var(--bg-secondary);
      padding: 20px;
      overflow-y: auto;

      color: var(--text-primary);
      line-height: 1.8;
      white-space: pre-wrap;
      word-break: break-word;
    }

    /* Buttons */

    .actions {
      display: flex;
      gap: 15px;
      flex-wrap: wrap;
      margin-top: 25px;
    }

    .button {
      border: none;
      padding: 14px 22px;
      border-radius: 16px;
      font-weight: 700;
      cursor: pointer;
      transition: 0.3s ease;
    }

    .button:hover {
      transform: translateY(-2px);
    }

    .button.primary {
      background: linear-gradient(135deg,
          var(--primary-color),
          var(--secondary-color));
      color: white;
    }

    .button.secondary,
    .button.ghost {
      background: var(--bg-secondary);
      color: var(--text-primary);
      border: 1px solid var(--border-color);
    }

    /* Issue List */

    .issue-list {
      margin-top: 20px;
      display: flex;
      flex-direction: column;
      gap: 12px;
    }

    .issue-item {
      background: var(--bg-secondary);
      border: 1px solid var(--border-color);
      border-left: 4px solid var(--primary-color);
      border-radius: 14px;
      padding: 12px 15px;
      color: var(--text-secondary);
      font-size: 0.95rem;
    }

    /* Status Message */

    .message {
      margin-top: 20px;
      text-align: center;
      color: var(--text-secondary);
      font-weight: 600;
    }

    /* Loader */

    .loader {
      display: none;
      margin-top: 20px;
      justify-content: center;
      align-items: center;
      gap: 12px;
      color: var(--text-secondary);
    }

    .spinner {
      width: 24px;
      height: 24px;
      border: 3px solid var(--border-color);
      border-top-color: var(--primary-color);
      border-radius: 50%;
      animation: spin 0.8s linear infinite;
    }

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

    /* Accessibility */

    .sr-only {
      position: absolute;
      width: 1px;
      height: 1px;
      overflow: hidden;
      clip: rect(0, 0, 0, 0);
    }

    /* Responsive */

    @media (max-width: 992px) {
      .editor-grid {
        grid-template-columns: 1fr;
      }

      .hero-panel {
        flex-direction: column;
        align-items: flex-start;
      }
    }

    /* ============================================================
   17. RESPONSIVE DESIGN
   ============================================================ */

    @media (max-width: 768px) {

      /* Layout Alignment for Mobile Header Row */
      .navbar-content {
        display: flex;
        justify-content: flex-start;
        /* Aligns hamburger and logo to the left */
        align-items: center;
        gap: var(--spacing-md);
        position: relative;
      }

      .hamburger {
        display: flex;
      }

      /* FIX: Force menu items to hide vertically, NOT show horizontally */
      .nav-links {
        display: none !important;
        /* Forces it to be completely hidden on mobile by default */
        position: absolute;
        top: 70px;
        /* Adjust this based on your navbar height */
        left: 0;
        right: 0;
        background: var(--glass-bg);
        backdrop-filter: blur(10px);
        flex-direction: column !important;
        /* Stack links vertically */
        gap: var(--spacing-lg);
        padding: var(--spacing-lg);
        border-bottom: 1px solid var(--glass-border);
        align-items: flex-start;
        width: 100%;
        z-index: 999;
      }

      /* When active (clicked), drop down the full menu smoothly */
      .nav-links.active {
        display: flex !important;
        /* Forces it to show up when clicked! */
      }

      /* Hide search tool input field on tablets and phones */
      .tool-search {
        display: none !important;
      }

      /* Push the theme toggle to the absolute far right boundary */
      .navbar-actions {
        margin-left: auto;
        display: flex;
        align-items: center;
      }

      /* Preserving your original layout updates below */
      .main-container {
        grid-template-columns: 1fr !important;
        padding: var(--spacing-md) !important;
        /* Reduces outer margin gaps */
        gap: var(--spacing-xl) !important;
        margin-top: 80px !important;
        /* Gives perfect breathing space below navbar */
      }

      /* FIXED: Removes the padding compressing the card from both sides */
      .merge-section {
        padding: 0 !important;
        /* Stops the squishing side forces completely */
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
      }

      /* Reduces inner padding slightly for mobile so input area looks vast */
      .tool-header {
        padding: var(--spacing-lg) var(--spacing-md) !important;
      }

      .mode-content {
        padding: var(--spacing-lg) var(--spacing-md) !important;
      }

      /* Makes action buttons look sleek stacked on top of each other on mobile devices */
      .button-action-row {
        flex-direction: column !important;
        gap: var(--spacing-sm) !important;
      }

      .action-btn {
        width: 100% !important;
        /* Full width tap target buttons */
      }

      .section-title {
        font-size: var(--font-size-2xl) !important;
      }

      .hero-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-2xl);
      }

      .hero-title {
        font-size: 2rem;
      }

      .hero-subtitle {
        font-size: var(--font-size-base);
      }

      .hero-buttons {
        flex-direction: column;
      }

      .hero-stats {
        flex-direction: column;
        gap: var(--spacing-lg);
      }

      .illustration {
        display: none;
      }

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

      .testimonial-card {
        flex: 0 0 100%;
      }

      .slider-nav {
        width: 35px;
        height: 35px;
        font-size: var(--font-size-base);
      }

      .newsletter-form {
        flex-direction: column;
      }

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

      .modal-content {
        max-height: 90vh;
      }

      .tool-actions {
        flex-direction: column;
      }

      .hero {
        padding: var(--spacing-2xl) 0;
        min-height: auto;
      }

      h1 {
        font-size: var(--font-size-2xl);
      }

      h2 {
        font-size: var(--font-size-xl);
      }

      .tools-section {
        padding: var(--spacing-2xl) 0;
      }

      .why-choose-us,
      .testimonials,
      .faq,
      .blog,
      .newsletter,
      .footer {
        padding: var(--spacing-2xl) 0;
      }

      .main-blog {
        height: 400px;
        max-height: 400px;

        overflow-y: auto;
        overflow-x: hidden;

        -webkit-overflow-scrolling: touch;
      }

      .main-blog h2 {
        font-size: 1.5rem;
      }

      .main-blog h3 {
        font-size: 1.3rem;
      }

      .main-blog h4 {
        font-size: 1.1rem;
      }

      .main-blog p {
        line-height: 1.8;
      }

      .main-blog ul {
        margin-left: 22px;
      }
    }

    /* ============================================================
   6. PREMIUM SIDEBAR UTILITY ELEMENTS
   ============================================================ */
    .sidebar {
      display: flex;
      flex-direction: column;
      gap: var(--spacing-xl);
      margin-top: 30px;
    }

    .premium-card {
      /* 🌐 Uses your dynamic container colors */
      background: var(--bg-secondary);
      border-radius: var(--radius-xl);
      padding: var(--spacing-xl);
      text-align: center;
      box-shadow: var(--shadow-xl);
      animation: fadeInUp 0.6s ease-out;
      /* 🌐 Switches hairline colors seamlessly */
      border: 2px solid var(--border-color);
    }

    .premium-badge {
      display: inline-block;
      background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
      padding: var(--spacing-xs) var(--spacing-sm);
      border-radius: var(--radius-sm);
      font-size: var(--font-size-xs);
      font-weight: 600;
      margin-bottom: var(--spacing-md);
      color: white;
    }

    .premium-title {
      font-size: var(--font-size-xl);
      font-weight: 700;
      margin-bottom: var(--spacing-sm);
      color: var(--primary-color);
    }

    .merge-btn {
      background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
      color: white;
      border: none;
      padding: var(--spacing-lg) var(--spacing-2xl);
      border-radius: var(--radius-xl);
      font-size: var(--font-size-lg);
      font-weight: 600;
      cursor: pointer;
      transition: var(--transition-fast);
      width: 100%;
      box-shadow: var(--shadow-lg);
    }

    .merge-btn:hover {
      transform: translateY(-2px);
      box-shadow: var(--shadow-xl);
    }

    .explore-btn {
      background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
      color: white;
      border: none;
      padding: var(--spacing-lg) var(--spacing-2xl);
      border-radius: var(--radius-xl);
      font-size: var(--font-size-lg);
      font-weight: 600;
      cursor: pointer;
      transition: var(--transition-fast);
      width: 100%;
      box-shadow: var(--shadow-lg);
      margin-top: 20px;
    }

    .explore-btn:hover {
      transform: translateY(-2px);
    }

    .features-list {
      list-style: none;
      margin-top: var(--spacing-lg);
      display: flex;
      flex-wrap: wrap;
      justify-content: center;
      gap: 14px;
    }

    .features-list li {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      padding: 10px 16px;
      border-radius: 14px;
      font-size: var(--font-size-sm);
      color: var(--text-primary);
    }

    .features-list li::before {
      content: '✓';
      color: var(--primary-color);
      font-weight: bold;
      font-size: var(--font-size-lg);
    }

    .features-list li a {
      /* 🌐 Dynamic link shift */
      color: var(--text-secondary);
      text-decoration: underline dotted;
    }

    .features-list li a:hover {
      font-weight: bold;
      transform: translateY(-2px);
    }

    .features-list li:hover {
      transform: translateY(-2px);
      border-color: var(--primary-color);
    }