:root {
  --bg: #0b0e11;
  --bg-elevated: #12161c;
  --bg-soft: #f4f6f8;
  --panel: #ffffff;
  --ink: #0b0e11;
  --ink-inverse: #ffffff;
  --muted: #8b939e;
  --muted-dark: #5c6570;
  --line: #e6e9ee;
  --line-dark: #222831;
  --accent: #00c853;
  --accent-dark: #00a844;
  --accent-soft: rgba(0, 200, 83, 0.12);
  --danger: #ff4d4f;
  --warn-bg: #fff7e8;
  --warn-ink: #a15c00;
  --ok-bg: #e9fbf0;
  --ok-ink: #067a38;
  --err-bg: #ffecec;
  --err-ink: #c41d1d;
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
  --shadow-soft: 0 4px 20px rgba(11, 14, 17, 0.06);
  --radius: 20px;
  --radius-sm: 14px;
  --font: "Plus Jakarta Sans", "Segoe UI", sans-serif;
  --display: "Plus Jakarta Sans", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

.app-body {
  background:
    radial-gradient(900px 420px at 12% -8%, rgba(0, 200, 83, 0.08), transparent 55%),
    linear-gradient(180deg, #f7f9fb 0%, var(--bg-soft) 100%);
}

.auth-body {
  background:
    radial-gradient(700px 420px at 15% 10%, rgba(0, 200, 83, 0.18), transparent 50%),
    radial-gradient(600px 380px at 90% 80%, rgba(0, 200, 83, 0.08), transparent 45%),
    linear-gradient(160deg, #07090c 0%, #0f141a 48%, #0b0e11 100%);
  color: var(--ink-inverse);
}

a { color: var(--accent-dark); text-decoration: none; }
.auth-body a { color: var(--accent); }
a:hover { text-decoration: underline; }

.wrap {
  width: min(1160px, calc(100% - 2rem));
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.page { padding: 1.5rem 0 3.5rem; }

/* Header — Changelly-like dark bar */
.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(11, 14, 17, 0.92);
  border-bottom: 1px solid var(--line-dark);
  backdrop-filter: blur(16px);
}

.topbar-inner {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  padding: 0.85rem 0;
}

.brand-block {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: inherit;
}

.brand-block:hover { text-decoration: none; }

.brand-mark-img,
.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  flex-shrink: 0;
  display: block;
  object-fit: cover;
  box-shadow: 0 0 0 2px rgba(184, 245, 110, 0.18);
}

.brand-mark {
  background:
    radial-gradient(circle at 30% 30%, #7CFFB2, var(--accent) 55%, #00963b);
  box-shadow: 0 0 0 3px rgba(0, 200, 83, 0.18);
  position: relative;
}

.brand-mark::after {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.55);
  border-top-color: transparent;
  transform: rotate(-20deg);
}

.brand-logo-link {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
}

.brand-logo-link:hover { text-decoration: none; }

.brand-mark-img-lg {
  width: 40px;
  height: 40px;
  border-radius: 11px;
}

.brand-wordmark {
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1;
}

.brand-logo-dark .brand-wordmark { color: #fff; }
.brand-logo-light .brand-wordmark { color: #0b0f14; }

.brand-logo-img {
  display: block;
  height: 36px;
  width: auto;
  max-width: min(220px, 70vw);
}

.brand-text {
  display: grid;
  line-height: 1.15;
}

.brand-text strong {
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.topbar .brand-text strong,
.topbar .brand-text small,
.auth-promo .brand-text strong {
  color: #fff;
}

.brand-text small {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.nav {
  display: flex;
  gap: 0.25rem;
  flex-wrap: wrap;
  align-items: center;
}

.nav-link {
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  color: #b7bec8;
  font-size: 0.9rem;
  font-weight: 600;
  transition: color 0.15s ease, background 0.15s ease;
}

.nav-link:hover,
.nav-link.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
  text-decoration: none;
}

.nav-link.active {
  color: var(--accent);
}

.nav-divider {
  width: 1px;
  height: 20px;
  background: var(--line-dark);
  margin: 0 0.35rem;
}

.who-chip {
  font-size: 0.8rem;
  font-weight: 700;
  color: #d7dde6;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line-dark);
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  max-width: 160px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.presence-form {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0;
  padding: 0.2rem 0.45rem 0.2rem 0.55rem;
  border: 1px solid var(--line-dark);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
}

.presence-select {
  appearance: none;
  border: 0;
  background: transparent;
  color: #e8edf4;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.2rem 1.1rem 0.2rem 0;
  cursor: pointer;
  outline: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath fill='%239aa3b2' d='M1 1l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.1rem center;
}

.presence-select option {
  color: #0f172a;
  background: #fff;
}

.presence-dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  flex-shrink: 0;
  display: inline-block;
  background: #94a3b8;
}

.presence-dot.presence-online {
  background: #22c55e;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.2);
}

.presence-dot.presence-away {
  background: #f59e0b;
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.18);
}

.presence-dot.presence-offline {
  background: #94a3b8;
}

.presence-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  border: 1px solid transparent;
}

.presence-chip.presence-online {
  color: #065f46;
  background: #d1fae5;
  border-color: #a7f3d0;
}

.presence-chip.presence-away {
  color: #92400e;
  background: #ffedd5;
  border-color: #fed7aa;
}

.presence-chip.presence-offline {
  color: #475569;
  background: #e2e8f0;
  border-color: #cbd5e1;
}

.presence-chip .presence-dot {
  box-shadow: none;
}

.presence-gate {
  max-width: 720px;
  margin: 1.5rem auto 2.5rem;
  text-align: center;
}

.presence-gate h1 {
  margin: 0.35rem 0 0.75rem;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  letter-spacing: -0.03em;
}

.presence-gate-lead {
  margin: 0 auto 1.5rem;
  max-width: 38rem;
  color: var(--muted, #64748b);
  line-height: 1.55;
}

.presence-choices {
  display: grid;
  gap: 0.85rem;
}

@media (min-width: 720px) {
  .presence-choices {
    grid-template-columns: repeat(3, 1fr);
  }
}

.presence-choice {
  display: grid;
  justify-items: center;
  gap: 0.45rem;
  text-align: center;
  padding: 1.25rem 1rem;
  border-radius: 18px;
  border: 1px solid var(--line, #e2e8f0);
  background: #fff;
  cursor: pointer;
  font: inherit;
  color: inherit;
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.presence-choice:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.presence-choice strong {
  font-size: 1.05rem;
}

.presence-choice span:last-child {
  font-size: 0.84rem;
  line-height: 1.4;
  color: #64748b;
}

.presence-choice-online:hover { border-color: #86efac; }
.presence-choice-away:hover { border-color: #fcd34d; }
.presence-choice-offline:hover { border-color: #cbd5e1; }

.presence-choice .presence-dot {
  width: 0.85rem;
  height: 0.85rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.topbar .btn-ghost {
  color: #c5ccd6;
  border-color: transparent;
}
.topbar .btn-ghost:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--line-dark);
}

/* Auth — Changelly-style split hero + card */
.auth-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 1.5rem;
}

.auth-stage {
  width: min(1040px, 100%);
  display: grid;
  gap: 1.5rem;
  align-items: center;
}

@media (min-width: 920px) {
  .auth-stage {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 2.5rem;
  }
}

.auth-promo { color: #fff; }

.auth-brand { margin-bottom: 2rem; }

.auth-promo h1 {
  margin: 0.5rem 0 0.85rem;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.05;
}

.text-accent { color: var(--accent); }

.auth-lead {
  margin: 0;
  color: #a7b0bd;
  font-size: 1.05rem;
  line-height: 1.6;
  max-width: 34rem;
}

.auth-points {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.7rem;
}

.auth-points li {
  position: relative;
  padding-left: 1.5rem;
  color: #c9d0d9;
  font-weight: 500;
}

.auth-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.4rem;
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(0, 200, 83, 0.18);
}

.auth-card,
.panel,
.stat,
.bank-card,
.surface,
.metric {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.auth-card {
  color: var(--ink);
  padding: 1.75rem;
  box-shadow: var(--shadow);
  border: none;
}

.auth-card h2 {
  margin: 0.35rem 0 0.4rem;
  font-size: 1.7rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.auth-foot {
  margin-top: 1.25rem;
  color: var(--muted-dark);
  font-size: 0.92rem;
}

.eyebrow {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.7rem;
  color: var(--accent);
  font-weight: 800;
}

.muted { color: var(--muted-dark); }
.auth-promo .muted,
.auth-card .muted { color: var(--muted-dark); }
.small { font-size: 0.85rem; }
.mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  word-break: break-all;
}
.audit-ip {
  display: inline-block;
  padding: 0.32rem 0.55rem;
  border-radius: 8px;
  background: #e8f8ee;
  color: #076b35;
  font-size: 0.88rem;
  font-weight: 800;
  white-space: nowrap;
}

.stack { display: grid; gap: 0.9rem; margin-top: 1rem; }

label {
  display: grid;
  gap: 0.4rem;
  font-size: 0.88rem;
  font-weight: 700;
  color: #2a323c;
}

input, select, textarea, button { font: inherit; }

input, select, textarea {
  width: 100%;
  padding: 0.85rem 0.95rem;
  border: 1px solid #d7dde5;
  border-radius: 14px;
  background: #f8fafb;
  color: var(--ink);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

input:focus, select:focus, textarea:focus {
  outline: none;
  background: #fff;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(0, 200, 83, 0.15);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  border: none;
  border-radius: 999px;
  padding: 0.8rem 1.2rem;
  font-weight: 800;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--accent);
  color: #04140a;
  box-shadow: 0 8px 24px rgba(0, 200, 83, 0.28);
}
.btn-primary:hover { background: #14d965; }

.btn-secondary {
  background: #fff;
  border: 1px solid var(--line);
  color: var(--ink);
}
.btn-secondary:hover { border-color: #c8d0da; background: #f8fafb; }

.btn-ghost {
  background: transparent;
  color: var(--muted-dark);
  border: 1px solid transparent;
}
.btn-ghost:hover {
  border-color: var(--line);
  color: var(--ink);
  background: #fff;
}

.btn-danger {
  background: var(--danger);
  color: #fff;
  border-radius: 999px;
}

.btn-block { width: 100%; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

.alert {
  padding: 0.9rem 1rem;
  border-radius: 14px;
  margin: 0.85rem 0 0;
  font-size: 0.92rem;
  font-weight: 600;
  border: 1px solid transparent;
}

.alert-ok { background: var(--ok-bg); color: var(--ok-ink); border-color: #b6efcb; }
.alert-err { background: var(--err-bg); color: var(--err-ink); border-color: #ffc9c9; }
.alert-warn { background: var(--warn-bg); color: var(--warn-ink); border-color: #ffd789; }

.page-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: start;
  margin-bottom: 1.25rem;
}

.panel { padding: 1.25rem; }
.panel.narrow { width: min(560px, 100%); margin: 0 auto; }

.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.panel h1,
.page-head h1,
.dash-hero h1 {
  margin: 0.35rem 0 0.5rem;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.panel h2, .panel h3, .surface h2, .surface h3 {
  margin: 0 0 0.75rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.center-text { text-align: center; }
.center-text h1 { margin-top: 0.75rem; }

.grid.two { display: grid; gap: 1.25rem; }
@media (min-width: 900px) {
  .grid.two { grid-template-columns: 1fr 1fr; }
}

/* Dashboard */
.dash-hero {
  display: flex;
  justify-content: space-between;
  gap: 1.25rem;
  align-items: end;
  padding: 1.5rem 1.6rem;
  border-radius: 24px;
  border: 1px solid rgba(0, 200, 83, 0.15);
  background:
    linear-gradient(135deg, rgba(0, 200, 83, 0.12), rgba(255, 255, 255, 0.95) 40%),
    #fff;
  margin-bottom: 1.15rem;
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow-soft);
}

.dash-hero::after {
  content: "";
  position: absolute;
  right: -30px;
  top: -40px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 200, 83, 0.22), transparent 70%);
  pointer-events: none;
}

.dash-hero-copy {
  position: relative;
  z-index: 1;
  max-width: 640px;
}

.dash-hero-copy p:last-child {
  margin: 0.35rem 0 0;
  color: var(--muted-dark);
  line-height: 1.55;
}

.dash-hero-actions {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

.dash-metrics {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.85rem;
  margin-bottom: 1.15rem;
}

@media (min-width: 860px) {
  .dash-metrics { grid-template-columns: repeat(4, 1fr); }
}

.metric {
  display: grid;
  gap: 0.25rem;
  padding: 1.1rem 1.15rem;
  text-decoration: none;
  color: inherit;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

a.metric:hover {
  text-decoration: none;
  transform: translateY(-2px);
  border-color: rgba(0, 200, 83, 0.35);
  box-shadow: 0 10px 28px rgba(0, 200, 83, 0.08);
}

.metric-value {
  font-size: 1.9rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--ink);
  line-height: 1;
}

.metric-label {
  color: var(--muted-dark);
  font-size: 0.82rem;
  font-weight: 700;
}

.metric-warn {
  border-color: #f0c36d;
  background: linear-gradient(180deg, #fffaf0, #fff);
}

.metric-ok {
  border-color: rgba(0, 200, 83, 0.35);
  background: linear-gradient(180deg, #f1fcf5, #fff);
}

.dash-grid {
  display: grid;
  gap: 1.15rem;
}

@media (min-width: 920px) {
  .dash-grid { grid-template-columns: 1.15fr 0.85fr; }
}

.surface { padding: 1.2rem 1.25rem 1.3rem; }

.surface-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: start;
  margin-bottom: 1rem;
}

.surface-head h2 { margin: 0 0 0.2rem; }
.surface-head .muted { margin: 0; }

.surface-footer {
  margin-top: 1.1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.surface-footer h3 {
  margin: 0 0 0.65rem;
  font-size: 0.95rem;
}

.text-link {
  font-weight: 800;
  font-size: 0.88rem;
  color: var(--accent-dark);
}

.live-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(0, 200, 83, 0.5);
  animation: pulse 1.8s infinite;
  margin-top: 0.45rem;
  flex-shrink: 0;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(0, 200, 83, 0.45); }
  70% { box-shadow: 0 0 0 10px rgba(0, 200, 83, 0); }
  100% { box-shadow: 0 0 0 0 rgba(0, 200, 83, 0); }
}

.ticket-list { display: grid; gap: 0.75rem; }

.ticket {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  padding: 1rem 1.05rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #f8fafb;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}

.ticket:hover {
  border-color: rgba(0, 200, 83, 0.35);
  background: #fff;
}

.ticket-active {
  background: linear-gradient(180deg, #f1fcf5, #fff);
  border-color: rgba(0, 200, 83, 0.35);
}

.ticket-main { min-width: 0; }

.ticket-id {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-dark);
  margin-bottom: 0.15rem;
}

.ticket-title {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.ticket-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.75rem;
  margin-top: 0.35rem;
  color: var(--muted-dark);
  font-size: 0.84rem;
  font-weight: 600;
}

.empty-state {
  padding: 1.5rem 1rem;
  border: 1px dashed #cfd6de;
  border-radius: 16px;
  background: #f8fafb;
  text-align: center;
}

.empty-state strong {
  display: block;
  margin-bottom: 0.25rem;
  font-weight: 800;
}

.empty-state p {
  margin: 0;
  color: var(--muted-dark);
  font-size: 0.9rem;
}

.compact-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.compact-list li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.55rem 0;
  border-top: 1px solid var(--line);
  font-size: 0.9rem;
}

.compact-list li:first-child { border-top: none; padding-top: 0; }
.compact-list span { color: var(--muted-dark); font-size: 0.8rem; white-space: nowrap; }

.reveal {
  animation: rise 0.55s ease both;
  animation-delay: calc(var(--d, 0) * 70ms);
}

@keyframes rise {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 1.25rem;
}

@media (min-width: 800px) {
  .stats { grid-template-columns: repeat(4, 1fr); }
}

.stat { padding: 1rem 1.1rem; }
.stat span {
  display: block;
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--accent-dark);
}
.stat label { color: var(--muted-dark); font-size: 0.85rem; }

.badge {
  display: inline-block;
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  background: #eef2f6;
  color: #334155;
  letter-spacing: 0.02em;
}

.badge-blue { background: #e0f2fe; color: #075985; }
.badge-amber { background: #ffedd5; color: #9a3412; }
.badge-purple { background: #ede9fe; color: #5b21b6; }
.badge-green { background: #d1fae5; color: #065f46; }
.badge-red { background: #fee2e2; color: #991b1b; }
.badge-slate { background: #e2e8f0; color: #334155; }

.order-list { display: grid; gap: 0.75rem; }

.order-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  padding: 0.85rem 0;
  border-top: 1px solid var(--line);
}

.order-row:first-child { border-top: none; padding-top: 0; }
.order-row p { margin: 0.25rem 0 0; }

.table-wrap { overflow-x: auto; }

table, .data-table {
  width: 100%;
  border-collapse: collapse;
}

th, td {
  text-align: left;
  padding: 0.8rem 0.55rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  font-size: 0.92rem;
}

th {
  color: var(--muted-dark);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 800;
}

.data-table tbody tr:hover { background: #f8fafb; }

.meta { display: grid; gap: 0.65rem; margin: 0; }
.meta > div { display: grid; grid-template-columns: 120px 1fr; gap: 0.5rem; }
.meta dt { margin: 0; color: var(--muted-dark); font-size: 0.85rem; }
.meta dd { margin: 0; }

.wallet-box, .bank-card {
  margin-top: 1rem;
  padding: 1rem;
  background: #f5f8fb;
  border: 1px dashed #c5d0dc;
  border-radius: 14px;
}

.wallet-box.approved {
  background: #ecfdf5;
  border-color: #6ee7b7;
}

.wallet-addr {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.95rem;
  font-weight: 700;
  word-break: break-all;
  margin: 0.5rem 0 0.75rem;
}

.sep { border: none; border-top: 1px solid var(--line); margin: 1rem 0; }
.inline-actions { display: flex; gap: 0.5rem; flex-wrap: wrap; }

.simple-list { list-style: none; padding: 0; margin: 0; }
.simple-list li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.45rem 0;
  border-top: 1px solid var(--line);
  font-size: 0.92rem;
}
.simple-list li:first-child { border-top: none; }

.kyc-form {
  display: grid;
  gap: 1rem;
  max-width: 900px;
}

.kyc-box {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  padding: 1.25rem;
}

.kyc-box h2 {
  margin: 0 0 1rem;
  font-size: 1.1rem;
  font-weight: 800;
}

.kyc-box h3 {
  margin: 0 0 0.75rem;
  font-size: 0.95rem;
}

.kyc-box.compact {
  box-shadow: none;
  margin-bottom: 0.85rem;
  background: #f5f8fb;
}

.panel .kyc-box.compact:last-child { margin-bottom: 0; }

.check-row {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  font-weight: 500;
  margin-bottom: 1rem;
}

.check-row input {
  width: auto;
  margin-top: 0.2rem;
  flex-shrink: 0;
}

/* Mobile */
@media (max-width: 767px) {
  .wrap { width: min(100% - 1rem, 1160px); }
  .page { padding: 1rem 0 2.5rem; }

  .topbar-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }

  .nav {
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
  }

  .nav-link,
  .nav .btn { flex-shrink: 0; white-space: nowrap; }

  .nav-divider,
  .who-chip { display: none; }

  .presence-chip {
    flex-shrink: 0;
  }

  .dash-hero {
    flex-direction: column;
    align-items: stretch;
    padding: 1.15rem;
  }

  .dash-hero-actions .btn,
  .page-head .btn,
  .panel-head .btn,
  form .btn-primary,
  form .btn-danger,
  form .btn-secondary,
  .ticket .btn,
  .ticket form,
  .ticket form .btn {
    width: 100%;
  }

  .ticket,
  .page-head,
  .panel-head,
  .surface-head,
  .order-row {
    flex-direction: column;
    align-items: stretch;
  }

  .meta > div { grid-template-columns: 1fr; gap: 0.15rem; }
  table { min-width: 560px; }
  .btn { min-height: 46px; }

  input, select, textarea {
    font-size: 16px;
    min-height: 46px;
  }

  textarea { min-height: 96px; }
  .inline-actions { flex-direction: column; }
  .inline-actions .btn { width: 100%; }
  .auth-card { padding: 1.25rem; }
  .auth-promo h1 { font-size: 2rem; }
}

@media (max-width: 420px) {
  .dash-metrics,
  .stats { grid-template-columns: 1fr; }
}

/* Employee lively dashboard */
.emp-hero {
  position: relative;
  display: grid;
  gap: 1.25rem;
  padding: 1.6rem 1.5rem 1.7rem;
  border-radius: 28px;
  overflow: hidden;
  margin-bottom: 1.15rem;
  color: #fff;
  background:
    linear-gradient(135deg, #07110c 0%, #0b1a12 42%, #10261a 100%);
  border: 1px solid rgba(0, 200, 83, 0.22);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.18);
}

@media (min-width: 900px) {
  .emp-hero {
    grid-template-columns: 1.35fr 0.85fr;
    align-items: stretch;
    padding: 1.85rem 1.8rem;
  }
}

.emp-hero-glow {
  position: absolute;
  inset: -20% auto auto 40%;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(0, 200, 83, 0.28), transparent 68%);
  pointer-events: none;
  animation: empGlow 6s ease-in-out infinite alternate;
}

.emp-hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(2px);
  pointer-events: none;
  opacity: 0.55;
}

.emp-hero-orb-a {
  width: 120px;
  height: 120px;
  right: 18%;
  bottom: -30px;
  background: radial-gradient(circle, rgba(0, 200, 83, 0.55), transparent 70%);
  animation: empFloat 7s ease-in-out infinite;
}

.emp-hero-orb-b {
  width: 70px;
  height: 70px;
  right: 8%;
  top: 18%;
  background: radial-gradient(circle, rgba(124, 255, 178, 0.45), transparent 70%);
  animation: empFloat 5.5s ease-in-out infinite reverse;
}

@keyframes empGlow {
  from { transform: translateX(-12px) scale(0.95); opacity: 0.7; }
  to { transform: translateX(18px) scale(1.08); opacity: 1; }
}

@keyframes empFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}

.emp-hero-main,
.emp-hero-side {
  position: relative;
  z-index: 1;
}

.emp-live-row {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 0.85rem;
}

.emp-live-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: rgba(0, 200, 83, 0.14);
  border: 1px solid rgba(0, 200, 83, 0.35);
  color: #b7ffd2;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.emp-clock {
  color: #9aa7b5;
  font-size: 0.82rem;
  font-weight: 600;
}

.emp-hero h1 {
  margin: 0.35rem 0 0.65rem;
  font-size: clamp(1.7rem, 4vw, 2.45rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.08;
  color: #fff;
}

.emp-hero .eyebrow { color: var(--accent); }

.emp-hero-lead {
  margin: 0;
  color: #b7c2ce;
  line-height: 1.55;
  max-width: 36rem;
}

.emp-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.2rem;
}

.emp-hero-actions .btn-ghost {
  color: #d5dde6;
  border-color: rgba(255, 255, 255, 0.12);
}
.emp-hero-actions .btn-ghost:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}
.emp-hero-actions .btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.14);
  color: #fff;
}

.emp-status-card {
  height: 100%;
  padding: 1.15rem 1.2rem;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  display: grid;
  align-content: start;
  gap: 0.35rem;
  animation: empCardIn 0.7s ease both;
}

@keyframes empCardIn {
  from { opacity: 0; transform: translateY(12px) scale(0.98); }
  to { opacity: 1; transform: none; }
}

.emp-status-label {
  margin: 0;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #8fa0b0;
  font-weight: 800;
}

.emp-status-title {
  margin: 0.2rem 0 0;
  font-weight: 800;
  font-size: 1.05rem;
}

.emp-status-crypto {
  margin: 0;
  font-size: 1.7rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--accent);
}

.emp-status-amount {
  margin: 0 0 0.45rem;
  color: #d0d8e0;
  font-weight: 600;
}

.emp-metrics {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.85rem;
  margin-bottom: 1.15rem;
}

@media (min-width: 860px) {
  .emp-metrics { grid-template-columns: repeat(4, 1fr); }
}

.emp-metric {
  display: flex;
  gap: 0.85rem;
  align-items: center;
  padding: 1rem 1.05rem;
  border-radius: 18px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.emp-metric:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(0, 200, 83, 0.1);
  border-color: rgba(0, 200, 83, 0.28);
}

.emp-metric-icon {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 1rem;
  flex-shrink: 0;
}

.emp-metric-pool .emp-metric-icon { background: #e8fff1; color: #067a38; }
.emp-metric-active .emp-metric-icon { background: #fff4e5; color: #a15c00; }
.emp-metric-done .emp-metric-icon { background: #e8f1ff; color: #1d4ed8; }
.emp-metric-bank .emp-metric-icon { background: #e8fff1; color: #067a38; }
.emp-metric-warn {
  border-color: #f0c36d;
  background: linear-gradient(180deg, #fffaf0, #fff);
}
.emp-metric-warn .emp-metric-icon { background: #ffedd5; color: #9a3412; }

.metric-pop {
  animation: metricPop 0.4s ease;
}

@keyframes metricPop {
  0% { transform: scale(1); }
  40% { transform: scale(1.18); color: var(--accent-dark); }
  100% { transform: scale(1); }
}

.emp-progress {
  margin-bottom: 1.15rem;
  padding: 1.15rem 1.2rem;
  border-radius: 20px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}

.emp-progress-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.emp-progress-head h2 {
  margin: 0;
  font-size: 1.05rem;
}

.emp-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
}

.emp-step {
  display: grid;
  justify-items: center;
  gap: 0.4rem;
  position: relative;
  text-align: center;
}

.emp-step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 16px;
  left: calc(50% + 18px);
  width: calc(100% - 36px);
  height: 3px;
  border-radius: 99px;
  background: #e5eaf0;
}

.emp-step.done:not(:last-child)::after,
.emp-step.current:not(:last-child)::after {
  background: linear-gradient(90deg, var(--accent), #7CFFB2);
}

.emp-step-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.8rem;
  font-weight: 800;
  background: #eef2f6;
  color: #64748b;
  position: relative;
  z-index: 1;
}

.emp-step.done .emp-step-num {
  background: var(--accent);
  color: #04140a;
}

.emp-step.current .emp-step-num {
  background: #04140a;
  color: var(--accent);
  box-shadow: 0 0 0 4px rgba(0, 200, 83, 0.18);
  animation: empPulseSoft 1.8s ease-in-out infinite;
}

@keyframes empPulseSoft {
  0%, 100% { box-shadow: 0 0 0 4px rgba(0, 200, 83, 0.16); }
  50% { box-shadow: 0 0 0 8px rgba(0, 200, 83, 0.08); }
}

.emp-step-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--muted-dark);
}

.emp-step.current .emp-step-label,
.emp-step.done .emp-step-label {
  color: var(--ink);
}

.emp-pulse-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: #e8fff1;
  color: #067a38;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.emp-ticket {
  position: relative;
  overflow: hidden;
  animation: empTicketIn 0.45s ease both;
  animation-delay: calc(var(--i, 0) * 70ms);
}

@keyframes empTicketIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

.emp-ticket-accent {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, var(--accent), #7CFFB2);
}

.emp-amount {
  color: var(--accent-dark) !important;
  font-weight: 800 !important;
}

.emp-claim-btn {
  min-width: 118px;
}

.emp-empty {
  position: relative;
  overflow: hidden;
}

.emp-empty-wave {
  position: absolute;
  inset: auto -10% -40% -10%;
  height: 90px;
  background: radial-gradient(closest-side, rgba(0, 200, 83, 0.12), transparent 70%);
  animation: empFloat 4s ease-in-out infinite;
}

@media (max-width: 767px) {
  .emp-hero-actions .btn,
  .emp-claim-btn {
    width: 100%;
  }

  .emp-steps {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.85rem;
  }

  .emp-step:not(:last-child)::after {
    display: none;
  }
}
