/* 高胜率账户风控 — 交易页限制告知弹窗（proto-aids 隔离） */

.proto-hw-restriction-modal-root .ant-modal-content {
  padding: 0;
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(180deg, #161b22 0%, #0d1117 100%);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.55);
}

.proto-hw-restriction-modal-root .ant-modal-header {
  margin: 0;
  padding: 0;
  background: transparent;
  border: none;
}

.proto-hw-restriction-modal-root .ant-modal-body {
  padding: 0 20px 16px;
}

.proto-hw-restriction-modal-root .ant-modal-footer {
  margin: 0;
  padding: 14px 20px 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.2);
}

.proto-hw-restriction-modal-root .ant-modal-close {
  top: 14px;
  right: 14px;
  color: rgba(255, 255, 255, 0.45);
}

.proto-hw-restriction-modal-root .ant-modal-close:hover {
  color: rgba(255, 255, 255, 0.85);
  background: rgba(255, 255, 255, 0.06);
}

.hw-modal__header {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 20px 20px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: linear-gradient(135deg, rgba(255, 217, 5, 0.08) 0%, transparent 55%);
}

.hw-modal__header--dual {
  background: linear-gradient(135deg, rgba(255, 77, 79, 0.12) 0%, transparent 55%);
}

.hw-modal__header--delay {
  background: linear-gradient(135deg, rgba(250, 173, 20, 0.12) 0%, transparent 55%);
}

.hw-modal__header--appeal {
  background: linear-gradient(135deg, rgba(22, 119, 255, 0.1) 0%, transparent 55%);
}

.hw-modal__icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  background: rgba(255, 217, 5, 0.15);
  border: 1px solid rgba(255, 217, 5, 0.25);
}

.hw-modal__header--dual .hw-modal__icon {
  background: rgba(255, 77, 79, 0.15);
  border-color: rgba(255, 77, 79, 0.3);
}

.hw-modal__header--delay .hw-modal__icon {
  background: rgba(250, 173, 20, 0.15);
  border-color: rgba(250, 173, 20, 0.3);
}

.hw-modal__header--appeal .hw-modal__icon {
  background: rgba(22, 119, 255, 0.15);
  border-color: rgba(22, 119, 255, 0.3);
}

.hw-modal__title-wrap {
  flex: 1;
  min-width: 0;
  padding-right: 24px;
}

.hw-modal__badge {
  display: inline-block;
  margin-bottom: 6px;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #ffd905;
  background: rgba(255, 217, 5, 0.12);
  border: 1px solid rgba(255, 217, 5, 0.28);
}

.hw-modal__header--dual .hw-modal__badge {
  color: #ff7875;
  background: rgba(255, 77, 79, 0.12);
  border-color: rgba(255, 77, 79, 0.28);
}

.hw-modal__header--delay .hw-modal__badge {
  color: #ffc53d;
  background: rgba(250, 173, 20, 0.12);
  border-color: rgba(250, 173, 20, 0.28);
}

.hw-modal__header--appeal .hw-modal__badge {
  color: #69b1ff;
  background: rgba(22, 119, 255, 0.12);
  border-color: rgba(22, 119, 255, 0.28);
}

.hw-modal__title {
  margin: 0 0 4px;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.95);
}

.hw-modal__subtitle {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.45);
}

.hw-modal__reason {
  margin: 16px 0 12px;
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 13px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.82);
  background: rgba(255, 255, 255, 0.04);
  border-left: 3px solid #ffd905;
}

.hw-modal__status-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 14px;
}

.hw-modal__status-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 12px;
  line-height: 1.5;
}

.hw-modal__status-item--warn {
  background: rgba(250, 173, 20, 0.1);
  border: 1px solid rgba(250, 173, 20, 0.22);
  color: #ffc53d;
}

.hw-modal__status-item--error {
  background: rgba(255, 77, 79, 0.1);
  border: 1px solid rgba(255, 77, 79, 0.22);
  color: #ff7875;
}

.hw-modal__status-item--info {
  background: rgba(22, 119, 255, 0.1);
  border: 1px solid rgba(22, 119, 255, 0.22);
  color: #69b1ff;
}

.hw-modal__status-dot {
  flex-shrink: 0;
  width: 6px;
  height: 6px;
  margin-top: 6px;
  border-radius: 50%;
  background: currentColor;
}

.hw-modal__status-text strong {
  display: block;
  margin-bottom: 2px;
  font-weight: 600;
  color: inherit;
}

.hw-modal__status-desc {
  color: rgba(255, 255, 255, 0.55);
  font-size: 11px;
}

.hw-modal__rules {
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.25);
}

.hw-modal__rules-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  font-size: 12px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.hw-modal__rules-hint {
  font-size: 11px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.38);
}

.hw-modal__rule-row {
  display: grid;
  grid-template-columns: 108px 1fr;
  gap: 8px 12px;
  align-items: start;
  padding: 10px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: background 0.15s ease;
}

.hw-modal__rule-row:last-child {
  border-bottom: none;
}

.hw-modal__rule-row:hover {
  background: rgba(255, 255, 255, 0.03);
}

.hw-modal__rule-label {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.45);
  white-space: nowrap;
}

.hw-modal__rule-tip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  font-size: 9px;
  font-weight: 700;
  color: #0d1117;
  background: #faad14;
  cursor: help;
  flex-shrink: 0;
}

.hw-modal__rule-value {
  font-size: 13px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.88);
  word-break: break-word;
}

.hw-modal__footer-btn-primary.ant-btn-primary {
  background: #ffd905 !important;
  border-color: #ffd905 !important;
  color: #0d1117 !important;
  font-weight: 600;
}

.hw-modal__footer-btn-primary.ant-btn-primary:hover {
  background: #ffe566 !important;
  border-color: #ffe566 !important;
  color: #0d1117 !important;
}

.hw-modal__footer-btn-appeal.ant-btn {
  color: rgba(255, 255, 255, 0.75);
  border-color: rgba(255, 255, 255, 0.2);
  background: transparent;
}

.hw-modal__footer-btn-appeal.ant-btn:hover {
  color: #ffd905;
  border-color: rgba(255, 217, 5, 0.45);
  background: rgba(255, 217, 5, 0.06);
}

/* 申诉子弹窗 */
.proto-hw-appeal-modal-root .ant-modal-content {
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #161b22;
}

.proto-hw-appeal-modal-root .ant-modal-header {
  background: transparent;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.proto-hw-appeal-modal-root .ant-modal-title {
  text-align: left;
  color: rgba(255, 255, 255, 0.9);
}

.proto-hw-appeal-modal-root .ant-modal-body {
  padding-top: 16px;
}

.proto-hw-appeal-modal-root .ant-form-item-label > label {
  color: rgba(255, 255, 255, 0.65);
}

.proto-hw-appeal-modal-root .ant-input,
.proto-hw-appeal-modal-root .ant-input-textarea {
  background: rgba(0, 0, 0, 0.3);
  border-color: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.9);
}

.proto-hw-appeal-modal-root .ant-modal-footer .ant-btn-primary {
  background: #ffd905 !important;
  border-color: #ffd905 !important;
  color: #0d1117 !important;
}
