/* ═══════════════════════════════════════════════════
   옷결 OTT_GYEOL — Mypage Styles
   ═══════════════════════════════════════════════════ */

/* ─── LAYOUT ─── */
.mypage-main {
  min-height: calc(100vh - var(--header-height) - 40px);
  background: linear-gradient(135deg, var(--cream) 0%, var(--cream-dark) 50%, var(--cream) 100%);
  padding: 48px 20px 80px;
}

.mypage-container {
  max-width: 680px;
  margin: 0 auto;
  animation: fadeUp 0.5s ease-out both;
}

/* ─── BREADCRUMB ─── */
.mp-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  color: var(--taupe);
  letter-spacing: 0.04em;
  margin-bottom: 32px;
}

.mp-breadcrumb a {
  color: var(--taupe);
  transition: color 0.2s;
}

.mp-breadcrumb a:hover {
  color: var(--gold);
}

.mp-breadcrumb span {
  color: var(--sand);
}

/* ─── PROFILE CARD ─── */
.mp-profile-card {
  display: flex;
  align-items: center;
  gap: 24px;
  background: var(--white);
  border-radius: 12px;
  padding: 28px 32px;
  margin-bottom: 24px;
  box-shadow: 0 2px 16px rgba(26, 23, 20, 0.06);
}

.mp-avatar {
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  color: var(--white);
  font-family: var(--font-serif-kr);
  font-size: 1.4rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 0;
}

.mp-profile-info {
  flex: 1;
  min-width: 0;
}

.mp-name {
  font-family: var(--font-serif-kr);
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--charcoal);
  margin-bottom: 4px;
}

.mp-email {
  font-size: 0.8rem;
  color: var(--taupe);
  font-weight: 300;
  letter-spacing: 0.02em;
  margin-bottom: 10px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mp-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.mp-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.65rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  background: var(--beige);
  color: var(--brown);
}

.mp-badge-role {
  background: rgba(184, 150, 90, 0.12);
  color: var(--gold-dark);
}

.mp-badge-verified {
  background: rgba(122, 158, 110, 0.12);
  color: #5a7e4e;
}

.mp-badge-unverified {
  background: rgba(196, 146, 138, 0.12);
  color: #a0534b;
}

.mp-badge-join {
  background: transparent;
  color: var(--sand);
  font-size: 0.62rem;
  letter-spacing: 0.04em;
}

/* ─── TABS ─── */
.mp-tabs {
  display: flex;
  border-bottom: 1px solid var(--beige);
  margin-bottom: 24px;
}

.mp-tab {
  padding: 12px 24px;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: var(--taupe);
  background: none;
  border: none;
  cursor: pointer;
  position: relative;
  transition: color 0.2s;
}

.mp-tab::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 15%;
  width: 70%;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.mp-tab.active {
  color: var(--charcoal);
  font-weight: 500;
}

.mp-tab.active::after {
  transform: scaleX(1);
}

.mp-tab:hover {
  color: var(--charcoal);
}

/* ─── SECTION CARDS ─── */
.mp-card {
  background: var(--white);
  border-radius: 12px;
  padding: 28px 32px;
  margin-bottom: 16px;
  box-shadow: 0 2px 16px rgba(26, 23, 20, 0.05);
}

.mp-card-title {
  font-family: var(--font-serif-kr);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--charcoal);
  letter-spacing: 0.04em;
  margin-bottom: 24px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--beige);
}

/* ─── FORM ─── */
.mp-form {
  display: flex;
  flex-direction: column;
}

.mp-submit-btn {
  align-self: flex-start;
  padding: 11px 28px;
  font-size: 0.78rem;
  margin-top: 8px;
}

/* ─── EMAIL VERIFY BANNER ─── */
.mp-verify-banner {
  background: rgba(184, 150, 90, 0.06);
  border: 1px solid rgba(184, 150, 90, 0.2);
  border-radius: 10px;
  padding: 16px 20px;
  margin-bottom: 16px;
}

.verify-banner-inner {
  display: flex;
  align-items: center;
  gap: 14px;
}

.verify-banner-inner svg {
  flex-shrink: 0;
  color: var(--gold);
}

.verify-banner-inner div {
  flex: 1;
}

.verify-banner-inner strong {
  display: block;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--charcoal);
  margin-bottom: 2px;
}

.verify-banner-inner p {
  font-size: 0.72rem;
  color: var(--taupe);
  font-weight: 300;
}

.mp-verify-btn {
  flex-shrink: 0;
  padding: 8px 16px;
  font-size: 0.72rem;
  white-space: nowrap;
}

/* ─── DANGER ZONE ─── */
.mp-danger-card {
  border: 1px solid rgba(196, 146, 138, 0.2);
}

.mp-danger-title {
  color: #a0534b;
}

.mp-danger-desc {
  font-size: 0.78rem;
  color: var(--taupe);
  font-weight: 300;
  line-height: 1.6;
  margin-bottom: 20px;
}

.mp-danger-btn {
  padding: 10px 24px;
  font-size: 0.78rem;
  background: transparent;
  color: #a0534b;
  border: 1px solid rgba(196, 146, 138, 0.4);
  border-radius: 4px;
  cursor: pointer;
  font-family: var(--font-sans);
  letter-spacing: 0.04em;
  transition: all 0.2s ease;
}

.mp-danger-btn:hover {
  background: rgba(196, 146, 138, 0.08);
  border-color: rgba(196, 146, 138, 0.6);
}

/* ─── MODAL (재사용 from admin.css) ─── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(26, 23, 20, 0.45);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: 20px;
}

.modal-card {
  background: var(--white);
  border-radius: 12px;
  width: 100%;
  max-width: 460px;
  box-shadow: 0 16px 48px rgba(26, 23, 20, 0.18);
  overflow: hidden;
  animation: fadeUp 0.3s ease-out both;
}

.modal-small {
  max-width: 380px;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px 16px;
  border-bottom: 1px solid var(--beige);
}

.modal-header h2 {
  font-family: var(--font-serif-kr);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--charcoal);
}

.modal-close {
  background: none;
  border: none;
  font-size: 1.4rem;
  color: var(--taupe);
  cursor: pointer;
  line-height: 1;
  padding: 0 4px;
  transition: color 0.2s;
}

.modal-close:hover {
  color: var(--charcoal);
}

.modal-body {
  padding: 20px 24px;
}

.modal-body p {
  font-size: 0.82rem;
  color: var(--charcoal);
  font-weight: 300;
  line-height: 1.6;
  margin-bottom: 4px;
}

.modal-warning {
  font-size: 0.72rem !important;
  color: var(--rose) !important;
  margin-top: 6px !important;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 16px 24px 20px;
  border-top: 1px solid var(--beige);
}

.btn-danger {
  padding: 10px 20px;
  background: #c0534b;
  color: var(--white);
  border: none;
  border-radius: 4px;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-danger:hover {
  background: #a8443c;
}

/* ─── ORDER HISTORY ─── */
.mp-orders-loading {
  text-align: center;
  padding: 48px 0;
  font-size: 0.82rem;
  color: var(--taupe);
  font-weight: 300;
}

.mp-orders-empty {
  text-align: center;
  padding: 56px 0;
  color: var(--taupe);
}

.mp-orders-empty svg {
  margin-bottom: 16px;
  opacity: 0.35;
}

.mp-orders-empty p {
  font-size: 0.85rem;
  font-weight: 300;
  letter-spacing: 0.03em;
}

.mp-order-card {
  background: var(--white);
  border-radius: 12px;
  margin-bottom: 16px;
  box-shadow: 0 2px 16px rgba(26, 23, 20, 0.05);
  overflow: hidden;
}

.mp-order-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  border-bottom: 1px solid var(--beige);
}

.mp-order-id {
  display: block;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--charcoal);
  margin-bottom: 3px;
}

.mp-order-date {
  font-size: 0.7rem;
  color: var(--taupe);
  font-weight: 300;
}

.mp-status-badge {
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  padding: 4px 12px;
  border-radius: 20px;
}

.status-paid      { background: rgba(184, 150, 90, 0.08); color: var(--gold-dark); }
.status-confirmed { background: rgba(184, 150, 90, 0.12); color: var(--gold-dark); }
.status-shipped   { background: rgba(90, 130, 184, 0.12); color: #3a6ea8; }
.status-delivered { background: rgba(122, 158, 110, 0.12); color: #5a7e4e; }
.status-cancelled { background: rgba(196, 146, 138, 0.12); color: #a0534b; }

.mp-order-items {
  padding: 8px 24px;
}

.mp-order-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--beige);
}

.mp-order-item:last-child {
  border-bottom: none;
}

.mp-order-item-img {
  width: 52px;
  height: 52px;
  object-fit: cover;
  border-radius: 6px;
  background: var(--cream);
  flex-shrink: 0;
}

.mp-order-item-info {
  flex: 1;
  min-width: 0;
}

.mp-order-item-name {
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--charcoal);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 3px;
}

.mp-order-item-qty {
  font-size: 0.7rem;
  color: var(--taupe);
  font-weight: 300;
}

.mp-order-item-price {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--charcoal);
  white-space: nowrap;
}

.mp-tracking-box {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 24px;
  background: rgba(184, 150, 90, 0.05);
  border-top: 1px solid var(--beige-dark);
  border-bottom: 1px solid var(--beige-dark);
}

.mp-tracking-label {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--brown);
  white-space: nowrap;
}

.mp-tracking-number {
  font-size: 0.78rem;
  color: var(--charcoal);
  letter-spacing: 0.04em;
  word-break: break-all;
}

.mp-order-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  background: var(--cream);
}

.mp-order-shipping {
  font-size: 0.72rem;
  color: var(--taupe);
  font-weight: 300;
}

.mp-order-total {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--charcoal);
  letter-spacing: 0.02em;
}

.mp-order-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.mp-receipt-btn {
  padding: 6px 14px;
  font-size: 0.75rem;
  font-family: inherit;
  color: var(--gold);
  background: transparent;
  border: 1px solid var(--gold);
  cursor: pointer;
  letter-spacing: 0.05em;
  text-decoration: none;
  transition: opacity 0.2s;
}
.mp-receipt-btn:hover {
  opacity: 0.7;
}

.mp-cancel-btn {
  padding: 6px 14px;
  font-size: 0.75rem;
  font-family: inherit;
  color: var(--taupe);
  background: transparent;
  border: 1px solid var(--taupe);
  cursor: pointer;
  letter-spacing: 0.05em;
  transition: color 0.2s, border-color 0.2s;
}
.mp-cancel-btn:hover:not(:disabled) {
  color: #c0392b;
  border-color: #c0392b;
}
.mp-cancel-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ═══════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════ */
@media (max-width: 768px) {
  .mypage-main {
    padding: 32px 16px 60px;
  }

  .mp-profile-card {
    padding: 20px;
    gap: 16px;
  }

  .mp-avatar {
    width: 52px;
    height: 52px;
    font-size: 1.1rem;
  }

  .mp-card {
    padding: 20px;
  }

  .mp-tab {
    padding: 10px 16px;
    font-size: 0.75rem;
  }

  .verify-banner-inner {
    flex-wrap: wrap;
  }

  .mp-verify-btn {
    width: 100%;
    margin-top: 8px;
  }
}
