.robbify-page {
  width: 100%;
  max-width: 1100px;
  padding: 0 40px;
  margin: 60px auto 90px;
}

.robbify-intro {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 40px;
}

.robbify-title {
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 800;
  line-height: 1.1;
  color: var(--title);
  margin-bottom: 10px;
}

.robbify-sub {
  color: var(--text-dim);
  font-size: 15px;
  line-height: 1.5;
}

.robbify-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.robbify-card {
  background: var(--panel);
  border: 2px solid var(--panel-border);
  border-radius: 14px;
  padding: 18px;
  display: flex;
  flex-direction: column;
}

.robbify-card-label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 12px;
}

.robbify-drop {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1 / 1;
  width: 100%;
  background: var(--panel-2);
  border: 2px dashed var(--panel-border-strong);
  border-radius: 12px;
  cursor: pointer;
  padding: 20px;
  transition: border-color 0.2s, background-color 0.2s;
}

.robbify-drop:hover {
  border-color: var(--subtitle);
  background: rgba(50, 243, 141, 0.06);
}

.robbify-drop-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
}

.robbify-drop-hint {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dim);
  text-align: center;
  max-width: 220px;
}

.robbify-generate-btn {
  width: 100%;
  margin-top: 16px;
}

.robbify-generate-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.robbify-error {
  color: var(--error);
  font-size: 13px;
  font-weight: 600;
  margin-top: 10px;
  text-align: center;
}

.robbify-result {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1 / 1;
  width: 100%;
  background: var(--panel-2);
  border-radius: 12px;
  overflow: hidden;
}

.robbify-result-placeholder {
  padding: 20px;
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 800;
  color: var(--text-faint);
}

.robbify-result-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.robbify-spinner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 20px;
}

.robbify-spinner[hidden] {
  display: none;
}

.robbify-spinner-gif {
  width: 96px;
  height: 96px;
  object-fit: contain;
  border-radius: 50%;
}

.robbify-spinner-label {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  color: var(--text-dim);
}

.robbify-result-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 16px;
}

.robbify-result-actions .btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.robbify-status {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dim);
  margin-top: 10px;
  text-align: center;
}

.robbify-footnote {
  text-align: center;
  color: var(--text-faint);
  font-family: var(--font-mono);
  font-size: 12px;
  margin-top: 24px;
}

.robbify-retry-btn {
  width: 100%;
  margin-top: 10px;
}

@media (max-width: 720px) {
  .robbify-page {
    padding: 0 20px;
    margin: 40px auto 60px;
  }

  .robbify-title {
    font-size: 30px;
  }

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

  /* One image box on mobile -- the result replaces the uploaded photo in
     place instead of appearing in a second box below it. The second card
     collapses down to just its action buttons and status line. */
  .robbify-card:last-of-type .robbify-card-label,
  .robbify-card:last-of-type .robbify-result {
    display: none;
  }
}
