/* select.html 전용 스타일 */
.select-container {
  margin: 0 auto;
  padding: 0.5rem 2rem 1rem 2rem;
  height: calc(1080px - 70px); /* 상단 네비게이션 바 높이 제외 */
  overflow-y: auto; /* 세로 스크롤 허용 */
  overflow-x: auto; /* 가로 스크롤 숨김 */
}

/* 통계 카드 스타일 */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.stat-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1.2rem;
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--progress-bar);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.stat-card:hover::before {
  transform: scaleX(1);
}

.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.stat-icon {
  font-size: 2rem;
  color: var(--progress-bar);
  margin-bottom: 0.5rem;
}

.stat-value {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.stat-subtitle {
  font-size: 0.7rem;
  color: var(--progress-bar);
  font-weight: 400;
  margin-top: 0.25rem;
  opacity: 0.8;
}

/* 예치금 카드 내 지갑 정보 스타일 */
.deposit-wallet-card {
  position: relative;
  overflow: visible;
}

.wallet-info-section {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.wallet-info-compact {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 0.75rem;
  font-size: 0.8rem;
  flex-wrap: wrap;
}

.wallet-network {
  background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
  color: white;
  padding: 0.2rem 0.6rem;
  border-radius: 12px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.wallet-separator {
  color: var(--text-secondary);
  font-weight: 500;
}

.wallet-address-text {
  color: var(--text-primary);
  font-weight: 500;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.75rem;
}

.copy-btn-compact {
  flex-shrink: 0;
  padding: 0.2rem 0.4rem;
  font-size: 0.7rem;
  border-radius: 4px;
  transition: all 0.3s ease;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--text-primary);
}

.copy-btn-compact:hover {
  background: var(--progress-bar);
  border-color: var(--progress-bar);
  color: white;
  transform: scale(1.05);
}

/* 봇 카드 스타일 개선 */
.bot-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.2rem;
  margin-bottom: 1rem;
  min-height: 600px;
  align-content: start;
}

.bot-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  transition: all 0.3s ease;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  min-height: 280px;
  display: flex;
  flex-direction: column;
}

.bot-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
  border-color: var(--progress-bar);
}

.bot-card.disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.bot-card.disabled:hover {
  transform: none;
  box-shadow: none;
}

/* 봇 카드 헤더 */
.bot-card-header {
  display: flex;
  gap: 16px;
  background: linear-gradient(135deg, rgba(var(--progress-bar-rgb), 0.1) 0%, rgba(var(--bg-primary-rgb), 0.05) 100%);
  padding: 1.2rem;
  border-bottom: 1px solid var(--border-color);
  position: relative;
}

.bot-status-badge {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  padding: 0.3rem 0.6rem;
  border-radius: 12px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
  z-index: 1;
}

.bot-status-badge.active {
  background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
  color: white;
}

.bot-status-badge.subscribed {
  background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
  color: white;
}

.bot-status-badge.inactive {
  background: linear-gradient(135deg, #e17055 0%, #d63031 100%);
  color: white;
}

.bot-status-badge.paused {
  background: linear-gradient(135deg, #fdcb6e 0%, #e17055 100%);
  color: white;
}

.bot-status-badge.pending {
  background: linear-gradient(135deg, #fdcb6e 0%, #e17055 100%);
  color: white;
}

.bot-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--progress-bar) 0%, #6c5ce7 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bot-icon i {
  font-size: 1.5rem;
  color: white;
}

.bot-name {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.bot-description {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

/* 봇 카드 바디 */
.bot-card-body {
  padding: 1.2rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

/* 통합된 코인 및 거래소 정보 섹션 */
.coin-exchange-section {
  background: rgba(var(--bg-primary-rgb), 0.3);
  border-radius: 12px;
  padding: 1rem;
  margin-bottom: 1rem;
  border: 1px solid var(--border-color);
}

.coin-exchange-header {
  display: flex;
  align-items: center;
}

.coin-logo {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  margin-right: 0.75rem;
  background: var(--bg-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.8rem;
  color: var(--text-primary);
}

.coin-exchange-info {
  flex-grow: 1;
}

.coin-name {
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.exchange-pair-info {
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.exchange-name {
  font-weight: 500;
  color: var(--text-primary);
}

.separator {
  color: var(--text-secondary);
  opacity: 0.6;
}

.trading-pair {
  background: rgba(var(--progress-bar-rgb), 0.1);
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  font-weight: 500;
}

.exchange-logo-img {
  height: 24px;
  width: auto;
  max-width: 80px;
  object-fit: contain;
  margin-bottom: 0.5rem;
}

/* 거래 설정 정보 */
.trading-specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.spec-item {
  background: rgba(var(--bg-primary-rgb), 0.1);
  border-radius: 8px;
  padding: 0.75rem;
  text-align: center;
  border: 1px solid var(--border-color);
}

.spec-label {
  font-size: 0.7rem;
  color: var(--text-secondary);
  margin-bottom: 0.25rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.spec-value {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
}

/* 액션 버튼 */
.bot-actions {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
}

.start-bot-btn {
  width: 100%;
  padding: 0.875rem;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: linear-gradient(135deg, var(--progress-bar) 0%, #6c5ce7 100%);
  border: none;
  color: white;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.start-bot-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.start-bot-btn:hover::before {
  left: 100%;
}

.start-bot-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 123, 255, 0.3);
}

.start-bot-btn:disabled {
  background: var(--text-secondary);
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* 추가 봇 카드 */
.add-bot-card {
  border: 2px dashed var(--border-color);
  background: linear-gradient(135deg, rgba(var(--progress-bar-rgb), 0.05) 0%, rgba(var(--bg-primary-rgb), 0.02) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  min-height: 280px;
  border-radius: 16px;
}

.add-bot-card:hover {
  border-color: var(--progress-bar);
  background: linear-gradient(135deg, rgba(var(--progress-bar-rgb), 0.1) 0%, rgba(var(--bg-primary-rgb), 0.05) 100%);
  transform: translateY(-6px);
  box-shadow: 0 12px 35px rgba(0, 123, 255, 0.15);
}

.add-bot-content {
  text-align: center;
  color: var(--text-secondary);
}

.add-bot-icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, var(--progress-bar) 0%, #6c5ce7 100%);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  transition: all 0.3s ease;
}

.add-bot-card:hover .add-bot-icon {
  transform: scale(1.1);
}

.add-bot-icon i {
  font-size: 2rem;
  color: white;
}

.add-bot-title {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.add-bot-description {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.4;
}



/* 로딩 상태 */
.loading-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 6rem 2rem;
  min-height: 400px;
}

.loading-spinner {
  width: 60px;
  height: 60px;
  border: 5px solid var(--border-color);
  border-top: 5px solid var(--progress-bar);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 2rem;
}

.loading-text {
  color: var(--text-secondary);
  font-size: 1.1rem;
  font-weight: 500;
  text-align: center;
  line-height: 1.5;
}

.loading-subtext {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-top: 0.5rem;
  opacity: 0.8;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* 에러 상태 */
.error-container {
  background: linear-gradient(135deg, rgba(220, 53, 69, 0.1) 0%, rgba(220, 53, 69, 0.05) 100%);
  border: 1px solid #dc3545;
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  margin-bottom: 2rem;
}

.error-icon {
  font-size: 3rem;
  color: #dc3545;
  margin-bottom: 1rem;
}

.error-title {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.error-message {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.retry-btn {
  background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
  border: none;
  border-radius: 8px;
  padding: 0.75rem 1.5rem;
  color: white;
  font-weight: 600;
  transition: all 0.3s ease;
}

.retry-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(220, 53, 69, 0.3);
}

/* 모달 z-index 개선 - 더 높은 뎁스 */
.modal {
  z-index: 99999 !important;
}

.modal-backdrop {
  z-index: 99998 !important;
}

/* 부트스트랩 모달 기본 z-index 재정의 */
.modal-dialog {
  z-index: 100000 !important;
}

/* 지갑 모달 z-index 강화 */
#walletModal {
  z-index: 100001 !important;
}

#walletModal .modal-backdrop {
  z-index: 100000 !important;
}

#walletModal .modal-dialog {
  z-index: 100002 !important;
}

/* 봇 신청 모달 z-index 강화 */
#botApplyModal {
  z-index: 100003 !important;
}

#botApplyModal .modal-backdrop {
  z-index: 100002 !important;
}

#botApplyModal .modal-dialog {
  z-index: 100004 !important;
}

/* 구독 관리 모달 z-index 강화 */
#botSubscriptionModal {
  z-index: 100003 !important;
}

#botSubscriptionModal .modal-backdrop {
  z-index: 100002 !important;
}

#botSubscriptionModal .modal-dialog {
  z-index: 100004 !important;
}

/* 예치금 충전 모달 z-index 강화 */
#depositModal {
  z-index: 100005 !important;
}

#depositModal .modal-backdrop {
  z-index: 100004 !important;
}

#depositModal .modal-dialog {
  z-index: 100006 !important;
}

/* 사용자 정보 모달 z-index 강화 */
.modal.show {
  z-index: 100007 !important;
}

.modal.show .modal-dialog {
  z-index: 100008 !important;
}

/* 새 봇 생성 모달 z-index 강화 */
#createBotModal {
  z-index: 100009 !important;
}

#createBotModal .modal-backdrop {
  z-index: 100008 !important;
}

#createBotModal .modal-dialog {
  z-index: 100010 !important;
}

/* 봇 등록 관리 모달 z-index 강화 */
#botRegistrationModal {
  z-index: 100011 !important;
}

#botRegistrationModal .modal-backdrop {
  z-index: 100010 !important;
}

#botRegistrationModal .modal-dialog {
  z-index: 100012 !important;
}

/* 코인 등록 모달 폭 축소 */
#coinRequestModal .modal-dialog {
  max-width: 500px !important;
}

/* 배지 스타일 개선 */
.badge {
  font-size: 0.65rem;
  padding: 0.3rem 0.6rem;
}

.badge.bg-info {
  background-color: var(--progress-bar) !important;
}

.badge.bg-secondary {
  background-color: var(--text-secondary) !important;
  color: var(--bg-primary);
}

/* 사용자 정보 표시 스타일 */
.user-info-display {
  display: flex;
  align-items: center;
  font-size: 0.85rem;
}

.user-stats {
  color: var(--text-secondary);
}

.subscription-status {
  display: flex;
  align-items: center;
}

/* 헤더 배지 스타일 */
.top-navbar .badge {
  font-size: 0.75rem;
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.top-navbar .badge:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* 헤더 버튼 스타일 */
.top-navbar .btn {
  font-size: 0.875rem;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-weight: 500;
  transition: all 0.2s ease;
}

.top-navbar .btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* 사용자 정보 섹션 간격 */
.user-info-display .gap-3 {
  gap: 1rem !important;
}

/* 봇이 없을 때 빈 상태 */
.empty-bot-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 600px;
  background: var(--bg-secondary);
  border: 2px dashed var(--border-color);
  border-radius: 16px;
  color: var(--text-secondary);
}

.empty-bot-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
  color: var(--text-secondary);
  opacity: 0.5;
}

.empty-bot-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.empty-bot-description {
  font-size: 1rem;
  text-align: center;
  line-height: 1.5;
  margin-bottom: 2rem;
}

.empty-bot-btn {
  background: linear-gradient(135deg, var(--progress-bar) 0%, #6c5ce7 100%);
  border: none;
  border-radius: 12px;
  padding: 1rem 2rem;
  color: white;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.empty-bot-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 123, 255, 0.3);
}

/* 봇별 신청 관련 스타일 추가 */
.bot-subscription-info {
  background: linear-gradient(135deg, rgba(var(--progress-bar-rgb), 0.1) 0%, rgba(var(--bg-primary-rgb), 0.1) 100%);
  border-radius: 8px;
  padding: 0.75rem;
  margin-bottom: 1rem;
  border: 1px solid var(--border-color);
}

/* 지갑 등록 관련 스타일 */
.wallet-warning {
  background: linear-gradient(135deg, rgba(255, 193, 7, 0.1) 0%, rgba(255, 193, 7, 0.05) 100%);
  border: 1px solid #ffc107;
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.wallet-info {
  background: rgba(var(--bg-primary-rgb), 0.3);
  border-radius: 8px;
  padding: 0.75rem;
  margin-bottom: 0.75rem;
  border: 1px solid var(--border-color);
}

.wallet-address {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.8rem;
  color: var(--text-primary);
  background: var(--bg-primary);
  padding: 0.5rem;
  border-radius: 6px;
  border: 1px solid var(--border-color);
  word-break: break-all;
}

/* 지갑 정보 카드 스타일 */
.wallet-info-card {
  background: linear-gradient(135deg, rgba(52, 152, 219, 0.1) 0%, rgba(52, 152, 219, 0.05) 100%);
  border: 1px solid rgba(52, 152, 219, 0.2);
  border-radius: 12px;
  padding: 1rem;
  transition: all 0.3s ease;
}

.wallet-info-card:hover {
  border-color: rgba(52, 152, 219, 0.4);
  box-shadow: 0 4px 15px rgba(52, 152, 219, 0.1);
}

.wallet-info-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.wallet-status {
  display: flex;
  align-items: center;
  font-weight: 600;
  color: var(--text-primary);
}

.wallet-status-text {
  font-size: 0.9rem;
}

.wallet-type-badge {
  background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.wallet-address-display {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 0.75rem;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.85rem;
}

.wallet-address-text {
  color: var(--text-primary);
  font-weight: 500;
  word-break: break-all;
  margin-right: 0.5rem;
}

.copy-btn {
  flex-shrink: 0;
  padding: 0.25rem 0.5rem;
  font-size: 0.75rem;
  border-radius: 6px;
  transition: all 0.3s ease;
}

.copy-btn:hover {
  background: var(--progress-bar);
  border-color: var(--progress-bar);
  color: white;
  transform: scale(1.05);
}

.wallet-update-section {
  background: rgba(var(--bg-primary-rgb), 0.5);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 1rem;
}

/* 구독 등급 스타일 */
.subscription-tier {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-left: 0.5rem;
}

.subscription-tier.bronze {
  background: linear-gradient(135deg, #cd7f32 0%, #b8860b 100%);
  color: white;
}

.subscription-tier.silver {
  background: linear-gradient(135deg, #c0c0c0 0%, #a8a8a8 100%);
  color: white;
}

.subscription-tier.gold {
  background: linear-gradient(135deg, #ffd700 0%, #ffb347 100%);
  color: #333;
}

.subscription-tier.platinum {
  background: linear-gradient(135deg, #e5e4e2 0%, #bcc6cc 100%);
  color: #333;
}

/* 봇 구독 정보 아이콘 스타일 */
.bot-subscription-info-icon {
  transition: all 0.3s ease;
}

.bot-subscription-info-icon:hover {
  transform: scale(1.1);
  color: #17a2b8 !important;
}

.subscription-status-info {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 커스텀 툴팁 스타일 */
.tooltip {
  font-family: 'Inter', sans-serif;
}

.tooltip-inner {
  background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
  color: white;
  border-radius: 12px;
  padding: 12px 16px;
  font-size: 0.85rem;
  line-height: 1.5;
  max-width: 300px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  text-align: left;
}

/* 툴팁 내부 요소 스타일 */
.tooltip-header {
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 8px;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  color: #74b9ff;
}

.tooltip-section {
  margin-bottom: 8px;
}

.tooltip-section:last-child {
  margin-bottom: 0;
}

.tooltip-section-title {
  font-weight: 600;
  font-size: 0.8rem;
  color: #fdcb6e;
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.tooltip-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 3px;
  font-size: 0.8rem;
}

.tooltip-item:last-child {
  margin-bottom: 0;
}

.tooltip-label {
  color: #bdc3c7;
  font-weight: 500;
}

.tooltip-value {
  color: white;
  font-weight: 600;
  text-align: right;
}

.tooltip-value.success {
  color: #00b894;
}

.tooltip-value.price {
  color: #26a69a;
  font-family: 'IBM Plex Mono', monospace;
}

.tooltip.bs-tooltip-top .tooltip-arrow::before {
  border-top-color: #2c3e50;
}

.tooltip.bs-tooltip-bottom .tooltip-arrow::before {
  border-bottom-color: #2c3e50;
}

.tooltip.bs-tooltip-start .tooltip-arrow::before {
  border-left-color: #2c3e50;
}

.tooltip.bs-tooltip-end .tooltip-arrow::before {
  border-right-color: #2c3e50;
}

/* 봇 구독 기간 표시 */
.subscription-time-left {
  background: rgba(var(--progress-bar-rgb), 0.1);
  border-radius: 6px;
  padding: 0.4rem 0.6rem;
  font-size: 0.7rem;
  font-weight: 500;
  margin-top: 0.5rem;
  text-align: center;
  border: 1px solid rgba(var(--progress-bar-rgb), 0.2);
}

.time-left-warning {
  background: rgba(255, 193, 7, 0.1);
  border-color: #ffc107;
  color: #f39c12;
}

.time-left-danger {
  background: rgba(220, 53, 69, 0.1);
  border-color: #dc3545;
  color: #e74c3c;
}

/* USDT 가격 표시 */
.usdt-price {
  font-family: "IBM Plex Mono", monospace;
  color: #26a69a;
  font-weight: 700;
}

/* 지갑 등록 모달 스타일 */
.wallet-input-group {
  position: relative;
  margin-bottom: 1rem;
}

.wallet-input {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.9rem;
  padding: 0.75rem 3rem 0.75rem 1rem;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  background: var(--bg-primary);
  color: var(--text-primary);
  width: 100%;
}

.wallet-validate-btn {
  position: absolute;
  right: 0.5rem;
  top: 50%;
  transform: translateY(-50%);
  background: var(--progress-bar);
  border: none;
  border-radius: 6px;
  padding: 0.4rem 0.8rem;
  color: white;
  font-size: 0.8rem;
  cursor: pointer;
}

.wallet-validate-btn:hover {
  background: #0056b3;
}

.qr-container {
  text-align: center;
  background: white;
  padding: 1rem;
  border-radius: 8px;
  margin: 1rem 0;
}

.bot-price {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.price-amount {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--progress-bar);
}

.price-period {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.subscription-status {
  font-size: 0.75rem;
  padding: 0.25rem 0.5rem;
  border-radius: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.subscription-status.subscribed {
  background: linear-gradient(135deg, #00b894 0%, #00cec9 100%);
  color: white;
}

.subscription-status.expired {
  background: linear-gradient(135deg, #e17055 0%, #d63031 100%);
  color: white;
}

.subscription-status.pending {
  background: linear-gradient(135deg, #fdcb6e 0%, #e17055 100%);
  color: white;
}

.bot-features {
  margin-bottom: 1rem;
}

.feature-item {
  display: flex;
  align-items: center;
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin-bottom: 0.25rem;
}

.feature-item i {
  margin-right: 0.5rem;
  color: var(--progress-bar);
  font-size: 0.7rem;
}

.apply-bot-btn {
  width: 100%;
  padding: 0.875rem;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border: none;
  color: white;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  margin-bottom: 0.5rem;
}

.apply-bot-btn.primary {
  background: linear-gradient(135deg, var(--progress-bar) 0%, #6c5ce7 100%);
}

.apply-bot-btn.secondary {
  background: linear-gradient(135deg, #74b9ff 0%, #0984e3 100%);
}

.apply-bot-btn.success {
  background: linear-gradient(135deg, #00b894 0%, #00cec9 100%);
}

.apply-bot-btn.warning {
  background: linear-gradient(135deg, #fdcb6e 0%, #e17055 100%);
}

.apply-bot-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 123, 255, 0.3);
}

.apply-bot-btn:disabled {
  background: var(--text-secondary);
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* 봇 신청 모달 스타일 */
.bot-apply-modal .modal-dialog {
  max-width: 800px;
}

.plan-option {
  border: 2px solid var(--border-color);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 0;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.plan-option:hover {
  border-color: var(--progress-bar);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 123, 255, 0.15);
}

.plan-option.selected {
  border-color: var(--progress-bar);
  background: linear-gradient(135deg, rgba(var(--progress-bar-rgb), 0.1) 0%, rgba(var(--bg-primary-rgb), 0.05) 100%);
}

.plan-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.plan-name {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
}

.plan-price {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--progress-bar);
}

.plan-period {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.plan-features {
  list-style: none;
  padding: 0;
  margin: 0;
  flex-grow: 1;
}

.plan-features li {
  display: flex;
  align-items: center;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.plan-features li i {
  margin-right: 0.75rem;
  color: var(--progress-bar);
  font-size: 0.8rem;
}

.popular-badge {
  position: absolute;
  top: -10px;
  right: 20px;
  background: linear-gradient(135deg, #ff7675 0%, #d63031 100%);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* 결제 정보 스타일 */
.payment-summary {
  background: var(--bg-secondary);
  border-radius: 12px;
  padding: 1.5rem;
  border: 1px solid var(--border-color);
  margin-top: 1.5rem;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.75rem;
  font-size: 0.9rem;
}

.summary-row.total {
  border-top: 1px solid var(--border-color);
  padding-top: 0.75rem;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--progress-bar);
}

/* 봇 생성 카드 개선 */
.create-bot-card {
  border: 2px dashed #4caf50;
  background: linear-gradient(135deg, rgba(76, 175, 80, 0.05) 0%, rgba(76, 175, 80, 0.02) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  min-height: 280px;
  border-radius: 16px;
}

.create-bot-card:hover {
  border-color: #4caf50;
  background: linear-gradient(135deg, rgba(76, 175, 80, 0.1) 0%, rgba(76, 175, 80, 0.05) 100%);
  transform: translateY(-6px);
  box-shadow: 0 12px 35px rgba(76, 175, 80, 0.15);
}

.create-content {
  text-align: center;
  color: var(--text-secondary);
}

.create-icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, #4caf50 0%, #45a049 100%);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  transition: all 0.3s ease;
}

.create-bot-card:hover .create-icon {
  transform: scale(1.1);
}

.create-icon i {
  font-size: 2rem;
  color: white;
}

.create-title {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.create-description {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

/* 예치금 충전 모달 스타일 */
.deposit-option {
  border: 2px solid var(--border-color);
  border-radius: 12px;
  padding: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
}

.deposit-option:hover {
  border-color: var(--progress-bar);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 123, 255, 0.15);
}

.deposit-option.selected {
  border-color: var(--progress-bar);
  background: linear-gradient(135deg, rgba(var(--progress-bar-rgb), 0.1) 0%, rgba(var(--bg-primary-rgb), 0.05) 100%);
}

.deposit-amount {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.deposit-bonus {
  font-size: 0.8rem;
  color: #28a745;
  font-weight: 600;
}

/* 새 봇 생성 모달 스타일 */
.progress-steps {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  position: relative;
}

.step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 20px;
  left: 50%;
  width: 100%;
  height: 2px;
  background: var(--border-color);
  z-index: 1;
}

.step.completed:not(:last-child)::after {
  background: var(--progress-bar);
}

.step-number {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--border-color);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  margin-bottom: 0.5rem;
  position: relative;
  z-index: 2;
  transition: all 0.3s ease;
}

.step.active .step-number {
  background: var(--progress-bar);
  color: white;
}

.step.completed .step-number {
  background: #28a745;
  color: white;
}

.step-label {
  font-size: 0.8rem;
  color: var(--text-secondary);
  text-align: center;
  font-weight: 500;
}

.step.active .step-label {
  color: var(--progress-bar);
  font-weight: 600;
}

.step.completed .step-label {
  color: #28a745;
  font-weight: 600;
}

.step-content {
  min-height: 300px;
}

.setting-summary {
  background: rgba(var(--bg-primary-rgb), 0.1);
  border-radius: 8px;
  padding: 1rem;
  border: 1px solid var(--border-color);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* 서비스 업체 지갑 정보 스타일 */
.company-wallet-info {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 1rem;
  border: 1px solid var(--border-color);
}

.wallet-network-badge {
  background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
  color: white;
  padding: 0.3rem 0.8rem;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: inline-block;
  margin-bottom: 0.75rem;
}

.wallet-address-display {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 0.75rem;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.85rem;
}

.wallet-address-text {
  color: var(--text-primary);
  font-weight: 500;
  word-break: break-all;
  margin-right: 0.75rem;
}

.copy-btn {
  flex-shrink: 0;
  padding: 0.3rem 0.6rem;
  font-size: 0.8rem;
  border-radius: 6px;
  transition: all 0.3s ease;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--text-primary);
}

.copy-btn:hover {
  background: var(--progress-bar);
  border-color: var(--progress-bar);
  color: white;
  transform: scale(1.05);
}

/* 충전 안내 스타일 */
.deposit-instructions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.instruction-item {
  display: flex;
  align-items: center;
  font-size: 0.9rem;
  color: var(--text-primary);
}

.instruction-item i {
  background: var(--progress-bar);
  color: white;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 600;
  margin-right: 0.75rem;
}

/* 고객센터 정보 스타일 */
.customer-service-info {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  padding: 1rem;
  border: 1px solid var(--border-color);
}

.contact-item {
  display: flex;
  align-items: center;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  color: var(--text-primary);
}

.contact-item:last-child {
  margin-bottom: 0;
}

.contact-item i {
  color: var(--progress-bar);
  width: 20px;
  text-align: center;
  margin-right: 0.75rem;
}

/* API KEY 관련 스타일 */
.api-key-name {
  font-weight: 600;
  color: var(--text-primary);
  margin-right: 0.5rem;
}

.api-key-preview {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.8rem;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.1);
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
  margin-right: 0.5rem;
}

/* 제한 증가 모달 관련 스타일 */
.current-limit-info {
  background: linear-gradient(135deg, rgba(var(--bg-primary-rgb), 0.1) 0%, rgba(var(--border-color-rgb), 0.05) 100%);
  border-radius: 8px;
  padding: 16px;
  border: 1px solid var(--border-color);
}

.limit-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.limit-item:last-child {
  margin-bottom: 0;
}

.limit-label {
  color: var(--text-secondary);
  font-size: 14px;
}

.limit-value {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 14px;
}

.limit-option {
  background: linear-gradient(135deg, var(--bg-secondary) 0%, rgba(var(--bg-primary-rgb), 0.1) 100%);
  border: 2px solid var(--border-color);
  border-radius: 12px;
  padding: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
}

.limit-option:hover {
  border-color: var(--progress-bar);
  box-shadow: 0 4px 12px rgba(var(--progress-bar-rgb), 0.15);
  transform: translateY(-2px);
}

.limit-option.selected {
  border-color: var(--progress-bar);
  background: linear-gradient(135deg, rgba(var(--progress-bar-rgb), 0.1) 0%, rgba(var(--progress-bar-rgb), 0.05) 100%);
  box-shadow: 0 4px 16px rgba(var(--progress-bar-rgb), 0.25);
}

.option-header {
  margin-bottom: 8px;
}

.option-value {
  font-size: 18px;
  font-weight: 700;
  color: var(--progress-bar);
  margin-bottom: 4px;
}

.option-price {
  font-size: 14px;
  font-weight: 600;
  color: #28a745;
}

.option-description {
  font-size: 12px;
  color: var(--text-secondary);
}

.payment-summary {
  background: linear-gradient(135deg, rgba(var(--bg-primary-rgb), 0.1) 0%, rgba(var(--border-color-rgb), 0.05) 100%);
  border-radius: 8px;
  padding: 16px;
  border: 1px solid var(--border-color);
}

.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid var(--border-color);
}

.summary-row:last-child {
  border-bottom: none;
}

.summary-row.total {
  font-weight: 600;
  color: var(--text-primary);
  border-top: 2px solid var(--border-color);
  margin-top: 8px;
  padding-top: 12px;
}

.usdt-price {
  color: #28a745;
  font-weight: 700;
}

/* 양쪽 섹션 레이아웃 */
.two-column-layout {
  display: flex;
  gap: 2rem;
  margin-top: 1rem;
  height: 900px;
}

.left-section {
  flex: 0 0 400px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1rem;
  overflow-y: auto;
}

/* 예치금 카드 스타일 */
.deposit-card {
  margin-bottom: 1rem;
}

.deposit-card .stat-card {
  margin-bottom: 0;
  padding: 0.75rem;
  min-height: auto;
}

.deposit-card .stat-card .stat-icon {
  font-size: 1.2rem;
  margin-bottom: 0.3rem;
}

.deposit-card .stat-card .stat-value {
  font-size: 1.3rem;
  margin-bottom: 0.2rem;
}

.deposit-card .stat-card .stat-label {
  font-size: 0.8rem;
  margin-bottom: 0.1rem;
}

.deposit-card .stat-card .stat-subtitle {
  font-size: 0.65rem;
  margin-top: 0.1rem;
}

.deposit-card .wallet-info-section {
  margin-top: 0.5rem;
  padding-top: 0.5rem;
}

.deposit-card .wallet-info-compact {
  padding: 0.5rem;
  font-size: 0.7rem;
}

.right-section {
  flex: 1;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1rem;
  overflow-y: auto;
}

/* 봇 목록 스타일 */
.bot-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.bot-list-item {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 0.75rem;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
}

.bot-list-item:hover {
  border-color: var(--progress-bar);
  box-shadow: 0 4px 12px rgba(var(--progress-bar-rgb), 0.15);
  transform: translateY(-2px);
}

.bot-list-item.selected {
  border-color: var(--progress-bar);
  background: linear-gradient(135deg, rgba(var(--progress-bar-rgb), 0.1) 0%, rgba(var(--progress-bar-rgb), 0.05) 100%);
  box-shadow: 0 4px 16px rgba(var(--progress-bar-rgb), 0.25);
}

.bot-list-item.disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.bot-list-item.disabled:hover {
  transform: none;
  box-shadow: none;
}

.bot-list-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
  padding-right: 80px;
}

.bot-list-header .bot-icon {
  width: 35px;
  height: 35px;
  background: linear-gradient(135deg, var(--progress-bar) 0%, rgba(var(--progress-bar-rgb), 0.8) 100%);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1rem;
  flex-shrink: 0;
}

.bot-info {
  flex: 1;
}

.bot-name {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 0.9rem;
  margin-bottom: 0.2rem;
}

.bot-symbol {
  color: var(--text-secondary);
  font-size: 0.8rem;
}

.bot-list-details {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
}

.exchange-info {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-secondary);
}

.exchange-logo-small {
  height: 18px;
  border-radius: 4px;
  flex-shrink: 0;
}

.trading-pair {
  color: var(--text-primary);
  font-weight: 500;
}

.bot-price {
  color: var(--progress-bar);
  font-weight: 600;
}

.price-amount {
  font-size: 0.9rem;
}

.price-period {
  font-size: 0.75rem;
  opacity: 0.8;
}

/* 봇 리스트 액션 영역 */
.bot-list-actions {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border-color);
}

.subscription-expiry {
  display: flex;
  align-items: center;
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

.subscription-expiry i {
  color: var(--progress-bar);
  margin-right: 0.25rem;
}

.action-buttons {
  display: flex;
  gap: 0.5rem;
}

.start-btn, .subscribe-btn, .activate-btn {
  flex: 1;
  padding: 0.5rem 0.75rem;
  border: none;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.start-btn {
  background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
  color: white;
}

.start-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

.subscribe-btn {
  background: linear-gradient(135deg, var(--progress-bar) 0%, rgba(var(--progress-bar-rgb), 0.8) 100%);
  color: white;
}

.subscribe-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(var(--progress-bar-rgb), 0.3);
}

.activate-btn {
  background: linear-gradient(135deg, #ffc107 0%, #e0a800 100%);
  color: white;
}

.activate-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(255, 193, 7, 0.3);
}

/* 신규 봇 생성 리스트 아이템 */
.create-bot-list-item {
  background: linear-gradient(135deg, rgba(var(--progress-bar-rgb), 0.1) 0%, rgba(var(--bg-primary-rgb), 0.05) 100%);
  border: 2px dashed var(--border-color);
  border-radius: 8px;
  padding: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
}

.create-bot-list-item:hover {
  border-color: var(--progress-bar);
  background: linear-gradient(135deg, rgba(var(--progress-bar-rgb), 0.15) 0%, rgba(var(--progress-bar-rgb), 0.05) 100%);
  transform: translateY(-2px);
}

.create-bot-list-item .create-content {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.create-bot-list-item .create-icon {
  width: 40px;
  height: 40px;
  background: var(--progress-bar);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.2rem;
}

.create-text h5 {
  color: var(--text-primary);
  margin-bottom: 0.4rem;
  font-weight: 600;
  font-size: 0.9rem;
}

.create-text p {
  color: var(--text-secondary);
  font-size: 0.8rem;
  margin: 0;
}

/* 봇 상세 정보 스타일 */
.bot-detail-container {
  height: 100%;
}

.bot-detail-header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-color);
}

.bot-detail-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--progress-bar) 0%, rgba(var(--progress-bar-rgb), 0.8) 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.8rem;
}

.bot-detail-info {
  flex: 1;
}

.bot-detail-name {
  color: var(--text-primary);
  font-weight: 700;
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.bot-detail-symbol {
  color: var(--text-secondary);
  font-size: 1rem;
}

.bot-detail-status {
  display: flex;
  align-items: center;
}

/* 1:2 분할 레이아웃 */
.detail-split-layout {
  display: flex;
  gap: 2rem;
  height: calc(100% - 120px); /* 헤더 높이 제외 */
}

/* 왼쪽: 정보 패널 */
.info-panel {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  overflow-y: auto;
}

/* 오른쪽: 관리 패널 */
.management-panel {
  flex: 2;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  overflow-y: auto;
}

/* 정보 섹션 스타일 */
.info-section {
  background: var(--bg-primary);
  border-radius: 12px;
  padding: 1.5rem;
  border: 1px solid var(--border-color);
}

.info-section-title {
  color: var(--text-primary);
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
}

.info-content {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.info-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
}

.info-label {
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  display: flex;
  align-items: center;
}

.info-value {
  color: var(--text-primary);
  font-weight: 600;
  font-size: 0.9rem;
  text-align: right;
}

.info-value.price {
  color: var(--progress-bar);
  font-weight: 700;
}

.subscription-plan-name {
  color: var(--text-primary);
  font-weight: 600;
  margin-right: 0.5rem;
}

/* 액션 섹션 스타일 */
.action-section {
  background: var(--bg-primary);
  border-radius: 12px;
  padding: 1.5rem;
  border: 1px solid var(--border-color);
}

.subscribed-actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.full-width {
  width: 100%;
}

/* 등록 관리 섹션 */
.registration-management {
  background: var(--bg-primary);
  border-radius: 12px;
  padding: 1.5rem;
  border: 1px solid var(--border-color);
}

.management-section-title {
  color: var(--text-primary);
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
}

.management-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  margin-bottom: 1rem;
  background: rgba(var(--bg-secondary-rgb), 0.5);
  border-radius: 8px;
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
}

.management-item:hover {
  border-color: var(--progress-bar);
  background: rgba(var(--progress-bar-rgb), 0.05);
}

.management-item:last-child {
  margin-bottom: 0;
}

.management-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-primary);
  font-weight: 600;
  font-size: 0.9rem;
}

.management-count {
  background: var(--progress-bar);
  color: white;
  padding: 0.2rem 0.6rem;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-left: 0.5rem;
}

.management-actions {
  display: flex;
  gap: 0.5rem;
}

.management-actions .btn {
  font-size: 0.8rem;
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  font-weight: 500;
}

/* 컴팩트 등록 관리 스타일 */
.management-item-compact {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem;
  margin-bottom: 0.75rem;
  background: rgba(var(--bg-secondary-rgb), 0.3);
  border-radius: 8px;
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
}

.management-item-compact:hover {
  border-color: var(--progress-bar);
  background: rgba(var(--progress-bar-rgb), 0.05);
}

.management-item-compact:last-child {
  margin-bottom: 0;
}

.management-header-compact {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-primary);
  font-weight: 600;
  font-size: 0.85rem;
}

.management-count-compact {
  background: var(--progress-bar);
  color: white;
  padding: 0.15rem 0.5rem;
  border-radius: 10px;
  font-size: 0.7rem;
  font-weight: 600;
  margin-left: 0.5rem;
}

.management-actions-compact {
  display: flex;
  gap: 0.4rem;
}

.management-actions-compact .btn {
  font-size: 0.75rem;
  padding: 0.3rem 0.6rem;
  border-radius: 5px;
  font-weight: 500;
}

/* 활성 상태 스타일 */
.management-item-compact.active {
  border-color: var(--progress-bar);
  background: rgba(var(--progress-bar-rgb), 0.1);
  box-shadow: 0 2px 8px rgba(var(--progress-bar-rgb), 0.2);
}

/* 클릭 가능한 등록 관리 아이템 */
.management-item-compact.clickable {
  cursor: pointer;
  transition: all 0.3s ease;
}

.management-item-compact.clickable:hover {
  background: linear-gradient(135deg, rgba(var(--progress-bar-rgb), 0.1) 0%, rgba(var(--bg-primary-rgb), 0.05) 100%);
  transform: translateY(-1px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* 동적 등록 관리 섹션 스타일 */
.dynamic-registration-section {
  background: var(--bg-primary);
  border-radius: 12px;
  padding: 1.5rem;
  border: 1px solid var(--border-color);
}

.registration-detail-section {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.registration-section-title {
  color: var(--text-primary);
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
}

.registration-form {
  background: rgba(var(--bg-secondary-rgb), 0.3);
  border-radius: 8px;
  padding: 1rem;
  border: 1px solid var(--border-color);
}

.registration-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.empty-registration {
  text-align: center;
  padding: 2rem;
  color: var(--text-secondary);
  background: rgba(var(--bg-secondary-rgb), 0.3);
  border-radius: 8px;
  border: 1px dashed var(--border-color);
}

.empty-registration i {
  font-size: 2rem;
  margin-bottom: 1rem;
  opacity: 0.5;
}

.empty-registration p {
  margin: 0;
  font-size: 0.9rem;
}

.registration-items {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.registration-item-detail {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  background: rgba(var(--bg-secondary-rgb), 0.3);
  border-radius: 8px;
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
}

.registration-item-detail:hover {
  border-color: var(--progress-bar);
  background: rgba(var(--progress-bar-rgb), 0.05);
}

.item-info {
  flex: 1;
}

.item-name {
  color: var(--text-primary);
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.25rem;
}

.item-preview {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.8rem;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.1);
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
  display: inline-block;
  margin-bottom: 0.25rem;
}

.item-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.item-actions {
  display: flex;
  gap: 0.5rem;
}

.item-actions .btn {
  font-size: 0.75rem;
  padding: 0.3rem 0.6rem;
  border-radius: 5px;
}

/* 기존 스타일 유지 */
.bot-detail-section {
  margin-bottom: 2rem;
}

.section-title {
  color: var(--text-primary);
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-color);
}

.exchange-detail {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--bg-primary);
  border-radius: 8px;
  padding: 1rem;
}

.exchange-logo-detail {
  width: 40px;
  height: 40px;
  border-radius: 8px;
}

.exchange-info-detail {
  flex: 1;
}

.exchange-name {
  color: var(--text-primary);
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
}

.trading-pair-detail {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.subscription-detail {
  background: var(--bg-primary);
  border-radius: 8px;
  padding: 1.5rem;
}

.subscription-price {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.price-amount-large {
  color: var(--progress-bar);
  font-weight: 700;
  font-size: 2rem;
}

/* 등록 현황 스타일 */
.registration-summary {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.registration-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--bg-primary);
  border-radius: 8px;
  padding: 1rem;
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
}

.registration-item:hover {
  border-color: var(--progress-bar);
  background: rgba(var(--progress-bar-rgb), 0.05);
}

.registration-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--progress-bar) 0%, rgba(var(--progress-bar-rgb), 0.8) 100%);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.2rem;
}

.registration-info {
  flex: 1;
}

.registration-label {
  color: var(--text-primary);
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.25rem;
}

.registration-count {
  color: var(--progress-bar);
  font-weight: 700;
  font-size: 1.1rem;
}

/* 주요 액션 버튼들 스타일 */
.bot-detail-actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 2rem;
}

.main-actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.start-bot-btn {
  background: linear-gradient(135deg, #28a745 0%, #20c997 100%) !important;
  color: white;
  font-size: 1.1rem;
  padding: 1.2rem 1.5rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.start-bot-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(40, 167, 69, 0.4);
}

.management-actions {
  display: flex;
  gap: 0.75rem;
}

.management-actions .action-btn {
  flex: 1;
  padding: 0.875rem 1rem;
  font-size: 0.9rem;
}

.action-btn {
  padding: 1rem 1.5rem;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
}

.action-btn.primary {
  background: linear-gradient(135deg, var(--progress-bar) 0%, rgba(var(--progress-bar-rgb), 0.8) 100%);
  color: white;
}

.action-btn.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(var(--progress-bar-rgb), 0.3);
}

.action-btn.secondary {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
}

.action-btn.secondary:hover {
  border-color: var(--progress-bar);
  background: rgba(var(--progress-bar-rgb), 0.05);
}

.action-btn.warning {
  background: linear-gradient(135deg, #ffc107 0%, #e0a800 100%);
  color: white;
}

.action-btn.warning:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 193, 7, 0.3);
}

/* 봇이 선택되지 않았을 때 */
.no-selection-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  text-align: center;
  color: var(--text-secondary);
}

.no-selection-icon {
  font-size: 4rem;
  margin-bottom: 1.5rem;
  opacity: 0.5;
}

.no-selection-title {
  color: var(--text-primary);
  font-weight: 600;
  margin-bottom: 1rem;
}

.no-selection-description {
  font-size: 1rem;
  line-height: 1.6;
}
