/* Colours match the app's design tokens (flexseafreelancersApp/global.css). */
:root {
  --background: #f5f5f5;
  --foreground: #0a0a0a;
  --card: #ffffff;
  --muted-foreground: #737373;
  --border: #e5e5e5;
  --primary: #00bbc8;
  --primary-foreground: #fafafa;
  --success: #16a34a;
  --warning: #d97706;
  --destructive: #ef4444;
  --radius: 0.5rem;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --background: #0a0a0a;
    --foreground: #fafafa;
    --card: #171717;
    --muted-foreground: #a3a3a3;
    --border: #262626;
  }
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  background: var(--background);
  color: var(--foreground);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.5;
}

.page {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  min-height: 100vh;
  padding: 1.5rem 1rem;
}

.brand {
  margin: 0;
  color: var(--primary);
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.card {
  width: 100%;
  max-width: 28rem;
  padding: 2rem 1.5rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) * 2);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  text-align: center;
}

.icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 4rem;
  height: 4rem;
  margin: 0 auto 1rem;
  border-radius: 9999px;
  color: #ffffff;
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
}

.icon--success { background: var(--success); }
.icon--pending { background: var(--primary); }
.icon--warning { background: var(--warning); }
.icon--error { background: var(--destructive); }
.icon--unknown { background: var(--muted-foreground); }

h1 {
  margin: 0 0 0.5rem;
  font-size: 1.375rem;
  line-height: 1.3;
}

.message {
  margin: 0;
  color: var(--foreground);
}

.invoice {
  margin: 1rem 0 0;
  color: var(--muted-foreground);
  font-size: 0.875rem;
}

.invoice span {
  color: var(--foreground);
  font-weight: 600;
}

.actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.625rem 1.25rem;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.button--primary {
  background: var(--primary);
  color: var(--primary-foreground);
}

.button--secondary {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--foreground);
}

.button:hover {
  opacity: 0.9;
}

.button:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 2px;
}

.hint {
  margin: 1rem 0 0;
  color: var(--muted-foreground);
  font-size: 0.875rem;
}

.hint:empty {
  display: none;
}

.footer,
.noscript {
  margin: 0;
  color: var(--muted-foreground);
  font-size: 0.75rem;
  text-align: center;
}

[hidden] {
  display: none !important;
}
