/* Account Management & Fee Settlement Page Styles */

.mgmt-hero-card {
  background: linear-gradient(135deg, rgba(158, 240, 26, 0.06) 0%, rgba(11, 15, 12, 0.9) 100%);
  border: 1px solid rgba(158, 240, 26, 0.2);
  border-radius: var(--radius-md);
}

.mgmt-hero-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(158, 240, 26, 0.15);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 15px;
  flex-shrink: 0;
}

.badge-active-mgmt {
  background: rgba(158, 240, 26, 0.12);
  color: var(--accent);
  border: 1px solid rgba(158, 240, 26, 0.3);
  font-size: 12px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
}

/* KPI Metrics Grid */
.mgmt-metrics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.mgmt-metric-card {
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: all var(--transition-fast);
}

.mgmt-metric-card:hover {
  border-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

.metric-icon-box {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  flex-shrink: 0;
}

.metric-label {
  font-size: 12px;
  color: var(--text-secondary);
  font-weight: 500;
}

.metric-value {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.max-w-640 {
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.section-badge-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(158, 240, 26, 0.1);
  border: 1px solid rgba(158, 240, 26, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 16px;
  flex-shrink: 0;
}

/* Settle Card & Form */
.mgmt-settle-card {
  border: 1px solid var(--border-color-muted);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  background-color: var(--bg-secondary);
}

.mgmt-address-display {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  background: #080c09;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
}

.mgmt-address-text {
  font-family: monospace;
  font-size: 13px;
  color: #ffffff;
  word-break: break-all;
  line-height: 1.5;
}

.mgmt-settle-card .form-group {
  position: relative;
}

.mgmt-settle-card .form-group.select-parent-open {
  z-index: 99999 !important;
}

.mgmt-settle-card select,
#mgmtAssetSelect {
  width: 100%;
  height: 48px;
  padding: 0 16px;
  font-size: 14px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color-muted);
  border-radius: var(--radius-sm);
  color: #ffffff;
}

/* Custom Select Dropdown UI within Settle Fee Card */
.mgmt-settle-card .custom-select-wrapper {
  position: relative;
  width: 100%;
  user-select: none;
  font-family: inherit;
  z-index: 5;
}

.mgmt-settle-card .custom-select-wrapper.open {
  z-index: 99999 !important;
}

.mgmt-settle-card .custom-select-trigger {
  min-height: 48px;
  padding: 12px 16px;
  background-color: var(--bg-tertiary);
  border: 1px solid var(--border-color-muted);
  border-radius: var(--radius-sm);
  color: #ffffff;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  transition: all var(--transition-fast);
  box-sizing: border-box;
}

.mgmt-settle-card .custom-select-trigger:hover {
  border-color: var(--border-color);
}

.mgmt-settle-card .custom-select-wrapper.open .custom-select-trigger {
  border-color: var(--accent);
  box-shadow: 0 0 12px rgba(158, 240, 26, 0.25);
}

.mgmt-settle-card .custom-select-options {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background-color: #0c120e !important;
  border: 1px solid rgba(158, 240, 26, 0.3) !important;
  border-radius: var(--radius-sm);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.95), 0 0 0 1px rgba(255, 255, 255, 0.05);
  max-height: 240px;
  overflow-y: auto;
  z-index: 999999 !important;
}

.mgmt-settle-card .custom-select-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  color: var(--text-secondary);
  font-size: 13.5px;
  cursor: pointer;
  transition: all var(--transition-fast);
  background-color: #0c120e;
}

.mgmt-settle-card .custom-select-option:hover {
  background-color: rgba(158, 240, 26, 0.08);
  color: #ffffff;
}

.mgmt-settle-card .custom-select-option.selected {
  background-color: rgba(158, 240, 26, 0.15);
  color: var(--accent);
  font-weight: 600;
}

.mgmt-settle-card .input-wrapper input {
  height: 48px;
  padding-left: 42px;
  padding-right: 16px;
  font-size: 15px;
  font-weight: 600;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color-muted);
  border-radius: var(--radius-sm);
  color: #ffffff;
}

.btn-text-accent {
  background: none;
  border: none;
  color: var(--accent);
  cursor: pointer;
  padding: 0;
  font-weight: 600;
  transition: opacity var(--transition-fast);
}

.btn-text-accent:hover {
  opacity: 0.8;
  text-decoration: underline;
}

/* History Card */
.mgmt-history-card {
  border: 1px solid var(--border-color-muted);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  background-color: var(--bg-secondary);
}

/* Status Badges */
.mgmt-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  padding: 3px 10px;
  border-radius: 12px;
  font-weight: 600;
}

.mgmt-status-processing {
  background: rgba(234, 179, 8, 0.15);
  color: #eab308;
  border: 1px solid rgba(234, 179, 8, 0.4);
}

.mgmt-status-successful {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.4);
}

.mgmt-status-rejected {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.4);
}

/* Processing Modal */
.mgmt-modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(5px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  padding: 20px;
}

.mgmt-modal-card {
  background: #0f1410;
  border: 1px solid rgba(158, 240, 26, 0.3);
  border-radius: 18px;
  max-width: 440px;
  width: 100%;
  padding: 32px 26px;
  text-align: center;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.85);
}

.mgmt-modal-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(234, 179, 8, 0.15);
  color: #eab308;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin: 0 auto 18px;
  border: 1px solid rgba(234, 179, 8, 0.4);
}

/* Responsive */
@media (max-width: 1024px) {
  .mgmt-metrics-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .mgmt-hero-card {
    padding: 20px 18px !important;
  }
  .mgmt-metric-card {
    padding: 18px 16px !important;
  }
  .mgmt-settle-card,
  .mgmt-history-card {
    padding: 20px 16px !important;
  }
  .mgmt-metrics-grid {
    grid-template-columns: 1fr;
  }
}
