/* Mypage Specific Styles */

.mypage-body {
  background: var(--bg);
  min-height: 100vh;
  padding-top: 88px;
}

/* Main Content */
.mypage-main {
  padding: 40px 0 80px;
}

/* 사이드바 레이아웃 */
.mypage-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 32px;
  margin-top: 0;
}

/* 사이드바 */
.mypage-sidebar {
  position: sticky;
  top: 100px;
  height: fit-content;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: linear-gradient(
    135deg,
    rgba(15, 19, 30, 0.8) 0%,
    rgba(10, 14, 26, 0.8) 100%
  );
  border: 1px solid rgba(110, 231, 255, 0.15);
  border-radius: 16px;
  padding: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.sidebar-nav__item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 14px 18px;
  background: transparent;
  border: none;
  border-radius: 12px;
  color: var(--text-dim);
  font-size: 0.95rem;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.sidebar-nav__item svg {
  flex-shrink: 0;
  opacity: 0.6;
  transition: all 0.25s ease;
}

.sidebar-nav__item:hover {
  background: rgba(110, 231, 255, 0.06);
  color: var(--text);
}

.sidebar-nav__item:hover svg {
  opacity: 1;
  color: var(--primary);
}

.sidebar-nav__item.active {
  background: rgba(110, 231, 255, 0.1);
  color: var(--primary);
  border: 1px solid rgba(110, 231, 255, 0.2);
}

.sidebar-nav__item.active svg {
  opacity: 1;
  color: var(--primary);
}

.sidebar-nav__item.active::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 60%;
  background: var(--primary);
  border-radius: 0 2px 2px 0;
}

/* 컨텐츠 영역 */
.mypage-content {
  min-height: 500px;
}

.mypage-section {
  display: none;
  animation: fadeIn 0.3s ease;
}

.mypage-section.active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.mypage-title {
  margin-bottom: 48px;
  text-align: center;
}

.mypage-title h1 {
  font-size: clamp(2rem, 5vw, 2.5rem);
  font-weight: 800;
  margin-bottom: 12px;
  background: linear-gradient(135deg, var(--text) 0%, var(--primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.mypage-subtitle {
  font-size: 1.1rem;
  color: var(--text-dim);
}

/* Section - 기본 스타일은 위에서 정의됨 */

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(110, 231, 255, 0.1);
}

.section-header h2 {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text);
  margin: 0;
}

/* Info Card */
.info-card {
  justify-content: center;
  background: linear-gradient(
    135deg,
    rgba(15, 19, 30, 0.8) 0%,
    rgba(10, 14, 26, 0.8) 100%
  );
  border: 1px solid rgba(110, 231, 255, 0.15);
  border-radius: 16px;
  padding: 28px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

/* Profile Locked Message */
.profile-locked-message {
  text-align: center;
  padding: 40px 20px;
}

.profile-locked-message svg {
  color: var(--text-dim);
  opacity: 0.5;
  margin-bottom: 20px;
}

.profile-locked-message p {
  font-size: 1.1rem;
  color: var(--text-dim);
  margin-bottom: 24px;
}

/* Password Check Form */
.password-check-form {
  max-width: 500px;
  margin: 0 auto;
}

.password-input-group {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.password-input-group input {
  width: 100%;
  flex: 1;
  padding: 14px 18px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(110, 231, 255, 0.2);
  border-radius: 12px;
  color: var(--text);
  font-size: 1rem;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.password-input-group input:focus {
  outline: none;
  border-color: var(--primary);
  background: rgba(0, 0, 0, 0.4);
  box-shadow: 0 0 0 3px rgba(110, 231, 255, 0.1);
}

.password-input-group input::placeholder {
  color: var(--text-dim);
}

.password-input-group button {
  white-space: nowrap;
  min-width: 100px;
}

.password-error {
  padding: 12px 16px;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: 10px;
  color: #ef4444;
  font-size: 0.9rem;
  text-align: center;
}

.password-card {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.password-verify-card {
  display: flex;
  flex-direction: column;
  gap: 20px;
  text-align: center;
  align-items: center;
  padding: 12px 0 4px;
}

.password-card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--text-dim);
  opacity: 0.5;
}

.password-card-icon svg {
  width: 48px;
  height: 48px;
}

.password-card-title {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text);
}

.password-card-desc {
  color: var(--text-dim);
  font-size: 0.95rem;
  margin: 0;
}

.password-verify-card .password-check-form {
  width: 100%;
  max-width: 500px;
}

.password-verify-card .password-input-group {
  width: 100%;
}

.password-change-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.password-change-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.password-change-header h3 {
  margin: 0;
  font-size: 1.25rem;
}

.password-change-header p {
  margin: 4px 0 0;
  color: var(--text-dim);
  font-size: 0.95rem;
}

.password-guidelines {
  border: 1px dashed rgba(110, 231, 255, 0.3);
  border-radius: 12px;
  padding: 16px 20px;
  background: rgba(110, 231, 255, 0.05);
}

.password-guidelines strong {
  display: block;
  margin-bottom: 8px;
  color: var(--primary);
}

.password-guidelines ul {
  margin: 0;
  padding-left: 20px;
  color: var(--text-dim);
  font-size: 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.password-change-fields {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.password-change-messages {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.password-change-actions {
  display: flex;
  justify-content: flex-end;
}

.profile-content {
  animation: fadeIn 0.3s ease;
}

/* Form Styles */
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 24px;
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.form-row--full {
  grid-column: 1 / -1;
}

.form-label {
  font-size: 0.875rem;
  color: var(--text-dim);
  font-weight: 600;
  letter-spacing: 0.01em;
  margin-bottom: 2px;
}

.form-input {
  width: 100%;
  padding: 12px 16px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(110, 231, 255, 0.15);
  border-radius: 10px;
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 500;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  font-family: inherit;
}

.form-input::placeholder {
  color: var(--text-dim);
  opacity: 0.5;
}

.form-input:focus {
  outline: none;
  border-color: var(--primary);
  background: rgba(0, 0, 0, 0.35);
  box-shadow: 0 0 0 3px rgba(110, 231, 255, 0.08);
}

.form-input--readonly {
  background: rgba(0, 0, 0, 0.15);
  border-color: rgba(110, 231, 255, 0.08);
  color: var(--text-dim);
  cursor: not-allowed;
  opacity: 0.7;
}

.form-input--readonly:focus {
  border-color: rgba(110, 231, 255, 0.08);
  box-shadow: none;
}

.form-input-group {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.form-input-group .form-input {
  flex: 1;
}

.form-input-group .btn {
  flex-shrink: 0;
  white-space: nowrap;
  margin-top: 0;
}

.form-actions {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid rgba(110, 231, 255, 0.08);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.form-error {
  padding: 12px 16px;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: 10px;
  color: #ef4444;
  font-size: 0.9rem;
  text-align: center;
}

.form-success {
  padding: 12px 16px;
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.3);
  border-radius: 10px;
  color: #22c55e;
  font-size: 0.9rem;
  text-align: center;
  animation: fadeIn 0.3s ease;
}

/* Subscription Card */
.subscription-card {
  background: rgba(15, 19, 30, 0.6);
  border: 1px solid rgba(110, 231, 255, 0.1);
  border-radius: 12px;
  padding: 24px;
}

.subscription-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(110, 231, 255, 0.08);
}

.subscription-tier {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: rgba(110, 231, 255, 0.08);
  border: 1px solid rgba(110, 231, 255, 0.15);
  border-radius: 8px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--primary);
}

.status-badge--success {
  background: rgba(34, 197, 94, 0.08);
  border-color: rgba(34, 197, 94, 0.15);
  color: #22c55e;
}

.status-badge--warning {
  background: rgba(251, 191, 36, 0.08);
  border-color: rgba(251, 191, 36, 0.15);
  color: #fbbf24;
}

.status-badge--danger {
  background: rgba(239, 68, 68, 0.08);
  border-color: rgba(239, 68, 68, 0.15);
  color: #ef4444;
}

.status-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

.subscription-info {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}

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

.info-label {
  font-size: 0.875rem;
  color: var(--text-dim);
  font-weight: 500;
}

.info-value {
  font-size: 0.875rem;
  color: var(--text);
  font-weight: 600;
}

/* 구독 안내 박스 공통 스타일 */
.subscription-ending-notice,
.subscription-pending-notice {
  margin: 16px 0;
  padding: 12px;
  background: rgba(255, 193, 7, 0.06);
  border: 1px solid rgba(255, 193, 7, 0.15);
  border-radius: 8px;
  font-size: 0.8125rem;
}

.subscription-pending-notice {
  background: rgba(251, 191, 36, 0.06);
  border-color: rgba(251, 191, 36, 0.15);
}

.ending-notice-content,
.pending-notice-content {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.ending-notice-content svg,
.pending-notice-content svg {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  color: #ffc107;
  margin-top: 2px;
}

.pending-notice-content svg {
  color: #fbbf24;
}

.ending-notice-content > div,
.pending-notice-content > div {
  flex: 1;
  min-width: 0;
}

.ending-notice-content p,
.pending-notice-content p {
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.8);
}

.ending-notice-content p:first-child,
.pending-notice-content p:first-child {
  font-weight: 600;
  margin-bottom: 2px;
  color: #ffc107;
}

.pending-notice-content p:first-child {
  color: #fbbf24;
}

.ending-notice-content p:last-child,
.pending-notice-content p:last-child {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.75rem;
}

.subscription-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(110, 231, 255, 0.08);
}

.subscription-actions .btn {
  flex: 1;
  min-width: 100px;
  justify-content: center;
  font-size: 0.8125rem;
  padding: 8px 14px;
  border-radius: 8px;
  font-weight: 600;
}

.subscription-actions .btn--primary {
  background: var(--primary);
  border: none;
}

.subscription-actions .btn--ghost {
  background: transparent;
  border: 1px solid rgba(110, 231, 255, 0.2);
  color: var(--primary);
}

/* 모바일 반응형 */
@media (max-width: 768px) {
  .subscription-card {
    padding: 20px;
  }

  .subscription-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 16px;
    padding-bottom: 12px;
  }

  .subscription-tier {
    font-size: 1.125rem;
  }

  .subscription-info {
    gap: 10px;
    margin-bottom: 16px;
  }

  .subscription-actions {
    flex-direction: column;
    margin-top: 12px;
    padding-top: 12px;
  }

  .subscription-actions .btn {
    width: 100%;
    min-width: unset;
  }
}

/* Prevent horizontal overflow while keeping content readable */
.mypage-layout,
.mypage-sidebar,
.mypage-content,
.info-card,
.subscription-card,
.wallet-card {
  min-width: 0;
}

.form-row,
.form-input,
.form-input-group,
.wallet-value,
.subscription-info,
.payment-list,
.payment-item {
  min-width: 0;
}

.info-value,
.wallet-value code {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.mypage-main img,
.mypage-main svg {
  max-width: 100%;
  height: auto;
}

/* Payment List */
.payment-list {
  display: grid;
  gap: 12px;
}

.payment-item {
  background: linear-gradient(
    135deg,
    rgba(15, 19, 30, 0.6) 0%,
    rgba(10, 14, 26, 0.6) 100%
  );
  border: 1px solid rgba(110, 231, 255, 0.1);
  border-radius: 12px;
  padding: 0;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

.payment-item:hover {
  border-color: rgba(110, 231, 255, 0.3);
  background: linear-gradient(
    135deg,
    rgba(15, 19, 30, 0.8) 0%,
    rgba(10, 14, 26, 0.8) 100%
  );
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.payment-item-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px;
  gap: 16px;
}

.payment-main-info {
  flex: 1;
  min-width: 0;
}

.payment-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.payment-tier {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.payment-status {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 600;
  background: rgba(110, 231, 255, 0.1);
  border: 1px solid rgba(110, 231, 255, 0.2);
  color: var(--primary);
}

.payment-status--paid {
  background: rgba(34, 197, 94, 0.1);
  border-color: rgba(34, 197, 94, 0.2);
  color: #22c55e;
}

.payment-status--pending {
  background: rgba(251, 191, 36, 0.1);
  border-color: rgba(251, 191, 36, 0.2);
  color: #fbbf24;
}

.payment-status--failed {
  background: rgba(239, 68, 68, 0.1);
  border-color: rgba(239, 68, 68, 0.2);
  color: #ef4444;
}

.payment-status--cancelled {
  background: rgba(107, 114, 128, 0.1);
  border-color: rgba(107, 114, 128, 0.2);
  color: #6b7280;
}

.payment-date-info {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--text-dim);
}

.payment-date-info svg {
  flex-shrink: 0;
  opacity: 0.6;
}

.payment-amount-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.payment-amount {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
}

.payment-amount-info svg {
  flex-shrink: 0;
  opacity: 0.4;
  transition: transform 0.2s;
}

.payment-item:hover .payment-amount-info svg {
  transform: translateX(4px);
  opacity: 0.6;
}

.payment-desc {
  font-size: 1rem;
  color: var(--text);
  font-weight: 600;
}

.payment-amount {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
}

/* Wallet Card */
.wallet-card {
  background: linear-gradient(
    135deg,
    rgba(15, 19, 30, 0.8) 0%,
    rgba(10, 14, 26, 0.8) 100%
  );
  border: 1px solid rgba(110, 231, 255, 0.15);
  border-radius: 16px;
  padding: 28px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.wallet-address {
  margin-bottom: 20px;
}

.wallet-label {
  display: block;
  font-size: 0.9rem;
  color: var(--text-dim);
  margin-bottom: 12px;
  font-weight: 500;
}

.wallet-value {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(110, 231, 255, 0.1);
  border-radius: 10px;
}

.wallet-value code {
  flex: 1;
  font-family: "Courier New", monospace;
  font-size: 0.95rem;
  color: var(--primary);
  word-break: break-all;
}

.btn-copy {
  background: transparent;
  border: none;
  color: var(--text-dim);
  cursor: pointer;
  padding: 6px;
  border-radius: 6px;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-copy:hover {
  background: rgba(110, 231, 255, 0.1);
  color: var(--primary);
}

.wallet-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.wallet-status__help {
  margin-top: 12px;
  font-size: 0.9rem;
  color: var(--text-dim);
  line-height: 1.5;
}

.wallet-date {
  font-size: 0.9rem;
  color: var(--text-dim);
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  background: linear-gradient(
    135deg,
    rgba(15, 19, 30, 0.4) 0%,
    rgba(10, 14, 26, 0.4) 100%
  );
  border: 1px dashed rgba(110, 231, 255, 0.2);
  border-radius: 16px;
}

.empty-state svg {
  color: var(--text-dim);
  opacity: 0.5;
  margin-bottom: 20px;
}

.empty-state p {
  font-size: 1.1rem;
  color: var(--text-dim);
  margin-bottom: 24px;
}

/* Modal Overrides for Mypage */
.modal__form label {
  display: block;
  margin-bottom: 20px;
}

.modal__subtitle {
  font-size: 0.95rem;
  color: var(--text-dim);
  margin-bottom: 24px;
  text-align: center;
}

.modal__form label span {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}

.modal__error {
  padding: 12px 16px;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: 8px;
  color: #ef4444;
  font-size: 0.9rem;
  margin-bottom: 20px;
}

.modal__form input {
  width: 100%;
  padding: 12px 16px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(110, 231, 255, 0.2);
  border-radius: 10px;
  color: var(--text);
  font-size: 1rem;
  transition: all 0.2s ease;
}

.modal__form input:focus {
  outline: none;
  border-color: var(--primary);
  background: rgba(0, 0, 0, 0.4);
}

.modal__actions {
  display: flex;
  gap: 12px;
  margin-top: 28px;
}

.modal__actions button {
  flex: 1;
}

/* Responsive */

/* 태블릿 (1024px 이하) */
@media (max-width: 1024px) {
  .mypage-layout {
    grid-template-columns: 220px 1fr;
    gap: 24px;
  }

  .mypage-sidebar {
    top: 88px;
  }

  .sidebar-nav__item {
    padding: 12px 16px;
    font-size: 0.9rem;
  }

  .form-grid {
    gap: 18px;
  }

  .info-card,
  .subscription-card,
  .wallet-card {
    padding: 24px;
  }
}

/* 태블릿 세로 (768px ~ 900px) */
@media (max-width: 900px) {
  .mypage-layout {
    grid-template-columns: 200px 1fr;
    gap: 20px;
  }

  .section-header h2 {
    font-size: 1.4rem;
  }

  .form-label {
    font-size: 0.85rem;
  }

  .form-input {
    padding: 11px 15px;
    font-size: 0.9rem;
  }
}

/* 모바일 (768px 이하) */
@media (max-width: 768px) {
  .mypage-body {
    padding-top: 72px;
  }

  .mypage-main {
    padding: 20px 0 60px;
  }

  /* 사이드바를 가로 스크롤 탭으로 변경 */
  .mypage-layout {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .mypage-sidebar {
    position: static;
    margin-bottom: 20px;
  }

  .sidebar-nav {
    border: none;
    border-radius: 0;
    flex-direction: row;
    overflow-x: auto;
    padding: 8px 0;
    gap: 8px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    border-radius: 12px;
  }

  .sidebar-nav::-webkit-scrollbar {
    display: none;
  }

  .sidebar-nav__item {
    white-space: nowrap;
    padding: 10px 16px;
    min-width: fit-content;
    font-size: 0.9rem;
  }

  .sidebar-nav__item svg {
    width: 18px;
    height: 18px;
  }

  .sidebar-nav__item.active::before {
    display: none;
  }

  .sidebar-nav__item.active {
    border-bottom: 2px solid var(--primary);
    border-left: none;
  }

  /* 모바일: 상단 메뉴를 버튼처럼 강조 */
  .sidebar-nav__item {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(110, 231, 255, 0.15);
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
    transition: transform 0.12s ease, background 0.2s ease,
      border-color 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
  }

  .sidebar-nav__item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(110, 231, 255, 0.25);
    color: var(--text);
  }

  .sidebar-nav__item:active {
    transform: translateY(1px);
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.18);
  }

  .sidebar-nav__item.active {
    background: rgba(110, 231, 255, 0.12);
    color: var(--primary);
    border-color: rgba(110, 231, 255, 0.35);
    /* 외곽 발광 제거하고 내부 라인으로 강조 */
    box-shadow: inset 0 0 0 1px rgba(110, 231, 255, 0.25);
    border-bottom: none;
  }

  /* 메뉴 버튼 내부 하이라이트 바 (글로우 대신 사용) */
  .sidebar-nav__item {
    position: relative;
    overflow: hidden; /* 내부 하이라이트가 영역을 벗어나지 않도록 */
  }
  .sidebar-nav__item::after {
    content: "";
    position: absolute;
    left: 10px;
    right: 10px;
    bottom: 1px;
    height: 2px;
    background: linear-gradient(
      90deg,
      rgba(110, 231, 255, 0) 0%,
      rgba(110, 231, 255, 0.85) 50%,
      rgba(110, 231, 255, 0) 100%
    );
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.22s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
  }
  .sidebar-nav__item:hover::after,
  .sidebar-nav__item.active::after {
    transform: scaleX(1);
  }

  /* 섹션 헤더 */
  .section-header {
    margin-bottom: 20px;
  }

  .section-header h2 {
    font-size: 1.3rem;
  }

  .section-header .btn {
    font-size: 0.85rem;
    padding: 8px 14px;
  }

  /* 카드 스타일 */
  .info-card,
  .subscription-card,
  .wallet-card {
    padding: 20px;
    border-radius: 14px;
  }
  .profile-content {
    width: 100%;
  }
  /* 비밀번호 체크 폼 */
  .profile-locked-message {
    padding: 30px 16px;
  }

  .profile-locked-message svg {
    width: 40px;
    height: 40px;
    margin-bottom: 16px;
  }

  .profile-locked-message p {
    font-size: 1rem;
    margin-bottom: 20px;
  }

  .password-check-form {
    max-width: 100%;
  }

  .password-input-group {
    flex-direction: column;
    gap: 10px;
  }

  .password-input-group input {
    padding: 12px 16px;
  }

  .password-input-group button {
    width: 100%;
    padding: 12px;
  }

  .password-error {
    font-size: 0.85rem;
    padding: 10px 14px;
  }

  /* 폼 그리드 */
  .form-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-bottom: 20px;
  }

  .form-row {
    margin-bottom: 0;
  }

  .form-label {
    font-size: 0.85rem;
    margin-bottom: 0;
  }

  .form-input {
    padding: 11px 15px;
    font-size: 0.9rem;
    border-radius: 10px;
  }

  .form-input-group {
    flex-direction: column;
    gap: 10px;
  }

  .form-input-group .btn {
    width: 100%;
    margin-top: 0;
    padding: 11px 15px;
  }

  .form-actions {
    margin-top: 20px;
    padding-top: 16px;
  }

  .form-actions .btn {
    padding: 12px;
  }

  .form-error,
  .form-success {
    font-size: 0.85rem;
    padding: 10px 14px;
  }

  /* 구독 관리 */
  .subscription-status {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .subscription-tier {
    font-size: 1.3rem;
  }

  .subscription-info {
    gap: 14px;
  }

  .subscription-info .info-row {
    padding: 12px 0;
  }

  .subscription-actions {
    flex-direction: column;
    gap: 10px;
  }

  .subscription-actions button {
    width: 100%;
  }

  /* 지갑 정보 */
  .wallet-address {
    margin-bottom: 16px;
  }

  .wallet-value {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .wallet-value code {
    font-size: 0.85rem;
    word-break: break-all;
  }

  .btn-copy {
    align-self: flex-end;
    padding: 8px 12px;
  }

  .wallet-status {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  /* 결제 내역 */
  .payment-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
  }

  .payment-info h4 {
    font-size: 0.95rem;
  }

  .payment-date,
  .payment-status {
    font-size: 0.85rem;
  }

  .payment-amount {
    align-self: flex-end;
    font-size: 1.1rem;
  }

  /* Empty State */
  .empty-state {
    padding: 40px 20px;
  }

  .empty-state svg {
    width: 40px;
    height: 40px;
    margin-bottom: 16px;
  }

  .empty-state p {
    font-size: 0.95rem;
    margin-bottom: 20px;
  }

  .empty-state .btn {
    padding: 12px 24px;
  }

  /* 모달 */
  .modal__content {
    width: calc(100% - 32px);
    max-width: 100%;
    padding: 24px;
    margin: 16px;
    border-radius: 16px;
  }

  .modal__title {
    font-size: 1.3rem;
    margin-bottom: 16px;
  }

  .modal__subtitle {
    font-size: 0.9rem;
    margin-bottom: 20px;
  }

  .modal__form label {
    margin-bottom: 16px;
  }

  .modal__form label span {
    font-size: 0.85rem;
  }

  .modal__form input,
  .modal__form textarea {
    padding: 11px 15px;
    font-size: 0.9rem;
  }

  .modal__actions {
    flex-direction: column-reverse;
    gap: 10px;
    margin-top: 20px;
  }

  .modal__actions button {
    width: 100%;
    padding: 12px;
  }
}

/* 소형 모바일 (480px 이하) */
@media (max-width: 480px) {
  .mypage-body {
    padding-top: 64px;
  }

  .mypage-main {
    padding: 16px 0 50px;
  }

  .container {
    padding-left: 8px;
    padding-right: 8px;
  }

  /* 섹션 헤더 */
  .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
  }

  .section-header h2 {
    font-size: 1.2rem;
  }

  .section-header .btn {
    width: 100%;
  }

  /* 사이드바 */
  .sidebar-nav {
    border-radius: 0;
    padding: 6px 0;
    gap: 6px;
  }

  .sidebar-nav__item {
    padding: 10px 12px;
    font-size: 0.8rem;
    gap: 6px;
  }

  .sidebar-nav__item span {
    display: inline;
    font-size: 0.75rem;
    white-space: nowrap;
  }

  .sidebar-nav__item svg {
    margin: 0;
    width: 16px;
    height: 16px;
    flex-shrink: 0;
  }

  /* 소형 모바일: 버튼 간격 및 터치 영역 보정 */
  .sidebar-nav {
    gap: 8px;
  }

  .sidebar-nav__item {
    padding: 10px 12px;
    border-radius: 12px;
  }

  /* 카드 */
  .info-card,
  .subscription-card,
  .wallet-card {
    padding: 16px;
  }

  /* 비밀번호 체크 */
  .profile-locked-message {
    padding: 24px 12px;
  }

  .profile-locked-message svg {
    width: 36px;
    height: 36px;
  }

  .profile-locked-message p {
    font-size: 0.95rem;
  }

  .password-input-group input,
  .password-input-group button {
    padding: 11px 14px;
    font-size: 0.9rem;
  }

  /* 폼 */
  .form-grid {
    gap: 14px;
  }

  .form-label {
    font-size: 0.8rem;
  }

  .form-input {
    padding: 10px 14px;
    font-size: 0.85rem;
  }

  .form-actions .btn {
    padding: 11px;
    font-size: 0.9rem;
  }

  /* 구독 정보 */
  .subscription-tier {
    font-size: 1.2rem;
  }

  .subscription-info .info-label,
  .subscription-info .info-value {
    font-size: 0.85rem;
  }

  /* 지갑 정보 */
  .wallet-value code {
    font-size: 0.8rem;
  }

  /* 결제 내역 */
  .payment-item {
    padding: 14px;
  }

  .payment-info h4 {
    font-size: 0.9rem;
  }

  .payment-date,
  .payment-status {
    font-size: 0.8rem;
  }

  .payment-amount {
    font-size: 1rem;
  }

  /* Empty State */
  .empty-state {
    padding: 32px 16px;
  }

  .empty-state svg {
    width: 36px;
    height: 36px;
  }

  .empty-state p {
    font-size: 0.9rem;
  }

  .empty-state .btn {
    width: 100%;
    padding: 11px 20px;
    font-size: 0.9rem;
  }

  /* 모달 */
  .modal__content {
    width: calc(100% - 24px);
    padding: 20px;
    margin: 12px;
  }

  .modal__title {
    font-size: 1.2rem;
  }

  .modal__subtitle {
    font-size: 0.85rem;
  }

  .modal__close {
    width: 32px;
    height: 32px;
  }
}

/* ===== 구독 신청 모달/바텀시트 ===== */

.subscribe-modal .modal__dialog {
  max-width: 520px;
  max-height: 80vh;
  padding: 0;
  overflow: hidden;
}

.subscribe-dialog__inner {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 48px 18px 16px;
}

.subscribe-modal .modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  margin: 0;
  z-index: 2;
}

/* 단계 표시 */
.subscribe-step-header {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}

.step-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--primary);
  background: rgba(110, 231, 255, 0.1);
  border: 1px solid rgba(110, 231, 255, 0.2);
  border-radius: 999px;
  width: fit-content;
}

.subscribe-step-header h3 {
  margin: 0;
  font-size: 1.25rem;
  color: var(--text);
}

/* 단계 콘텐츠 */
.subscribe-step-content {
  display: none;
  flex: 1 1 auto;
  overflow-y: auto;
  animation: fadeIn 0.3s ease;
  padding-right: 4px;
  scrollbar-width: thin;
}

.subscribe-step-content.active {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.subscribe-step-content form label {
  margin-bottom: 10px;
}

.subscribe-step-content form input,
.subscribe-step-content form .form-input--readonly {
  font-size: 0.9rem;
  padding: 9px 11px;
}

.subscribe-step-content .privacy-consent__content {
  padding: 8px 12px;
  font-size: 0.85rem;
}

.subscribe-step-content form label > span {
  display: block;
  font-size: 0.85rem;
  margin-bottom: 6px;
  color: var(--text);
}

.subscribe-step-content form small.form__error {
  font-size: 0.8rem;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.step-description {
  margin: 8px 0 10px;
  color: var(--text-dim);
  font-size: 0.95rem;
}

/* 플랜 정보 */
.subscription-plan-info {
  background: linear-gradient(
    135deg,
    rgba(15, 19, 30, 0.6) 0%,
    rgba(10, 14, 26, 0.6) 100%
  );
  border: 1px solid rgba(110, 231, 255, 0.15);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 18px;
}

.plan-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(110, 231, 255, 0.1);
}

.plan-badge {
  background: linear-gradient(135deg, var(--primary) 0%, #00d9ff 100%);
  color: var(--bg);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 700;
}

.plan-price {
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.price-amount {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary);
}

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

.plan-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 8px 12px;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: var(--text);
  font-size: 0.9rem;
}

.feature-item svg {
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--primary);
}

.subscribe-summary {
  background: rgba(110, 231, 255, 0.05);
  border: 1px solid rgba(110, 231, 255, 0.15);
  border-radius: 12px;
  padding: 14px;
  margin-top: 14px;
}

.subscribe-summary h4 {
  margin: 0 0 6px 0;
  font-size: 1rem;
}

.subscribe-summary p {
  margin: 0 0 10px 0;
  color: var(--text-dim);
  font-size: 0.9rem;
  line-height: 1.5;
}

.subscribe-summary ul {
  margin: 0;
  padding-left: 18px;
  font-size: 0.85rem;
  color: var(--text-dim);
  line-height: 1.5;
}

.subscribe-summary li {
  margin-bottom: 4px;
}

/* 결제 정보 카드 */
.payment-info-card {
  background: linear-gradient(
    135deg,
    rgba(15, 19, 30, 0.6) 0%,
    rgba(10, 14, 26, 0.6) 100%
  );
  border: 1px solid rgba(110, 231, 255, 0.15);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 18px;
}

.payment-account-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 8px;
  margin-bottom: 6px;
  border-bottom: 1px solid rgba(110, 231, 255, 0.08);
}

.payment-bank {
  font-size: 0.9rem;
  color: #38bdf8;
  font-weight: 600;
  white-space: nowrap;
}

.payment-account-with-copy {
  display: flex;
  align-items: center;
  gap: 6px;
}

.payment-account {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.payment-info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
  border-bottom: 1px solid rgba(110, 231, 255, 0.08);
}

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

.payment-info-row.highlight {
  background: rgba(110, 231, 255, 0.05);
  margin: 0 -16px;
  padding: 12px 16px;
  border-radius: 8px;
}

.payment-label {
  font-size: 0.9rem;
  color: var(--text-dim);
}

.payment-value {
  font-size: 0.95rem;
  color: var(--text);
}

.payment-value-with-copy {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-copy-small {
  background: transparent;
  border: none;
  color: var(--text-dim);
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.btn-copy-small:hover {
  background: rgba(110, 231, 255, 0.1);
  color: var(--primary);
}

.price-highlight {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary);
}

/* 결제 안내 */
.payment-notice {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 12px;
  background: rgba(251, 191, 36, 0.05);
  border: 1px solid rgba(251, 191, 36, 0.2);
  border-radius: 12px;
  margin-bottom: 18px;
}
.payment-notice-header {
  display: flex;
  align-items: center;
  gap: 8px;
}

.payment-notice-content {
  flex: 1;
}
.payment-notice svg {
  flex-shrink: 0;
  color: #fbbf24;
}

.payment-notice p {
  margin: 0;
  color: var(--text);
  font-size: 0.9rem;
}

.payment-notice ul {
  margin: 8px 0 0 0;
  padding-left: 20px;
  color: var(--text-dim);
  font-size: 0.85rem;
}

.payment-notice li {
  margin-bottom: 4px;
}

/* 단계 액션 버튼 */
.subscribe-step-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: auto;
  padding-top: 12px;
}

.subscribe-step-actions .btn--block {
  grid-column: span 2;
}

.subscribe-step-actions .btn:not(.btn--block) {
  grid-column: span 1;
}

.subscribe-step-actions .btn--outline {
  background: var(--bg);
  color: var(--text);
  border: 1.5px solid rgba(110, 231, 255, 0.2);
  box-shadow: none;
}

/* 완료 화면 */
.subscribe-success {
  text-align: center;
  padding: 28px 16px;
}

.subscribe-success svg {
  color: #22c55e;
  margin-bottom: 24px;
}

.subscribe-success h3 {
  margin-bottom: 16px;
  color: var(--text);
}

.subscribe-success p {
  color: var(--text-dim);
  line-height: 1.6;
  margin-bottom: 32px;
}

/* 모바일: 바텀시트 스타일 */
@media (max-width: 768px) {
  .subscribe-modal {
    align-items: flex-end;
    padding: 0;
  }

  .subscribe-modal .modal__dialog {
    overflow-y: auto;
    max-width: 100%;
    width: 100%;
    max-height: 78vh;
    margin: 0;
    border-radius: 18px 18px 0 0;
    animation: slideUp 0.3s ease;
    padding: 0;
    min-height: 72vh;
  }

  @keyframes slideUp {
    from {
      transform: translateY(100%);
    }
    to {
      transform: translateY(0);
    }
  }

  .subscribe-modal[aria-hidden="false"] .modal__dialog {
    animation: slideUp 0.3s ease;
  }

  .subscribe-modal[aria-hidden="true"] .modal__dialog {
    animation: slideDown 0.3s ease;
  }

  @keyframes slideDown {
    from {
      transform: translateY(0);
    }
    to {
      transform: translateY(100%);
    }
  }

  /* 플랜 정보 간소화 */
  .subscription-plan-info {
    padding: 10px 12px;
    margin-bottom: 10px;
  }

  .plan-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    margin-bottom: 10px;
    padding-bottom: 10px;
  }

  .plan-badge {
    font-size: 0.7rem;
    padding: 4px 10px;
  }

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

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

  .plan-features {
    gap: 6px;
    grid-template-columns: 1fr;
  }

  .feature-item {
    gap: 6px;
  }

  .feature-item svg {
    width: 14px;
    height: 14px;
  }

  .subscribe-dialog__inner {
    padding: 6px 0 0;
  }

  .subscribe-step-content {
    padding: 18px 18px 100px;
    overflow-y: auto;
  }

  .subscribe-step-actions {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 12px 18px 18px;
    margin: 0;
    /* border-top: 1px solid rgba(110, 231, 255, 0.1); */
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
    z-index: 10;
  }
}

@media (max-width: 480px) {
  .subscribe-modal .modal__dialog {
    max-height: 86vh;
    padding: 0;
    min-height: 78vh;
  }

  .subscription-plan-info {
    padding: 14px;
    margin-bottom: 8px;
  }

  .plan-header {
    margin-bottom: 8px;
    padding-bottom: 8px;
    gap: 4px;
  }

  .plan-badge {
    padding: 3px 8px;
  }

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

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

  .plan-features {
    gap: 8px;
  }

  .feature-item {
    gap: 5px;
  }

  .feature-item svg {
    width: 12px;
    height: 12px;
  }

  .payment-info-card {
    padding: 12px;
  }

  .payment-info-row {
    flex-direction: row;
    align-items: center;
    gap: 8px;
  }

  .payment-value-with-copy {
    width: 100%;
    justify-content: space-between;
  }

  .subscribe-step-content {
    padding: 16px 14px 110px;
  }

  .subscribe-step-actions {
    grid-template-columns: 1fr;
    padding: 12px 14px 16px;
    gap: 6px;
  }

  .subscribe-step-actions .btn {
    grid-column: span 1;
  }
}

/* 구독 취소 모달 */
.cancel-subscription-content {
  text-align: center;
  padding: 8px 0;
}

.cancel-subscription-icon {
  display: flex;
  justify-content: center;
  margin-bottom: 24px;
}

.cancel-subscription-icon svg {
  color: #fbbf24;
  opacity: 0.9;
}

.cancel-subscription-content h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 20px;
}

.cancel-subscription-info {
  text-align: left;
  margin-bottom: 32px;
}

.cancel-subscription-lead {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  margin-bottom: 24px;
  padding: 16px;
  background: rgba(251, 191, 36, 0.08);
  border: 1px solid rgba(251, 191, 36, 0.2);
  border-radius: 12px;
}

.cancel-subscription-lead strong {
  color: #fbbf24;
  font-weight: 600;
}

.cancel-subscription-details {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cancel-detail-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-dim);
}

.cancel-detail-item svg {
  flex-shrink: 0;
  margin-top: 2px;
  color: rgba(110, 231, 255, 0.6);
}

.cancel-detail-item strong {
  color: var(--text);
  font-weight: 600;
}

.cancel-subscription-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 32px;
}

.cancel-subscription-actions .btn {
  padding: 14px 24px;
  font-size: 1rem;
  font-weight: 600;
}

/* 모바일 대응 */
@media (max-width: 768px) {
  .cancel-subscription-content {
    padding: 4px 0;
  }

  .cancel-subscription-icon {
    margin-bottom: 20px;
  }

  .cancel-subscription-icon svg {
    width: 56px;
    height: 56px;
  }

  .cancel-subscription-content h3 {
    font-size: 1.3rem;
    margin-bottom: 16px;
  }

  .cancel-subscription-lead {
    font-size: 0.9rem;
    padding: 14px;
    margin-bottom: 20px;
  }

  .cancel-subscription-details {
    gap: 14px;
  }

  .cancel-detail-item {
    font-size: 0.9rem;
    gap: 10px;
  }

  .cancel-subscription-actions {
    margin-top: 24px;
    gap: 10px;
  }

  .cancel-subscription-actions .btn {
    padding: 12px 20px;
    font-size: 0.95rem;
  }
}

/* 결제 내역 상세 모달 */
.payment-detail-content {
  padding: 4px 0;
}

.payment-detail-header {
  text-align: center;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(110, 231, 255, 0.1);
}

.payment-detail-header h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
}

.payment-detail-badges {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.payment-detail-tier {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 16px;
  font-size: 0.85rem;
  font-weight: 700;
  background: rgba(110, 231, 255, 0.1);
  border: 1px solid rgba(110, 231, 255, 0.2);
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.payment-detail-status {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 16px;
  font-size: 0.85rem;
  font-weight: 600;
  background: rgba(110, 231, 255, 0.1);
  border: 1px solid rgba(110, 231, 255, 0.2);
  color: var(--primary);
}

.payment-detail-status--paid {
  background: rgba(34, 197, 94, 0.1);
  border-color: rgba(34, 197, 94, 0.2);
  color: #22c55e;
}

.payment-detail-status--pending {
  background: rgba(251, 191, 36, 0.1);
  border-color: rgba(251, 191, 36, 0.2);
  color: #fbbf24;
}

.payment-detail-status--failed {
  background: rgba(239, 68, 68, 0.1);
  border-color: rgba(239, 68, 68, 0.2);
  color: #ef4444;
}

.payment-detail-status--cancelled {
  background: rgba(107, 114, 128, 0.1);
  border-color: rgba(107, 114, 128, 0.2);
  color: #6b7280;
}

.payment-detail-body {
  margin-bottom: 20px;
}

.payment-detail-section {
  margin-bottom: 18px;
}

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

.payment-detail-section h4 {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 12px;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(110, 231, 255, 0.1);
}

.payment-detail-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid rgba(110, 231, 255, 0.05);
}

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

.payment-detail-label {
  font-size: 0.85rem;
  color: var(--text-dim);
  flex-shrink: 0;
}

.payment-detail-value {
  font-size: 0.9rem;
  color: var(--text);
  font-weight: 500;
  text-align: right;
  word-break: break-word;
}

.payment-detail-value--amount {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary);
}

.payment-detail-actions {
  margin-top: 16px;
}

/* 모바일 대응 */
@media (max-width: 768px) {
  .payment-item-content {
    padding: 16px;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .payment-amount-info {
    width: 100%;
    justify-content: space-between;
  }

  .payment-amount {
    font-size: 1.1rem;
  }

  .payment-detail-header {
    margin-bottom: 16px;
    padding-bottom: 14px;
  }

  .payment-detail-header h3 {
    font-size: 1.15rem;
    margin-bottom: 10px;
  }

  .payment-detail-badges {
    gap: 6px;
  }

  .payment-detail-section {
    margin-bottom: 16px;
  }

  .payment-detail-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 10px 0;
  }

  .payment-detail-value {
    text-align: left;
  }
}

/* 지갑 입력 필드 wrapper */
.wallet-input-wrapper {
  display: flex;
  gap: 8px;
  align-items: center;
  position: relative;
  width: 100%;
}

.wallet-input-wrapper input {
  flex: 1;
}

/* 지갑 주소 삭제 버튼 (input 내부 오른쪽) */
.wallet-delete-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; /* 정사각형 */
  height: 40px; /* 정사각형 - input 높이에 맞춤 */
  padding: 0;
  background: transparent;
  border: none;
  border-radius: 8px;
  color: var(--text-dim, #6b7280);
  cursor: pointer;
  opacity: 0.4;
  transition: all 0.2s ease;
  z-index: 1;
}

.wallet-delete-btn:hover {
  opacity: 1;
  color: #dc3545;
  background: rgba(220, 53, 69, 0.15);
}

.wallet-delete-btn:active {
  transform: translateY(-50%) scale(0.9);
  background: rgba(220, 53, 69, 0.25);
}

.wallet-delete-btn svg {
  width: 21px;
  height: 21px;
  stroke-width: 2.5;
}

/* 모바일에서도 충분한 터치 영역 확보 */
@media (max-width: 768px) {
  .wallet-delete-btn {
    width: 44px; /* 정사각형 */
    height: 44px; /* 정사각형 */
    right: 6px;
  }
}
