/* Shared styles for /pay and /desk in the acecore.tech palette: phones first, big tap targets. */
:root {
  --black: #000000;
  --surface: #121212;
  --surface-2: #1A1A1A;
  --green: #01937C;
  --green-deep: #017A67;
  --amber: #F0A020;
  --red: #E5484D;
  --text: #FFFFFF;
  --muted: #B0B0B0;
  --line: rgba(255, 255, 255, .12);
  --font: Inter, -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; margin: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  background: var(--black); color: var(--text);
  font: 16px/1.5 var(--font); letter-spacing: -.011em; -webkit-font-smoothing: antialiased;
  font-variant-numeric: tabular-nums;
}
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; }
.wrap { max-width: 34rem; margin: 0 auto; padding: 20px 16px 48px; }
.logo { height: 30px; width: auto; display: block; }
.logo-text { font-weight: 800; font-size: 20px; letter-spacing: .02em; line-height: 30px; }
h1 { font-size: 32px; line-height: 1.08; letter-spacing: -.035em; font-weight: 700; }
h2 { font-size: 19px; letter-spacing: -.02em; font-weight: 650; }
.muted { color: var(--muted); }
.small { font-size: 14px; }

.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 20px; }
.stack { display: grid; gap: 16px; }

button, .btn {
  font: 600 17px var(--font); color: var(--text); letter-spacing: -.011em;
  min-height: 52px; padding: 0 20px; border-radius: 12px;
  border: 1px solid var(--line); background: var(--surface-2);
  cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  text-decoration: none; -webkit-tap-highlight-color: transparent;
}
button:active, .btn:active { transform: translateY(1px); }
button:disabled { opacity: .45; cursor: default; }
.primary { background: var(--green); border-color: var(--green); color: var(--text); }
.primary:active { background: var(--green-deep); }
.danger { color: #FF8A8D; border-color: rgba(229, 72, 77, .45); }
.danger.solid { background: var(--red); border-color: var(--red); color: var(--text); }
.wide { width: 100%; }

label { display: grid; gap: 6px; font-weight: 600; font-size: 15px; }
input, select {
  font: 500 18px var(--font); color: var(--text);
  min-height: 52px; padding: 0 14px; width: 100%;
  border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2);
}
input::placeholder { color: #6E6E6E; }
input:focus { border-color: var(--green); outline: none; box-shadow: 0 0 0 3px rgba(1, 147, 124, .3); }

/* Segmented choice built from radio inputs */
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 6px; border: 0; padding: 0; }
.seg legend { font-weight: 600; font-size: 15px; margin-bottom: 6px; padding: 0; }
.seg input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.seg span {
  display: grid; place-items: center; text-align: center; min-height: 52px; padding: 6px 8px;
  border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2);
  font-weight: 600; font-size: 16px; line-height: 1.2; cursor: pointer;
}
.seg span small { display: block; font-weight: 500; font-size: 12px; color: var(--muted); }
.seg input:checked + span { background: var(--green); border-color: var(--green); color: var(--text); }
.seg input:checked + span small { color: rgba(255, 255, 255, .8); }
.seg input:focus-visible + span { outline: 3px solid var(--amber); outline-offset: 2px; }

.copy-number {
  font: 800 34px/1 var(--font); letter-spacing: -.01em; color: var(--text);
  background: none; border: 0; padding: 0; min-height: 0; justify-content: flex-start;
}

.notice {
  position: fixed; left: 50%; bottom: 20px; transform: translate(-50%, 120%); opacity: 0;
  background: var(--text); color: var(--black); padding: 12px 18px; border-radius: 12px;
  font-weight: 600; max-width: calc(100vw - 32px); z-index: 20;
  transition: transform .35s cubic-bezier(.16, 1, .3, 1), opacity .35s;
}
.notice.show { transform: translate(-50%, 0); opacity: 1; }
.notice.error { background: var(--red); color: var(--text); }

@media (prefers-reduced-motion: reduce) { .notice { transition: none; } }
