/* Shared live payouts feed — preview rows + full table */

.live-payouts-card {
  text-align: left;
}
.live-payouts-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0;
  margin-bottom: 0.75rem;
}
.live-payouts-head h2 {
  width: 100%;
  text-align: center;
}
.live-payouts-head--page {
  align-items: flex-start;
  text-align: left;
}
.live-payouts-head--page h2 {
  text-align: left;
}
#live-payouts[data-live-payouts-mode="preview"] .live-payouts-head,
#live-payouts[data-live-payouts-mode="preview"] .live-payouts-head h2 {
  align-items: flex-start;
  text-align: left;
}
.live-payouts-head-live-word {
  display: inline;
  margin-right: 0.15rem;
}
.live-payouts-head-live-word .live-payout-dot.live-payout-dot--icon {
  display: inline-block;
  vertical-align: 0.08em;
  margin-right: 0.35rem;
  line-height: 0;
}
.live-payouts-head-live-text {
  color: #f3f4f6;
  text-shadow:
    0 0 8px rgba(74, 222, 128, 0.55),
    0 0 16px rgba(74, 222, 128, 0.28),
    0 0 28px rgba(74, 222, 128, 0.12);
}

.live-payouts-stats-split {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin: 0 0 0.75rem 0;
  padding: 0;
}
.live-payouts-stat-block {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}
.live-payouts-stat-block--left {
  align-items: flex-start;
  text-align: left;
}
.live-payouts-stat-block--right {
  align-items: flex-end;
  text-align: right;
}
.live-payouts-stat-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #9ca3af;
}
.live-payouts-stat-value {
  display: inline-block;
  vertical-align: baseline;
  font-size: 1.05rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
  color: #f3f4f6;
  min-width: 0;
}
@media (min-width: 640px) {
  .live-payouts-stat-value { font-size: 1.15rem; }
}
.live-payouts-stat-value--usd {
  color: #4ade80;
  text-shadow: 0 0 18px rgba(74, 222, 128, 0.22);
}
.live-payouts-stat-value--count {
  color: #e5e7eb;
  font-weight: 700;
}
@keyframes livePayoutCounterPop {
  0% { transform: scale(1); }
  35% { transform: scale(1.05); }
  100% { transform: scale(1); }
}
.live-payouts-stat-value--tick {
  animation: livePayoutCounterPop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.live-payout-dot {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #86efac;
  text-transform: uppercase;
}
.live-payout-dot span:first-child {
  display: block;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 9999px;
  background: #4ade80;
  box-shadow: 0 0 10px #4ade80;
  animation: livePayoutPulse 1.8s ease-in-out infinite;
}
.live-payout-dot.live-payout-dot--icon span:first-child {
  width: 0.5rem;
  height: 0.5rem;
}
@keyframes livePayoutPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.65; transform: scale(0.92); }
}
@keyframes livePayoutRowIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.live-payout-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 0.5rem 0.75rem;
  align-items: center;
  padding: 0.55rem 0.65rem;
  border-radius: 0.75rem;
  background: rgba(74, 222, 128, 0.06);
  border: 1px solid rgba(74, 222, 128, 0.14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  font-size: 0.8rem;
  animation: livePayoutRowIn 0.45s ease both;
}
@media (min-width: 640px) {
  .live-payout-row { font-size: 0.875rem; padding: 0.65rem 0.75rem; }
}
.live-payout-email {
  color: #e5e7eb;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}
.live-payout-amt {
  color: #4ade80;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  text-shadow: 0 0 14px rgba(74, 222, 128, 0.2);
}
.live-payout-date {
  color: #9ca3af;
  opacity: 0.95;
  font-size: 0.72rem;
  white-space: nowrap;
}
@media (min-width: 640px) {
  .live-payout-date { font-size: 0.8rem; }
}

.live-payouts-preview {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-height: 5.5rem;
  text-align: left;
}
.live-payouts-more-wrap {
  margin-top: 1rem;
  display: flex;
  justify-content: center;
}
.live-payouts-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1.1rem;
  border-radius: 10px;
  border: 1px solid rgba(74, 222, 128, 0.35);
  color: #86efac;
  font-size: 0.875rem;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.live-payouts-more:hover {
  background: rgba(74, 222, 128, 0.1);
  border-color: rgba(74, 222, 128, 0.55);
  color: #bbf7d0;
}

.live-payouts-table-wrap {
  overflow-x: auto;
  border-radius: 0.75rem;
  border: 1px solid rgba(55, 65, 81, 0.5);
  scrollbar-width: thin;
  scrollbar-color: rgba(74, 222, 128, 0.5) rgba(31, 41, 55, 0.4);
}
#live-payouts[data-live-payouts-mode="full"] .live-payouts-table-wrap {
  max-height: none;
  overflow: auto;
}

/* —— Live payouts page —— */
.lp-skip {
  position: absolute;
  left: -9999px;
  top: 0;
}
.lp-skip:focus {
  left: 1rem;
  top: 1rem;
  z-index: 80;
  width: auto;
  padding: 0.55rem 0.85rem;
  border-radius: 0.5rem;
  background: #16a34a;
  color: #fff;
  font-weight: 600;
}

.lp-app {
  min-height: 100vh;
  margin: 0;
  display: flex;
  flex-direction: column;
  color: #e5e7eb;
  font-family: Inter, system-ui, sans-serif;
  background:
    radial-gradient(ellipse 70% 42% at 10% 0%, rgba(74, 222, 128, 0.07) 0%, transparent 52%),
    linear-gradient(180deg, #050508 0%, #07070b 45%, #030305 100%);
}

.lp-shell {
  flex: 1;
  width: 100%;
  max-width: 56rem;
  margin: 0 auto;
  padding: 1.25rem 1rem 2rem;
}
@media (min-width: 640px) {
  .lp-shell { padding: 1.75rem 1.5rem 2.75rem; }
}

.lp-hero { margin-bottom: 1.15rem; }
.lp-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0 0 0.45rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #86efac;
}
.lp-hero h1 {
  margin: 0;
  font-size: 1.85rem;
  font-weight: 800;
  letter-spacing: -0.035em;
  color: #f9fafb;
  line-height: 1.15;
}
.lp-hero-month {
  margin: 0.35rem 0 0;
  font-size: 1.05rem;
  font-weight: 600;
  color: #4ade80;
}
@media (min-width: 640px) {
  .lp-hero h1 { font-size: 2.15rem; }
}

.lp-kpis {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.lp-kpi {
  padding: 0.9rem 1rem;
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(12, 12, 16, 0.7);
}
.lp-kpi-label {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #9ca3af;
  margin-bottom: 0.3rem;
}
.lp-kpi-value {
  display: block;
  font-size: 1.35rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.03em;
  color: #f3f4f6;
}
.lp-kpi-value--usd {
  color: #4ade80;
}
@media (min-width: 640px) {
  .lp-kpi { padding: 1.05rem 1.15rem; }
  .lp-kpi-value { font-size: 1.65rem; }
}

.lp-board {
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 1.15rem;
  background: rgba(10, 10, 14, 0.82);
  overflow: hidden;
}
.lp-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem 0.85rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.lp-search {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  min-width: 0;
  padding: 0.5rem 0.7rem;
  border-radius: 0.7rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.28);
  color: #9ca3af;
}
.lp-search input {
  width: 100%;
  border: 0;
  outline: none;
  background: transparent;
  color: #f3f4f6;
  font: inherit;
  font-size: 0.875rem;
}
.lp-search input::placeholder { color: #6b7280; }
.lp-row-note {
  margin: 0;
  flex-shrink: 0;
  font-size: 0.75rem;
  color: #6b7280;
  font-variant-numeric: tabular-nums;
}

.lp-status {
  margin: 0;
  padding: 0.35rem 1rem 0;
  text-align: center;
  color: #9ca3af;
  font-size: 0.875rem;
}
.lp-status--error { color: #fca5a5; padding: 0; }
.lp-error {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding: 2rem 1rem;
}
.lp-retry {
  appearance: none;
  border: 1px solid rgba(74, 222, 128, 0.35);
  background: rgba(74, 222, 128, 0.08);
  color: #86efac;
  font: inherit;
  font-size: 0.875rem;
  font-weight: 700;
  padding: 0.5rem 1rem;
  border-radius: 0.65rem;
  cursor: pointer;
}
.lp-retry:hover { background: rgba(74, 222, 128, 0.14); }

.lp-skel { padding: 0.85rem 0.85rem 1.1rem; }
.lp-skel-bar {
  display: block;
  height: 2.35rem;
  margin-bottom: 0.45rem;
  border-radius: 0.55rem;
  background: linear-gradient(90deg, rgba(255,255,255,0.04), rgba(255,255,255,0.09), rgba(255,255,255,0.04));
  background-size: 200% 100%;
  animation: lpSkel 1.2s ease-in-out infinite;
}
@keyframes lpSkel {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}

.lp-table-panel { padding: 0; }
.lp-app .live-payouts-table-wrap {
  border: 0;
  border-radius: 0;
  max-height: min(64vh, 40rem);
}
.lp-app .live-payouts-table { min-width: 100%; }
.lp-app .live-payouts-table th,
.lp-app .live-payouts-table td {
  padding: 0.72rem 0.95rem;
}
.lp-app .live-payouts-table th {
  background: rgba(7, 7, 11, 0.96);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.lp-th-num,
.lp-td-amt,
.lp-td-date {
  text-align: right;
}
.lp-col-email { width: 56%; }
.lp-col-amt { width: 22%; }
.lp-col-date { width: 22%; }
.lp-app .live-payouts-table tbody tr:nth-child(even) td {
  background: rgba(255, 255, 255, 0.02);
}
.lp-app .live-payouts-table tbody tr:hover td {
  background: rgba(74, 222, 128, 0.06);
}
.lp-empty-row td {
  text-align: center !important;
  color: #6b7280;
  padding: 2.25rem 1rem !important;
}
.lp-more-wrap {
  display: flex;
  justify-content: center;
  padding: 0.85rem 0.85rem 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.lp-more {
  appearance: none;
  border: 1px solid rgba(74, 222, 128, 0.35);
  background: rgba(74, 222, 128, 0.08);
  color: #86efac;
  font: inherit;
  font-size: 0.875rem;
  font-weight: 700;
  padding: 0.55rem 1.15rem;
  border-radius: 0.65rem;
  cursor: pointer;
}
.lp-more:hover { background: rgba(74, 222, 128, 0.14); }

.lp-speakable {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.lp-aeo { margin-top: 1.5rem; }
.lp-aeo h2 {
  margin: 0 0 0.65rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #6b7280;
}
.lp-faq {
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 0.8rem;
  background: rgba(10, 10, 14, 0.55);
  margin-bottom: 0.5rem;
  overflow: hidden;
}
.lp-faq summary {
  cursor: pointer;
  list-style: none;
  padding: 0.8rem 1rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: #e5e7eb;
}
.lp-faq summary::-webkit-details-marker { display: none; }
.lp-faq summary::after {
  content: "+";
  float: right;
  color: #4ade80;
  font-weight: 500;
}
.lp-faq[open] summary::after { content: "−"; }
.lp-faq p {
  margin: 0;
  padding: 0 1rem 0.9rem;
  font-size: 0.85rem;
  line-height: 1.55;
  color: #9ca3af;
}
.lp-faq .lp-hl {
  color: #4ade80;
  font-weight: 600;
}

.lp-foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem 1.1rem;
  padding: 0.25rem 1rem 1.6rem;
  font-size: 0.8rem;
}
.lp-foot a {
  color: #6b7280;
  text-decoration: none;
}
.lp-foot a:hover { color: #86efac; }

@media (max-width: 767px) {
  .lp-app { background-attachment: scroll; }
  .lp-toolbar { flex-wrap: wrap; }
  .lp-search { width: 100%; }
}
.live-payouts-table-wrap::-webkit-scrollbar { width: 8px; height: 8px; }
.live-payouts-table-wrap::-webkit-scrollbar-thumb {
  background: #4ade80;
  border-radius: 4px;
}
.live-payouts-table-wrap::-webkit-scrollbar-thumb:hover { background: #22c55e; }

.live-payouts-table {
  width: 100%;
  min-width: 20rem;
  border-collapse: collapse;
  font-size: 0.8rem;
}
.live-payouts-table th,
.live-payouts-table td {
  padding: 0.55rem 0.65rem;
  text-align: left;
  border-bottom: 1px solid rgba(55, 65, 81, 0.4);
}
.live-payouts-table th {
  color: #9ca3af;
  font-weight: 600;
  position: sticky;
  top: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(8, 8, 12, 0.98) 0%, rgba(5, 5, 8, 0.96) 100%);
  box-shadow: 0 1px 0 rgba(74, 222, 128, 0.06);
}
.live-payouts-table td {
  color: #d1d5db;
}
.live-payouts-table td.live-payout-amt {
  color: #4ade80;
  font-weight: 700;
}
.live-payouts-table tbody tr:hover td {
  background: rgba(74, 222, 128, 0.04);
}
.live-payouts-table .lp-td-email {
  word-break: break-word;
  max-width: 14rem;
  color: #e5e7eb;
}
.live-payouts-table .lp-td-date {
  color: #9ca3af;
  white-space: nowrap;
  font-size: 0.72rem;
}
@media (min-width: 640px) {
  .live-payouts-table { font-size: 0.875rem; }
  .live-payouts-table .lp-td-email { max-width: 28rem; }
  .live-payouts-table .lp-td-date { font-size: 0.8rem; }
}

.live-payouts-hidden { display: none !important; }
