:root {
  --bg: #ffb71b;
  --panel: #ffb71b;
  --panel-soft: #ffb71b;
  --text: #1f2937;
  --muted: #6b7280;
  --primary: #3b82f6;
  --primary-hover: #2563eb;
  --border: transparent;
  --success: #10b981;
  --danger: #ef4444;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Inter", sans-serif;
  background: var(--bg);
  color: #111827;
  min-height: 100vh;
}

.app-shell {
  max-width: 1120px;
  margin: 0 auto;
  padding: 28px 20px 40px;
}

@media (min-width: 901px) {
  body {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .app-shell {
    width: min(1120px, 100%);
    margin: 0;
    padding: 20px;
  }
}

.app-header h1 {
  margin: 0;
  font-size: 2rem;
  color: #111827;
}

.app-header p {
  margin: 0;
  color: #374151;
}

.brand-hero {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 16px;
  background: #ffb71b;
  border: none;
  border-radius: 16px;
  padding: 8px 0 14px;
  margin: 0 0 20px;
  width: 100%;
}

.brand-copy h1 {
  margin: 0;
  text-align: left;
}

.bottom-logo-wrap {
  margin-top: 18px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
}

.powered-by-text {
  font-size: 0.88rem;
  font-weight: 600;
  color: #111827;
}

.bottom-logo {
  width: 95px;
  height: 95px;
  object-fit: contain;
  background: transparent;
  border-radius: 12px;
  padding: 0;
}

.project-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #92400e;
  background: #ffd36a;
  border-radius: 999px;
  padding: 4px 10px;
  margin-bottom: 8px;
}

.layout {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 20px;
}

.panel {
  background: var(--panel);
  border: none;
  border-radius: 16px;
  padding: 18px;
}

.partners-strip {
  margin-top: 22px;
  background: #ffb71b;
  border: none;
  border-radius: 16px;
  padding: 14px 16px;
}

.partners-strip p {
  margin: 0 0 10px;
  font-weight: 600;
  color: #111827;
}

.partners-logos {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  width: 100%;
}

.partner-logo {
  width: min(100%, 560px);
  height: auto;
  max-width: 100%;
  object-fit: contain;
  background: transparent;
  border-radius: 10px;
  padding: 0;
  display: block;
}

.controls {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.form-block {
  margin: 0;
}

.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.field-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

label {
  font-size: 0.9rem;
  color: #1f2937;
}

input,
select,
button {
  font-family: inherit;
  font-size: 0.95rem;
}

input,
select {
  width: 100%;
  border: none;
  border-radius: 10px;
  background: #ffcf59;
  color: #111827;
  padding: 10px 12px;
  outline: none;
}

input:focus,
select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.22);
}

.actions {
  margin-top: 6px;
}

button {
  border: 0;
  border-radius: 10px;
  padding: 10px 14px;
  cursor: pointer;
  transition: transform 0.14s ease, background 0.14s ease, opacity 0.14s ease;
}

button:active {
  transform: translateY(1px);
}

.primary-btn {
  width: 100%;
  background: #000000;
  color: #fff;
  font-weight: 600;
}

.primary-btn:hover {
  background: #1f1f1f;
}

.message {
  min-height: 1.2rem;
  margin: 0;
  color: var(--muted);
}

.message.error {
  color: var(--danger);
}

.message.success {
  color: #000000;
}

.preview h2 {
  margin-top: 0;
  margin-bottom: 12px;
  color: #111827;
}

.qr-preview {
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 12px;
  background: #ffcf59;
  padding: 18px;
}

.qr-preview .placeholder {
  color: var(--muted);
  text-align: center;
}

.qr-preview svg {
  width: 100%;
  max-width: 300px;
  height: auto;
  background: white;
  padding: 10px;
  border-radius: 8px;
}

.download-actions {
  margin-top: 14px;
  display: flex;
  gap: 10px;
}

.download-actions button {
  flex: 1;
  background: #000000;
  color: #ffffff;
  border: none;
}

.download-actions button:hover:enabled {
  background: #1f1f1f;
}

.download-actions button:disabled {
  cursor: not-allowed;
  background: #000000;
  color: #ffffff;
  opacity: 0.45;
}

.hidden {
  display: none;
}

@media (max-width: 900px) {
  .layout {
    grid-template-columns: 1fr;
  }

  .grid {
    grid-template-columns: 1fr;
  }

  .brand-hero {
    align-items: center;
    justify-content: center;
  }

  .brand-copy h1 {
    text-align: center;
  }

  .bottom-logo {
    width: 90px;
    height: 90px;
  }

  .bottom-logo-wrap {
    justify-content: center;
  }

  .partners-logos {
    justify-content: center;
  }

  .partner-logo {
    width: 100%;
  }
}
