.app-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 24px;
}

.usage-badge {
  padding: 8px 16px;
  background: #1a1a1a;
  border: 1px solid #333;
  border-radius: 20px;
  font-size: 0.9rem;
  color: #888;
}

.usage-badge span {
  color: #667eea;
  font-weight: 600;
}

.btn-small {
  padding: 8px 16px;
  font-size: 0.9rem;
}

.upload-section {
  text-align: center;
}

.upload-section h1 {
  font-size: 2.5rem;
  margin-bottom: 8px;
}

.subtitle {
  color: #888;
  font-size: 1.1rem;
  margin-bottom: 40px;
}

.upload-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin-bottom: 40px;
}

.upload-card {
  background: #141414;
  border: 1px solid #222;
  border-radius: 16px;
  padding: 32px;
  text-align: left;
}

.upload-card h3 {
  margin-bottom: 16px;
  font-size: 1.1rem;
}

.drop-zone {
  border: 2px dashed #333;
  border-radius: 12px;
  padding: 40px 20px;
  cursor: pointer;
  transition: all 0.2s;
}

.drop-zone:hover, .drop-zone.dragover {
  border-color: #667eea;
  background: rgba(102, 126, 234, 0.1);
}

.drop-content {
  text-align: center;
  color: #888;
}

.drop-content svg {
  margin-bottom: 12px;
  opacity: 0.5;
}

.drop-content .link {
  color: #667eea;
  text-decoration: underline;
}

.file-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: #1a1a1a;
  border-radius: 8px;
  margin-top: 12px;
}

.file-info span {
  font-size: 0.9rem;
  color: #ccc;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.clear-btn {
  background: none;
  border: none;
  color: #666;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0 8px;
}

.clear-btn:hover {
  color: #fff;
}

.field-mapping {
  background: #141414;
  border: 1px solid #222;
  border-radius: 16px;
  padding: 32px;
  margin-bottom: 32px;
  text-align: left;
}

.field-mapping h3 {
  margin-bottom: 8px;
}

.mapping-hint {
  color: #888;
  font-size: 0.95rem;
  margin-bottom: 24px;
}

.mapping-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

.mapping-item {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 16px;
  align-items: center;
}

.mapping-item label {
  color: #888;
  font-size: 0.9rem;
  text-align: right;
}

.mapping-item select {
  padding: 10px 14px;
  background: #1a1a1a;
  border: 1px solid #333;
  border-radius: 8px;
  color: #fff;
  font-size: 0.95rem;
}

.btn-large {
  padding: 16px 32px;
  font-size: 1.1rem;
}

.processing {
  text-align: center;
  padding: 60px 20px;
}

.spinner {
  width: 48px;
  height: 48px;
  border: 4px solid #333;
  border-top-color: #667eea;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 24px;
}

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

.success-section {
  text-align: center;
  padding: 60px 20px;
}

.success-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  margin: 0 auto 24px;
}

.success-section h3 {
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.success-section p {
  color: #888;
  margin-bottom: 32px;
}

.error-section {
  background: #2a1a1a;
  border: 1px solid #5a2a2a;
  border-radius: 12px;
  padding: 24px;
  text-align: center;
  margin-bottom: 32px;
}

.error-section p {
  color: #ff6b6b;
  margin-bottom: 16px;
}

.limits-notice {
  background: #141414;
  border: 1px solid #222;
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  margin-top: 40px;
}

.limits-notice p {
  color: #888;
  font-size: 0.95rem;
}

.limits-notice a {
  color: #667eea;
}

.auth-section {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-card {
  background: #141414;
  border: 1px solid #222;
  border-radius: 16px;
  padding: 40px;
  text-align: center;
  max-width: 400px;
  width: 100%;
}

.auth-card h2 {
  margin-bottom: 8px;
}

.auth-card p {
  color: #888;
  margin-bottom: 24px;
}

.auth-card input {
  width: 100%;
  padding: 14px 16px;
  background: #1a1a1a;
  border: 1px solid #333;
  border-radius: 8px;
  color: #fff;
  font-size: 1rem;
  text-align: center;
  letter-spacing: 2px;
  margin-bottom: 16px;
}

.auth-card input:focus {
  outline: none;
  border-color: #667eea;
}

.error-text {
  color: #ff6b6b;
  font-size: 0.9rem;
}

.purchase-link {
  margin-top: 24px;
  font-size: 0.9rem;
  color: #666;
}

.purchase-link a {
  color: #667eea;
}

.app-main {
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}