.zg-section {
    max-width: 64rem;
    margin: 0 auto;
    padding: 3rem 1rem;
    position: relative;
  }

  .zg-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 2rem;
    align-items: start;
  }

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

  .zg-left {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }

  .zg-config-card {
    position: relative;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    border: 1px solid #e2e8f0;
    border-radius: 1.5rem;
    padding: 1.5rem;
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
  }

  .theme-dark .zg-config-card {
    background: rgba(24, 24, 27, 0.85);
    border-color: #27272a;
  }

  .zg-config-hover-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(147, 51, 234, 0.05), transparent);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s;
  }

  .zg-config-card:hover .zg-config-hover-bg {
    opacity: 1;
  }

  .zg-config-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0 0 1.5rem;
  }

  .theme-dark .zg-config-title {
    color: #fff;
  }

  .zg-config-body {
    display: flex;
    flex-direction: column;
    gap: 2rem;
  }

  .zg-field {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
  }

  .zg-field-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .zg-field-label {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #64748b;
  }

  .theme-dark .zg-field-label {
    color: #71717a;
  }

  .zg-intensity-val {
    font-size: 0.875rem;
    font-weight: 700;
    color: #9333ea;
  }

  .zg-slider {
    width: 100%;
    height: 0.375rem;
    border-radius: 999px;
    background: #e2e8f0;
    appearance: none;
    cursor: pointer;
    accent-color: #9333ea;
  }

  .theme-dark .zg-slider {
    background: #27272a;
  }

  .zg-toggles {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
  }

  .zg-toggle-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem;
    background: #f8fafc;
    border-radius: 1rem;
    cursor: pointer;
    border: 1px solid transparent;
    transition: background 0.15s, border-color 0.15s;
  }

  .zg-toggle-row:hover {
    background: #f1f5f9;
    border-color: rgba(147, 51, 234, 0.15);
  }

  .theme-dark .zg-toggle-row {
    background: rgba(9, 9, 11, 0.5);
  }

  .theme-dark .zg-toggle-row:hover {
    background: #27272a;
  }

  .zg-toggle-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
  }

  .theme-dark .zg-toggle-label {
    color: #d4d4d8;
  }

  .zg-switch {
    position: relative;
    display: inline-flex;
    align-items: center;
  }

  .zg-switch-input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
  }

  .zg-switch-track {
    width: 2.5rem;
    height: 1.25rem;
    background: #d1d5db;
    border-radius: 999px;
    transition: background 0.2s;
    position: relative;
  }

  .zg-switch-track::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 1rem;
    height: 1rem;
    background: #fff;
    border-radius: 50%;
    transition: transform 0.2s;
  }

  .zg-switch-input:checked+.zg-switch-track {
    background: #9333ea;
  }

  .zg-switch-input:checked+.zg-switch-track::after {
    transform: translateX(1.25rem);
  }

  .theme-dark .zg-switch-track {
    background: #3f3f46;
  }

  .zg-reset-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.75rem;
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #94a3b8;
    transition: color 0.15s;
  }

  .zg-reset-btn:hover {
    color: #9333ea;
  }

  .theme-dark .zg-reset-btn {
    color: #52525b;
  }

  .theme-dark .zg-reset-btn:hover {
    color: #a855f7;
  }

  .zg-warning {
    padding: 1rem;
    background: rgba(99, 102, 241, 0.05);
    border: 1px solid rgba(99, 102, 241, 0.1);
    border-radius: 1rem;
  }

  .zg-warning p {
    font-size: 0.65rem;
    line-height: 1.6;
    color: #4338ca;
    font-weight: 500;
    margin: 0;
  }

  .theme-dark .zg-warning p {
    color: rgba(165, 180, 252, 0.8);
  }

  .zg-right {
    display: flex;
    flex-direction: column;
    gap: 2rem;
  }

  .zg-editor-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
  }

  .theme-dark .zg-editor-card {
    background: #09090b;
    border-color: #27272a;
  }

  .zg-editor-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #f1f5f9;
    background: rgba(248, 250, 252, 0.5);
  }

  .theme-dark .zg-editor-bar {
    border-color: #18181b;
    background: rgba(24, 24, 27, 0.3);
  }

  .zg-editor-bar-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
  }

  .zg-editor-filename {
    font-size: 0.7rem;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.05em;
  }

  .theme-dark .zg-editor-filename {
    color: #52525b;
  }

  .zg-textarea {
    width: 100%;
    padding: 2rem;
    background: transparent;
    color: #1e293b;
    font-size: 1.125rem;
    font-weight: 500;
    outline: none;
    resize: none;
    min-height: 10rem;
    border: none;
  }

  .theme-dark .zg-textarea {
    color: #e4e4e7;
  }

  .zg-textarea::placeholder {
    color: #cbd5e1;
  }

  .theme-dark .zg-textarea::placeholder {
    color: #3f3f46;
  }

  .zg-editor-footer {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0 2rem 2rem;
    justify-content: flex-end;
  }

  .zg-char-count {
    font-size: 0.65rem;
    color: #94a3b8;
  }

  .theme-dark .zg-char-count {
    color: #3f3f46;
  }

  .zg-footer-sep {
    height: 1rem;
    width: 1px;
    background: #e2e8f0;
  }

  .theme-dark .zg-footer-sep {
    background: #27272a;
  }

  .zg-copy-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: #9333ea;
    color: #fff;
    border: none;
    border-radius: 0.75rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(147, 51, 234, 0.25);
    transition: background 0.15s, transform 0.1s;
  }

  .zg-copy-btn:hover {
    background: #7c3aed;
  }

  .zg-copy-btn:active {
    transform: scale(0.95);
  }

  .zg-clear-btn {
    padding: 0.75rem;
    background: #f1f5f9;
    color: #64748b;
    border: none;
    border-radius: 0.75rem;
    cursor: pointer;
    transition: background 0.15s;
  }

  .zg-clear-btn:hover {
    background: #e2e8f0;
  }

  .theme-dark .zg-clear-btn {
    background: #18181b;
    color: #71717a;
  }

  .theme-dark .zg-clear-btn:hover {
    background: #27272a;
  }

  .zg-preview-wrap {
    position: relative;
  }

  .zg-preview-badge {
    position: absolute;
    top: -0.75rem;
    left: -0.5rem;
    z-index: 10;
    background: #9333ea;
    color: #fff;
    font-size: 0.6rem;
    font-weight: 900;
    padding: 0.2rem 0.5rem;
    border-radius: 0.25rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    box-shadow: 0 4px 8px rgba(147, 51, 234, 0.3);
  }

  .zg-preview-body {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 1.5rem;
    padding: 2rem;
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: border-color 0.5s, box-shadow 0.5s;
    min-height: 15rem;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: visible;
  }

  .theme-dark .zg-preview-body {
    background: #18181b;
    border-color: #27272a;
  }

  .zg-preview-dots {
    position: absolute;
    inset: 0;
    pointer-events: none;
    border-radius: 1.5rem;
    overflow: hidden;
    opacity: 0.03;
    background-image: radial-gradient(circle at 2px 2px, currentcolor 1px, transparent 0);
    background-size: 24px 24px;
  }

  .zg-output {
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    max-width: 100%;
    line-height: 1.5;
    z-index: 10;
    transition: color 0.3s;
    overflow-wrap: anywhere;
    color: var(--zalgo-color, inherit);
  }

  @media (min-width: 768px) {
    .zg-output {
      font-size: 3rem;
    }
  }

  .zg-output-empty {
    color: #e2e8f0;
    font-style: italic;
    font-weight: 500;
    transition: color 0.5s;
  }

  .theme-dark .zg-output-empty {
    color: #27272a;
  }

  .zg-glitch-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s;
  }

  .zg-glitch-line {
    position: absolute;
    left: 0;
    width: 100%;
    height: 1px;
  }

  .zg-glitch-line-1 {
    top: 25%;
    background: rgba(147, 51, 234, 0.2);
    animation: zg-pulse 2s infinite;
  }

  .zg-glitch-line-2 {
    top: 66%;
    background: rgba(99, 102, 241, 0.2);
    animation: zg-pulse 2s 1s infinite;
  }

  @keyframes zg-pulse {
    0%, 100% {
      opacity: 0.3
    }

    50% {
      opacity: 1
    }
  }

  .zg-preview-note {
    margin-top: 1rem;
    text-align: center;
    font-size: 0.65rem;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.1em;
  }

  .theme-dark .zg-preview-note {
    color: #52525b;
  }

  .zg-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    background: #9333ea;
    border-radius: 50%;
    cursor: pointer;
    border: 3px solid #fff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  }

  .theme-dark .zg-slider::-webkit-slider-thumb {
    border-color: #18181b;
  }