/* Laminus customer portal styles. No external fonts or CDNs: the portal
   CSP is default-src 'self'. */

:root {
  --bg: #fbfbfd;
  --surface: #ffffff;
  --ink: #16181d;
  --muted: #61656e;
  --line: #e3e5ea;
  --accent: #2f5bd7;
  --danger: #b3261e;
  --warn: #8a5a00;
  --radius: 10px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #14161a;
    --surface: #1c1f25;
    --ink: #eceef2;
    --muted: #a0a5b0;
    --line: #2b2f37;
    --accent: #7ea2ff;
    --danger: #ff8a80;
    --warn: #ffcc80;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.brand {
  font-weight: 650;
  letter-spacing: 0.01em;
}

main {
  max-width: 44rem;
  margin: 0 auto;
  padding: 1.5rem 1.25rem 4rem;
}

h1 {
  font-size: 1.5rem;
  margin: 0.5rem 0 1rem;
}

h2 {
  font-size: 1.05rem;
  margin: 0 0 0.75rem;
}

.muted {
  color: var(--muted);
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.1rem 1.25rem;
  margin-bottom: 1rem;
}

dl {
  display: grid;
  grid-template-columns: minmax(8rem, auto) 1fr;
  gap: 0.35rem 1rem;
  margin: 0 0 1rem;
}

dt {
  color: var(--muted);
  font-size: 0.9rem;
}

dd {
  margin: 0;
}

.status {
  text-transform: capitalize;
  font-weight: 600;
}

.status-active {
  color: #1f7a44;
}

.status-deactivated,
.status-refunded,
.status-revoked,
.status-suspended {
  color: var(--danger);
}

label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.9rem;
  color: var(--muted);
}

input[type="email"] {
  width: 100%;
  padding: 0.6rem 0.7rem;
  font: inherit;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 1rem;
}

button {
  font: inherit;
  cursor: pointer;
  border-radius: var(--radius);
  border: 1px solid transparent;
  padding: 0.55rem 1rem;
  margin-right: 0.5rem;
}

button:disabled {
  opacity: 0.55;
  cursor: progress;
}

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

.danger {
  background: transparent;
  color: var(--danger);
  border-color: var(--danger);
}

.link {
  background: none;
  border: none;
  color: var(--accent);
  padding: 0.25rem 0;
  text-decoration: underline;
}

.error {
  color: var(--danger);
}

.warn {
  color: var(--warn);
  font-weight: 600;
}

.key {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 1.15rem;
  letter-spacing: 0.06em;
  background: var(--bg);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  padding: 1rem;
  user-select: all;
  overflow-wrap: anywhere;
}

.cf-turnstile {
  margin-bottom: 1rem;
}
