/* Kakkoii Kiosk — "holo-foil arcade" design system.
   Deep ink surfaces, a holographic foil accent (the sheen of a holo card),
   and big tactile targets. Shared by the public kiosk and the staff admin. */

@import url('https://fonts.googleapis.com/css2?family=Syne:wght@600;700;800&family=Hanken+Grotesk:wght@400;500;600;700&family=Space+Mono:wght@400;700&display=swap');

:root {
  --ink: #06141a;
  --ink-2: #0a1d24;
  --panel: #0f2a31;
  --panel-2: #13343b;
  --panel-3: #1c454c;
  --line: rgba(180, 255, 240, 0.09);
  --line-strong: rgba(180, 255, 240, 0.18);
  --text: #e8f6f1;
  --muted: #8eb4b1;
  --muted-2: #5d827f;

  --cyan: #2fe3c2;   /* teal-green */
  --blue: #3a9bff;   /* blue */
  --violet: #34e08f; /* emerald (third accent) */
  --pink: #2fe6ac;   /* mint glow */
  --gold: #58e6e0;   /* aqua */

  --amber: #ffc24d;
  --green: #43e08a;
  --red: #ff6b81;

  --holo: linear-gradient(110deg, #34e08f 0%, #2fe3c2 30%, #2bc6d8 58%, #3aa0ff 82%, #3a78ff 100%);
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 18px 50px -18px rgba(0, 0, 0, 0.7);
  --shadow-glow: 0 0 0 1px var(--line-strong), 0 24px 60px -24px rgba(47, 227, 194, 0.4);
  --font-display: 'Syne', system-ui, sans-serif;
  --font-body: 'Hanken Grotesk', system-ui, sans-serif;
  --font-mono: 'Space Mono', ui-monospace, monospace;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  color: var(--text);
  background:
    radial-gradient(900px 500px at 12% -5%, rgba(58, 155, 255, 0.16), transparent 60%),
    radial-gradient(800px 520px at 92% 0%, rgba(52, 224, 143, 0.13), transparent 55%),
    radial-gradient(700px 600px at 50% 115%, rgba(47, 227, 194, 0.12), transparent 60%),
    var(--ink);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  position: relative;
}
/* subtle film grain so flat panels feel like printed card stock */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- brand / foil ---------- */
.foil-text {
  background: var(--holo);
  background-size: 220% 220%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: foilshift 8s ease-in-out infinite;
}
@keyframes foilshift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.brand {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.02em;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.brand .pip {
  width: 0.7em; height: 0.7em; border-radius: 50%;
  background: var(--holo); background-size: 200% 200%;
  animation: foilshift 6s ease-in-out infinite;
  box-shadow: 0 0 18px rgba(47, 227, 194, 0.6);
}

/* ---------- layout primitives ---------- */
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.panel {
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.muted { color: var(--muted); }
.mono { font-family: var(--font-mono); }
.center { text-align: center; }

/* ---------- buttons ---------- */
.btn {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  border: 1px solid var(--line-strong);
  background: var(--panel-3);
  color: var(--text);
  padding: 0.85rem 1.3rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.2s ease, filter 0.2s ease, background 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(1px) scale(0.99); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none; }
.btn-primary {
  border: none;
  color: #0a0b14;
  background: var(--holo);
  background-size: 180% 180%;
  font-weight: 800;
  box-shadow: 0 12px 30px -10px rgba(47, 200, 200, 0.55);
}
.btn-primary:hover { background-position: 100% 50%; filter: brightness(1.05); }
.btn-ghost { background: transparent; }
.btn-danger { border-color: rgba(255, 92, 122, 0.5); color: var(--red); background: rgba(255, 92, 122, 0.08); }
.btn-ok { border-color: rgba(84, 224, 138, 0.5); color: var(--green); background: rgba(84, 224, 138, 0.08); }
.btn-block { width: 100%; }
.btn-sm { padding: 0.5rem 0.8rem; font-size: 0.85rem; }

/* ---------- form fields ---------- */
label.field { display: block; margin-bottom: 0.9rem; }
label.field > span { display: block; font-size: 0.78rem; color: var(--muted); margin-bottom: 0.35rem; font-weight: 600; letter-spacing: 0.02em; }
input, select, textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text);
  background: var(--ink-2);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  padding: 0.75rem 0.85rem;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(47, 227, 194, 0.22);
}
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; padding-right: 2rem; }

/* ---------- pills / badges ---------- */
.pill {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 0.3rem 0.65rem; border-radius: 999px; border: 1px solid var(--line-strong);
}
.pill.pending { color: var(--amber); border-color: rgba(255, 179, 71, 0.45); background: rgba(255, 179, 71, 0.1); }
.pill.approved { color: var(--green); border-color: rgba(84, 224, 138, 0.45); background: rgba(84, 224, 138, 0.1); }
.pill.denied { color: var(--red); border-color: rgba(255, 92, 122, 0.45); background: rgba(255, 92, 122, 0.1); }
.pill.buy { color: var(--blue); border-color: rgba(91, 140, 255, 0.45); }
.pill.sell { color: var(--cyan); border-color: rgba(54, 224, 200, 0.45); }
.pill.trade { color: var(--violet); border-color: rgba(52, 224, 143, 0.45); }

.tag { display:inline-block; font-size: 0.7rem; color: var(--muted); background: var(--ink-2); border:1px solid var(--line); padding: 0.15rem 0.5rem; border-radius: 6px; }

/* ---------- toast ---------- */
#toast {
  position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%) translateY(120%);
  background: var(--panel-3); color: var(--text); border: 1px solid var(--line-strong);
  padding: 0.85rem 1.2rem; border-radius: 12px; box-shadow: var(--shadow); z-index: 10000;
  transition: transform 0.35s cubic-bezier(.2,.9,.3,1.2); max-width: 90vw; font-weight: 600;
}
#toast.show { transform: translateX(-50%) translateY(0); }
#toast.err { border-color: rgba(255, 92, 122, 0.6); }
#toast.ok { border-color: rgba(84, 224, 138, 0.6); }

/* ---------- animations ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.rise { animation: rise 0.5s both; }
.rise-1 { animation-delay: 0.05s; } .rise-2 { animation-delay: 0.12s; }
.rise-3 { animation-delay: 0.19s; } .rise-4 { animation-delay: 0.26s; }

.spinner { width: 18px; height: 18px; border: 2px solid var(--line-strong); border-top-color: var(--cyan); border-radius: 50%; display: inline-block; animation: spin 0.7s linear infinite; vertical-align: middle; }
@keyframes spin { to { transform: rotate(360deg); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; transition: none !important; }
}
