:root {
  --bg: #090a10;
  --panel: rgba(255, 255, 255, 0.035);
  --panel-hover: rgba(255, 255, 255, 0.055);
  --panel-solid: #12141d;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);
  --text: #eef0f6;
  --muted: #8d92a6;
  --faint: #5c6072;
  --gold: #ffcb45;
  --gold-deep: #ff9d2e;
  --pending: #ffb547;
  --paid: #3ddc97;
  --denied: #ff6b7a;
  --radius: 18px;
  --radius-sm: 12px;
  --font: "Outfit", "Segoe UI", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

/* Custom scrollbars everywhere */
* {
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 203, 69, 0.45) transparent;
}

::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(255, 203, 69, 0.75), rgba(255, 157, 46, 0.55));
  border: 3px solid var(--bg);
  border-radius: 99px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, var(--gold), var(--gold-deep));
}

::-webkit-scrollbar-corner {
  background: transparent;
}

::selection {
  background: rgba(255, 203, 69, 0.3);
  color: #fff;
}

html {
  background: var(--bg);
  color-scheme: dark;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

button,
input,
textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  border: 0;
  background: none;
  padding: 0;
}

svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

[hidden] {
  display: none !important;
}

/* Background glow */
.glow {
  position: fixed;
  z-index: -1;
  border-radius: 50%;
  filter: blur(110px);
  pointer-events: none;
}

.glow-a {
  top: -260px;
  left: -160px;
  width: 620px;
  height: 620px;
  background: rgba(255, 173, 51, 0.16);
}

.glow-b {
  top: 120px;
  right: -240px;
  width: 560px;
  height: 560px;
  background: rgba(104, 92, 255, 0.14);
}

/* Top bar */
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px clamp(16px, 4vw, 40px);
  background: rgba(9, 10, 16, 0.72);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
  min-width: 0;
}

.logo {
  width: 36px;
  height: 36px;
  flex: none;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 4px 14px rgba(255, 92, 138, 0.4);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  min-width: 0;
}

.brand-text strong {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.brand-text small {
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

.live {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--muted);
  white-space: nowrap;
}

.live i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--paid);
  box-shadow: 0 0 0 0 rgba(61, 220, 151, 0.6);
  animation: pulse 2.2s infinite;
}

.live.offline i {
  background: var(--denied);
  animation: none;
}

@keyframes pulse {
  70% { box-shadow: 0 0 0 8px rgba(61, 220, 151, 0); }
  100% { box-shadow: 0 0 0 0 rgba(61, 220, 151, 0); }
}

.staff-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 6px 4px 4px;
  border: 1px solid var(--line);
  border-radius: 99px;
  background: var(--panel);
  font-size: 13px;
  font-weight: 500;
}

.staff-chip img {
  width: 26px;
  height: 26px;
  border-radius: 50%;
}

.staff-chip .icon-btn {
  width: 26px;
  height: 26px;
}

/* Buttons */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 40px;
  padding: 0 18px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
  white-space: nowrap;
  transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease), background 0.18s, border-color 0.18s, opacity 0.18s;
  user-select: none;
}

.btn svg {
  width: 16px;
  height: 16px;
  flex: none;
}

.btn:hover:not(:disabled) {
  transform: translateY(-1px);
}

.btn:active:not(:disabled) {
  transform: translateY(0) scale(0.98);
}

.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.btn-sm {
  height: 34px;
  padding: 0 14px;
  font-size: 13px;
  border-radius: 10px;
}

.btn-block {
  flex: 1;
}

.btn-gold {
  color: #2b1a00;
  background: linear-gradient(135deg, #ffe08a, var(--gold) 45%, var(--gold-deep));
  box-shadow: 0 6px 20px -6px rgba(255, 173, 51, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.btn-gold:hover:not(:disabled) {
  box-shadow: 0 10px 26px -6px rgba(255, 173, 51, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.btn-paid {
  color: #04261a;
  background: linear-gradient(135deg, #7df0bd, var(--paid));
  box-shadow: 0 6px 20px -8px rgba(61, 220, 151, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.btn-paid:hover:not(:disabled) {
  box-shadow: 0 10px 26px -8px rgba(61, 220, 151, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.btn-deny {
  color: var(--denied);
  background: rgba(255, 107, 122, 0.1);
  border: 1px solid rgba(255, 107, 122, 0.32);
}

.btn-deny:hover:not(:disabled) {
  background: rgba(255, 107, 122, 0.18);
  border-color: rgba(255, 107, 122, 0.55);
}

.btn-deny-solid {
  color: #2e0308;
  background: linear-gradient(135deg, #ff9aa5, var(--denied));
  box-shadow: 0 6px 20px -8px rgba(255, 107, 122, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.btn-ghost {
  color: var(--text);
  background: var(--panel);
  border: 1px solid var(--line);
}

.btn-ghost:hover:not(:disabled) {
  background: var(--panel-hover);
  border-color: var(--line-strong);
}

.btn.loading {
  color: transparent !important;
  pointer-events: none;
}

.btn.loading::after {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid rgba(0, 0, 0, 0.25);
  border-top-color: rgba(0, 0, 0, 0.8);
  animation: spin 0.7s linear infinite;
}

.btn-ghost.loading::after {
  border-color: rgba(255, 255, 255, 0.2);
  border-top-color: #fff;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  color: var(--muted);
  transition: background 0.15s, color 0.15s;
}

.icon-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
}

.icon-btn svg {
  width: 14px;
  height: 14px;
}

.icon-btn.done {
  color: var(--paid);
}

/* Layout */
.wrap {
  flex: 1;
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 40px) 64px;
}

.hero {
  padding: clamp(36px, 7vw, 72px) 0 clamp(24px, 4vw, 40px);
  max-width: 720px;
}

.hero h1 {
  margin: 0 0 12px;
  font-size: clamp(32px, 5.4vw, 54px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.grad {
  background: linear-gradient(100deg, #ffe08a, var(--gold) 40%, var(--gold-deep));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero p {
  margin: 0;
  font-size: clamp(15px, 1.6vw, 17px);
  color: var(--muted);
  max-width: 56ch;
}

/* Stats */
.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.stat {
  --tone: var(--gold);
  position: relative;
  overflow: hidden;
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.015));
}

.stat::before {
  content: "";
  position: absolute;
  top: -70px;
  right: -70px;
  width: 190px;
  height: 190px;
  border-radius: 50%;
  background: var(--tone);
  opacity: 0.13;
  filter: blur(46px);
}

.stat-pending { --tone: var(--pending); }
.stat-paid { --tone: var(--paid); }
.stat-denied { --tone: var(--denied); }

.stat header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--tone);
  box-shadow: 0 0 12px var(--tone);
}

.stat-value {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 10px 0 6px;
  font-size: clamp(34px, 4.6vw, 46px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

.stat-value em {
  font-size: 0.4em;
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--tone);
}

.stat footer {
  font-size: 13px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

/* Toolbar */
.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  margin: 32px 0 18px;
}

.tabs {
  position: relative;
  display: inline-flex;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
  max-width: 100%;
  overflow-x: auto;
  scrollbar-width: none;
}

.tabs::-webkit-scrollbar {
  display: none;
}

.tab-thumb {
  position: absolute;
  top: 4px;
  left: 0;
  height: calc(100% - 8px);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.09);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: transform 0.32s var(--ease), width 0.32s var(--ease);
}

.tab {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 14px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
  transition: color 0.2s;
}

.tab:hover,
.tab.active {
  color: var(--text);
}

.tab b {
  min-width: 22px;
  padding: 1px 7px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.07);
  font-size: 12px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  text-align: center;
}

.tab.active[data-status="pending"] b { background: rgba(255, 181, 71, 0.18); color: var(--pending); }
.tab.active[data-status="paid"] b { background: rgba(61, 220, 151, 0.16); color: var(--paid); }
.tab.active[data-status="denied"] b { background: rgba(255, 107, 122, 0.16); color: var(--denied); }

.search {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 240px;
  max-width: 380px;
  margin-left: auto;
  height: 46px;
  padding: 0 8px 0 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
  transition: border-color 0.18s, background 0.18s, box-shadow 0.18s;
  cursor: text;
}

.search:focus-within {
  border-color: rgba(255, 203, 69, 0.55);
  background: var(--panel-hover);
  box-shadow: 0 0 0 4px rgba(255, 203, 69, 0.1);
}

.search > svg {
  width: 17px;
  height: 17px;
  flex: none;
  color: var(--muted);
}

.search input {
  flex: 1;
  min-width: 0;
  height: 100%;
  border: 0;
  outline: 0;
  background: none;
  font-size: 14px;
}

.search input::placeholder,
.field::placeholder {
  color: var(--faint);
}

.search-clear {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  color: var(--muted);
}

.search-clear:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
}

.search-clear svg {
  width: 14px;
  height: 14px;
}

.sort {
  position: relative;
}

.sort-btn {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  height: 46px;
  padding: 0 12px 0 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
  color: var(--text);
  font: inherit;
  font-size: 14px;
  white-space: nowrap;
  cursor: pointer;
  transition: border-color 0.18s, background 0.18s, box-shadow 0.18s;
}

.sort-btn:hover {
  background: var(--panel-hover);
}

.sort-btn:focus-visible,
.sort.open .sort-btn {
  outline: 0;
  border-color: rgba(255, 203, 69, 0.55);
  background: var(--panel-hover);
  box-shadow: 0 0 0 4px rgba(255, 203, 69, 0.1);
}

.sort-btn span {
  flex: 1;
  text-align: left;
}

.sort-btn svg {
  width: 17px;
  height: 17px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  color: var(--muted);
}

.sort-btn .sort-chevron {
  width: 15px;
  height: 15px;
  transition: transform 0.25s var(--ease);
}

.sort.open .sort-chevron {
  transform: rotate(180deg);
}

.sort-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 20;
  display: grid;
  gap: 2px;
  min-width: 100%;
  padding: 6px;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: var(--panel-solid);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
  animation: sort-in 0.18s var(--ease);
}

.sort-menu[hidden] {
  display: none;
}

@keyframes sort-in {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
}

.sort-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 10px 12px;
  border: 0;
  border-radius: 9px;
  background: none;
  color: var(--muted);
  font: inherit;
  font-size: 14px;
  text-align: left;
  white-space: nowrap;
  cursor: pointer;
}

.sort-option:hover,
.sort-option:focus-visible {
  outline: 0;
  background: rgba(255, 255, 255, 0.07);
  color: var(--text);
}

.sort-option.active {
  color: var(--gold);
  font-weight: 600;
}

.sort-option.active::after {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
}

/* Off-screen field used to copy text where navigator.clipboard isn't available. */
.copy-field {
  position: fixed;
  top: 0;
  left: 0;
  width: 1px;
  height: 1px;
  padding: 0;
  border: 0;
  opacity: 0;
  pointer-events: none;
  font-size: 16px;
}

.filter-note {
  margin: 0 0 16px;
  font-size: 13.5px;
  color: var(--muted);
}

.filter-note strong {
  color: var(--gold);
  font-weight: 600;
}

/* Claim cards */
.claims {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 16px;
}

.claim {
  --tone: var(--pending);
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  transition: transform 0.25s var(--ease), border-color 0.25s, background 0.25s;
  animation: rise 0.45s var(--ease) both;
}

.claim:hover {
  transform: translateY(-2px);
  border-color: var(--line-strong);
  background: var(--panel-hover);
}

.claim[data-status="paid"] { --tone: var(--paid); }
.claim[data-status="denied"] { --tone: var(--denied); }

.claims.still .claim {
  animation: none;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(10px); }
}

.claim-head {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.avatar {
  width: 42px;
  height: 42px;
  flex: none;
  border-radius: 50%;
  background: var(--panel-solid);
  object-fit: cover;
  box-shadow: 0 0 0 2px var(--bg), 0 0 0 3.5px color-mix(in srgb, var(--tone) 55%, transparent);
}

.who {
  flex: 1;
  min-width: 0;
  line-height: 1.25;
}

.who strong {
  display: block;
  font-size: 15.5px;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.who span {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--faint);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: none;
  height: 26px;
  padding: 0 10px;
  border-radius: 99px;
  background: color-mix(in srgb, var(--tone) 14%, transparent);
  color: var(--tone);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.pill i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.claim[data-status="pending"] .pill i {
  animation: blink 1.6s ease-in-out infinite;
}

@keyframes blink {
  50% { opacity: 0.25; }
}

.amount {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: 30px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.025em;
  font-variant-numeric: tabular-nums;
}

.amount em {
  font-size: 13px;
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--gold);
}

.claim[data-status="denied"] .amount span {
  color: var(--muted);
  text-decoration: line-through;
  text-decoration-thickness: 2px;
  text-decoration-color: rgba(255, 107, 122, 0.6);
}

.meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.meta div {
  min-width: 0;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.meta dt {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--faint);
}

.meta dd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin: 2px 0 0;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 500;
}

.meta dd span {
  overflow: hidden;
  text-overflow: ellipsis;
}

.meta .icon-btn {
  width: 22px;
  height: 22px;
  margin: -2px -4px -2px 0;
}

dl {
  margin: 0;
}

.timeline {
  font-size: 13px;
  color: var(--muted);
}

.timeline b {
  font-weight: 500;
  color: var(--text);
}

.proof {
  position: relative;
  display: block;
  width: 100%;
  height: 150px;
  overflow: hidden;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: #000;
}

.proof img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.88;
  transition: transform 0.5s var(--ease), opacity 0.3s;
}

.proof:hover img {
  transform: scale(1.04);
  opacity: 1;
}

.proof span {
  position: absolute;
  left: 10px;
  bottom: 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 99px;
  background: rgba(9, 10, 16, 0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-size: 12px;
  font-weight: 600;
  color: var(--paid);
}

.proof span svg {
  width: 13px;
  height: 13px;
}

.note {
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  overflow-wrap: anywhere;
}

.note-reason {
  background: rgba(255, 107, 122, 0.08);
  border: 1px solid rgba(255, 107, 122, 0.2);
  color: #ffc4ca;
}

.note-reason b {
  display: block;
  margin-bottom: 2px;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--denied);
}

.note-muted {
  background: rgba(255, 255, 255, 0.03);
  border: 1px dashed var(--line);
  color: var(--muted);
}

.actions {
  display: flex;
  gap: 10px;
  margin-top: auto;
}

/* Empty + skeleton */
.empty {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 64px 20px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  text-align: center;
  color: var(--muted);
}

.empty svg {
  width: 40px;
  height: 40px;
  margin-bottom: 8px;
  color: var(--faint);
  stroke-width: 1.5;
}

.empty strong {
  font-size: 17px;
  font-weight: 600;
  color: var(--text);
}

.skeleton {
  height: 250px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(100deg, rgba(255, 255, 255, 0.03) 30%, rgba(255, 255, 255, 0.07) 50%, rgba(255, 255, 255, 0.03) 70%);
  background-size: 200% 100%;
  animation: shimmer 1.4s linear infinite;
}

@keyframes shimmer {
  to { background-position: -200% 0; }
}

.more {
  display: flex;
  justify-content: center;
  margin-top: 24px;
}

.footer {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 22px 16px 30px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--faint);
}

.footer code {
  padding: 1px 6px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
}

/* Modals */
.modal-root {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 16px;
  background: rgba(4, 5, 9, 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  overflow-y: auto;
  animation: fade 0.2s ease both;
}

@keyframes fade {
  from { opacity: 0; }
}

.modal {
  position: relative;
  width: 100%;
  max-width: 460px;
  padding: 24px;
  border: 1px solid var(--line-strong);
  border-radius: 22px;
  background: linear-gradient(170deg, #171a25, #0f1119);
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.8);
  animation: pop 0.32s var(--ease) both;
}

@keyframes pop {
  from { opacity: 0; transform: translateY(14px) scale(0.97); }
}

.modal h2 {
  margin: 0 0 4px;
  padding-right: 32px;
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.modal > p {
  margin: 0 0 18px;
  font-size: 14px;
  color: var(--muted);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
}

.modal-close svg {
  width: 16px;
  height: 16px;
}

.modal-actions {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.summary {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  margin-bottom: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.25);
}

.summary .avatar {
  box-shadow: none;
}

.summary .who span {
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--muted);
}

.summary-amount {
  font-size: 18px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.summary-amount em {
  margin-left: 4px;
  font-size: 11px;
  font-style: normal;
  color: var(--gold);
}

.label {
  display: block;
  margin-bottom: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.field {
  display: block;
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  outline: 0;
  background: rgba(0, 0, 0, 0.3);
  font-size: 14px;
  transition: border-color 0.18s, box-shadow 0.18s;
}

.field:focus {
  border-color: rgba(255, 203, 69, 0.55);
  box-shadow: 0 0 0 4px rgba(255, 203, 69, 0.1);
}

textarea.field {
  min-height: 110px;
  resize: vertical;
}

.field-mono {
  font-family: var(--mono);
  letter-spacing: 0.04em;
}

.hint {
  margin: 8px 0 0;
  font-size: 12.5px;
  color: var(--faint);
}

.error {
  margin: 10px 0 0;
  font-size: 13px;
  color: var(--denied);
}

/* Screenshot dropzone */
.drop {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 100%;
  min-height: 170px;
  padding: 18px;
  border: 1.5px dashed var(--line-strong);
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.25);
  text-align: center;
  color: var(--muted);
  font-size: 13.5px;
  transition: border-color 0.18s, background 0.18s;
  overflow: hidden;
}

.drop:hover,
.drop.over {
  border-color: var(--gold);
  background: rgba(255, 203, 69, 0.06);
}

.drop svg {
  width: 30px;
  height: 30px;
  margin-bottom: 6px;
  color: var(--gold);
  stroke-width: 1.6;
}

.drop strong {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}

.drop kbd {
  padding: 1px 6px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  font-family: var(--mono);
  font-size: 11px;
}

.drop.filled {
  padding: 0;
  border-style: solid;
  border-color: rgba(61, 220, 151, 0.45);
  background: #000;
}

.drop.filled img {
  width: 100%;
  max-height: 300px;
  object-fit: contain;
}

.drop-remove {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(9, 10, 16, 0.8);
  color: var(--text);
}

.file-input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

/* Lightbox */
.lightbox {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  max-width: min(1100px, 100%);
  animation: pop 0.32s var(--ease) both;
}

.lightbox img {
  max-width: 100%;
  max-height: calc(100vh - 150px);
  border-radius: 14px;
  border: 1px solid var(--line-strong);
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.9);
}

.lightbox-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13.5px;
  color: var(--muted);
}

.lightbox-bar b {
  color: var(--text);
  font-weight: 600;
}

/* Toasts */
.toasts {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 60;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: calc(100vw - 40px);
}

.toast {
  --tone: var(--paid);
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 380px;
  padding: 12px 16px;
  border: 1px solid var(--line-strong);
  border-left: 3px solid var(--tone);
  border-radius: 12px;
  background: #171a25;
  box-shadow: 0 16px 40px -12px rgba(0, 0, 0, 0.7);
  font-size: 14px;
  animation: slide 0.35s var(--ease) both;
}

.toast.error-toast { --tone: var(--denied); }

.toast.out {
  opacity: 0;
  transform: translateX(20px);
  transition: opacity 0.25s, transform 0.25s;
}

@keyframes slide {
  from { opacity: 0; transform: translateX(24px); }
}

@media (max-width: 820px) {
  .stats {
    grid-template-columns: 1fr;
  }

  .search {
    max-width: none;
    flex-basis: 100%;
  }

  .sort {
    flex: 1;
  }

  .live span {
    display: none;
  }
}

@media (max-width: 420px) {
  .claims {
    grid-template-columns: 1fr;
  }

  .brand-text small {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
