
  * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }

  body {
    font-family: 'Poppins', sans-serif;
    background: radial-gradient(circle at 10% 20%, #0b1120, #030614);
    color: #eef2ff;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
    overflow-x: hidden;
  }

  /* main responsive container */
  .glass-container {
    max-width: 1600px;
    width: 100%;
    margin: 0 auto;
    background: rgba(5, 10, 25, 0.45);
    backdrop-filter: blur(3px);
    border-radius: 48px;
    padding: 28px 24px 40px;
    box-shadow: 0 25px 45px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.05);
    border: 1px solid rgba(71, 128, 255, 0.2);
    transition: all 0.2s ease;
  }

  /* brand & title row */
  .brand {
    text-align: center;
    font-size: 0.9rem;
    letter-spacing: 1px;
    color: #9ca8cf;
    margin-bottom: 6px;
  }
  .brand span {
    color: #60a5fa;
    font-weight: 700;
    background: rgba(96,165,250,0.15);
    padding: 2px 10px;
    border-radius: 40px;
  }

  h1 {
    text-align: center;
    font-size: clamp(1.8rem, 6vw, 2.8rem);
    font-weight: 800;
    margin: 8px 0 32px 0;
    background: linear-gradient(135deg, #93c5fd, #c084fc, #38bdf8);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    letter-spacing: -0.3px;
  }

  /* two column layout with responsive behavior */
  .responsive-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
    width: 100%;
    margin-bottom: 48px;
  }

  /* card wrappers */
  .card {
    background: rgba(18, 25, 45, 0.7);
    backdrop-filter: blur(12px);
    border-radius: 32px;
    border: 1px solid rgba(255,255,255,0.12);
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 35px -12px rgba(0,0,0,0.4);
  }

  .card-header {
    padding: 18px 22px 8px 22px;
    font-weight: 600;
    font-size: 1.1rem;
    background: rgba(0,0,0,0.25);
    letter-spacing: -0.2px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    flex-wrap: wrap;
  }
  .card-header span:first-child {
    background: linear-gradient(120deg, #c4b5fd, #818cf8);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }
  .clear-btn-mini {
    background: rgba(255,70,85,0.2);
    border: none;
    border-radius: 50px;
    padding: 6px 14px;
    font-size: 0.7rem;
    font-weight: 500;
    color: #ffb4b4;
    cursor: pointer;
    transition: all 0.2s;
    font-family: monospace;
  }
  .clear-btn-mini:hover {
    background: #ef4444;
    color: white;
    transform: scale(0.96);
  }

  /* textarea */
  .code-area {
    width: 100%;
    min-height: 380px;
    background: #0a0f1c;
    border: none;
    padding: 20px;
    font-family: 'Fira Code', 'Courier New', monospace;
    font-size: 14px;
    line-height: 1.5;
    color: #bbf0d0;
    resize: vertical;
    outline: none;
    border-radius: 0;
    transition: all 0.2s;
  }
  .code-area:focus {
    background: #0b1122;
    color: #d9f99d;
  }

  /* preview panel */
  .preview-wrapper {
    background: #ffffff;
    min-height: 380px;
    max-height: 70vh;
    overflow: auto;
    padding: 16px;
    transition: all 0.1s;
  }
  .preview-content {
    background: white;
    width: 100%;
    display: block;
  }

  /* buttons row - fully responsive */
  .button-fleet {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 18px;
    margin-top: 12px;
    padding-top: 8px;
  }
  .action-btn {
    padding: 12px 28px;
    font-weight: 700;
    font-size: 1rem;
    border: none;
    border-radius: 60px;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    transition: all 0.25s cubic-bezier(0.2, 0.9, 0.4, 1.1);
    background: rgba(30, 41, 59, 0.9);
    backdrop-filter: blur(4px);
    color: #e2e8f0;
    box-shadow: 0 5px 12px rgba(0,0,0,0.2);
    display: inline-flex;
    align-items: center;
    gap: 8px;
  }
  .generate {
    background: linear-gradient(105deg, #2563eb, #4f46e5);
    color: white;
    border: 1px solid rgba(255,255,255,0.3);
  }
  .png {
    background: linear-gradient(105deg, #16a34a, #15803d);
    color: white;
  }
  .gif {
    background: linear-gradient(105deg, #9333ea, #7e22ce);
    color: white;
  }
  .action-btn:hover {
    transform: translateY(-4px) scale(1.02);
    filter: brightness(1.05);
    box-shadow: 0 18px 30px -8px rgba(0,0,0,0.5);
  }
  .action-btn:active {
    transform: translateY(2px);
  }

  /* status message */
  .toast-msg {
    text-align: center;
    margin-top: 20px;
    font-size: 0.8rem;
    background: rgba(0,0,0,0.6);
    display: inline-block;
    width: auto;
    padding: 6px 18px;
    border-radius: 60px;
    backdrop-filter: blur(4px);
    color: #bbf0d0;
  }
  .msg-center {
    display: flex;
    justify-content: center;
  }

  /* responsive breakpoints */
  @media (max-width: 880px) {
    .responsive-grid {
      grid-template-columns: 1fr;
      gap: 28px;
    }
    .glass-container {
      padding: 20px 18px 32px;
    }
    .code-area {
      min-height: 320px;
    }
    .preview-wrapper {
      min-height: 320px;
    }
    .action-btn {
      padding: 10px 22px;
      font-size: 0.9rem;
    }
  }

  @media (max-width: 500px) {
    body {
      padding: 12px;
    }
    .glass-container {
      padding: 16px 14px 28px;
    }
    .card-header {
      padding: 12px 16px;
    }
    .code-area {
      font-size: 12px;
      padding: 16px;
    }
    .action-btn {
      padding: 8px 18px;
      font-size: 0.8rem;
    }
    .button-fleet {
      gap: 12px;
    }
    h1 {
      margin-bottom: 20px;
    }
  }

  /* custom scroll */
  .preview-wrapper::-webkit-scrollbar {
    width: 6px;
    height: 6px;
  }
  .preview-wrapper::-webkit-scrollbar-track {
    background: #e2e8f0;
    border-radius: 10px;
  }
  .preview-wrapper::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 10px;
  }

  /* loading effect */
  .loading-indicator {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 0.8s linear infinite;
    margin-right: 8px;
    vertical-align: middle;
  }
  @keyframes spin { to { transform: rotate(360deg); } }
  button:disabled {
    opacity: 0.7;
    transform: none;
    cursor: wait;
  }

  /* FOOTER */
.footer {
  margin-top: 50px;
  padding-top: 30px;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

/* LEFT */
.footer-left h3 {
  font-size: 18px;
  margin-bottom: 6px;
  background: linear-gradient(90deg, #60a5fa, #a78bfa);
  -webkit-background-clip: text;
  color: transparent;
}

.footer-left p {
  font-size: 13px;
  color: #94a3b8;
}

/* CENTER LINKS */
.footer-center {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.footer-center a {
  text-decoration: none;
  font-size: 13px;
  color: #cbd5f5;
  transition: 0.2s;
}

.footer-center a:hover {
  color: #60a5fa;
}

/* RIGHT */
.footer-right {
  text-align: right;
}

.footer-right span {
  font-size: 13px;
  color: #94a3b8;
}

.footer-right p {
  font-size: 12px;
  color: #64748b;
  margin-top: 4px;
}

/* MOBILE RESPONSIVE */
@media (max-width: 768px) {
  .footer-content {
    flex-direction: column;
    text-align: center;
  }

  .footer-right {
    text-align: center;
  }
}
.hero-subtext {       /* 🔼 move UP (closer to underline) */
  margin-bottom: 25px;    /* 🔽 add space below */
  font-size: 14px;
  color: #94a3b8;
  text-align: center;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}
