* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 100vh;
  padding: 20px;
}

.container { max-width: 800px; margin: 0 auto; }

.card {
  background: white;
  border-radius: 12px;
  padding: 32px;
  margin-bottom: 24px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}

h1 { font-size: 28px; margin-bottom: 8px; color: #1a202c; text-align: center; }
.subtitle { text-align: center; color: #718096; margin-bottom: 32px; font-size: 14px; }
h2 { font-size: 20px; margin-bottom: 20px; color: #2d3748; border-bottom: 2px solid #e2e8f0; padding-bottom: 8px; }

.form-group { margin-bottom: 20px; }
label { display: block; margin-bottom: 8px; color: #4a5568; font-weight: 500; font-size: 14px; }

input, select {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  font-size: 15px;
  transition: all 0.2s;
}

input:focus, select:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

button {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

button:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4); }
button:active { transform: translateY(0); }
button:disabled { background: #cbd5e0; cursor: not-allowed; transform: none; }

.order {
  border: 2px solid #e2e8f0;
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 16px;
  transition: all 0.2s;
}

.order:hover { border-color: #667eea; box-shadow: 0 4px 12px rgba(102, 126, 234, 0.1); }

.order-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.order-title { font-weight: 600; font-size: 16px; color: #2d3748; }
.order-price { font-size: 18px; font-weight: 700; color: #667eea; }
.order-info { font-size: 13px; color: #718096; margin-bottom: 8px; }

.order-status { display: inline-block; padding: 6px 12px; border-radius: 6px; font-size: 13px; font-weight: 600; }
.status-pending { background: #fef3c7; color: #92400e; }
.status-paid { background: #d1fae5; color: #065f46; }

.download-link {
  display: inline-block;
  margin-top: 12px;
  padding: 8px 16px;
  background: #667eea;
  color: white;
  text-decoration: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s;
}

.download-link:hover { background: #5568d3; transform: translateY(-1px); }

.message { padding: 12px 16px; border-radius: 8px; margin-top: 16px; font-size: 14px; }
.error { background: #fee2e2; color: #991b1b; border: 1px solid #fca5a5; }
.success { background: #d1fae5; color: #065f46; border: 1px solid #6ee7b7; }
.info { background: #dbeafe; color: #1e40af; border: 1px solid #93c5fd; }
.empty-state { text-align: center; padding: 40px; color: #a0aec0; }

.loading {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid #ffffff;
  border-radius: 50%;
  border-top-color: transparent;
  animation: spin 0.6s linear infinite;
  margin-right: 8px;
  vertical-align: middle;
}

@keyframes spin { to { transform: rotate(360deg); } }

.config-info { background: #f7fafc; padding: 16px; border-radius: 8px; margin-bottom: 20px; font-size: 13px; color: #4a5568; }
.config-info strong { color: #2d3748; }
