/* 입금 팝업/페이지 — 히어로·이미지 카드 UI */

.dp-hero {
  position: relative;
  margin-bottom: 12px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(0, 174, 239, 0.28);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.dp-hero-img {
  display: block;
  width: 100%;
  height: 118px;
  object-fit: cover;
  object-position: center 40%;
}

.dp-hero-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: row;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.05) 0%, rgba(0, 0, 0, 0.55) 48%, rgba(0, 0, 0, 0.88) 100%);
}

.dp-hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-width: 0;
  flex: 1 1 auto;
}

.dp-quick-account-btn {
  flex: 0 0 auto;
  align-self: center;
  border: 1px solid rgba(255, 210, 120, 0.65);
  border-radius: 999px;
  padding: 8px 14px;
  background: linear-gradient(180deg, #f6c453 0%, #e09a1a 100%);
  color: #1a1205;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: -0.02em;
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
  cursor: pointer;
  transition: transform 0.15s ease, filter 0.15s ease, opacity 0.15s ease;
}

.dp-quick-account-btn:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
}

.dp-quick-account-btn:disabled {
  opacity: 0.65;
  cursor: wait;
  transform: none;
}

.dp-hero-badge {
  display: inline-flex;
  align-self: flex-start;
  margin-bottom: 6px;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(0, 174, 239, 0.22);
  border: 1px solid rgba(0, 174, 239, 0.45);
  color: #9fe8ff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

/* 출금 히어로 — 입금과 동일 이미지, 뱃지 톤만 구분 */
.dp-hero-withdraw {
  border-color: rgba(232, 120, 140, 0.35);
}

.dp-hero-withdraw .dp-hero-badge {
  background: rgba(232, 120, 140, 0.22);
  border-color: rgba(232, 120, 140, 0.5);
  color: #ffc0cb;
}

.dp-hero-title {
  margin: 0;
  color: #fff;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.25;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.45);
}

.dp-hero-desc {
  margin: 4px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 12px;
  line-height: 1.4;
}

.dp-panel-main {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(145deg, rgba(0, 174, 239, 0.06) 0%, rgba(20, 20, 20, 0.98) 42%),
    #141414;
}

.dp-panel-main::before {
  content: "";
  position: absolute;
  top: -40px;
  right: -30px;
  width: 140px;
  height: 140px;
  background: url("/assets/common/images/menu-popup/deposit-wallet.webp?v=1") center / contain no-repeat;
  opacity: 0.08;
  pointer-events: none;
}

.dp-balance {
  gap: 14px;
  justify-content: flex-start;
  padding: 12px 14px;
  background: linear-gradient(135deg, rgba(0, 174, 239, 0.14) 0%, rgba(0, 174, 239, 0.04) 100%);
}

.dp-balance-img {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  object-fit: cover;
  border: 1px solid rgba(0, 174, 239, 0.35);
  box-shadow: 0 4px 14px rgba(0, 174, 239, 0.2);
}

.dp-balance-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.dp-balance-label {
  color: #a1a1aa;
  font-size: 12px;
  font-weight: 600;
}

.dp-balance-value {
  color: #5ec8ff;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.15;
}

.dp-balance-unit {
  margin-left: 2px;
  font-size: 14px;
  font-weight: 700;
}

.dp-amt-btn {
  position: relative;
  overflow: hidden;
}

.dp-amt-btn span {
  position: relative;
  z-index: 1;
}

.dp-amt-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0, 174, 239, 0.12), transparent 60%);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.dp-amt-btn:hover::before,
.dp-amt-btn.is-selected::before {
  opacity: 1;
}

.dp-amt-btn.is-selected {
  border-color: rgba(0, 174, 239, 0.65);
  color: #5ec8ff;
  box-shadow: inset 0 0 0 1px rgba(0, 174, 239, 0.35);
}

.dp-input-wrap {
  position: relative;
  margin-bottom: 16px;
}

.dp-input-wrap .dp-input {
  margin-bottom: 0;
  padding-left: 48px;
}

.dp-input-ico {
  position: absolute;
  left: 12px;
  top: 50%;
  width: 26px;
  height: 26px;
  transform: translateY(-50%);
  object-fit: cover;
  border-radius: 8px;
  opacity: 0.85;
  pointer-events: none;
}

/* 입금 보너스 선택 */
.dp-bonus-box {
  margin: 0 0 16px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
}

.dp-bonus-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.dp-bonus-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  cursor: pointer;
  background: rgba(0, 0, 0, 0.2);
  min-width: 0;
}

.dp-bonus-item:has(input:checked) {
  border-color: rgba(56, 189, 248, 0.55);
  background: rgba(14, 165, 233, 0.12);
}

.dp-bonus-item input {
  margin-top: 3px;
  flex-shrink: 0;
}

.dp-bonus-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.dp-bonus-name {
  font-size: 14px;
  color: #f4f4f5;
  word-break: keep-all;
}

.dp-bonus-meta {
  font-size: 12px;
  color: #a1a1aa;
  line-height: 1.4;
  word-break: keep-all;
}

@media (max-width: 768px) {
  .dp-bonus-list {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .dp-bonus-item {
    flex-direction: row;
    align-items: flex-start;
    text-align: left;
    gap: 10px;
    padding: 10px 12px;
  }

  .dp-bonus-item input {
    margin-top: 3px;
  }

  .dp-bonus-name {
    font-size: 14px;
  }

  .dp-bonus-meta {
    font-size: 12px;
  }
}

.dp-submit {
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 22px rgba(0, 102, 153, 0.35);
}

.dp-submit::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("/assets/common/images/menu-popup/deposit-hero.webp?v=1") center / cover no-repeat;
  opacity: 0.18;
  mix-blend-mode: screen;
}

.dp-submit-text {
  position: relative;
  z-index: 1;
}

.dp-history {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.02) 0%, rgba(20, 20, 20, 1) 100%),
    #141414;
}

.dp-subtitle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.dp-subtitle-ico {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  object-fit: cover;
}

.menu-popup-content .dp-hero {
  margin-bottom: 10px;
}

.menu-popup-content .dp-hero-img {
  height: 96px;
}

.menu-popup-content .dp-hero-title {
  font-size: 16px;
}

.menu-popup-content .dp-balance-value {
  font-size: 18px;
}

.menu-popup-content .dp-balance-img {
  width: 44px;
  height: 44px;
}

/* 금액 입력 줄만 반으로 — 좌측 현재 보유금액, 우측 입력칸 */
.dp-input-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px;
  align-items: stretch;
  margin-bottom: 16px;
}

.dp-input-row .dp-balance-inline {
  margin-bottom: 0;
  height: 100%;
  box-sizing: border-box;
}

.dp-input-row .dp-input-wrap {
  margin-bottom: 0;
}

.dp-input-row .dp-input {
  height: 100%;
}

@media (max-width: 767px) {
  .dp-input-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 575px) {
  .dp-hero-img {
    height: 88px;
  }

  .dp-hero-overlay {
    padding: 12px 14px;
    gap: 8px;
  }

  .dp-hero-title {
    font-size: 16px;
  }

  .dp-hero-desc {
    font-size: 11px;
  }

  .dp-balance-value {
    font-size: 18px;
  }
}

/* 입금내역 — 처리중 상태 + 회전 로딩 */
.dp-status.is-processing {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  white-space: nowrap;
  vertical-align: middle;
}

.dp-status-spin {
  display: inline-block;
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
  vertical-align: middle;
  animation: dp-status-spin-rotate 0.75s linear infinite;
}

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

/* 환전 — 롤링 현황 */
.dp-rolling-box {
  margin: 0 0 16px;
  padding: 14px 14px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.22);
}

.dp-rolling-box.is-pending {
  border-color: rgba(255, 176, 72, 0.35);
}

.dp-rolling-box.is-complete {
  border-color: rgba(80, 200, 140, 0.35);
}

.dp-rolling-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.dp-rolling-title-wrap {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
}

.dp-rolling-title {
  flex: 0 0 auto;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
}

.dp-rolling-names {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 0;
}

.dp-rolling-name-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
  max-width: 100%;
  font-size: 12px;
}

.dp-rolling-name-chip.is-done {
  opacity: 0.65;
}

.dp-rolling-name {
  color: rgba(255, 255, 255, 0.82);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dp-rolling-scope {
  flex: 0 0 auto;
  padding: 1px 6px;
  border-radius: 999px;
  font-size: 10px;
  color: rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.08);
}

.dp-rolling-total {
  flex: 0 0 auto;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.75);
  text-align: right;
  white-space: nowrap;
}

.dp-rolling-badge {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  vertical-align: middle;
}

.dp-rolling-badge.is-ok {
  color: #9dffc8;
  background: rgba(80, 200, 140, 0.18);
}

.dp-rolling-badge.is-remain {
  color: #ffd59a;
  background: rgba(255, 176, 72, 0.18);
}

.dp-rolling-bar {
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

.dp-rolling-bar-fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #f0b35a, #ffd59a);
}

.dp-rolling-box.is-complete .dp-rolling-bar-fill {
  background: linear-gradient(90deg, #3dbf88, #9dffc8);
}

.dp-rolling-hint {
  margin: 10px 0 0;
  font-size: 11px;
  color: #ffd59a;
  line-height: 1.4;
}
