:root {
  --color-primary: #133d3a;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  color: #1a1a1a;
  background: #fafafa;
  padding: 16px;
}

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

#confirm-screen:not(.hidden),
#processing-screen:not(.hidden) {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.icon-wrapper {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: #f0f4f4;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.icon-wrapper svg {
  width: 24px;
  height: 24px;
  color: var(--color-primary);
}

h1 {
  font-size: 18px;
  font-weight: 500;
  margin-bottom: 8px;
  color: #1a1a1a;
}

p {
  color: #666;
  font-size: 13px;
  margin-bottom: 16px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 40px;
  padding: 0 20px;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: opacity 0.15s ease, transform 0.1s ease;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: var(--color-primary);
  color: #fff;
}

.btn-primary:hover {
  opacity: 0.9;
}

.btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.btn-secondary {
  background: transparent;
  color: #666;
  border: 1px solid rgba(0, 0, 0, 0.1);
  margin-top: 8px;
}

.btn-secondary:hover {
  background: rgba(0, 0, 0, 0.03);
}

.spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(0, 0, 0, 0.1);
  border-top-color: var(--color-primary);
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  margin-right: 8px;
}

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

.result-card {
  border-radius: 12px;
  padding: 20px;
  text-align: center;
}

.result-card.simulation {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
}

.result-card.reported {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
}

.result-card.error {
  background: #fef2f2;
  border: 1px solid #fecaca;
}

.result-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
}

.result-icon.success {
  background: #dcfce7;
  color: #16a34a;
}

.result-icon.fail {
  background: #fee2e2;
  color: #dc2626;
}

.result-card h2 {
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 6px;
}

.result-card p {
  font-size: 13px;
  color: #666;
  margin-bottom: 0;
  white-space: pre-line;
}

.hidden {
  display: none;
}

.org-logo {
  width: 40px;
  height: 40px;
  object-fit: contain;
  border-radius: 4px;
}
