/* =====================================================
   NIA INVITE — COMMISSION PAYOUTS LUXURY COCKPIT
   ===================================================== */

.comm-header-deck {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding: 2px 4px;
}

.comm-title-group {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.comm-title {
  font-size: 1.18rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.3px;
  margin: 0;
}

.comm-sub {
  font-size: 0.72rem;
  color: #8b92a5;
  margin: 0;
}

.comm-total-capsule {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(212, 175, 55, 0.08);
  border: 1px solid rgba(212, 175, 55, 0.22);
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.68rem;
  font-weight: 800;
  color: var(--gold-glow);
  letter-spacing: 0.5px;
}

.comm-total-pulse {
  width: 5px;
  height: 5px;
  background: var(--gold);
  border-radius: 50%;
  box-shadow: 0 0 6px var(--gold);
}

.comm-controls-panel {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 18px;
  background: rgba(12, 14, 20, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 10px;
  border-radius: 14px;
  backdrop-filter: blur(12px);
}

.comm-search-box {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.comm-search-icon {
  position: absolute;
  left: 12px;
  color: #6b7280;
  display: flex;
  align-items: center;
  pointer-events: none;
}

.comm-search-field {
  width: 100%;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 9px 34px 9px 36px;
  color: #fff;
  font-size: 0.78rem;
  outline: none;
  transition: all 0.2s ease;
}

.comm-search-field::placeholder {
  color: #525866;
  font-size: 0.75rem;
}

.comm-search-field:focus {
  border-color: rgba(212, 175, 55, 0.4);
  background: rgba(0, 0, 0, 0.65);
  box-shadow: 0 0 12px rgba(212, 175, 55, 0.12);
}

.btn-clear-comm-search {
  position: absolute;
  right: 10px;
  background: transparent;
  border: none;
  color: #6b7280;
  font-size: 0.85rem;
  cursor: pointer;
  padding: 4px;
  display: none;
  line-height: 1;
}

.btn-clear-comm-search:hover {
  color: #fff;
}

/* Capsule Tabs */
.comm-filter-tabs {
  display: flex;
  gap: 8px;
  width: 100%;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  padding: 2px 0;
}

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

.comm-tab-pill {
  flex: 0 0 auto;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  color: #8b92a5;
  font-size: 0.74rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 20px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  transition: all 0.25s ease;
}

.comm-tab-pill.active {
  background: rgba(212, 175, 55, 0.12);
  border-color: rgba(212, 175, 55, 0.45);
  color: #fff;
  box-shadow: 0 0 12px rgba(212, 175, 55, 0.15);
}

.comm-tab-badge-num {
  font-size: 0.65rem;
  font-family: monospace;
  color: #6b7280;
  font-weight: 700;
}

.comm-tab-pill.active .comm-tab-badge-num {
  color: var(--gold-glow);
}

/* Cards List */
.comm-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.comm-card-tile {
  background: linear-gradient(150deg, #141724 0%, #0a0c12 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
  position: relative;
  overflow: hidden;
  text-align: left;
}

.comm-card-tile::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: #10b981;
}

.comm-card-tile.status-pending::before {
  background: #f59e0b;
}

.comm-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  width: 100%;
}

.comm-info-deck {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  gap: 4px;
  flex: 1;
}

.comm-ref-title {
  font-family: monospace;
  font-size: 0.95rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.8px;
}

.comm-aff-sub {
  font-size: 0.82rem;
  font-weight: 700;
  color: #60a5fa;
}

.comm-amount-capsule {
  font-size: 1.18rem;
  font-weight: 800;
  color: var(--gold-glow);
  letter-spacing: 0.5px;
  text-align: right;
}

.comm-details-stack {
  display: flex;
  flex-direction: column;
  gap: 9px;
  background: rgba(0, 0, 0, 0.35);
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.comm-detail-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
  gap: 10px;
}

.comm-detail-label {
  color: var(--muted);
  font-size: 0.66rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  flex-shrink: 0;
}

.comm-detail-val {
  color: #f3f4f6;
  font-weight: 500;
  text-align: right;
  word-break: break-all;
}

.comm-actions-deck {
  display: flex;
  gap: 8px;
}

.btn-comm-view-detail {
  flex: 1;
  padding: 11px 12px;
  background: rgba(212, 175, 55, 0.08);
  border: 1px solid rgba(212, 175, 55, 0.3);
  color: var(--gold-glow);
  border-radius: 9px;
  font-size: 0.76rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.2s;
}

.btn-comm-view-detail:active {
  transform: scale(0.98);
  background: rgba(212, 175, 55, 0.16);
}

.btn-comm-payout {
  padding: 11px 16px;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  border: none;
  color: #fff;
  border-radius: 9px;
  font-size: 0.76rem;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.2s;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.25);
}

.btn-comm-payout:active {
  transform: scale(0.96);
}

/* Modal */
.comm-modal-block {
  background: rgba(10, 12, 18, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.comm-modal-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
}

.comm-modal-label {
  font-size: 0.68rem;
  color: #8b92a5;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.comm-modal-val {
  font-weight: 600;
  color: #f3f4f6;
  text-align: right;
}
