* {
  box-sizing: border-box;
  font-family: 'Inter', sans-serif;
}

body {
  margin: 0;
  background: #05070f;
  color: #fff;
  min-height: 100vh;
}

/* Background Glow */
.bg-glow {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 20% 10%, #6b5cff33, transparent 40%),
    radial-gradient(circle at 80% 70%, #00ffd533, transparent 40%);
  z-index: -1;
}

/* App */
.app {
  max-width: 1100px;
  margin: auto;
  padding: 40px 20px;
}

/* Header */
.header {
  text-align: center;
  margin-bottom: 40px;
}

.logo {
  font-size: 38px;
  font-weight: 800;
  letter-spacing: -1px;
}

.logo span {
  color: #6b5cff;
}

.tagline {
  color: #aaa;
  margin-top: 10px;
  font-size: 16px;
}

/* Card */
.card {
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(20px);
  border-radius: 24px;
  padding: 40px;
  box-shadow: 0 40px 80px rgba(0,0,0,0.5);
}

/* Form Grid */
.grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.field {
  display: flex;
  flex-direction: column;
}

.field.full {
  grid-column: span 2;
}

label {
  font-size: 13px;
  color: #bbb;
  margin-bottom: 8px;
}

input, textarea {
  background: #0c1020;
  border: 1px solid #222;
  border-radius: 14px;
  padding: 14px 16px;
  color: #fff;
  font-size: 14px;
}

textarea {
  resize: none;
  height: 120px;
}

input:focus, textarea:focus {
  outline: none;
  border-color: #6b5cff;
}

/* Upload */
.upload {
  margin: 30px 0;
  text-align: center;
}

.upload-box {
  display: inline-block;
  border: 2px dashed #333;
  border-radius: 18px;
  padding: 24px 30px;
  cursor: pointer;
}

.upload-box span {
  font-weight: 600;
}

.upload-box small {
  display: block;
  color: #888;
  margin-top: 6px;
}

.logo-preview {
  margin-top: 20px;
  max-width: 160px;
}

/* Button */
.primary-btn {
  width: 100%;
  padding: 18px;
  background: linear-gradient(135deg, #6b5cff, #00ffd5);
  border: none;
  border-radius: 18px;
  color: #000;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
}

.primary-btn:hover {
  opacity: 0.9;
}

/* Loading */
.loading {
  margin-top: 40px;
  text-align: center;
  font-size: 16px;
  color: #aaa;
}

.loader {
  display: block;
  margin: 0 auto 16px;
  width: 36px;
  height: 36px;
  border: 3px solid #333;
  border-top-color: #6b5cff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Result */
.result {
  margin-top: 60px;
  text-align: center;
}

.result img {
  max-width: 100%;
  border-radius: 20px;
  margin-bottom: 20px;
}

.result textarea {
  width: 100%;
  height: 120px;
  margin-bottom: 20px;
}

/* Actions */
.actions {
  display: flex;
  justify-content: center;
  gap: 16px;
}

.actions button,
.actions a {
  padding: 14px 22px;
  border-radius: 14px;
  background: #0c1020;
  color: #fff;
  border: 1px solid #333;
  cursor: pointer;
  text-decoration: none;
}

/* Utility */
.hidden {
  display: none;
}

/* Responsive */
@media (max-width: 768px) {
  .grid {
    grid-template-columns: 1fr;
  }

  .field.full {
    grid-column: span 1;
  }

  .card {
    padding: 24px;
  }
}
